wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
[gnulib.git] / ChangeLog
1 2011-04-01  Bruno Haible  <bruno@clisp.org>
2
3         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
4         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
5         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
6         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
7         Reported by Bruce Korb <bruce.korb@gmail.com>.
8
9 2011-04-01  Bruno Haible  <bruno@clisp.org>
10
11         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
12         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
13         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
14         * modules/wcpcpy (Depends-on): Add extensions.
15         * modules/wcpncpy (Depends-on): Likewise.
16         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
17         systems.
18         * doc/posix-functions/wcpncpy.texi: Likewise.
19         * doc/posix-functions/wcwidth.texi: Likewise.
20
21 2011-03-31  Eric Blake  <eblake@redhat.com>
22
23         nonblocking: fix mingw test failures
24         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
25         non-blocking flag on regular file.
26         (get_nonblocking_flag): Set errno on invalid fd.
27         * tests/test-nonblocking.c (main): Avoid test failure on
28         directories if fchdir is not active.
29         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
30
31 2011-03-31  Bruno Haible  <bruno@clisp.org>
32
33         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
34         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
35         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
36         Reported by Simon Josefsson <simon@josefsson.org>.
37
38 2011-03-31  Bruno Haible  <bruno@clisp.org>
39         and Eric Blake  <eblake@redhat.com>
40
41         nonblocking: new module
42         * modules/nonblocking: New module.
43         * modules/nonblocking-tests: Likewise.
44         * lib/nonblocking.h: New file.
45         * lib/nonblocking.c: Likewise.
46         * tests/test-nonblocking.c: New test.
47         * lib/ioctl.c (ioctl) [mingw]: Update comment.
48
49 2011-03-30  Bruno Haible  <bruno@clisp.org>
50
51         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
52         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
53         instead of 'printf' format for GCC >= 4.4.
54         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
55         (fprintf, printf, vfprintf, vprintf): Declare with
56         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
57         the system's vfprintf() function.
58         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
59
60 2011-03-30  Eric Blake  <eblake@redhat.com>
61
62         passfd: fix scoping bug
63         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
64         before sendmsg/recvmsg.
65
66         passfd: standardize coding conventions
67         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
68         can be learned at compile time.
69         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
70         ifdefs.
71         (sendfd, recvfd): Follow gnulib code conventions.
72
73         passfd: fix incorrect sendmsg arguments
74         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
75         incorrect msg_controllen value.
76         * modules/passfd-tests (Depends-on): Check for alarm.
77         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
78         Reported by Bastien ROUCARIES.
79
80 2011-03-30  Bruno Haible  <bruno@clisp.org>
81
82         c-strcasestr: Relicense under LGPLv2+.
83         * modules/c-strcasestr (License): Change to LGPLv2+.
84         Requested by Eric Blake, for libvirt.
85
86 2011-03-30  Simon Josefsson  <simon@josefsson.org>
87
88         * users.txt: Add libidn2.  Fix libtasn1 link.
89
90 2011-03-30  Jim Meyering  <meyering@redhat.com>
91
92         tests: readlink* ("",... fails with EINVAL on newer kernels
93         readlink and readlinkat have typically failed with ENOENT for
94         the invalid, empty file name,  "".  However, with the advent
95         of linux-2.6.39, they fail with EINVAL.
96         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
97         when operating on the empty file name.
98         * tests/test-readlink.h (test_readlink): Likewise.
99
100 2011-03-29  Bruno Haible  <bruno@clisp.org>
101
102         Relicense some modules under LGPLv2+, for libidn2.
103         * modules/array-mergesort (License): Change to LGPLv2+.
104         * modules/c-strcaseeq (License): Likewise.
105         * modules/striconveh (License): Likewise.
106         * modules/striconveha (License): Likewise.
107         * modules/uniconv/base (License): Likewise.
108         * modules/uniconv/u8-conv-from-enc (License): Likewise.
109         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
110         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
111         * modules/unictype/base (License): Likewise.
112         * modules/unictype/bidiclass-of (License): Likewise.
113         * modules/unictype/category-M (License): Likewise.
114         * modules/unictype/category-none (License): Likewise.
115         * modules/unictype/category-of (License): Likewise.
116         * modules/unictype/category-test (License): Likewise.
117         * modules/unictype/category-test-withtable (License): Likewise.
118         * modules/unictype/combining-class (License): Likewise.
119         * modules/unictype/joiningtype-of (License): Likewise.
120         * modules/unictype/scripts (License): Likewise.
121         * modules/uninorm/base (License): Likewise.
122         * modules/uninorm/canonical-decomposition (License): Likewise.
123         * modules/uninorm/composition (License): Likewise.
124         * modules/uninorm/decompose-internal (License): Likewise.
125         * modules/uninorm/decomposition-table (License): Likewise.
126         * modules/uninorm/nfc (License): Likewise.
127         * modules/uninorm/nfd (License): Likewise.
128         * modules/uninorm/u32-normalize (License): Likewise.
129         * modules/unistr/base (License): Likewise.
130         * modules/unistr/u32-cpy (License): Likewise.
131         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
132         * modules/unistr/u32-to-u8 (License): Likewise.
133         * modules/unistr/u32-uctomb (License): Likewise.
134         * modules/unistr/u8-check (License): Likewise.
135         * modules/unistr/u8-mblen (License): Likewise.
136         * modules/unistr/u8-mbtouc (License): Likewise.
137         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
138         * modules/unistr/u8-mbtoucr (License): Likewise.
139         * modules/unistr/u8-prev (License): Likewise.
140         * modules/unistr/u8-strlen (License): Likewise.
141         * modules/unistr/u8-to-u32 (License): Likewise.
142         * modules/unistr/u8-uctomb (License): Likewise.
143         * modules/unitypes (License): Likewise.
144         Requested by Simon Josefsson.
145
146 2011-03-29  Simon Josefsson  <simon@josefsson.org>
147
148         lib-symbol-visibility: Add a notice.
149         * modules/lib-symbol-visibility (Notice): New field.
150
151 2011-03-29  Bruno Haible  <bruno@clisp.org>
152
153         getaddrinfo: Doc fix.
154         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
155         section "fixed in Gnulib".
156
157 2011-03-28  Simon Josefsson  <simon@josefsson.org>
158
159         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
160         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
161
162 2011-03-26  Bruno Haible  <bruno@clisp.org>
163
164         unictype/property-byname: Reduce the number of load-time relocations.
165         * lib/unictype/pr_byname.c: Include <stdlib.h>.
166         (UC_PROPERTY_INDEX_*): New enumeration values.
167         (uc_property_byname): Convert an index from the lookup table to an
168         uc_property_t.
169         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
170         values.
171
172 2011-03-26  Bruno Haible  <bruno@clisp.org>
173
174         unictype/property-byname: Allow omitted word separators and aliases.
175         * lib/unictype/pr_byname.gperf: Add property names without word
176         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
177         for 'space'.
178
179 2011-03-26  Bruno Haible  <bruno@clisp.org>
180
181         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
182         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
183         also hyphens to space.
184         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
185         without spaces.
186         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
187
188 2011-03-26  Bruno Haible  <bruno@clisp.org>
189
190         unictype/joiningtype-byname: Recognize long names as well.
191         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
192         a long name.
193         * lib/unictype/joiningtype_byname.c: Include <string.h>,
194         unictype/joiningtype_byname.h.
195         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
196         * lib/unictype/joiningtype_byname.gperf: New file.
197         * modules/unictype/joiningtype-byname (Files): Add
198         lib/unictype/joiningtype_byname.gperf.
199         (Depends-on): Add gperf.
200         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
201         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
202         long names.
203
204         Tests for module 'unictype/joiningtype-longname'.
205         * modules/unictype/joiningtype-longname-tests: New file.
206         * tests/unictype/test-joiningtype_longname.c: New file.
207
208         New module 'unictype/joiningtype-longname'.
209         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
210         * lib/unictype/joiningtype_longname.c: New file.
211         * modules/unictype/joiningtype-longname: New file.
212         * modules/unictype/joiningtype-all (Depends-on): Add
213         unictype/joiningtype-longname.
214
215 2011-03-26  Bruno Haible  <bruno@clisp.org>
216
217         unictype/bidiclass-byname: Recognize long names as well.
218         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
219         name.
220         * lib/unictype/bidi_byname.c: Include <string.h>,
221         unictype/bidi_byname.h.
222         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
223         * lib/unictype/bidi_byname.gperf: New file.
224         * modules/unictype/bidiclass-byname (Files): Add
225         lib/unictype/bidi_byname.gperf.
226         (Depends-on): Add gperf.
227         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
228         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
229         long names.
230
231         Tests for module 'unictype/bidiclass-longname'.
232         * modules/unictype/bidiclass-longname-tests: New file.
233         * tests/unictype/test-bidi_longname.c: New file.
234
235         New module 'unictype/bidiclass-longname'.
236         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
237         * lib/unictype/bidi_longname.c: New file.
238         * modules/unictype/bidiclass-longname: New file.
239         * modules/unictype/bidiclass-all (Depends-on): Add
240         unictype/bidiclass-longname.
241
242 2011-03-26  Bruno Haible  <bruno@clisp.org>
243
244         unictype/bidi*: Rename modules.
245         * modules/unictype/bidiclass-all: Renamed from
246         modules/unictype/bidicategory-all.
247         * modules/unictype/bidiclass-name: Renamed from
248         modules/unictype/bidiclass-name.
249         (Description): Update.
250         * modules/unictype/bidiclass-name-tests: Renamed from
251         modules/unictype/bidicategory-name-tests.
252         * modules/unictype/bidiclass-byname: Renamed from
253         modules/unictype/bidicategory-byname.
254         (Description): Update.
255         * modules/unictype/bidiclass-byname-tests: Renamed from
256         modules/unictype/bidicategory-byname-tests.
257         * modules/unictype/bidiclass-of: Renamed from
258         modules/unictype/bidicategory-of.
259         (Description): Update.
260         * modules/unictype/bidiclass-of-tests: Renamed from
261         modules/unictype/bidicategory-of-tests.
262         * modules/unictype/bidiclass-test: Renamed from
263         modules/unictype/bidicategory-test.
264         (Description): Update.
265         * modules/unictype/bidiclass-test-tests: Renamed from
266         modules/unictype/bidicategory-test-tests.
267         * modules/unictype/bidicategory-all: New file, a simple redirection.
268         * modules/unictype/bidicategory-name: Likewise.
269         * modules/unictype/bidicategory-byname: Likewise.
270         * modules/unictype/bidicategory-of: Likewise.
271         * modules/unictype/bidicategory-test: Likewise.
272         * modules/unictype/property-bidi-* (Dependencies): Update.
273         * lib/unictype/bidi_*.c: Update comment.
274
275 2011-03-26  Bruno Haible  <bruno@clisp.org>
276
277         unictype/bidi*: Rename functions, part 2.
278         * modules/unictype/bidicategory-name (configure.ac): Update required
279         libunistring version.
280         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
281
282 2011-03-25  Bruno Haible  <bruno@clisp.org>
283
284         New module 'unictype/combining-class-all'.
285         * modules/unictype/combining-class-all: New file.
286
287         Tests for module 'unictype/combining-class-byname'.
288         * modules/unictype/combining-class-byname-tests: New file.
289         * tests/unictype/test-combiningclass_byname.c: New file.
290
291         New module 'unictype/combining-class-byname'.
292         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
293         * lib/unictype/combiningclass_byname.c: New file.
294         * lib/unictype/combiningclass_byname.gperf: New file.
295         * modules/unictype/combining-class-byname: New file.
296
297         Tests for module 'unictype/combining-class-longname'.
298         * modules/unictype/combining-class-longname-tests: New file.
299         * tests/unictype/test-combiningclass_longname.c: New file.
300
301         New module 'unictype/combining-class-longname'.
302         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
303         * lib/unictype/combiningclass_longname.c: New file.
304         * modules/unictype/combining-class-longname: New file.
305
306         Tests for module 'unictype/combining-class-name'.
307         * modules/unictype/combining-class-name-tests: New file.
308         * tests/unictype/test-combiningclass_name.c: New file.
309
310         New module 'unictype/combining-class-name'.
311         * lib/unictype.in.h (uc_combining_class_name): New declaration.
312         * lib/unictype/combiningclass_name.c: New file.
313         * modules/unictype/combining-class-name: New file.
314
315 2011-03-25  Bruno Haible  <bruno@clisp.org>
316
317         unictype/combining-class: Rename source files.
318         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
319         of unictype/combining.h.
320         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
321         Update.
322         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
323         * modules/unictype/combining-class (Description): Fix.
324         (Files, Makefile.am): Update.
325         * tests/unictype/test-combiningclass.c: Renamed from
326         tests/unictype/test-combining.c.
327         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
328
329 2011-03-25  Bruno Haible  <bruno@clisp.org>
330
331         unictype: Update list of canonical combining classes.
332         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
333
334 2011-03-25  Bruno Haible  <bruno@clisp.org>
335
336         unictype/category-byname: Recognize long names as well.
337         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
338         a long name.
339         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
340         unictype/categ_byname.h.
341         (UC_CATEGORY_INDEX_*): New enumeration values.
342         (uc_general_category_byname): Use uc_general_category_lookup and
343         convert from index to value.
344         * lib/unictype/categ_byname.gperf: New file.
345         * modules/unictype/category-byname (Files): Add
346         lib/unictype/categ_byname.gperf.
347         (Depends-on): Add gperf.
348         (Makefile.am): Add rule for generating unictype/categ_byname.h.
349         * tests/unictype/test-categ_byname.c (main): Test the recognition of
350         long names.
351
352         Tests for module 'unictype/category-longname'.
353         * modules/unictype/category-longname-tests: New file.
354         * tests/unictype/test-categ_longname.c: New file.
355
356         New module 'unictype/category-longname'.
357         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
358         * lib/unictype/categ_longname.c: New file.
359         * modules/unictype/category-longname: New file.
360         * modules/unictype/category-all (Depends-on): Add it.
361
362 2011-03-25  Bruno Haible  <bruno@clisp.org>
363
364         Tests for module 'unictype/category-LC'.
365         * modules/unictype/category-LC-tests: New file.
366         * tests/unictype/test-categ_LC.c: New file, automatically generated.
367
368         New module 'unictype/category-LC'.
369         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
370         (UC_CATEGORY_LC): New declaration.
371         (UC_CASED_LETTER): New macro.
372         * lib/gen-uni-tables.c (is_category_LC): New function.
373         (output_categories): Also handle category LC.
374         (UC_CATEGORY_MASK_LC): New enumeration value.
375         (general_category_byname): Also handle category LC.
376         * lib/unictype/categ_LC.c: New file.
377         * lib/unictype/categ_LC.h: New file, automatically generated.
378         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
379         category LC.
380         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
381         * modules/unictype/category-LC: New file.
382         * modules/unictype/category-byname (Depends-on): Add
383         unictype/category-LC.
384         * modules/unictype/category-all (Depends-on): Likewise.
385
386 2011-03-25  Eric Blake  <eblake@redhat.com>
387
388         xmalloc: revert yesterday's regression
389         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
390         realloc's underlying behavior (allowing allocation of zero-size
391         objects, especially if malloc-gnu is also in use).
392
393 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
394
395         maint.mk: add missing version to VC-tag
396         * top/maint.mk: git tag was missing actual tag name; add it.
397
398         valgrind: do leak checking, and exit with code 1 on error (not 0)
399         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
400         to VALGRIND.
401
402 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
403
404         posix-modules: say what it does.
405         * posix-modules: Add a line to the --help output saying what it does.
406
407 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
408
409         xmalloc: Do not leak if underlying realloc is C99 compatible.
410         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
411         This avoids a leak on C99-based systems.  See
412         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
413
414 2011-03-24  Eric Blake  <eblake@redhat.com>
415
416         realloc: document portability problem
417         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
418         passing 0 size to realloc.
419
420 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
421
422         doc: update users.txt
423         * users.txt: Add cvsps, tmpwatch
424
425 2011-03-23  Matt Rice  <ratmice@gmail.com>
426
427         doc: update users.txt
428         * users.txt: Add gdb.
429
430 2011-03-23  Jim Meyering  <meyering@redhat.com>
431
432         doc: update users.txt
433         Looking through matches up to the following URL (there are still
434         several more pages), I found several projects that use gnulib:
435         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
436         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
437         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
438
439 2011-03-22  Bruno Haible  <bruno@clisp.org>
440
441         unictype/bidi*: Rename functions.
442         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
443         uc_bidi_class, uc_is_bidi_class): New declarations.
444         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
445         uc_bidi_category_byname.
446         (uc_bidi_category_byname): New function.
447         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
448         u_bidi_category_name.
449         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
450         (uc_bidi_category_name): New function.
451         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
452         uc_bidi_category.
453         (uc_bidi_category): New function.
454         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
455         uc_is_bidi_category. Invoke uc_bidi_class.
456         (uc_is_bidi_category): New function.
457         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
458         instead of uc_bidi_category_byname.
459         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
460         instead of uc_bidi_category_name.
461         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
462         uc_bidi_category.
463         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
464         instead of uc_is_bidi_category.
465
466 2011-03-21  Bruno Haible  <bruno@clisp.org>
467
468         New module 'unictype/joininggroup-all'.
469         * modules/unictype/joininggroup-all: New file.
470
471         Tests for module 'unictype/joininggroup-of'.
472         * modules/unictype/joininggroup-of-tests: New file.
473         * tests/unictype/test-joininggroup_of.c: New file.
474         * tests/unictype/test-joininggroup_of.h: New file, automatically
475         generated by gen-uni-tables.
476
477         New module 'unictype/joininggroup-of'.
478         * modules/unictype/joininggroup-of: New file.
479         * lib/unictype/joininggroup_of.c: New file.
480         * lib/unictype/joininggroup_of.h: New file, automatically generated by
481         gen-uni-tables.
482
483         Tests for module 'unictype/joininggroup-byname'.
484         * modules/unictype/joininggroup-byname-tests: New file.
485         * tests/unictype/test-joininggroup_byname.c: New file.
486
487         New module 'unictype/joininggroup-byname'.
488         * modules/unictype/joininggroup-byname: New file.
489         * lib/unictype/joininggroup_byname.c: New file.
490         * lib/unictype/joininggroup_byname.gperf: New file.
491
492         Tests for module 'unictype/joininggroup-name'.
493         * modules/unictype/joininggroup-name-tests: New file.
494         * tests/unictype/test-joininggroup_name.c: New file.
495
496         New module 'unictype/joininggroup-name'.
497         * modules/unictype/joininggroup-name: New file.
498         * lib/unictype/joininggroup_name.c: New file.
499         * lib/unictype/joininggroup_name.h: New file.
500
501         New module 'unictype/joiningtype-all'.
502         * modules/unictype/joiningtype-all: New file.
503
504         Tests for module 'unictype/joiningtype-of'.
505         * modules/unictype/joiningtype-of-tests: New file.
506         * tests/unictype/test-joiningtype_of.c: New file.
507         * tests/unictype/test-joiningtype_of.h: New file, automatically
508         generated by gen-uni-tables.
509
510         New module 'unictype/joiningtype-of'.
511         * modules/unictype/joiningtype-of: New file.
512         * lib/unictype/joiningtype_of.c: New file.
513         * lib/unictype/joiningtype_of.h: New file, automatically generated by
514         gen-uni-tables.
515
516         Tests for module 'unictype/joiningtype-byname'.
517         * modules/unictype/joiningtype-byname-tests: New file.
518         * tests/unictype/test-joiningtype_byname.c: New file.
519
520         New module 'unictype/joiningtype-byname'.
521         * modules/unictype/joiningtype-byname: New file.
522         * lib/unictype/joiningtype_byname.c: New file.
523
524         Tests for module 'unictype/joiningtype-name'.
525         * modules/unictype/joiningtype-name-tests: New file.
526         * tests/unictype/test-joiningtype_name.c: New file.
527
528         New module 'unictype/joiningtype-name'.
529         * modules/unictype/joiningtype-name: New file.
530         * lib/unictype/joiningtype_name.c: New file.
531
532         unictype: Add support for Arabic shaping properties.
533         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
534         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
535         declarations.
536         (UC_JOINING_GROUP_*): New enumeration values.
537         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
538         declarations.
539         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
540         (unicode_joining_type): New variable.
541         (UC_JOINING_GROUP_*): New enumeration values.
542         (unicode_joining_group): New variable.
543         (fill_arabicshaping, joining_type_as_c_identifier,
544         output_joining_type_test, output_joining_type,
545         joining_group_as_c_identifier, output_joining_group_test,
546         output_joining_group): New functions.
547         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
548         fill_arabicshaping and output_joining_type_test, output_joining_type,
549         output_joining_group_test, output_joining_group.
550         Reported by Simon Josefsson.
551
552 2011-03-21  Jim Meyering  <meyering@redhat.com>
553
554         strftime: fix a bug in yesterday's change
555         * lib/strftime.c (add): Accommodate width's initial value of -1.
556         Otherwise, nstrftime would copy uninitialized data into
557         the result buffer.
558
559 2011-03-21  Jim Meyering  <meyering@redhat.com>
560
561         tests: add strftime-tests module
562         * tests/test-strftime.c: New file.
563         * modules/strftime-tests: New module.
564
565 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
566
567         strftime: don't assume a byte count fits in 'int'
568         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
569         found this problem by static analysis, using gcc -Wstrict-overflow
570         (GCC 4.5.2, x86-64).  This reported an optimization that depended
571         on an integer overflow having undefined behavior, but it turns out
572         that the argument is a size, which might not fit in 'int' anyway,
573
574 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
575
576         stdio: don't require ignore_value around fwrite
577
578         This patch works around libc bug 11959
579         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
580         Without this patch, applications must often write
581         ignore_value (fwrite (...)) even though the ignore_value is
582         not helpful here.  It's common to write many objects, using
583         fwrite/printf/etc., and then use ferror to detect output error.
584
585         I considered making this patch optional, but decided against it,
586         because libc is obviously being inconsistent here: there is no
587         reason libc should insist that user code must inspect fwrite
588         return's value without also insisting that it inspect printf's,
589         putchar's, etc.  If user code wants to have a strict style where
590         all these functions' values are checked (so that ferror need not
591         be checked), we could add support for that style in a new gnulib
592         module, but in the meantime it's better to be consistent and to
593         support common usage.
594
595         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
596         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
597         that we are compiling in checking mode, and if not C++, and
598         if not already wrapping fwrite for some other reason.
599         (fwrite): #define to rpl_fwrite if the latter is defined.
600
601 2011-03-20  Bruno Haible  <bruno@clisp.org>
602
603         verror: Fix compilation error introduced on 2011-02-13.
604         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
605         instead of __attribute__.
606         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
607
608 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
609             Bruno Haible  <bruno@clisp.org>
610
611         socklen: do not depend on sys_socket
612         While trying to modify Emacs to use gnulib's socklen module,
613         I discovered a circular dependency: socklen depends on sys_socket
614         and vice versa.  Emacs can use socklen, but it does not need
615         sys_socket because it has its own substitute for sys/socket.h.
616         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
617         gl_TYPE_SOCKLEN_T.
618         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
619         gl_PREREQ_SYS_H_SOCKET.
620         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
621         gl_PREREQ_SYS_H_SOCKET.
622         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
623         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
624         * modules/socklen (Depends-on): Do not depend on sys_socket.
625         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
626
627 2011-03-20  Jim Meyering  <meyering@redhat.com>
628
629         maint.mk: sort file names *after* new transformation
630         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
631         prefix would have led to an unwarranted failure in GNU parted.
632         Sort after that transformation.
633
634 2011-03-19  Jim Meyering  <meyering@redhat.com>
635
636         maint.mk: fix po-file syntax-check rule
637         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
638         Patch by Bruno Haible.
639
640 2011-03-19  Bruno Haible  <bruno@clisp.org>
641
642         socklen: Update comment.
643         * m4/socklen.m4: Update comment about platforms.
644
645 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
646             Bruno Haible  <bruno@clisp.org>
647
648         inet_ntop, inet_pton: Simplify.
649         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
650         documented to provide socklen_t and we already depend on sys_socket.
651         * modules/inet_pton (Depends-on): Likewise.
652         * lib/arpa_inet.in.h: Adjust comment.
653
654 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
655             Bruno Haible  <bruno@clisp.org>
656
657         netdb: Simplify.
658         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
659         documented to provide socklen_t and we already depend on sys_socket.
660         * lib/netdb.in.h: Adjust comment.
661
662 2011-03-19  Bruno Haible  <bruno@clisp.org>
663
664         sys_socket, netdb: Document problem with socklen_t.
665         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
666         platforms.
667         * doc/posix-headers/netdb.texi: Likewise.
668
669 2011-03-18  Eric Blake  <eblake@redhat.com>
670
671         maint.mk: let po check work in VPATH build
672         * top/maint.mk (po_file): Allow cfg.mk override.
673         (sc_po_check): Allow VPATH use.
674         Reported by Jiri Denemark.
675
676 2011-03-16  Jim Meyering  <meyering@redhat.com>
677
678         maint.mk: allow fine-grained syntax-check exclusion via Make variables
679         Before, you would have had to create one .x-sc_ file per rule in order
680         to exempt offending files.  Now, you may instead use a Make variable --
681         usually defined in cfg.mk -- whose name identifies the affected rule.
682         * top/maint.mk (_sc_excl): Define.
683         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
684         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
685
686 2011-03-13  Bruno Haible  <bruno@clisp.org>
687
688         ignore-value tests: Avoid warnings.
689         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
690         empty for gcc < 3.4.
691
692 2011-03-13  Bruno Haible  <bruno@clisp.org>
693
694         passfd: Fix link error on Solaris.
695         * modules/passfd (Description): Correct.
696         (Depends-on): Add socketlib.
697         (Link): New section.
698         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
699
700 2011-03-13  Bruno Haible  <bruno@clisp.org>
701
702         passfd: Fix link error on AIX 5.2.
703         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
704
705 2011-03-13  Bruno Haible  <bruno@clisp.org>
706
707         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
708         * lib/sys_socket.in.h: Include <stddef.h>.
709         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
710         CMSG_FIRSTHDR. Remove unused variable.
711
712 2011-03-13  Bruno Haible  <bruno@clisp.org>
713
714         passfd: Fix compilation error on OpenBSD.
715         * lib/passfd.c: Include <sys/uio.h>.
716
717 2011-03-13  Bruno Haible  <bruno@clisp.org>
718
719         passfd test: Fix warnings.
720         * tests/test-passfd.c: Include <sys/wait.h>.
721         (main): Fix typo.
722
723 2011-03-13  Bruno Haible  <bruno@clisp.org>
724
725         passfd module, part 4, tweaks.
726         * tests/test-passfd.c: Reorder includes.
727         (main): Fix perror and printf calls.
728
729 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
730
731         passfd module, part 4.
732         * modules/passfd-tests: New file.
733         * tests/test-passfd.c: New file.
734
735 2011-03-13  Jim Meyering  <meyering@redhat.com>
736
737         Makefile: rely on GNU make; derive syntax-check rule names
738         Rather than requiring that each sc_ rule be listed as a dependent
739         of "check", use features of GNU make to derive the list.
740         * Makefile (syntax-check-rules): Define.
741         (check): Depend on the new variable, not the hard-coded list.
742
743 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
744             Bruno Haible  <bruno@clisp.org>
745
746         passfd module, part 3.
747         * lib/passfd.h (recvfd): Add a flags argument.
748         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
749         (recvfd): Add a flags argument.
750         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
751         exists.
752         * modules/passfd (Depends-on): Add cloexec.
753         Suggested by Eric Blake.
754
755 2011-03-13  Bruno Haible  <bruno@clisp.org>
756
757         passfd module, part 2, tweaks.
758         * modules/passfd (Files): Reorder.
759         (Depends-on): Remove errno.
760         (Include): Remove <sys/socket.h>, <sys/un.h>.
761         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
762         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
763         specification header. Include <sys/socket.h> always. Don't include
764         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
765         (sendfd): Clarify that it sets errno when it fails.
766         (recvfd): Fix specification.
767
768 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
769
770         passfd module, part 2.
771         * modules/passfd: New file.
772         * lib/passfd.h: New file.
773         * lib/passfd.c: New file.
774
775 2011-03-12  Bruno Haible  <bruno@clisp.org>
776
777         wcswidth, mbswidth: Avoid integer overflow.
778         * lib/wcswidth.c: Include <limits.h>.
779         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
780         * lib/mbswidth.c: Include <limits.h>.
781         (mbsnwidth): Avoid 'int' overflow.
782         Reported by Jim Meyering.
783
784 2011-03-12  Bruno Haible  <bruno@clisp.org>
785
786         futimens, utimensat: Avoid endless recursion on Solaris 10.
787         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
788         Solaris.
789         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
790         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
791
792 2011-03-11  Jim Meyering  <meyering@redhat.com>
793
794         maint.mk: relax a regexp to accommodate other formatting styles
795         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
796         between "ngettext" and the following "(".
797
798 2011-03-11  Pádraig Brady <P@draigBrady.com>
799
800         maint.mk: suppress a false positive warning
801         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
802         diagnostics are marked with ngettext.
803
804 2011-03-10  Eric Blake  <eblake@redhat.com>
805
806         wchar: add explicit dependencies, for Tru64
807         * modules/mbmemcasecoll (Depends-on): Add wchar.
808         * modules/mbtowc (Depends-on): Likewise.
809         * modules/vasnprintf (Depends-on): Likewise.
810         * modules/unistdio/u-printf-args (Depends-on): Likewise.
811         * modules/wctomb (Depends-on): Likewise.
812         Reported by Peter O'Gorman.
813
814 2011-03-08  Bruno Haible  <bruno@clisp.org>
815
816         passfd module, part 1, tweaks.
817         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
818         Improve indentation. Improve AC_MSG_CHECKING messages.
819         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
820         gl_SOCKET_FAMILIES.
821
822 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
823
824         passfd module, part 1.
825         * m4/afunix.m4: New file.
826         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
827         sockets.
828
829 2011-03-08  Bruno Haible  <bruno@clisp.org>
830
831         regex-quote: New API.
832         * lib/regex-quote.h: Include <stdbool.h>.
833         (struct regex_quote_spec): New type.
834         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
835         New declarations.
836         (regex_quote_length, regex_quote_copy, regex_quote): Take a
837         'const struct regex_quote_spec *' argument.
838         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
839         (pcre_special): New constant.
840         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
841         New functions.
842         (regex_quote_length, regex_quote_copy, regex_quote): Take a
843         'const struct regex_quote_spec *' argument.
844         * modules/regex-quote (Depends-on): Add stdbool.
845         * tests/test-regex-quote.c (check): Update for new API. Add test for
846         anchored results.
847         * NEWS: Mention the API change.
848         Reported by Reuben Thomas and Eric Blake.
849
850 2011-03-06  Bruno Haible  <bruno@clisp.org>
851
852         regex-quote: Fix creation of POSIX extended regular expressions.
853         * lib/regex-quote.c (ere_special): Add grouping and alternation
854         operators.
855
856 2011-03-05  Bruno Haible  <bruno@clisp.org>
857
858         doc: Improve doc regarding autopoint vs. gnulib.
859         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
860         disable autopoint while running autoreconf.
861         Suggested by Ralf Wildenhues.
862
863 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
864
865         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
866         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
867
868 2011-03-03  Bruce Korb  <bkorb@gnu.org>
869
870         parse-duration: remove xalloc.h dependency
871         * lib/parse-duration.c (parse_period): handle NULL return from
872         strdup instead of calling xstrdup().
873         * modules/parse-duration: remove "xalloc" dependency
874
875 2011-03-03  Matthew Booth  <mbooth@redhat.com>
876
877         bootstrap: honor m4_base when running aclocal
878         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
879
880 2011-03-02  Jim Meyering  <meyering@redhat.com>
881
882         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
883         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
884         on request from Matt Booth.
885
886 2011-03-01  Eric Blake  <eblake@redhat.com>
887
888         test-link: work on Hurd
889         * tests/test-link.h (test_link): Hurd rejects linking directories
890         with EISDIR instead of the POSIX-mandated EPERM.
891
892 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
893
894         stdio: simplify by moving files to printf-posix, sigpipe
895         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
896         since this symbol is needed only if printf is replaced.
897         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
898         Require gl_ASM_SYMBOL_PREFIX.
899         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
900         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
901         (Depends-on): Add 'raise'.
902         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
903         * modules/stdio (Files): Remove lib/stdio-write.c,
904         m4/asm-underscore.m4.
905         (Depends-on): Remove 'raise'.
906
907         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
908         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
909         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
910         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
911
912 2011-02-28  Bruno Haible  <bruno@clisp.org>
913
914         localcharset: Assume ANSI C behaviour of free().
915         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
916         calling free().
917         Suggested by Simon Josefsson <simon@josefsson.org>.
918
919 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
920             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
921             Bruno Haible  <bruno@clisp.org>  (tiny change)
922
923         On Cygwin, use /proc file system instead of win32 API.
924         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
925         Win32 file names.
926         (DllMain): Simplify by removing Cygwin specific code.
927         (find_shared_library_fullname): Use Linux specific implementation also
928         for Cygwin.
929         (get_shared_library_fullname): Update accordingly.
930         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
931         Win32 file names.
932         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
933         Cygwin specific code.
934
935 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
936             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
937
938         Fix OpenMP flag detection for various Fortran compilers.
939         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
940         OpenMP-conditional compilation construct, to force compile
941         failure with missing OpenMP flag.
942         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
943
944 2011-02-25  Eric Blake  <eblake@redhat.com>
945
946         strstr: expand test coverage
947         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
948         compilation.
949         * tests/test-memmem.c (main): Duplicate tests.
950         * tests/test-strcasestr.c (main): Likewise.
951         * tests/test-c-strcasestr.c (main): Likewise.
952
953 2011-02-25  Jim Meyering  <meyering@redhat.com>
954
955         maint.mk: detect missing-NL-at-EOF, too
956         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
957         it also detects when a file lacks a newline at EOF.
958         (require_exactly_one_NL_at_EOF_): Renamed from
959         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
960         since people may well have .x-sc_... file names tied to the
961         existing name.  Suggested by Eric Blake.
962
963 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
964
965         dirname: move m4/dos.m4 functionality into lib/dosname.h
966
967         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
968         extracts symbols from it, puts them into config.h; but it's much
969         easier to use the symbols directly.  filename.h already does this,
970         but it disagrees with dos.m4 in some respects.  This patch
971         introduces a different include file dosname.h that packages up
972         dos.m4, and then later we can work on merging filename.h and
973         dosname.h.  Applications that need only the easy-to-configure
974         symbols should consider including dosname.h rather than dirname.h.
975         * NEWS: Mention incompatible changes.
976         * m4/dos.m4: Remove.
977         * lib/dosname.h, modules/dosname: New files.
978         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
979         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
980         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
981         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
982         Include dosname.h, not dirname.h.
983         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
984         Include dosname.h, for definitions of symbols like ISSLASH
985         that used to be in config.h.
986         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
987         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
988         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
989         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
990         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
991         * modules/rmdir (Files): Likewise.
992         * modules/stat (Files): Likewise.
993         * modules/unlink (Files): Likewise.
994         * modules/dirname-lgpl (Depends-on): Add dosname.
995         * modules/lstat (Depends-on): Likewise.
996         * modules/openat (Depends-on): Likewise.
997         * modules/rmdir (Depends-on): Likewise.
998         * modules/savewd (Depends-on): Likewise.
999         * modules/stat (Depends-on): Likewise.
1000         * modules/unlink (Depends-on): Likewise.
1001         * modules/openat (Depends-on): Remove dirname-lgpl.
1002         * modules/savewd (Depends-on): Likewise.
1003         * tests/test-dirname.c: Do not use removed symbols like
1004         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
1005         the remaining symbols, e.g., ISSLASH ('\\').
1006
1007 2011-02-25  Eric Blake  <eblake@redhat.com>
1008
1009         strstr: revert patches that introduced bug and pessimization
1010         * lib/str-two-way.h: Add another reference.
1011         (two_way_short_needle, two_way_long_needle): Revert changes from
1012         2011-02-24; they pessimize search speed.
1013         (critical_factorization): Partially revert changes from
1014         2010-06-22; they violate the requirement that the left half of the
1015         needle be smaller than the period of the needle.
1016
1017 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
1018
1019         filenamecat: remove unnecessary dependency on dirname-lgpl
1020         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
1021         is no direct dependency, just an indirect one via filenamecat-lgpl.
1022
1023         remove: remove unnecessary use of m4/dos.m4
1024         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
1025         * modules/remove (FILES): Remove m4/dos.m4.
1026
1027         * lib/openat-proc.c: Don't include dirname.h; not needed.
1028
1029         backupfile: remove unnecessary use of m4/dos.m4
1030         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
1031         of its symbols are used by the backupfile code.  backupfile.c does
1032         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
1033         for the rare case of programs that want all their backup file
1034         names to live within 8+3 limits, and dos.m4 doesn't address that.
1035         * modules/backupfile (Files): Remove m4/dos.m4.
1036
1037 2011-02-24  Jim Meyering  <meyering@redhat.com>
1038
1039         strstr: fix a bug whereby strstr would mistakenly return NULL
1040         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
1041         in period calculation.
1042         (two_way_long_needle): Likewise.
1043         The original problem was reported by Mike Stump in
1044         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
1045         Ralf Wildenhues provided the short needle and haystack.
1046         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
1047         Add a more involved test to trigger the bug in two_way_long_needle.
1048
1049 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
1050
1051         gnulib-tool: remove use of bold display in help screen
1052         * gnulib-tool (func_usage): Do not use bold display anymore in the
1053         help screen.  That was just meant to be a temporary emphasis for a
1054         backward-incompatible change.
1055
1056 2011-02-23  Bruno Haible  <bruno@clisp.org>
1057
1058         Fix misindentation of preprocessor directives.
1059         * lib/argp-namefrob.h: Reindent preprocessor directives.
1060         * lib/getopt_int.h (struct _getopt_data): Likewise.
1061         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
1062         * lib/vasnprintf.c (decode_long_double): Likewise.
1063         * tests/test-argmatch.c: Insert blank lines, for clarity.
1064         * tests/test-exclude.c: Likewise.
1065
1066 2011-02-22  Bruno Haible  <bruno@clisp.org>
1067
1068         ioctl: Fix for MacOS X in 64-bit mode.
1069         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
1070         value.
1071         Suggested by Eric Blake.
1072         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
1073
1074 2011-02-22  Jim Meyering  <meyering@redhat.com>
1075
1076         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
1077         * Makefile (sc_cpp_indent_check): Don't limit the check to files
1078         in lib/.
1079
1080 2011-02-22  Eric Blake  <eblake@redhat.com>
1081
1082         maint: avoid any CDPATH issue
1083         * Makefile (sc_cpp_indent_check): Anchor cd argument.
1084
1085         maint: adjust cpp indentation for my modules, as well
1086         * Makefile (sc_cpp_indent_check): Add my name.
1087         * lib/fbufmode.c: Filter through cppi.
1088         * lib/fpurge.c: Likewise.
1089         * lib/freadable.c: Likewise.
1090         * lib/freading.c: Likewise.
1091         * lib/fwritable.c: Likewise.
1092         * lib/fwriting.c: Likewise.
1093         * lib/sigaction.c: Likewise.
1094
1095 2011-02-22  Jim Meyering  <meyering@redhat.com>
1096
1097         maint: adjust cpp indentation to reflect nesting depth
1098         I.e., in a block of code that begins with an unnested "#if",
1099         put one space between the "#" in column 1 and following token.
1100         For example,
1101         -#include <sys/vfs.h>
1102         +# include <sys/vfs.h>
1103         Do this only in .c files that are part of a module I maintain.
1104         * lib/linkat.c: Filter through cppi.
1105         * lib/nanosleep.c: Likewise.
1106         * lib/openat.c: Likewise.
1107         * lib/openat-die.c: Likewise.
1108         * lib/dup3.c: Likewise.
1109         * lib/fchownat.c: Likewise.
1110         * lib/flock.c: Likewise.
1111         * lib/fsync.c: Likewise.
1112         * lib/fts.c: Likewise.
1113         * lib/getpass.c: Likewise.
1114         * lib/gettimeofday.c: Likewise.
1115         * lib/userspec.c: Likewise.
1116         * Makefile (sc_cpp_indent_check): New rule, to check this.
1117
1118 2011-02-22  Bruno Haible  <bruno@clisp.org>
1119
1120         New module 'wctomb'.
1121         * lib/stdlib.in.h (wctomb): New declaration.
1122         * lib/wctomb.c: New file.
1123         * lib/wctomb-impl.h: New file.
1124         * m4/wctomb.m4: New file.
1125         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
1126         REPLACE_WCTOMB.
1127         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
1128         REPLACE_WCTOMB.
1129         * modules/wctomb: New file.
1130         * tests/test-stdlib-c++.cc: Test signature of wctomb.
1131         * doc/posix-functions/wctomb.texi: Mention the new module.
1132         * modules/wctob (Depends-on): Add wctomb.
1133
1134 2011-02-22  Bruno Haible  <bruno@clisp.org>
1135
1136         New module 'mbtowc'.
1137         * lib/stdlib.in.h (mbtowc): New declaration.
1138         * lib/mbtowc.c: New file.
1139         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
1140         * m4/mbtowc.m4: New file.
1141         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
1142         REPLACE_MBTOWC.
1143         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
1144         REPLACE_MBTOWC.
1145         * modules/mbtowc: New file.
1146         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
1147         * doc/posix-functions/mbtowc.texi: Mention the new module.
1148         * modules/btowc (Depends-on): Add mbtowc.
1149
1150 2011-02-22  Bruno Haible  <bruno@clisp.org>
1151
1152         wcrtomb: Add more tests for native Windows platforms.
1153         * tests/test-wcrtomb-w32-1.sh: New file.
1154         * tests/test-wcrtomb-w32-2.sh: New file.
1155         * tests/test-wcrtomb-w32-3.sh: New file.
1156         * tests/test-wcrtomb-w32-4.sh: New file.
1157         * tests/test-wcrtomb-w32-5.sh: New file.
1158         * tests/test-wcrtomb-w32.c: New file.
1159         * modules/wcrtomb-tests (Files): Add them.
1160         (Makefile.am): Arrange to run these tests.
1161         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
1162         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
1163
1164 2011-02-20  Bruno Haible  <bruno@clisp.org>
1165
1166         wcrtomb: Enhance test.
1167         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
1168
1169 2011-02-20  Bruno Haible  <bruno@clisp.org>
1170
1171         mbrtowc: Tiny optimization.
1172         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
1173
1174 2011-02-20  Jim Meyering  <meyering@redhat.com>
1175
1176         test-exclude.c: remove unmatched #endif
1177         * tests/test-exclude.c: Remove stray #endif, left over from
1178         the change of a week ago.
1179
1180 2011-02-19  Jim Meyering  <meyering@redhat.com>
1181
1182         git-version-gen: skip "-dirty" check when appropriate
1183         * build-aux/git-version-gen: Don't run any git commands when the
1184         version string comes from .tarball-version.  Prior to this, we
1185         would run git update-index --refresh even from a just-unpacked
1186         tarball directory, and that could affect a .git/ directory in a
1187         parent of the build directory.  Reported by Mike Frysinger.
1188
1189 2011-02-19  Bruno Haible  <bruno@clisp.org>
1190
1191         unictype/property-byname: Reduce the size of the 'data' segment.
1192         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
1193
1194 2011-02-19  Bruno Haible  <bruno@clisp.org>
1195
1196         unictype/scripts: Reduce the size of the 'data' segment.
1197         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
1198         '%pic'.
1199         * lib/unictype/scripts_byname.gperf: Regenerated.
1200
1201 2011-02-19  Bruno Haible  <bruno@clisp.org>
1202
1203         stdint: Update documentation.
1204         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
1205
1206 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
1207
1208         stdint: omit redundant check for wchar.h
1209         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
1210         always tests whether wchar.h exists, so remove the now-redundant test.
1211
1212 2011-02-18  Bruno Haible  <bruno@clisp.org>
1213
1214         stdint: Cut dependency to module 'wchar'.
1215         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
1216         include the necessary prerequisites.
1217         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
1218         * modules/stdint (Depends-on): Remove wchar.
1219         (Makefile.am): Substitute HAVE_WCHAR_H.
1220         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
1221
1222 2011-02-18  Eric Blake  <eblake@redhat.com>
1223
1224         longlong: skip, rather than fail, on cross-compilation
1225         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
1226         when cross-compiling; regression from 2011-02-16.
1227
1228 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
1229
1230         * NEWS: Mention 2011-02-08 change to stdlib.
1231
1232 2011-02-17  Bruno Haible  <bruno@clisp.org>
1233
1234         getloadavg: Add comments about platforms.
1235         * m4/getloadavg.m4: Add comment.
1236         * lib/getloadavg.c: Likewise.
1237
1238 2011-02-17  Bruno Haible  <bruno@clisp.org>
1239
1240         getloadavg: Fix link error on Solaris 2.6.
1241         * modules/getloadavg (Link): New section.
1242         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
1243         linking test-getloadavg.
1244         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
1245         getloadavg.
1246
1247 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
1248
1249         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
1250         It was 'int', but this doesn't match the IRIX 6.5 manual.
1251         Suggested by Bruno Haible in
1252         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
1253
1254 2011-02-17  Bruno Haible  <bruno@clisp.org>
1255
1256         havelib: Fix comments.
1257         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
1258         change.
1259
1260 2011-02-17  Bruno Haible  <bruno@clisp.org>
1261
1262         havelib: Update config.rpath.
1263         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
1264
1265 2011-02-17  Bruno Haible  <bruno@clisp.org>
1266
1267         getloadavg test: Add some plausibility checks.
1268         * tests/test-getloadavg.c (check_avg): Print a warning when the value
1269         is improbable.
1270
1271 2011-02-16  Eric Blake  <eblake@redhat.com>
1272
1273         maintainer-makefile: make syntax-check a no-op from tarballs
1274         * top/maint.mk (no-vc-detected): New rule.
1275         (local-checks-available): Use it to avoid hanging if someone tries
1276         'make syntax-check' from a tarball.  Also append to any non-syntax
1277         checks already defined in cfg.mk.
1278
1279 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
1280
1281         longlong: tune, particularly for common case of c99
1282
1283         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
1284         or running anything if c99, or if unsigned long long int does not
1285         work.  In either case, we know the answer without further tests.
1286         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
1287         it at most once, and use its results for both long long int and
1288         unsigned long long int.  This is more likely to be efficient in
1289         the common case where the program wants to check for both long
1290         long int and unsigned long long int.
1291         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
1292         since the answer is already known.
1293
1294 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
1295
1296         getloadavg: set errno
1297         * lib/getloadavg.c: Set errno when returning -1.  If no other
1298         error number looks appropriate, set it to ENOSYS if the getloadavg
1299         looks like it can't possibly ever work, ENOTSUP otherwise.
1300         Suggested by Bruno Haible in
1301         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
1302
1303         getloadavg: trim unused parts and speed up 'configure'
1304         * NEWS: Document this.
1305         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
1306         always compiled if getloadavg is absent.
1307         Move test code to ...
1308         * tests/test-getloadavg.c: New file, containing previous
1309         contents of test from lib/getloadavg.c.  It also contains
1310         suggestions by Bruno Haible in
1311         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
1312         * modules/getloadavg-tests: New file.
1313         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
1314         Do tests in the same order as they're needed for getloadavg.c.
1315         Omit setgid-related tests that generate symbols KMEM_GROUP,
1316         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
1317         Do only the tests that are needed to see whether the system has
1318         getloadavg, moving the other tests into ...
1319         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
1320         NLIST_NAME_UNION; nobody should be using it.  Do not define
1321         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
1322         relevant, as the user of this module shouldn't care how getloadavg
1323         is implemented.
1324
1325         getloadavg: omit unused var
1326         * lib/getloadavg.c (getloadavg): Omit unused local variable.
1327
1328 2011-02-15  Jim Meyering  <meyering@redhat.com>
1329
1330         doc: update users.txt
1331         * users.txt: Update iwhd's URL.
1332
1333 2011-02-13  Bruno Haible  <bruno@clisp.org>
1334
1335         Consistent macro naming for macros that use GCC __attribute__.
1336         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
1337         _ATTRIBUTE_NONNULL_.
1338         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
1339         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
1340         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
1341         ATTRIBUTE_DEPRECATED.
1342         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
1343         ATTRIBUTE_NORETURN.
1344         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
1345         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
1346         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
1347         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
1348         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
1349         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
1350         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
1351         ATTRIBUTE_SENTINEL.
1352         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
1353         ATTRIBUTE_RETURN_CHECK.
1354         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
1355         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
1356         ATTRIBUTE_NORETURN.
1357         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
1358         Reported by Paul Eggert.
1359
1360 2011-02-13  Bruno Haible  <bruno@clisp.org>
1361
1362         Don't interfere with a program's definition of __attribute__.
1363         * lib/argp.h (__attribute__): Remove definition.
1364         (_GL_ATTRIBUTE_FORMAT): New macro.
1365         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
1366         * lib/argp-fmtstream.h (__attribute__): Remove definition.
1367         (_GL_ATTRIBUTE_FORMAT): New macro.
1368         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
1369         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
1370         GCC 3 or newer.
1371         * lib/error.h (__attribute__): Remove definition.
1372         (_GL_ATTRIBUTE_FORMAT): New macro.
1373         (error, error_at_line): Use it.
1374         * lib/hash.h (__attribute__): Remove definition.
1375         (ATTRIBUTE_WUR): Update definition. Define always.
1376         * lib/openat.h (__attribute__): Remove definition.
1377         (ATTRIBUTE_NORETURN): Update definition. Define always.
1378         * lib/sigpipe-die.h (__attribute__): Remove definition.
1379         (ATTRIBUTE_NORETURN): Update definition. Define always.
1380         * lib/vasnprintf.h (__attribute__): Remove definition.
1381         (_GL_ATTRIBUTE_FORMAT): New macro.
1382         (asnprintf, vasnprintf): Use it.
1383         * lib/xalloc.h (__attribute__): Remove definition.
1384         (ATTRIBUTE_NORETURN): Update definition. Define always.
1385         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
1386         * lib/xmemdup0.h (__attribute__): Remove definition.
1387         (ATTRIBUTE_NORETURN): Update definition. Define always.
1388         * lib/xprintf.h (__attribute__): Remove definition.
1389         (_GL_ATTRIBUTE_FORMAT): New macro.
1390         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
1391         * lib/xstrtol.h (__attribute__): Remove definition.
1392         (ATTRIBUTE_NORETURN): Update definition. Define always.
1393         * lib/xvasprintf.h (__attribute__): Remove definition.
1394         (_GL_ATTRIBUTE_FORMAT): New macro.
1395         (xasprintf, xvasprintf): Use it.
1396         * tests/test-argmatch.c (__attribute__): Remove definition.
1397         (ATTRIBUTE_NORETURN): Update definition. Define always.
1398         * tests/test-exclude.c (__attribute__): Remove definition.
1399         (ATTRIBUTE_NORETURN): Update definition. Define always.
1400         Reported by Paul Eggert.
1401
1402 2011-02-13  Bruno Haible  <bruno@clisp.org>
1403
1404         mbrtowc: Add more tests for native Windows platforms.
1405         * tests/test-mbrtowc-w32-1.sh: New file.
1406         * tests/test-mbrtowc-w32-2.sh: New file.
1407         * tests/test-mbrtowc-w32-3.sh: New file.
1408         * tests/test-mbrtowc-w32-4.sh: New file.
1409         * tests/test-mbrtowc-w32-5.sh: New file.
1410         * tests/test-mbrtowc-w32.c: New file.
1411         * modules/mbrtowc-tests (Files): Add them.
1412         (Makefile.am): Arrange to run these tests.
1413         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
1414         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
1415
1416 2011-02-13  Bruno Haible  <bruno@clisp.org>
1417
1418         mbrtowc: Work around native Windows bug.
1419         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
1420         guess when no suitable locale for testing was found.
1421         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
1422
1423 2011-02-13  Bruno Haible  <bruno@clisp.org>
1424
1425         mbsinit: Work around mingw bug.
1426         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
1427         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
1428         Windows.
1429         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
1430
1431 2011-02-13  Bruno Haible  <bruno@clisp.org>
1432
1433         mbsinit: Don't crash for a NULL argument.
1434         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
1435         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
1436
1437 2011-02-13  Bruno Haible  <bruno@clisp.org>
1438
1439         Don't interfere with a program's definition of __attribute__.
1440         * lib/stdio.in.h (__attribute__): Remove definition.
1441         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
1442         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
1443         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
1444         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
1445         * lib/string.in.h (__attribute__): Remove definition.
1446         Reported by Paul Eggert.
1447
1448 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
1449
1450         stdlib: don't get in the way of non-GCC __attribute__
1451         See thread starting at
1452         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
1453         Revert previous stdlib change, installing the following instead:
1454         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
1455         to get in the way of a non-GCC compiler that supports __attribute__.
1456         (_GL_ATTRIBUTE_RETURN): New macro.
1457         (_Exit): Use it instead of __attribute__.
1458
1459 2011-02-12  Bruno Haible  <bruno@clisp.org>
1460
1461         quotearg test: Avoid test failure on mingw.
1462         * tests/test-quotearg.sh: Convert the locale identifier from native
1463         Windows syntax to Unix syntax.
1464
1465 2011-02-12  Bruno Haible  <bruno@clisp.org>
1466
1467         setlocale: Prefer gnulib's override over libintl's override.
1468         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
1469         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
1470         GNULIB_defined_setlocale is set.
1471
1472 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
1473
1474         stdlib: support non-GCC __attribute__
1475
1476         Fix a serious and tricky problem encountered when attempting to
1477         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
1478         5.5, but it crashed due to memory corruption on Solaris 10 with
1479         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
1480         bits that are otherwise zero.  This tagging is optional inside
1481         Emacs but is preferred and is used when __attribute__ ((__aligned
1482         (8))) works, as it does with both recent-enough GCC and with Sun C
1483         5.11.  However, Sun C 5.11 is not GCC and does not #define
1484         __GNUC__ and __GNUC_MINOR__.
1485
1486         When I added the getloadavg module to Emacs, it brought in
1487         stdlib.in.h, which contained this fragment:
1488
1489            #ifndef __attribute__
1490            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
1491            #  define __attribute__(Spec)   /* empty */
1492            # endif
1493            #endif
1494
1495         When files that include <stdlib.h> were compiled with Sun C 5.11,
1496         the above code disabled __attribute__ ((__aligned (8))), which
1497         caused variables to not be properly aligned, which eventually led
1498         to the pointer corruption mentioned above.  (This was a bit hard
1499         to diagnose, unfortunately.)
1500
1501         Several "#define __attribute__(X) /* empty */" code snippets need
1502         to be eradicated from Gnulib to work with non-GCC compilers that
1503         support __attribute__.  The Autoconf way to do this is to test for
1504         each kind of attribute that we want support for, and selectively
1505         enable that in source code.
1506
1507         Fix this problem just for stdlib.h, by adding a test for the
1508         __noreturn__ attribute, and change stdlib.in.h to use that test
1509         when needed.  This technique can be easily generalized to the
1510         other *.in.h files and attributes, and a similar technique can be
1511         used for *.h and *.c files.  This patch is enough to solve the
1512         problem for Emacs + getloadavg, and I thought I'd publish it for
1513         feedback before undertaking further, similar fixes in other
1514         modules.
1515
1516         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
1517         because it's not needed for stdlib.h.  It merely substitutes the
1518         value directly into stdlib.h.  We may well need to #define it, or
1519         similar symbols, for other modules, but it's nice to also have an
1520         option to not #define it for applications like Emacs that do not
1521         need it.
1522
1523         * lib/stdlib.in.h (__attribute__): Do not #define.
1524         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
1525         be defined only if the _Exit module is also used.
1526         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
1527         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
1528         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
1529         platforms.
1530         * modules/_Exit (Files): Add m4/attribute.m4.
1531         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
1532         * m4/attribute.m4: New file.
1533
1534 2011-02-12  Bruno Haible  <bruno@clisp.org>
1535
1536         wcsrtombs: Work around bug on native Windows.
1537         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
1538         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
1539         instead of len.
1540         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
1541
1542 2011-02-12  Bruno Haible  <bruno@clisp.org>
1543
1544         mbsrtowcs: Work around bug on native Windows.
1545         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
1546         against mingw bug.
1547         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
1548
1549 2011-02-12  Bruno Haible  <bruno@clisp.org>
1550
1551         Avoid setlocale bugs in tests.
1552         * modules/btowc (Dependencies): Add setlocale.
1553         * modules/c-strcase (Dependencies): Likewise.
1554         * modules/mbmemcasecmp (Dependencies): Likewise.
1555         * modules/mbmemcasecoll (Dependencies): Likewise.
1556         * modules/mbrtowc (Dependencies): Likewise.
1557         * modules/mbscasecmp (Dependencies): Likewise.
1558         * modules/mbscasestr (Dependencies): Likewise.
1559         * modules/mbschr (Dependencies): Likewise.
1560         * modules/mbscspn (Dependencies): Likewise.
1561         * modules/mbsinit (Dependencies): Likewise.
1562         * modules/mbsncasecmp (Dependencies): Likewise.
1563         * modules/mbsnrtowcs (Dependencies): Likewise.
1564         * modules/mbspbrk (Dependencies): Likewise.
1565         * modules/mbspcasecmp (Dependencies): Likewise.
1566         * modules/mbsrchr (Dependencies): Likewise.
1567         * modules/mbsrtowcs (Dependencies): Likewise.
1568         * modules/mbsspn (Dependencies): Likewise.
1569         * modules/mbsstr (Dependencies): Likewise.
1570         * modules/nl_langinfo (Dependencies): Likewise.
1571         * modules/quotearg (Dependencies): Likewise.
1572         * modules/unicase/locale-language (Dependencies): Likewise.
1573         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
1574         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
1575         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
1576         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
1577         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
1578         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
1579         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
1580         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
1581         * modules/vasnprintf-posix (Dependencies): Likewise.
1582         * modules/wcrtomb (Dependencies): Likewise.
1583         * modules/wcsnrtombs (Dependencies): Likewise.
1584         * modules/wcsrtombs (Dependencies): Likewise.
1585
1586 2011-02-12  Bruno Haible  <bruno@clisp.org>
1587
1588         setlocale: Workaround native Windows bug.
1589         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
1590         succeeds but sets LC_CTYPE to "C", report a failure.
1591         * tests/test-setlocale2.sh: New file.
1592         * tests/test-setlocale2.c: New file.
1593         * modules/setlocale-tests (Files): Add the new files.
1594         (Makefile.am): Enable test-setlocale2.sh test.
1595         * doc/posix-functions/setlocale.texi: Mention workaround.
1596
1597 2011-02-11  Bruno Haible  <bruno@clisp.org>
1598
1599         Tests for module 'setlocale'.
1600         * modules/setlocale-tests: New file.
1601         * tests/test-setlocale1.sh: New file.
1602         * tests/test-setlocale1.c: New file.
1603
1604         New module 'setlocale'.
1605         * lib/locale.in.h (setlocale): New declaration.
1606         * lib/setlocale.c: New file, based on
1607         gettext/gettext-runtime/intl/setlocale.c.
1608         * m4/setlocale.m4: New file.
1609         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
1610         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
1611         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
1612         REPLACE_SETLOCALE.
1613         * modules/setlocale: New file.
1614         * tests/test-locale-c++.cc: Test the declaration of setlocale.
1615         * doc/posix-functions/setlocale.texi: Mention the new module.
1616
1617 2011-02-11  Bruno Haible  <bruno@clisp.org>
1618
1619         Prepare for locale dependent tests on mingw.
1620         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
1621         because it has the wrong locale encoding.
1622         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
1623         French_France.1252 instead of "fr".
1624         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
1625         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
1626         because it has the wrong locale encoding.
1627         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
1628         native Windows, try Turkish_Turkey.65001.
1629         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
1630         Chinese_China.54936.
1631
1632         Prepare for locale dependent tests on mingw.
1633         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
1634         differently.
1635         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
1636         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
1637         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
1638         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
1639
1640 2011-02-11  Eric Blake  <eblake@redhat.com>
1641
1642         strptime: avoid compiler warnings
1643         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
1644         compiler warnings about dead code.
1645         Reported by Daniel P. Berrange.
1646
1647 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
1648
1649         doc: update users.txt
1650         * users.txt: Add rcs.
1651
1652 2011-02-10  John W. Eaton  <jwe@gnu.org>
1653
1654         doc: update users.txt
1655         * users.txt: Add octave.
1656
1657 2011-02-10  Jim Meyering  <meyering@redhat.com>
1658
1659         doc: update users.txt
1660         * users.txt: Add iwhd.
1661
1662 2011-02-09  Bruno Haible  <bruno@clisp.org>
1663
1664         gnulib-tool: Make copyright notice adjustment more robust.
1665         * gnulib-tool (func_import): In sed_transform_main_lib_file,
1666         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
1667         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
1668         License".
1669         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
1670
1671 2011-02-06  Bruno Haible  <bruno@clisp.org>
1672
1673         New module 'towctrans'.
1674         * modules/towctrans: New file.
1675         * lib/wctype.in.h (towctrans): New declaration.
1676         * lib/towctrans.c: New file.
1677         * lib/towctrans-impl.h: New file.
1678         * m4/towctrans.m4: New file.
1679         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
1680         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
1681         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
1682         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
1683         * doc/posix-functions/towctrans.texi: Mention the new module.
1684
1685 2011-02-06  Bruno Haible  <bruno@clisp.org>
1686
1687         New module 'wctrans'.
1688         * modules/wctrans: New file.
1689         * lib/wctype.in.h (wctrans): New declaration.
1690         * lib/wctrans.c: New file.
1691         * lib/wctrans-impl.h: New file.
1692         * m4/wctrans.m4: New file.
1693         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
1694         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
1695         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
1696         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
1697         * doc/posix-functions/wctrans.texi: Mention the new module.
1698
1699 2011-02-06  Bruno Haible  <bruno@clisp.org>
1700
1701         New module 'iswctype'.
1702         * modules/iswctype: New file.
1703         * lib/wctype.in.h (iswctype): New declaration.
1704         * lib/iswctype.c: New file.
1705         * lib/iswctype-impl.h: New file.
1706         * m4/iswctype.m4: New file.
1707         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
1708         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
1709         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
1710         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
1711         * doc/posix-functions/iswctype.texi: Mention the new module and the
1712         HP-UX 11.00 problem.
1713
1714 2011-02-06  Bruno Haible  <bruno@clisp.org>
1715
1716         New module 'wctype'.
1717         * modules/wctype: Change to represent the wctype() substitute.
1718         * lib/wctype.in.h (wctype): New declaration.
1719         * lib/wctype.c: New file.
1720         * lib/wctype-impl.h: New file.
1721         * m4/wctype.m4: New file.
1722         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
1723         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
1724         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
1725         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
1726         * doc/posix-functions/wctype.texi: Mention the new module and the
1727         HP-UX 11.00 problem.
1728
1729 2011-02-06  Bruno Haible  <bruno@clisp.org>
1730
1731         wctype-h: Ensure wctype_t and wctrans_t are defined.
1732         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
1733         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
1734         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
1735         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
1736         HAVE_WCTRANS_T.
1737         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
1738
1739 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
1740
1741         flock: fix license typo
1742
1743         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
1744         omitted.
1745
1746 2011-02-08  Bruno Haible  <bruno@clisp.org>
1747
1748         Split large sed scripts, for HP-UX sed.
1749         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
1750         to avoid HP-UX limit of 99 commands, in the near future.
1751         * modules/stdlib (Makefile.am): Likewise.
1752         * modules/unistd (Makefile.am): Likewise.
1753         * modules/wchar (Makefile.am): Likewise.
1754         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
1755         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
1756         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
1757
1758 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
1759             Bruno Haible  <bruno@clisp.org>
1760
1761         stdlib: improve random_r modularization
1762         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
1763         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
1764         you also need the random_r module to get this material right.
1765         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
1766         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
1767         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
1768
1769 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
1770
1771         stdlib: don't depend on stdint
1772         * lib/stdlib.in.h: Don't include <stdint.h> merely because
1773         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
1774         be independent of whether stdint.h is needed.
1775         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
1776         here, instead of ...
1777         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
1778         struct random_data should be using the random_r module, not just
1779         the stdlib module (which wouldn't make sense: what package needs
1780         just struct random_data without also needing random_r?).
1781         * modules/stdlib (Depends-on): Remove stdint.
1782
1783         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
1784         See the thread rooted at
1785         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
1786         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
1787         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
1788         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
1789         __VMS)); previously it was always included (via fcntl--.h).
1790         (getloadavg): Do not use c_strtod.  Instead, approximate it by
1791         hand; this is good enough for load averages.  Also, do not use
1792         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
1793         flags directly if available and don't bother otherwise.  (Packages
1794         that need the extra reliability should use the modules that define
1795         these flags on older platforms that lack them.)
1796         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
1797         fcntl-safer.
1798
1799 2011-02-08  Jim Meyering  <meyering@redhat.com>
1800
1801         di-set.h, ino-map.h: add multiple-inclusion guard
1802         Technically, the guard is required only for ino-map.h, due to its
1803         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
1804         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
1805         * lib/ino-map.h: Likewise.
1806
1807 2011-02-06  Bruno Haible  <bruno@clisp.org>
1808
1809         iswblank: Ensure declaration on glibc systems.
1810         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
1811         * modules/iswblank (Dependencies): Add 'extensions'.
1812         * doc/posix-functions/iswblank.texi: Document the glibc problem.
1813
1814 2011-02-06  Bruno Haible  <bruno@clisp.org>
1815
1816         New module 'iswblank'.
1817         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
1818         * modules/iswblank: New file.
1819         * modules/wctype-h (Files): Remove lib/iswblank.c.
1820         (Makefile.am): Substitute GNULIB_ISWBLANK.
1821         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
1822         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
1823         (gl_WCTYPE_H_DEFAULTS): New macro.
1824         (gl_WCTYPE_H): Require it. Remove iswblank related code.
1825         * modules/iswblank-tests: New file.
1826         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
1827         * tests/test-wctype-h.c (main): Remove iswblank tests.
1828         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
1829         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
1830         of 'wctype-h'.
1831         * NEWS: Mention the change.
1832         * modules/mbchar (Depends-on): Add iswblank.
1833
1834 2011-02-08  Bruno Haible  <bruno@clisp.org>
1835
1836         di-set tests: Refactor.
1837         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
1838         unnecessary includes.
1839         (ASSERT): Remove macro.
1840         (main): Make C90 compliant by avoiding variable declaration after
1841         statement.
1842         * modules/di-set-tests (Files): Add tests/macros.h.
1843
1844 2011-02-08  Bruno Haible  <bruno@clisp.org>
1845
1846         ino-map tests: Refactor.
1847         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
1848         unnecessary includes.
1849         (ASSERT): Remove macro.
1850         (main): Make C90 compliant by avoiding variable declaration after
1851         statement.
1852         * modules/ino-map-tests (Files): Add tests/macros.h.
1853
1854 2011-02-08  Jim Meyering  <meyering@redhat.com>
1855
1856         di-set: add "const" to a cast
1857         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
1858         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
1859
1860 2011-02-06  Bruno Haible  <bruno@clisp.org>
1861
1862         Rename module 'wctype' to 'wctype-h'.
1863         * modules/wctype-h: Renamed from modules/wctype.
1864         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
1865         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
1866         (Files, Depends-on, Makefile.am): Update.
1867         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
1868         (Files, Makefile.am): Update.
1869         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
1870         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
1871         * doc/posix-headers/wctype.texi: Update.
1872         * doc/posix-functions/iswalnum.texi: Update.
1873         * doc/posix-functions/iswalpha.texi: Update.
1874         * doc/posix-functions/iswblank.texi: Update.
1875         * doc/posix-functions/iswcntrl.texi: Update.
1876         * doc/posix-functions/iswdigit.texi: Update.
1877         * doc/posix-functions/iswgraph.texi: Update.
1878         * doc/posix-functions/iswlower.texi: Update.
1879         * doc/posix-functions/iswprint.texi: Update.
1880         * doc/posix-functions/iswpunct.texi: Update.
1881         * doc/posix-functions/iswspace.texi: Update.
1882         * doc/posix-functions/iswupper.texi: Update.
1883         * doc/posix-functions/iswxdigit.texi: Update.
1884         * doc/posix-functions/towlower.texi: Update.
1885         * doc/posix-functions/towupper.texi: Update.
1886         * NEWS: Mention the change.
1887         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
1888         * modules/mbchar (Dependencies): Likewise.
1889         * modules/mbswidth (Dependencies): Likewise.
1890         * modules/quotearg (Dependencies): Likewise.
1891         * modules/regex (Dependencies): Likewise.
1892         * modules/wcscasecmp (Dependencies): Likewise.
1893         * modules/wcsncasecmp (Dependencies): Likewise.
1894         * modules/wcwidth (Dependencies): Likewise.
1895
1896 2011-02-06  Bruno Haible  <bruno@clisp.org>
1897
1898         New module 'wcswidth'.
1899         * modules/wcswidth: New file.
1900         * lib/wchar.in.h (wcswidth): New declaration.
1901         * lib/wcswidth.c: New file.
1902         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
1903         * m4/wcswidth.m4: New file.
1904         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
1905         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
1906         REPLACE_WCSWIDTH.
1907         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
1908         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
1909         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
1910         * doc/posix-functions/wcswidth.texi: Mention the new module.
1911
1912 2011-02-06  Bruno Haible  <bruno@clisp.org>
1913
1914         New module 'wcstok'.
1915         * modules/wcstok: New file.
1916         * lib/wchar.in.h (wcstok): New declaration.
1917         * lib/wcstok.c: New file.
1918         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
1919         * m4/wcstok.m4: New file.
1920         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
1921         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
1922         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
1923         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
1924         * doc/posix-functions/wcstok.texi: Mention the new module.
1925
1926 2011-02-06  Bruno Haible  <bruno@clisp.org>
1927
1928         New module 'wcsstr'.
1929         * modules/wcsstr: New file.
1930         * lib/wchar.in.h (wcsstr): New declaration.
1931         * lib/wcsstr.c: New file.
1932         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
1933         * m4/wcsstr.m4: New file.
1934         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
1935         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
1936         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
1937         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
1938         * doc/posix-functions/wcsstr.texi: Mention the new module.
1939
1940 2011-02-06  Bruno Haible  <bruno@clisp.org>
1941
1942         New module 'wcspbrk'.
1943         * modules/wcspbrk: New file.
1944         * lib/wchar.in.h (wcspbrk): New declaration.
1945         * lib/wcspbrk.c: New file.
1946         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
1947         * m4/wcspbrk.m4: New file.
1948         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
1949         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
1950         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
1951         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
1952         * doc/posix-functions/wcspbrk.texi: Mention the new module.
1953
1954 2011-02-06  Bruno Haible  <bruno@clisp.org>
1955
1956         New module 'wcsspn'.
1957         * modules/wcsspn: New file.
1958         * lib/wchar.in.h (wcsspn): New declaration.
1959         * lib/wcsspn.c: New file.
1960         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
1961         * m4/wcsspn.m4: New file.
1962         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
1963         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
1964         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
1965         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
1966         * doc/posix-functions/wcsspn.texi: Mention the new module.
1967
1968 2011-02-06  Bruno Haible  <bruno@clisp.org>
1969
1970         New module 'wcscspn'.
1971         * modules/wcscspn: New file.
1972         * lib/wchar.in.h (wcscspn): New declaration.
1973         * lib/wcscspn.c: New file.
1974         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
1975         * m4/wcscspn.m4: New file.
1976         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
1977         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
1978         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
1979         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
1980         * doc/posix-functions/wcscspn.texi: Mention the new module.
1981
1982 2011-02-06  Bruno Haible  <bruno@clisp.org>
1983
1984         New module 'wcsrchr'.
1985         * modules/wcsrchr: New file.
1986         * lib/wchar.in.h (wcsrchr): New declaration.
1987         * lib/wcsrchr.c: New file.
1988         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
1989         * m4/wcsrchr.m4: New file.
1990         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
1991         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
1992         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
1993         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
1994         * doc/posix-functions/wcsrchr.texi: Mention the new module.
1995
1996 2011-02-06  Bruno Haible  <bruno@clisp.org>
1997
1998         New module 'wcschr'.
1999         * modules/wcschr: New file.
2000         * lib/wchar.in.h (wcschr): New declaration.
2001         * lib/wcschr.c: New file.
2002         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
2003         * m4/wcschr.m4: New file.
2004         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
2005         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
2006         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
2007         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
2008         * doc/posix-functions/wcschr.texi: Mention the new module.
2009
2010 2011-02-06  Bruno Haible  <bruno@clisp.org>
2011
2012         New module 'wcsdup'.
2013         * modules/wcsdup: New file.
2014         * lib/wchar.in.h (wcsdup): New declaration.
2015         * lib/wcsdup.c: New file.
2016         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
2017         * m4/wcsdup.m4: New file.
2018         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
2019         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
2020         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
2021         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
2022         * doc/posix-functions/wcsdup.texi: Mention the new module.
2023
2024 2011-02-06  Bruno Haible  <bruno@clisp.org>
2025
2026         New module 'wcsxfrm'.
2027         * modules/wcsxfrm: New file.
2028         * lib/wchar.in.h (wcsxfrm): New declaration.
2029         * lib/wcsxfrm.c: New file.
2030         * lib/wcsxfrm-impl.h: New file.
2031         * m4/wcsxfrm.m4: New file.
2032         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
2033         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
2034         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
2035         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
2036         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
2037
2038 2011-02-06  Bruno Haible  <bruno@clisp.org>
2039
2040         New module 'wcscoll'.
2041         * modules/wcscoll: New file.
2042         * lib/wchar.in.h (wcscoll): New declaration.
2043         * lib/wcscoll.c: New file.
2044         * lib/wcscoll-impl.h: New file.
2045         * m4/wcscoll.m4: New file.
2046         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
2047         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
2048         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
2049         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
2050         * doc/posix-functions/wcscoll.texi: Mention the new module.
2051
2052 2011-02-06  Bruno Haible  <bruno@clisp.org>
2053
2054         New module 'wcsncasecmp'.
2055         * modules/wcsncasecmp: New file.
2056         * lib/wchar.in.h (wcsncasecmp): New declaration.
2057         * lib/wcsncasecmp.c: New file.
2058         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
2059         * m4/wcsncasecmp.m4: New file.
2060         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
2061         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
2062         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
2063         HAVE_WCSNCASECMP.
2064         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
2065         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
2066
2067 2011-02-06  Bruno Haible  <bruno@clisp.org>
2068
2069         New module 'wcscasecmp'.
2070         * modules/wcscasecmp: New file.
2071         * lib/wchar.in.h (wcscasecmp): New declaration.
2072         * lib/wcscasecmp.c: New file.
2073         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
2074         * m4/wcscasecmp.m4: New file.
2075         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
2076         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
2077         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
2078         HAVE_WCSCASECMP.
2079         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
2080         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
2081
2082 2011-02-05  Bruno Haible  <bruno@clisp.org>
2083
2084         New module 'wcsncmp'.
2085         * modules/wcsncmp: New file.
2086         * lib/wchar.in.h (wcsncmp): New declaration.
2087         * lib/wcsncmp.c: New file.
2088         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
2089         * m4/wcsncmp.m4: New file.
2090         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
2091         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
2092         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
2093         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
2094         * doc/posix-functions/wcsncmp.texi: Mention the new module.
2095
2096 2011-02-05  Bruno Haible  <bruno@clisp.org>
2097
2098         New module 'wcscmp'.
2099         * modules/wcscmp: New file.
2100         * lib/wchar.in.h (wcscmp): New declaration.
2101         * lib/wcscmp.c: New file.
2102         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
2103         * m4/wcscmp.m4: New file.
2104         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
2105         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
2106         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
2107         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
2108         * doc/posix-functions/wcscmp.texi: Mention the new module.
2109
2110 2011-02-05  Bruno Haible  <bruno@clisp.org>
2111
2112         New module 'wcsncat'.
2113         * modules/wcsncat: New file.
2114         * lib/wchar.in.h (wcsncat): New declaration.
2115         * lib/wcsncat.c: New file.
2116         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
2117         * m4/wcsncat.m4: New file.
2118         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
2119         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
2120         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
2121         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
2122         * doc/posix-functions/wcsncat.texi: Mention the new module.
2123
2124 2011-02-05  Bruno Haible  <bruno@clisp.org>
2125
2126         New module 'wcscat'.
2127         * modules/wcscat: New file.
2128         * lib/wchar.in.h (wcscat): New declaration.
2129         * lib/wcscat.c: New file.
2130         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
2131         * m4/wcscat.m4: New file.
2132         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
2133         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
2134         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
2135         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
2136         * doc/posix-functions/wcscat.texi: Mention the new module.
2137
2138 2011-02-05  Bruno Haible  <bruno@clisp.org>
2139
2140         New module 'wcpncpy'.
2141         * modules/wcpncpy: New file.
2142         * lib/wchar.in.h (wcpncpy): New declaration.
2143         * lib/wcpncpy.c: New file.
2144         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
2145         * m4/wcpncpy.m4: New file.
2146         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
2147         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
2148         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
2149         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
2150         * doc/posix-functions/wcpncpy.texi: Mention the new module.
2151
2152 2011-02-05  Bruno Haible  <bruno@clisp.org>
2153
2154         New module 'wcsncpy'.
2155         * modules/wcsncpy: New file.
2156         * lib/wchar.in.h (wcsncpy): New declaration.
2157         * lib/wcsncpy.c: New file.
2158         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
2159         * m4/wcsncpy.m4: New file.
2160         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
2161         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
2162         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
2163         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
2164         * doc/posix-functions/wcsncpy.texi: Mention the new module.
2165
2166 2011-02-05  Bruno Haible  <bruno@clisp.org>
2167
2168         New module 'wcpcpy'.
2169         * modules/wcpcpy: New file.
2170         * lib/wchar.in.h (wcpcpy): New declaration.
2171         * lib/wcpcpy.c: New file.
2172         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
2173         * m4/wcpcpy.m4: New file.
2174         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
2175         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
2176         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
2177         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
2178         * doc/posix-functions/wcpcpy.texi: Mention the new module.
2179
2180 2011-02-05  Bruno Haible  <bruno@clisp.org>
2181
2182         New module 'wcscpy'.
2183         * modules/wcscpy: New file.
2184         * lib/wchar.in.h (wcscpy): New declaration.
2185         * lib/wcscpy.c: New file.
2186         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
2187         * m4/wcscpy.m4: New file.
2188         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
2189         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
2190         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
2191         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
2192         * doc/posix-functions/wcscpy.texi: Mention the new module.
2193
2194 2011-02-05  Bruno Haible  <bruno@clisp.org>
2195
2196         New module 'wcsnlen'.
2197         * modules/wcsnlen: New file.
2198         * lib/wchar.in.h (wcsnlen): New declaration.
2199         * lib/wcsnlen.c: New file.
2200         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
2201         * m4/wcsnlen.m4: New file.
2202         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
2203         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
2204         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
2205         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
2206         * doc/posix-functions/wcsnlen.texi: Mention the new module.
2207
2208 2011-02-05  Bruno Haible  <bruno@clisp.org>
2209
2210         New module 'wcslen'.
2211         * modules/wcslen: New file.
2212         * lib/wchar.in.h (wcslen): New declaration.
2213         * lib/wcslen.c: New file.
2214         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
2215         * m4/wcslen.m4: New file.
2216         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
2217         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
2218         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
2219         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
2220         * doc/posix-functions/wcslen.texi: Mention the new module.
2221
2222 2011-02-05  Bruno Haible  <bruno@clisp.org>
2223
2224         New module 'wmemset'.
2225         * modules/wmemset: New file.
2226         * lib/wchar.in.h (wmemset): New declaration.
2227         * lib/wmemset.c: New file.
2228         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
2229         * m4/wmemset.m4: New file.
2230         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
2231         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
2232         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
2233         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
2234         * doc/posix-functions/wmemset.texi: Mention the new module.
2235
2236 2011-02-05  Bruno Haible  <bruno@clisp.org>
2237
2238         New module 'wmemmove'.
2239         * modules/wmemmove: New file.
2240         * lib/wchar.in.h (wmemmove): New declaration.
2241         * lib/wmemmove.c: New file.
2242         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
2243         * m4/wmemmove.m4: New file.
2244         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
2245         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
2246         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
2247         HAVE_WMEMMOVE.
2248         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
2249         * doc/posix-functions/wmemmove.texi: Mention the new module.
2250
2251 2011-02-05  Bruno Haible  <bruno@clisp.org>
2252
2253         New module 'wmemcpy'.
2254         * modules/wmemcpy: New file.
2255         * lib/wchar.in.h (wmemcpy): New declaration.
2256         * lib/wmemcpy.c: New file.
2257         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
2258         * m4/wmemcpy.m4: New file.
2259         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
2260         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
2261         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
2262         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
2263         * doc/posix-functions/wmemcpy.texi: Mention the new module.
2264
2265 2011-02-05  Bruno Haible  <bruno@clisp.org>
2266
2267         New module 'wmemcmp'.
2268         * modules/wmemcmp: New file.
2269         * lib/wchar.in.h (wmemcmp): New declaration.
2270         * lib/wmemcmp.c: New file.
2271         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
2272         * m4/wmemcmp.m4: New file.
2273         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
2274         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
2275         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
2276         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
2277         * doc/posix-functions/wmemcmp.texi: Mention the new module.
2278
2279 2011-02-07  Jim Meyering  <meyering@redhat.com>
2280
2281         di-set, ino-map: new modules, from coreutils
2282         * lib/di-set.c: New file.
2283         * lib/di-set.h: Likewise.
2284         * lib/ino-map.c: Likewise.
2285         * lib/ino-map.h: Likewise.
2286         * modules/di-set: Likewise.
2287         * modules/di-set-tests: Likewise.
2288         * modules/ino-map: Likewise.
2289         * modules/ino-map-tests: Likewise.
2290         * tests/test-di-set.c: Likewise.
2291         * tests/test-ino-map.c: Likewise.
2292
2293 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
2294
2295         getloadavg: merge minor changes from Emacs
2296
2297         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
2298         (getloadavg): Use memset, not bzero.
2299
2300         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
2301         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
2302         clash (bug#86).
2303
2304 2010-11-14  Bruno Haible  <bruno@clisp.org>
2305
2306         Allow multiple gnulib generated replacements to coexist.
2307         * lib/getopt.in.h (struct option): Avoid identical redefinition.
2308         * lib/inttypes.in.h (imaxdiv_t): Likewise.
2309         * lib/langinfo.in.h (nl_item): Likewise.
2310         * lib/math.in.h (_NaN, NAN): Likewise.
2311         * lib/netdb.in.h (struct addrinfo): Likewise.
2312         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
2313         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
2314         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
2315         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
2316         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
2317         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
2318         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
2319         pthread_mutexattr_init, pthread_mutexattr_settype,
2320         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
2321         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
2322         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
2323         pthread_spin_trylock, pthread_spin_unlock): Likewise.
2324         * lib/sched.in.h (struct sched_param): Likewise.
2325         * lib/se-selinux.in.h (security_class_t, security_context_t,
2326         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
2327         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
2328         lsetfilecon, fsetfilecon, security_check_context,
2329         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
2330         Likewise.
2331         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
2332         Likewise.
2333         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
2334         _gl_function_taking_int_returning_void_t, union sigval,
2335         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
2336         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
2337         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
2338         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
2339         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
2340         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
2341         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
2342         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
2343         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
2344         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
2345         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
2346         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
2347         socklen_t, rpl_fd_isset): Likewise.
2348         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
2349         * lib/sys_time.in.h (struct timeval): Likewise.
2350         * lib/sys_times.in.h (struct tms): Likewise.
2351         * lib/sys_utsname.in.h (struct utsname):
2352         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
2353         * lib/unistd.in.h (getpagesize): Likewise.
2354         * lib/wchar.in.h (mbstate_t): Likewise.
2355         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
2356         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
2357         towlower, towupper): Likewise.
2358         Reported by Sam Steingold <sds@gnu.org>.
2359
2360 2011-02-05  Eric Blake  <eblake@redhat.com>
2361
2362         unsetenv: work around Haiku issues
2363         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
2364         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
2365
2366 2010-12-30  Bruce Korb  <bkorb@gnu.org>
2367
2368         libposix: avoid calling error() within libposix
2369         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
2370         is defined.
2371
2372 2011-02-05  Eric Blake  <eblake@redhat.com>
2373
2374         strerror_r-posix: port to cygwin
2375         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
2376         implementation.
2377         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
2378         * tests/test-strerror_r.c (main): Fix test.
2379         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
2380         issue.
2381
2382 2011-02-05  Bruno Haible  <bruno@clisp.org>
2383
2384         New module 'wmemchr'.
2385         * modules/wmemchr: New file.
2386         * lib/wchar.in.h (wmemchr): New declaration.
2387         * lib/wmemchr.c: New file.
2388         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
2389         * m4/wmemchr.m4: New file.
2390         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
2391         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
2392         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
2393         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
2394         * doc/posix-functions/wmemchr.texi: Mention the new module.
2395
2396 2011-02-04  Eric Blake  <eblake@redhat.com>
2397
2398         fdopendir: detect FreeBSD bug
2399         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
2400         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
2401
2402 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
2403
2404         stdbool: do not define HAVE_STDBOOL_H
2405         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
2406         AC_HEADER_STDBOOL.  All uses changed.  Do not define
2407         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
2408         imported from the latest Autoconf git.  It was motivated by Emacs,
2409         which uses gnulib but does not need HAVE_STDBOOL_H.
2410
2411 2011-02-04  Bruno Haible  <bruno@clisp.org>
2412
2413         wcsnrtombs: Prepare for new module wwcsnrtombs.
2414         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
2415         * lib/wcsnrtombs.c: Include it.
2416         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
2417
2418         wcsrtombs: Prepare for new module wwcsrtombs.
2419         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
2420         * lib/wcsrtombs.c: Include it.
2421         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
2422
2423         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
2424         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
2425         * lib/mbsnrtowcs.c: Include it.
2426         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
2427
2428         mbsrtowcs: Prepare for new module mbsrtowwcs.
2429         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
2430         * lib/mbsrtowcs.c: Include it.
2431         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
2432
2433 2011-02-04  Bruno Haible  <bruno@clisp.org>
2434
2435         vasnprintf: Reduce use of malloc for small format strings.
2436         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
2437         (arguments): Add room for the first 7 arguments.
2438         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
2439         (char_directives, u8_directives, u16_directives, u32_directives): Add
2440         room for the first 7 directives.
2441         * lib/printf-parse.c: Include <string.h>.
2442         (PRINTF_PARSE): Change memory handling code so that it uses the first
2443         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
2444         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
2445         Reported by Pádraig Brady <P@draigbrady.com>.
2446
2447 2011-01-31  Eric Blake  <eblake@redhat.com>
2448
2449         dup2: work around Haiku bug
2450         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
2451         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
2452         * doc/posix-functions/dup2.texi (dup2): Document the bug.
2453         * tests/test-dup2.c (main): Enhance test.
2454
2455 2011-01-31  Simon Josefsson  <simon@josefsson.org>
2456
2457         doc: off_t is not available in eglibc 2.11.2 stdio.h.
2458         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
2459         declared by eglibc 2.11.2.
2460         * lib/stdio.in.h: Likewise.
2461
2462 2011-01-31  Eric Blake  <eblake@redhat.com>
2463
2464         ignore-value: add missing test dependency
2465         * tests/test-ignore-value.c: Revert previous change; stdio.h
2466         provides off_t.
2467         * modules/ignore-value-tests (Depends-on): Add missing dependency.
2468
2469 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
2470
2471         mktime: clarify long_int width checking
2472         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
2473         the top level, to make it clearer that the assumption about
2474         long_int width is being checked.  See
2475         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
2476
2477 2011-01-30  Simon Josefsson  <simon@josefsson.org>
2478
2479         ignore-value: Fix self-test.
2480         * tests/test-ignore-value.c: Include sys/types.h for off_t.
2481
2482 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
2483
2484         TYPE_MAXIMUM: avoid theoretically undefined behavior
2485         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
2486         negative number, which the C Standard says has undefined behavior.
2487         In practice this is not a problem, but might as well do it by the book.
2488         Reported by Rich Felker and Eric Blake; see
2489         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
2490         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
2491         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
2492         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
2493         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
2494         * m4/stdint.m4 (gl_STDINT_H): Likewise.
2495         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
2496
2497         mktime: #undef mktime before #defining it
2498         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
2499
2500         mktime: systematically normalize tm_isdst comparisons
2501         * lib/mktime.c (isdst_differ): New function.
2502         (__mktime_internal): Use it systematically for all isdst comparisons.
2503         This completes the fix for libc BZ #6723, and removes the need for
2504         normalizing tm_isdst.  See
2505         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
2506         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
2507
2508         mktime: fix some integer overflow issues and sidestep the rest
2509
2510         This was prompted by a bug report by Benjamin Lindner for MinGW
2511         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
2512         His bug is due to signed integer overflow (0 - INT_MIN), and I
2513         I scanned through mktime.c looking for other integer overflow
2514         problems, fixing all the bugs I found.
2515
2516         Although the C Standard says the resulting code is still not safe
2517         in the presence of integer overflow, in practice it should be good
2518         enough for all real-world two's-complement implementations, except
2519         for debugging environments that deliberately trap on integer
2520         overflow (e.g., gcc -ftrapv).
2521
2522         * lib/mktime.c (WRAPV): New macro.
2523         (SHR): Also check that long_int and time_t shift right in the
2524         usual way, before using the fast-but-unportable method.
2525         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
2526         used.  The code already assumed two's complement, so there's
2527         no need to test for alternatives.  All uses removed.
2528         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
2529         the C standard.  Problem reported by Rich Felker in
2530         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
2531         (twos_complement_arithmetic): Also check long_int and time_t.
2532         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
2533         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
2534         (__mktime_internal): Avoid integer overflow with unary subtraction
2535         in two instances where -1 - X is an adequate replacement for -X,
2536         since the calculations are approximate.
2537
2538 2011-01-29  Eric Blake  <eblake@redhat.com>
2539
2540         mktime: avoid infinite loop
2541         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
2542         type; behavior is still undefined but portable to all known targets.
2543         Reported by Rich Felker.
2544
2545 2011-01-29  Simon Josefsson  <simon@josefsson.org>
2546
2547         rename, unlink, same-inode: Relicense.
2548         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
2549         * modules/unlink (License): Likewise.
2550         * modules/same-inode (License): Likewise.
2551
2552 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
2553
2554         mktime: avoid problems on NetBSD 5 / i386
2555         * lib/mktime.c (long_int): New type.  This works around a problem
2556         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
2557         but time_t is 64 bits, and where I expect the existing code is
2558         wrong in some cases.
2559         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
2560         (ydhms_diff): Bring back the compile-time check for wide-enough
2561         year and yday.
2562
2563         mktime: fix misspelling in comment
2564         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
2565         This merges all recent glibc changes of importance.
2566
2567 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2568
2569         move-if-change: cope with concurrent mv of identical file.
2570         * build-aux/move-if-change (CMPPROG): Accept environment
2571         variable as an override for `cmp'.
2572         (usage): Document CMPPROG.
2573         Adjust comparison to drop stdout.  Cope with failure of mv if
2574         the target file exists and is identical to the source, for
2575         parallel builds.
2576         Report from H.J. Lu against binutils in PR binutils/12283.
2577
2578 2011-01-28  Bruce Korb  <bkorb@gnu.org>
2579
2580         * users.txt: Mention sharutils.
2581
2582 2011-01-28  Simon Josefsson  <simon@josefsson.org>
2583
2584         * users.txt: Mention OATH Toolkit.
2585
2586 2011-01-27  Bruno Haible  <bruno@clisp.org>
2587
2588         Prepare for supporting FreeBSD 10.
2589         * build-aux/config.libpath: Remove handling of freebsd1*.
2590
2591 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
2592
2593         Prepare for supporting FreeBSD 10.
2594         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
2595         match FreeBSD 10.0.
2596
2597 2011-01-27  Bruno Haible  <bruno@clisp.org>
2598
2599         vma-iter, get-rusage-as: Add OpenBSD support.
2600         * modules/vma-iter (configure.ac): Test for mquery.
2601         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
2602         * lib/vma-iter.c: Include <sys/mman.h>.
2603         (vma_iterate): Add an implementation based on mquery().
2604         * lib/resource-ext.h (get_rusage_as): Update comments.
2605         * lib/get-rusage-as.c: Likewise.
2606         * lib/get-rusage-data.c: Likewise.
2607
2608 2011-01-26  Karl Berry  <karl@gnu.org>
2609
2610         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
2611         variables to make it easier to override the makeinfo program used.
2612
2613 2011-01-26  Eric Blake  <eblake@redhat.com>
2614
2615         fcntl: work around Haiku F_DUPFD bugs
2616         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
2617         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
2618         cloexec bit on duplication.
2619         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
2620
2621 2011-01-26  Bruno Haible  <bruno@clisp.org>
2622
2623         Enable memory leak tests on AIX.
2624         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
2625         * tests/test-fprintf-posix3.c (main): Likewise.
2626
2627 2011-01-26  Bruno Haible  <bruno@clisp.org>
2628
2629         Tests for module 'get-rusage-data'.
2630         * modules/get-rusage-data-tests: New file.
2631         * tests/test-get-rusage-data.c: New file.
2632
2633         New module 'get-rusage-data'.
2634         * lib/resource-ext.h (get_rusage_data): New declaration.
2635         * lib/get-rusage-data.c: New file.
2636         * modules/get-rusage-data: New file.
2637
2638 2011-01-25  Bruno Haible  <bruno@clisp.org>
2639
2640         get-rusage-as: Allow for easier testing.
2641         * lib/resource-ext.h (get_rusage_as): Add comment.
2642         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
2643         (main): New function for interactive testing.
2644
2645 2011-01-25  Bruno Haible  <bruno@clisp.org>
2646
2647         vma-iter: Treat Haiku like BeOS.
2648         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
2649         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
2650
2651 2011-01-25  Eric Blake  <eblake@redhat.com>
2652
2653         c-stack: fix regression on cygwin when libsigsegv is present
2654         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
2655
2656 2011-01-24  Bruno Haible  <bruno@clisp.org>
2657
2658         vma-iter: Avoid empty intervals.
2659         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
2660         on an empty interval.
2661
2662 2011-01-24  Jim Meyering  <meyering@redhat.com>
2663
2664         u64: remove unnecessary #include
2665         * lib/u64.h: Don't include <stddef.h>.  It was not used.
2666
2667 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
2668
2669         Allow the user to avoid the HAVE_RAW_DECL_* macros.
2670         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
2671
2672 2011-01-23  Bruno Haible  <bruno@clisp.org>
2673
2674         New module 'vma-iter'.
2675         * lib/vma-iter.h: New file.
2676         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
2677         * modules/vma-iter: New file.
2678         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
2679         for get_rusage_as_via_iterator.
2680         (vma_iterate_callback): New function.
2681         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
2682         * modules/get-rusage-as (Depends-on): Add vma-iter.
2683
2684 2011-01-23  Bruno Haible  <bruno@clisp.org>
2685
2686         uninorm: Tweak includes.
2687         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
2688         Reported by Jim Meyering.
2689
2690 2011-01-23  Bruno Haible  <bruno@clisp.org>
2691
2692         get-rusage-as: Improve on NetBSD.
2693         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
2694         /proc, like on FreeBSD.
2695
2696 2011-01-23  Jim Meyering  <meyering@redhat.com>
2697
2698         xreadlink.h: remove unnecessary #include
2699         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
2700
2701         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
2702         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
2703
2704 2011-01-23  Bruno Haible  <bruno@clisp.org>
2705
2706         get-rusage-as: Fix bug.
2707         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
2708         original limit when aborting the first loop.
2709
2710 2011-01-23  Bruno Haible  <bruno@clisp.org>
2711
2712         wctype: Ensure valid C syntax.
2713         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
2714         unconditionally, instead of gl_NEXT_HEADERS conditionally.
2715
2716 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
2717
2718         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
2719         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
2720         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
2721         as they are needed only for configure's test case.
2722         This removes two unnecessary symbols from config.h.
2723
2724         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
2725         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
2726         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
2727         AC_CHECK_HEADERS_ONCE on a header that we also invoke
2728         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
2729         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
2730         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
2731         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
2732         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
2733         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
2734         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
2735         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
2736         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
2737         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
2738         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
2739         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
2740         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
2741         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
2742
2743 2011-01-21  Eric Blake  <eblake@redhat.com>
2744
2745         maintainer-makefile: work with older git for submodule check
2746         * top/maint.mk (public-submodule-commit): Rewrite to avoid
2747         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
2748         Reported by Matthias Bolte.
2749
2750         bootstrap: minor portability fixes
2751         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
2752         (usage): Omit leading capital and trailing . on help phrases, per
2753         GNU Coding Standards.
2754         (check_versions, top level): Prefix messages with script name.
2755
2756 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
2757
2758         bootstrap: support --no-git option
2759         * build-aux/bootstrap: Add --no-git option, to be used when
2760         --gnulib-srcdir points to the exact desired checkout.
2761
2762 2011-01-21  Eric Blake  <eblake@redhat.com>
2763
2764         strerror_r-posix: work with glibc 2.13
2765         * lib/strerror_r.c (strerror_r): Fix return type.
2766
2767 2011-01-21  Pádraig Brady  <P@draigBrady.com>
2768             Bruno Haible  <bruno@clisp.org>
2769
2770         uN_strstr: New unit tests.
2771         * modules/unistr/u8-strstr-tests: New file.
2772         * modules/unistr/u16-strstr-tests: New file.
2773         * modules/unistr/u32-strstr-tests: New file.
2774         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
2775         * tests/unistr/test-u8-strstr.c: New file.
2776         * tests/unistr/test-u16-strstr.c: New file.
2777         * tests/unistr/test-u32-strstr.c: New file.
2778
2779 2011-01-21  Pádraig Brady  <P@draigBrady.com>
2780             Bruno Haible  <bruno@clisp.org>
2781
2782         Make uN_strstr functions O(n) worst-case.
2783         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
2784         16-bit and 32-bit unit cases, use the unibyte algorithm from
2785         lib/mbsstr.c.
2786         * lib/unistr/u8-strstr.c: Include <string.h>.
2787         (UNIT_IS_UINT8_T): New macro.
2788         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
2789         (U_STRLEN, U_STRNLEN): New macros.
2790         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
2791         (U_STRLEN, U_STRNLEN): New macros.
2792         * modules/unistr/u8-strstr (Depends-on): Add strstr.
2793         (configure.ac): Update required libunistring version.
2794         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
2795         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
2796         malloca.
2797         (configure.ac): Update required libunistring version.
2798         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
2799         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
2800         malloca.
2801         (configure.ac): Update required libunistring version.
2802
2803 2011-01-21  Pádraig Brady  <P@draigBrady.com>
2804             Bruno Haible  <bruno@clisp.org>
2805
2806         Prepare for faster uN_strstr functions.
2807         * lib/str-kmp.h: Support definable UNITs.
2808         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
2809         needle_len argument.
2810         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
2811         * lib/mbscasestr.c (mbscasestr): Likewise.
2812
2813 2011-01-21  Pádraig Brady <P@draigBrady.com>
2814
2815         malloca-tests: make faster by unsetting MALLOC_PERTURB_
2816         * tests/test-malloca.c (main): Unset the environment variable
2817         to greatly speed up the test.
2818         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
2819         * modules/malloca-tests: Depend on unsetenv.
2820
2821 2011-01-21  Pádraig Brady <P@draigBrady.com>
2822
2823         ignore-value: remove stdint dependency
2824         * lib/ignore-value.h: Remove <stdint.h>
2825         * modules/ignore-value: Remove stdint dependency.
2826
2827 2011-01-21  Jim Meyering  <meyering@redhat.com>
2828
2829         maint.mk: adjust variable name to be consistent with other gl_ vars
2830         * top/maint.mk (gl_public_submodule_commit): Rename the variable
2831         to be lower case.
2832
2833 2011-01-20  Jim Meyering  <meyering@redhat.com>
2834
2835         maint.mk: make "check" depend on public-submodule-commit by default
2836         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
2837
2838 2011-01-20  Bruno Haible  <bruno@clisp.org>
2839
2840         mbfile, mbiter: Complete change from 2008-12-21.
2841         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
2842         * m4/mbiter.m4 (gl_MBITER): Likewise.
2843
2844 2011-01-20  Jim Meyering  <meyering@redhat.com>
2845
2846         init.sh: insert space between each function name and "()"
2847         * tests/init.sh: Make it a little easier to see that a function's
2848         name is "warn_", and not "warn" when looking at the first part of
2849         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
2850
2851 2011-01-20  Jim Meyering  <meyering@redhat.com>
2852
2853         mountlist: clean up code formatting
2854         * lib/mountlist.c (read_file_system_list): Split a long line,
2855         correct bracing style, use NULL in place of "(struct statfs *)0",
2856         don't parenthesize return value, add spaces around "=" and after
2857         ";-in-for-stmt".
2858
2859 2011-01-14  Markus Duft <mduft@gentoo.org>
2860
2861         mountlist: add support for Interix
2862         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
2863         Apply statvfs to all entries of /dev/fs.
2864         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
2865         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
2866
2867 2011-01-20  Jim Meyering  <meyering@redhat.com>
2868
2869         maint.mk: improve the public-submodule-commit rule
2870         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
2871         to suppress printing of its commands... unless V=1.
2872         Add git submodule's --quiet option to suppress printing of e.g.,
2873         "Entering gnulib" output.
2874         "cd" into $(srcdir) before running git submodule.
2875
2876 2011-01-20  Bruno Haible  <bruno@clisp.org>
2877
2878         include_next: Fix bug introduced on 2011-01-18.
2879         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
2880         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
2881         ac_cv_header_... variable if the second argument is not 'check'.
2882         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
2883         gl_NEXT_HEADERS_INTERNAL.
2884
2885 2011-01-20  Bruno Haible  <bruno@clisp.org>
2886
2887         Allow the user to avoid the GNULIB_TEST_* macros.
2888         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
2889         Suggested by Paul Eggert.
2890
2891 2011-01-14  Jim Meyering  <meyering@redhat.com>
2892
2893         bootstrap: avoid failure when there is no .gitmodules file
2894         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
2895         has been assigned to, even when its value is the empty string.
2896         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
2897         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
2898         Reported by John W. Eaton <jwe@gnu.org>.
2899
2900 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
2901
2902         assume <ctype.h>, ..., <time.h> exist
2903         For years gnulib has been assuming the existence of the headers
2904         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
2905         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
2906         them, since they don't appear to be needed.
2907         * README (Portability guidelines): Document this.
2908         * lib/flock.c: Assume <fcntl.h> exists.
2909         * lib/regex_internal.h: Assume <locale.h> exists.
2910         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
2911         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
2912         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
2913         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
2914         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
2915         * m4/regex.m4 (gl_REGEX): Likewise.
2916         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
2917         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
2918         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
2919         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
2920         * tests/test-argp.c: Likewise.
2921         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
2922
2923         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
2924         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
2925         AA_APPLE_UNIVERSAL_BUILD.  See
2926         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
2927         * NEWS: Document this.
2928
2929 2011-01-19  Eric Blake  <eblake@redhat.com>
2930
2931         c-stack: assume stack overflow if SA_SIGINFO unsupported
2932         * lib/c-stack.c (SIGACTION_WORKS): Rename...
2933         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
2934         sigaction will work.
2935         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
2936         behavior match Linux.
2937         * tests/test-c-stack.c (main): Prefer NULL for pointers.
2938
2939         stdbool-tests: accomodate Haiku
2940         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
2941
2942         binary-io: fix O_TEXT on Haiku
2943         * modules/binary-io (Depends-on): Add fcntl-h.
2944         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
2945         than blindly undefining O_TEXT.
2946         Reported by Scott McCreary.
2947
2948 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
2949
2950         include_next: do not check for standard headers like stddef.h
2951
2952         I found this problem when modifying Emacs to use gnulib.
2953         I noticed that it added HAVE_STDDEF_H to config.h, even though
2954         gnulib always assumes <stddef.h> exists as per README and this
2955         symbol is unnecessary.
2956         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
2957         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
2958         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
2959         faster for headers like stddef.h that are known to exist.
2960         (gl_CHECK_NEXT_HEADERS): Use it.
2961         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
2962         rather than gl_CHECK_NEXT_HEADERS.
2963         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
2964         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
2965
2966 2011-01-18  Eric Blake  <eblake@redhat.com>
2967
2968         ansi-c++-opt: skip C++ dependency style if C++ is unused
2969         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
2970         tests when we know C++ compilation is not desired.
2971         Reported by Scott McCreary.
2972
2973 2011-01-18  Bruno Haible  <bruno@clisp.org>
2974
2975         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
2976         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
2977         (main): Perform test also when getrlimit and setrlimit don't exist or
2978         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
2979         limiting the address space size using setrlimit, compare the address
2980         space size before and after the the test.
2981         * tests/test-dprintf-posix2.c: Likewise.
2982         * tests/test-fprintf-posix3.sh: Update skip messages.
2983         * tests/test-dprintf-posix2.sh: Likewise.
2984         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
2985         * modules/dprintf-posix-tests (Depends-on): Likewise.
2986         Reported by Bruce Korb <bkorb@gnu.org> and
2987         Gary V. Vaughan <gary@gnu.org>.
2988
2989 2011-01-18  Bruno Haible  <bruno@clisp.org>
2990
2991         get-rusage-as: Improvement for Cygwin.
2992         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
2993         areas that are merely reserved.
2994
2995 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
2996
2997         strftime: remove dependencies on multibyte modules
2998
2999         strftime depended on mbrlen, mbsinit, and wchar, but these modules
3000         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
3001         only if __osf__ is defined, and I suspect OSF doesn't need these
3002         other modules.  If my guess is wrong, we'll need to come up with a
3003         variant of strftime that doesn't need the multibyte modules.
3004
3005         I discovered this problem when attempting modify Emacs to use the
3006         strftime module.  With the previous gnulib, this caused Emacs to
3007         need 31 new files, ranging from lib/config.charset to
3008         m4/wint_t.m4.  This was overkill and I expect would be offputting
3009         to the Emacs maintainers.  After this change, only 6 new files are
3010         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
3011         stdbool.m4, and tm_gmtoff.m4.
3012
3013         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
3014         Suggested by Bruno Haible in
3015         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
3016         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
3017         and do not check for wchar.h.
3018         * modules/strftime (Files): Remove m4/mbstate_t.m4.
3019         (Depends-on): Remove mbrlen, mbsinit, wchar.
3020
3021 2011-01-18  Bruno Haible  <bruno@clisp.org>
3022
3023         Tests for module 'get-rusage-as'.
3024         * modules/get-rusage-as-tests: New file.
3025         * tests/test-get-rusage-as.c: New file.
3026
3027         New module 'get-rusage-as'.
3028         * modules/get-rusage-as: New file.
3029         * lib/resource-ext.h: New file.
3030         * lib/get-rusage-as.c: New file.
3031
3032 2011-01-17  Eric Blake  <eblake@redhat.com>
3033
3034         sigaction: relax license from LGPLv3+ to LGPLv2+
3035         * modules/sigaction (License): Relax to LGPLv2+.
3036
3037 2011-01-14  Bruno Haible  <bruno@clisp.org>
3038
3039         filemode: Make function declarations usable in C++ mode.
3040         * lib/filemode.h: Enclose function declarations in extern "C" block.
3041         Reported by John W. Eaton <jwe@gnu.org>.
3042
3043 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
3044
3045         save-cwd: no longer include "xgetcwd.h"
3046         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
3047         This avoids a compilation failure in projects that use save-cwd
3048         without also using the xgetcwd module.
3049
3050 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
3051
3052         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
3053         This is so that a program like Emacs, which needs only dtoastr,
3054         does not have to bother with distributing and compiling ftoastr
3055         and ldtoastr.
3056         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
3057         * modules/dtoastr, modules/ldtoastr: New files.
3058         * modules/ftoastr: Now works just for 'float'.
3059         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
3060         (Makefile.am): Remove ftoastr.h (not needed and no effect),
3061         dtoastr.c, ldtoastr.c.
3062
3063 2011-01-11  Jim Meyering  <meyering@redhat.com>
3064
3065         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
3066         There is no need to work around the lack of the fchdir function,
3067         since gnulib can now provide a replacement when required.
3068         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
3069         * modules/save-cwd (Depends-on): Add fchdir.
3070
3071 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
3072
3073         openat, save-cwd: avoid xmalloc
3074
3075         This removes a direct (but undocumented) dependency of openat on
3076         xalloc, along with an indirect dependency via save-cwd.  It also
3077         removes a dependency of save-cwd on xgetcwd, and thereby
3078         indirectly on xalloc.  This change causes the openat substitute
3079         to fall back on save_cwd when memory is tight, and for save_cwd to
3080         fail instead of dying when memory is tight, but that's good enough.
3081         Problem and initial idea for fix reported by Bastien Roucaries in
3082         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
3083
3084         * lib/openat-proc.c: Include stdlib.h (for malloc), not
3085         xalloc.h (for xmalloc).
3086         (openat_proc_name): Use malloc, not xmalloc.
3087         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
3088         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
3089
3090         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
3091         This avoids heap allocation for file names whose lengths are in
3092         the range 512..1023, with the upper bound increasing to at most
3093         4031 depending on the platform's PATH_MAX.  (We do not want
3094         pathmax.h here as it might supply a non-constant PATH_MAX.)
3095         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
3096         Perhaps they should be moved to malloca.h?
3097         (OPENAT_BUFFER_SIZE): Use them.
3098
3099 2011-01-10  Bruno Haible  <bruno@clisp.org>
3100
3101         doc: Update users.txt.
3102         * users.txt: Add recutils.
3103
3104 2011-01-09  Karl Berry  <karl@gnu.org>
3105
3106         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
3107
3108         * doc/configmake.texi: New file.
3109         * doc/gnulib.texi: Include it.
3110         * modules/configmake: Move documentation from here.
3111
3112 2011-01-09  Bruno Haible  <bruno@clisp.org>
3113
3114         Update to Unicode 6.0.0.
3115         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
3116         (get_lbp): Update for Unicode 6.0.0.
3117         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
3118         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
3119         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
3120         U+11001, U+11038..U+11046. Remove U+06DE.
3121         (uc_width): Fix bounds of planes.
3122         * tests/uniwidth/test-uc_width2.sh: Same updates as in
3123         lib/uniwidth/width.c.
3124         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
3125         trailing whitespace removed.
3126         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
3127         without comments, but with the original copyright notice.
3128         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
3129         * lib/unicase/ignorable.h: Likewise.
3130         * lib/unicase/tocasefold.h: Likewise.
3131         * lib/unicase/tolower.h: Likewise.
3132         * lib/unicase/totitle.h: Likewise.
3133         * lib/unicase/toupper.h: Likewise.
3134         * lib/unictype/bidi_of.h: Likewise.
3135         * lib/unictype/blocks.h: Likewise.
3136         * lib/unictype/categ_C.h: Likewise.
3137         * lib/unictype/categ_Cn.h: Likewise.
3138         * lib/unictype/categ_L.h: Likewise.
3139         * lib/unictype/categ_Ll.h: Likewise.
3140         * lib/unictype/categ_Lm.h: Likewise.
3141         * lib/unictype/categ_Lo.h: Likewise.
3142         * lib/unictype/categ_Lu.h: Likewise.
3143         * lib/unictype/categ_M.h: Likewise.
3144         * lib/unictype/categ_Mc.h: Likewise.
3145         * lib/unictype/categ_Me.h: Likewise.
3146         * lib/unictype/categ_Mn.h: Likewise.
3147         * lib/unictype/categ_N.h: Likewise.
3148         * lib/unictype/categ_Nd.h: Likewise.
3149         * lib/unictype/categ_No.h: Likewise.
3150         * lib/unictype/categ_P.h: Likewise.
3151         * lib/unictype/categ_Po.h: Likewise.
3152         * lib/unictype/categ_S.h: Likewise.
3153         * lib/unictype/categ_Sc.h: Likewise.
3154         * lib/unictype/categ_Sk.h: Likewise.
3155         * lib/unictype/categ_Sm.h: Likewise.
3156         * lib/unictype/categ_So.h: Likewise.
3157         * lib/unictype/categ_of.h: Likewise.
3158         * lib/unictype/combining.h: Likewise.
3159         * lib/unictype/ctype_alnum.h: Likewise.
3160         * lib/unictype/ctype_alpha.h: Likewise.
3161         * lib/unictype/ctype_graph.h: Likewise.
3162         * lib/unictype/ctype_lower.h: Likewise.
3163         * lib/unictype/ctype_print.h: Likewise.
3164         * lib/unictype/ctype_punct.h: Likewise.
3165         * lib/unictype/ctype_upper.h: Likewise.
3166         * lib/unictype/decdigit.h: Likewise.
3167         * lib/unictype/digit.h: Likewise.
3168         * lib/unictype/numeric.h: Likewise.
3169         * lib/unictype/pr_alphabetic.h: Likewise.
3170         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
3171         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
3172         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
3173         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
3174         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
3175         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
3176         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
3177         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
3178         * lib/unictype/pr_case_ignorable.h: Likewise.
3179         * lib/unictype/pr_cased.h: Likewise.
3180         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
3181         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
3182         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
3183         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
3184         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
3185         * lib/unictype/pr_combining.h: Likewise.
3186         * lib/unictype/pr_composite.h: Likewise.
3187         * lib/unictype/pr_currency_symbol.h: Likewise.
3188         * lib/unictype/pr_decimal_digit.h: Likewise.
3189         * lib/unictype/pr_deprecated.h: Likewise.
3190         * lib/unictype/pr_format_control.h: Likewise.
3191         * lib/unictype/pr_grapheme_base.h: Likewise.
3192         * lib/unictype/pr_grapheme_extend.h: Likewise.
3193         * lib/unictype/pr_grapheme_link.h: Likewise.
3194         * lib/unictype/pr_id_continue.h: Likewise.
3195         * lib/unictype/pr_id_start.h: Likewise.
3196         * lib/unictype/pr_ideographic.h: Likewise.
3197         * lib/unictype/pr_lowercase.h: Likewise.
3198         * lib/unictype/pr_math.h: Likewise.
3199         * lib/unictype/pr_numeric.h: Likewise.
3200         * lib/unictype/pr_other_alphabetic.h: Likewise.
3201         * lib/unictype/pr_other_id_continue.h: Likewise.
3202         * lib/unictype/pr_other_math.h: Likewise.
3203         * lib/unictype/pr_punctuation.h: Likewise.
3204         * lib/unictype/pr_sentence_terminal.h: Likewise.
3205         * lib/unictype/pr_terminal_punctuation.h: Likewise.
3206         * lib/unictype/pr_unassigned_code_value.h: Likewise.
3207         * lib/unictype/pr_unified_ideograph.h: Likewise.
3208         * lib/unictype/pr_uppercase.h: Likewise.
3209         * lib/unictype/pr_xid_continue.h: Likewise.
3210         * lib/unictype/pr_xid_start.h: Likewise.
3211         * lib/unictype/scripts.h: Likewise.
3212         * lib/unictype/scripts_byname.gperf: Likewise.
3213         * lib/unictype/sy_java_ident.h: Likewise.
3214         * lib/unigbrk/gbrkprop.h: Likewise.
3215         * lib/unilbrk/lbrkprop1.h: Likewise.
3216         * lib/unilbrk/lbrkprop2.h: Likewise.
3217         * lib/uninorm/decomposition-table2.h: Likewise.
3218         * lib/uniwbrk/wbrkprop.h: Likewise.
3219         * tests/unicase/test-cased.c: Likewise.
3220         * tests/unicase/test-ignorable.c: Likewise.
3221         * tests/unicase/test-uc_tolower.c: Likewise.
3222         * tests/unicase/test-uc_totitle.c: Likewise.
3223         * tests/unicase/test-uc_toupper.c: Likewise.
3224         * tests/unictype/test-categ_C.c: Likewise.
3225         * tests/unictype/test-categ_Cn.c: Likewise.
3226         * tests/unictype/test-categ_L.c: Likewise.
3227         * tests/unictype/test-categ_Ll.c: Likewise.
3228         * tests/unictype/test-categ_Lm.c: Likewise.
3229         * tests/unictype/test-categ_Lo.c: Likewise.
3230         * tests/unictype/test-categ_Lu.c: Likewise.
3231         * tests/unictype/test-categ_M.c: Likewise.
3232         * tests/unictype/test-categ_Mc.c: Likewise.
3233         * tests/unictype/test-categ_Me.c: Likewise.
3234         * tests/unictype/test-categ_Mn.c: Likewise.
3235         * tests/unictype/test-categ_N.c: Likewise.
3236         * tests/unictype/test-categ_Nd.c: Likewise.
3237         * tests/unictype/test-categ_No.c: Likewise.
3238         * tests/unictype/test-categ_P.c: Likewise.
3239         * tests/unictype/test-categ_Po.c: Likewise.
3240         * tests/unictype/test-categ_S.c: Likewise.
3241         * tests/unictype/test-categ_Sc.c: Likewise.
3242         * tests/unictype/test-categ_Sk.c: Likewise.
3243         * tests/unictype/test-categ_Sm.c: Likewise.
3244         * tests/unictype/test-categ_So.c: Likewise.
3245         * tests/unictype/test-ctype_alnum.c: Likewise.
3246         * tests/unictype/test-ctype_alpha.c: Likewise.
3247         * tests/unictype/test-ctype_graph.c: Likewise.
3248         * tests/unictype/test-ctype_lower.c: Likewise.
3249         * tests/unictype/test-ctype_print.c: Likewise.
3250         * tests/unictype/test-ctype_punct.c: Likewise.
3251         * tests/unictype/test-ctype_upper.c: Likewise.
3252         * tests/unictype/test-decdigit.h: Likewise.
3253         * tests/unictype/test-digit.h: Likewise.
3254         * tests/unictype/test-numeric.h: Likewise.
3255         * tests/unictype/test-pr_alphabetic.c: Likewise.
3256         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
3257         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
3258         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
3259         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
3260         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
3261         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
3262         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
3263         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
3264         * tests/unictype/test-pr_case_ignorable.c: Likewise.
3265         * tests/unictype/test-pr_cased.c: Likewise.
3266         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
3267         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
3268         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
3269         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
3270         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
3271         * tests/unictype/test-pr_combining.c: Likewise.
3272         * tests/unictype/test-pr_composite.c: Likewise.
3273         * tests/unictype/test-pr_currency_symbol.c: Likewise.
3274         * tests/unictype/test-pr_decimal_digit.c: Likewise.
3275         * tests/unictype/test-pr_deprecated.c: Likewise.
3276         * tests/unictype/test-pr_format_control.c: Likewise.
3277         * tests/unictype/test-pr_grapheme_base.c: Likewise.
3278         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
3279         * tests/unictype/test-pr_grapheme_link.c: Likewise.
3280         * tests/unictype/test-pr_id_continue.c: Likewise.
3281         * tests/unictype/test-pr_id_start.c: Likewise.
3282         * tests/unictype/test-pr_ideographic.c: Likewise.
3283         * tests/unictype/test-pr_lowercase.c: Likewise.
3284         * tests/unictype/test-pr_math.c: Likewise.
3285         * tests/unictype/test-pr_numeric.c: Likewise.
3286         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
3287         * tests/unictype/test-pr_other_id_continue.c: Likewise.
3288         * tests/unictype/test-pr_other_math.c: Likewise.
3289         * tests/unictype/test-pr_punctuation.c: Likewise.
3290         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
3291         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
3292         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
3293         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
3294         * tests/unictype/test-pr_uppercase.c: Likewise.
3295         * tests/unictype/test-pr_xid_continue.c: Likewise.
3296         * tests/unictype/test-pr_xid_start.c: Likewise.
3297         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
3298         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
3299         changes.
3300         * lib/unictype/categ_Cc.h: Likewise.
3301         * lib/unictype/categ_Cf.h: Likewise.
3302         * lib/unictype/categ_Co.h: Likewise.
3303         * lib/unictype/categ_Cs.h: Likewise.
3304         * lib/unictype/categ_Lt.h: Likewise.
3305         * lib/unictype/categ_Nl.h: Likewise.
3306         * lib/unictype/categ_Pc.h: Likewise.
3307         * lib/unictype/categ_Pd.h: Likewise.
3308         * lib/unictype/categ_Pe.h: Likewise.
3309         * lib/unictype/categ_Pf.h: Likewise.
3310         * lib/unictype/categ_Pi.h: Likewise.
3311         * lib/unictype/categ_Ps.h: Likewise.
3312         * lib/unictype/categ_Z.h: Likewise.
3313         * lib/unictype/categ_Zl.h: Likewise.
3314         * lib/unictype/categ_Zp.h: Likewise.
3315         * lib/unictype/categ_Zs.h: Likewise.
3316         * lib/unictype/ctype_blank.h: Likewise.
3317         * lib/unictype/ctype_cntrl.h: Likewise.
3318         * lib/unictype/ctype_digit.h: Likewise.
3319         * lib/unictype/ctype_space.h: Likewise.
3320         * lib/unictype/ctype_xdigit.h: Likewise.
3321         * lib/unictype/mirror.h: Likewise.
3322         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
3323         * lib/unictype/pr_bidi_block_separator.h: Likewise.
3324         * lib/unictype/pr_bidi_common_separator.h: Likewise.
3325         * lib/unictype/pr_bidi_control.h: Likewise.
3326         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
3327         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
3328         * lib/unictype/pr_bidi_european_digit.h: Likewise.
3329         * lib/unictype/pr_bidi_pdf.h: Likewise.
3330         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
3331         * lib/unictype/pr_bidi_whitespace.h: Likewise.
3332         * lib/unictype/pr_dash.h: Likewise.
3333         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
3334         * lib/unictype/pr_diacritic.h: Likewise.
3335         * lib/unictype/pr_extender.h: Likewise.
3336         * lib/unictype/pr_hex_digit.h: Likewise.
3337         * lib/unictype/pr_hyphen.h: Likewise.
3338         * lib/unictype/pr_ids_binary_operator.h: Likewise.
3339         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
3340         * lib/unictype/pr_ignorable_control.h: Likewise.
3341         * lib/unictype/pr_iso_control.h: Likewise.
3342         * lib/unictype/pr_join_control.h: Likewise.
3343         * lib/unictype/pr_left_of_pair.h: Likewise.
3344         * lib/unictype/pr_line_separator.h: Likewise.
3345         * lib/unictype/pr_logical_order_exception.h: Likewise.
3346         * lib/unictype/pr_non_break.h: Likewise.
3347         * lib/unictype/pr_not_a_character.h: Likewise.
3348         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
3349         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
3350         * lib/unictype/pr_other_id_start.h: Likewise.
3351         * lib/unictype/pr_other_lowercase.h: Likewise.
3352         * lib/unictype/pr_other_uppercase.h: Likewise.
3353         * lib/unictype/pr_paired_punctuation.h: Likewise.
3354         * lib/unictype/pr_paragraph_separator.h: Likewise.
3355         * lib/unictype/pr_pattern_syntax.h: Likewise.
3356         * lib/unictype/pr_pattern_white_space.h: Likewise.
3357         * lib/unictype/pr_private_use.h: Likewise.
3358         * lib/unictype/pr_quotation_mark.h: Likewise.
3359         * lib/unictype/pr_radical.h: Likewise.
3360         * lib/unictype/pr_soft_dotted.h: Likewise.
3361         * lib/unictype/pr_space.h: Likewise.
3362         * lib/unictype/pr_titlecase.h: Likewise.
3363         * lib/unictype/pr_variation_selector.h: Likewise.
3364         * lib/unictype/pr_white_space.h: Likewise.
3365         * lib/unictype/pr_zero_width.h: Likewise.
3366         * lib/unictype/sy_c_ident.h: Likewise.
3367         * lib/unictype/sy_c_whitespace.h: Likewise.
3368         * lib/unictype/sy_java_whitespace.h: Likewise.
3369         * lib/uninorm/composition-table.gperf: Likewise.
3370         * lib/uninorm/decomposition-table1.h: Likewise.
3371         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
3372         LB8.
3373         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
3374         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
3375         * modules/unictype/*: Bump version number of expected libunistring
3376         version.
3377
3378 2011-01-09  Bruno Haible  <bruno@clisp.org>
3379
3380         Update to Unicode 5.2.0.
3381         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
3382         trailing whitespace removed.
3383
3384 2011-01-09  Bruno Haible  <bruno@clisp.org>
3385
3386         New Unicode character properties, from Unicode 5.2.0.
3387         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
3388         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
3389         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
3390         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
3391         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
3392         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
3393         uc_is_property_cased, uc_is_property_case_ignorable,
3394         uc_is_property_changes_when_lowercased,
3395         uc_is_property_changes_when_uppercased,
3396         uc_is_property_changes_when_titlecased,
3397         uc_is_property_changes_when_casefolded,
3398         uc_is_property_changes_when_casemapped): New declarations.
3399         * lib/unictype/pr_byname.gperf: Add the new properties.
3400         * modules/unictype/property-byname (Depends-on): Depend on the new
3401         properties modules.
3402         * modules/unictype/property-all (Depends-on): Likewise.
3403         * MODULES.html.sh (Unicode string functions): Add
3404         unictype/property-case-ignorable, unictype/property-cased,
3405         unictype/property-changes-when-casefolded,
3406         unictype/property-changes-when-casemapped,
3407         unictype/property-changes-when-lowercased,
3408         unictype/property-changes-when-titlecased,
3409         unictype/property-changes-when-uppercased.
3410
3411         New module 'unictype/property-changes-when-casemapped'.
3412         * modules/unictype/property-changes-when-casemapped: New file.
3413         * lib/unictype/pr_changes_when_casemapped.c: New file.
3414         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
3415         generated by gen-uni-tables.
3416         * modules/unictype/property-changes-when-casemapped-tests: New file.
3417         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
3418         automatically generated by gen-uni-tables.
3419
3420         New module 'unictype/property-changes-when-casefolded'.
3421         * modules/unictype/property-changes-when-casefolded: New file.
3422         * lib/unictype/pr_changes_when_casefolded.c: New file.
3423         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
3424         generated by gen-uni-tables.
3425         * modules/unictype/property-changes-when-casefolded-tests: New file.
3426         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
3427         automatically generated by gen-uni-tables.
3428
3429         New module 'unictype/property-changes-when-titlecased'.
3430         * modules/unictype/property-changes-when-titlecased: New file.
3431         * lib/unictype/pr_changes_when_titlecased.c: New file.
3432         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
3433         generated by gen-uni-tables.
3434         * modules/unictype/property-changes-when-titlecased-tests: New file.
3435         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
3436         automatically generated by gen-uni-tables.
3437
3438         New module 'unictype/property-changes-when-uppercased'.
3439         * modules/unictype/property-changes-when-uppercased: New file.
3440         * lib/unictype/pr_changes_when_uppercased.c: New file.
3441         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
3442         generated by gen-uni-tables.
3443         * modules/unictype/property-changes-when-uppercased-tests: New file.
3444         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
3445         automatically generated by gen-uni-tables.
3446
3447         New module 'unictype/property-changes-when-lowercased'.
3448         * modules/unictype/property-changes-when-lowercased: New file.
3449         * lib/unictype/pr_changes_when_lowercased.c: New file.
3450         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
3451         generated by gen-uni-tables.
3452         * modules/unictype/property-changes-when-lowercased-tests: New file.
3453         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
3454         automatically generated by gen-uni-tables.
3455
3456         New module 'unictype/property-case-ignorable'.
3457         * modules/unictype/property-case-ignorable: New file.
3458         * lib/unictype/pr_case_ignorable.c: New file.
3459         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
3460         by gen-uni-tables.
3461         * modules/unictype/property-case-ignorable-tests: New file.
3462         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
3463         generated by gen-uni-tables.
3464
3465         New module 'unictype/property-cased'.
3466         * modules/unictype/property-cased: New file.
3467         * lib/unictype/pr_cased.c: New file.
3468         * lib/unictype/pr_cased.h: New file, automatically generated by
3469         gen-uni-tables.
3470         * modules/unictype/property-cased-tests: New file.
3471         * tests/unictype/test-pr_cased.c: New file, automatically generated by
3472         gen-uni-tables.
3473
3474 2011-01-09  Bruno Haible  <bruno@clisp.org>
3475
3476         Update to Unicode 5.2.0.
3477         * lib/gen-uni-tables.c (output_predicate, output_category,
3478         output_combclass, output_bidi_category, output_decimal_digit_test,
3479         output_decimal_digit, output_digit_test, output_digit,
3480         output_numeric_test, output_numeric, output_mirror, output_scripts,
3481         output_scripts_byname, output_blocks, output_ident_category): Fix
3482         comment header.
3483         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
3484         get_wbp.
3485         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
3486         items.
3487         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
3488         Changes_When_Lowercased, Changes_When_Uppercased,
3489         Changes_When_Titlecased, Changes_When_Casefolded,
3490         Changes_When_Casemapped.
3491         (is_property_alphabetic, is_property_default_ignorable_code_point):
3492         Update for Unicode 5.2.0.
3493         (is_property_cased, is_property_case_ignorable,
3494         is_property_changes_when_lowercased,
3495         is_property_changes_when_uppercased,
3496         is_property_changes_when_titlecased,
3497         is_property_changes_when_casefolded,
3498         is_property_changes_when_casemapped): New functions.
3499         (output_properties): Output also the properties cased, case_ignorable,
3500         changes_when_lowercased, changes_when_uppercased,
3501         changes_when_titlecased, changes_when_casefolded,
3502         changes_when_casemapped.
3503         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
3504         Unicode TR#11 revision 17 -> 19.
3505         (LBP_CP): New enumeration value.
3506         (LBP_*): Adjust values accordingly.
3507         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
3508         TR#14 revision 22 -> 24.
3509         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
3510         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
3511         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
3512         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
3513         is_WBP_MIDLETTER.
3514         (output_composition_tables): Allow for 24 bits instead of 16 bits in
3515         the code1 and code2 of each composition rule.
3516         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
3517         * lib/unicase/ignorable.h: Likewise.
3518         * lib/unicase/tocasefold.h: Likewise.
3519         * lib/unicase/tolower.h: Likewise.
3520         * lib/unicase/totitle.h: Likewise.
3521         * lib/unicase/toupper.h: Likewise.
3522         * lib/unictype/bidi_of.h: Likewise.
3523         * lib/unictype/blocks.h: Likewise.
3524         * lib/unictype/categ_C.h: Likewise.
3525         * lib/unictype/categ_Cf.h: Likewise.
3526         * lib/unictype/categ_Cn.h: Likewise.
3527         * lib/unictype/categ_L.h: Likewise.
3528         * lib/unictype/categ_Ll.h: Likewise.
3529         * lib/unictype/categ_Lm.h: Likewise.
3530         * lib/unictype/categ_Lo.h: Likewise.
3531         * lib/unictype/categ_Lu.h: Likewise.
3532         * lib/unictype/categ_M.h: Likewise.
3533         * lib/unictype/categ_Mc.h: Likewise.
3534         * lib/unictype/categ_Mn.h: Likewise.
3535         * lib/unictype/categ_N.h: Likewise.
3536         * lib/unictype/categ_Nd.h: Likewise.
3537         * lib/unictype/categ_Nl.h: Likewise.
3538         * lib/unictype/categ_No.h: Likewise.
3539         * lib/unictype/categ_P.h: Likewise.
3540         * lib/unictype/categ_Pd.h: Likewise.
3541         * lib/unictype/categ_Po.h: Likewise.
3542         * lib/unictype/categ_S.h: Likewise.
3543         * lib/unictype/categ_Sc.h: Likewise.
3544         * lib/unictype/categ_So.h: Likewise.
3545         * lib/unictype/categ_of.h: Likewise.
3546         * lib/unictype/combining.h: Likewise.
3547         * lib/unictype/ctype_alnum.h: Likewise.
3548         * lib/unictype/ctype_alpha.h: Likewise.
3549         * lib/unictype/ctype_graph.h: Likewise.
3550         * lib/unictype/ctype_lower.h: Likewise.
3551         * lib/unictype/ctype_print.h: Likewise.
3552         * lib/unictype/ctype_punct.h: Likewise.
3553         * lib/unictype/ctype_upper.h: Likewise.
3554         * lib/unictype/decdigit.h: Likewise.
3555         * lib/unictype/digit.h: Likewise.
3556         * lib/unictype/numeric.h: Likewise.
3557         * lib/unictype/pr_alphabetic.h: Likewise.
3558         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
3559         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
3560         * lib/unictype/pr_bidi_european_digit.h: Likewise.
3561         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
3562         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
3563         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
3564         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
3565         * lib/unictype/pr_combining.h: Likewise.
3566         * lib/unictype/pr_composite.h: Likewise.
3567         * lib/unictype/pr_currency_symbol.h: Likewise.
3568         * lib/unictype/pr_dash.h: Likewise.
3569         * lib/unictype/pr_decimal_digit.h: Likewise.
3570         * lib/unictype/pr_deprecated.h: Likewise.
3571         * lib/unictype/pr_diacritic.h: Likewise.
3572         * lib/unictype/pr_extender.h: Likewise.
3573         * lib/unictype/pr_grapheme_base.h: Likewise.
3574         * lib/unictype/pr_grapheme_extend.h: Likewise.
3575         * lib/unictype/pr_grapheme_link.h: Likewise.
3576         * lib/unictype/pr_id_continue.h: Likewise.
3577         * lib/unictype/pr_id_start.h: Likewise.
3578         * lib/unictype/pr_ideographic.h: Likewise.
3579         * lib/unictype/pr_ignorable_control.h: Likewise.
3580         * lib/unictype/pr_logical_order_exception.h: Likewise.
3581         * lib/unictype/pr_lowercase.h: Likewise.
3582         * lib/unictype/pr_numeric.h: Likewise.
3583         * lib/unictype/pr_other_alphabetic.h: Likewise.
3584         * lib/unictype/pr_punctuation.h: Likewise.
3585         * lib/unictype/pr_sentence_terminal.h: Likewise.
3586         * lib/unictype/pr_terminal_punctuation.h: Likewise.
3587         * lib/unictype/pr_unassigned_code_value.h: Likewise.
3588         * lib/unictype/pr_unified_ideograph.h: Likewise.
3589         * lib/unictype/pr_uppercase.h: Likewise.
3590         * lib/unictype/pr_xid_continue.h: Likewise.
3591         * lib/unictype/pr_xid_start.h: Likewise.
3592         * lib/unictype/pr_zero_width.h: Likewise.
3593         * lib/unictype/scripts.h: Likewise.
3594         * lib/unictype/scripts_byname.gperf: Likewise.
3595         * lib/unictype/sy_java_ident.h: Likewise.
3596         * lib/unigbrk/gbrkprop.h: Likewise.
3597         * lib/unilbrk/lbrkprop1.h: Likewise.
3598         * lib/unilbrk/lbrkprop2.h: Likewise.
3599         * lib/unilbrk/lbrktables.h: Likewise.
3600         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
3601         LBP_CP. Implement rule LB30.
3602         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
3603         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
3604         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
3605         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
3606         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
3607         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
3608         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
3609         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
3610         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
3611         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
3612         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
3613         bits instead of 16 bits in the code1 and code2 of each composition
3614         rule.
3615         (uc_composition): Update for Unicode 5.2.0.
3616         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
3617         * lib/uninorm/decomposition-table2.h: Likewise.
3618         * lib/uniwbrk/wbrkprop.h: Likewise.
3619         * tests/unicase/test-cased.c: Likewise.
3620         * tests/unicase/test-ignorable.c: Likewise.
3621         * tests/unicase/test-uc_tolower.c: Likewise.
3622         * tests/unicase/test-uc_totitle.c: Likewise.
3623         * tests/unicase/test-uc_toupper.c: Likewise.
3624         * tests/unictype/test-categ_C.c: Likewise.
3625         * tests/unictype/test-categ_Cf.c: Likewise.
3626         * tests/unictype/test-categ_Cn.c: Likewise.
3627         * tests/unictype/test-categ_L.c: Likewise.
3628         * tests/unictype/test-categ_Ll.c: Likewise.
3629         * tests/unictype/test-categ_Lm.c: Likewise.
3630         * tests/unictype/test-categ_Lo.c: Likewise.
3631         * tests/unictype/test-categ_Lu.c: Likewise.
3632         * tests/unictype/test-categ_M.c: Likewise.
3633         * tests/unictype/test-categ_Mc.c: Likewise.
3634         * tests/unictype/test-categ_Mn.c: Likewise.
3635         * tests/unictype/test-categ_N.c: Likewise.
3636         * tests/unictype/test-categ_Nd.c: Likewise.
3637         * tests/unictype/test-categ_Nl.c: Likewise.
3638         * tests/unictype/test-categ_No.c: Likewise.
3639         * tests/unictype/test-categ_P.c: Likewise.
3640         * tests/unictype/test-categ_Pd.c: Likewise.
3641         * tests/unictype/test-categ_Po.c: Likewise.
3642         * tests/unictype/test-categ_S.c: Likewise.
3643         * tests/unictype/test-categ_Sc.c: Likewise.
3644         * tests/unictype/test-categ_So.c: Likewise.
3645         * tests/unictype/test-ctype_alnum.c: Likewise.
3646         * tests/unictype/test-ctype_alpha.c: Likewise.
3647         * tests/unictype/test-ctype_graph.c: Likewise.
3648         * tests/unictype/test-ctype_lower.c: Likewise.
3649         * tests/unictype/test-ctype_print.c: Likewise.
3650         * tests/unictype/test-ctype_punct.c: Likewise.
3651         * tests/unictype/test-ctype_upper.c: Likewise.
3652         * tests/unictype/test-decdigit.h: Likewise.
3653         * tests/unictype/test-digit.h: Likewise.
3654         * tests/unictype/test-numeric.h: Likewise.
3655         * tests/unictype/test-pr_alphabetic.c: Likewise.
3656         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
3657         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
3658         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
3659         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
3660         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
3661         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
3662         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
3663         * tests/unictype/test-pr_combining.c: Likewise.
3664         * tests/unictype/test-pr_composite.c: Likewise.
3665         * tests/unictype/test-pr_currency_symbol.c: Likewise.
3666         * tests/unictype/test-pr_dash.c: Likewise.
3667         * tests/unictype/test-pr_decimal_digit.c: Likewise.
3668         * tests/unictype/test-pr_deprecated.c: Likewise.
3669         * tests/unictype/test-pr_diacritic.c: Likewise.
3670         * tests/unictype/test-pr_extender.c: Likewise.
3671         * tests/unictype/test-pr_grapheme_base.c: Likewise.
3672         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
3673         * tests/unictype/test-pr_grapheme_link.c: Likewise.
3674         * tests/unictype/test-pr_id_continue.c: Likewise.
3675         * tests/unictype/test-pr_id_start.c: Likewise.
3676         * tests/unictype/test-pr_ideographic.c: Likewise.
3677         * tests/unictype/test-pr_ignorable_control.c: Likewise.
3678         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
3679         * tests/unictype/test-pr_lowercase.c: Likewise.
3680         * tests/unictype/test-pr_numeric.c: Likewise.
3681         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
3682         * tests/unictype/test-pr_punctuation.c: Likewise.
3683         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
3684         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
3685         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
3686         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
3687         * tests/unictype/test-pr_uppercase.c: Likewise.
3688         * tests/unictype/test-pr_xid_continue.c: Likewise.
3689         * tests/unictype/test-pr_xid_start.c: Likewise.
3690         * tests/unictype/test-pr_zero_width.c: Likewise.
3691         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
3692         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
3693         changed behaviour: line breaking is now disallowed between a letter
3694         or '=' and '('.
3695         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
3696         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
3697         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
3698         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
3699         * tests/uniwidth/test-uc_width2.sh: Same updates as in
3700         lib/uniwidth/width.c.
3701         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
3702         without comments, but with the original copyright notice.
3703         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
3704         changes.
3705         * lib/unictype/categ_Cc.h: Likewise.
3706         * lib/unictype/categ_Co.h: Likewise.
3707         * lib/unictype/categ_Cs.h: Likewise.
3708         * lib/unictype/categ_Lt.h: Likewise.
3709         * lib/unictype/categ_Me.h: Likewise.
3710         * lib/unictype/categ_Pc.h: Likewise.
3711         * lib/unictype/categ_Pe.h: Likewise.
3712         * lib/unictype/categ_Pf.h: Likewise.
3713         * lib/unictype/categ_Pi.h: Likewise.
3714         * lib/unictype/categ_Ps.h: Likewise.
3715         * lib/unictype/categ_Sk.h: Likewise.
3716         * lib/unictype/categ_Sm.h: Likewise.
3717         * lib/unictype/categ_Z.h: Likewise.
3718         * lib/unictype/categ_Zl.h: Likewise.
3719         * lib/unictype/categ_Zp.h: Likewise.
3720         * lib/unictype/categ_Zs.h: Likewise.
3721         * lib/unictype/ctype_blank.h: Likewise.
3722         * lib/unictype/ctype_cntrl.h: Likewise.
3723         * lib/unictype/ctype_digit.h: Likewise.
3724         * lib/unictype/ctype_space.h: Likewise.
3725         * lib/unictype/ctype_xdigit.h: Likewise.
3726         * lib/unictype/mirror.h: Likewise.
3727         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
3728         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
3729         * lib/unictype/pr_bidi_block_separator.h: Likewise.
3730         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
3731         * lib/unictype/pr_bidi_common_separator.h: Likewise.
3732         * lib/unictype/pr_bidi_control.h: Likewise.
3733         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
3734         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
3735         * lib/unictype/pr_bidi_pdf.h: Likewise.
3736         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
3737         * lib/unictype/pr_bidi_whitespace.h: Likewise.
3738         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
3739         * lib/unictype/pr_format_control.h: Likewise.
3740         * lib/unictype/pr_hex_digit.h: Likewise.
3741         * lib/unictype/pr_hyphen.h: Likewise.
3742         * lib/unictype/pr_ids_binary_operator.h: Likewise.
3743         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
3744         * lib/unictype/pr_iso_control.h: Likewise.
3745         * lib/unictype/pr_join_control.h: Likewise.
3746         * lib/unictype/pr_left_of_pair.h: Likewise.
3747         * lib/unictype/pr_line_separator.h: Likewise.
3748         * lib/unictype/pr_math.h: Likewise.
3749         * lib/unictype/pr_non_break.h: Likewise.
3750         * lib/unictype/pr_not_a_character.h: Likewise.
3751         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
3752         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
3753         * lib/unictype/pr_other_id_continue.h: Likewise.
3754         * lib/unictype/pr_other_id_start.h: Likewise.
3755         * lib/unictype/pr_other_lowercase.h: Likewise.
3756         * lib/unictype/pr_other_math.h: Likewise.
3757         * lib/unictype/pr_other_uppercase.h: Likewise.
3758         * lib/unictype/pr_paired_punctuation.h: Likewise.
3759         * lib/unictype/pr_paragraph_separator.h: Likewise.
3760         * lib/unictype/pr_pattern_syntax.h: Likewise.
3761         * lib/unictype/pr_pattern_white_space.h: Likewise.
3762         * lib/unictype/pr_private_use.h: Likewise.
3763         * lib/unictype/pr_quotation_mark.h: Likewise.
3764         * lib/unictype/pr_radical.h: Likewise.
3765         * lib/unictype/pr_soft_dotted.h: Likewise.
3766         * lib/unictype/pr_space.h: Likewise.
3767         * lib/unictype/pr_titlecase.h: Likewise.
3768         * lib/unictype/pr_variation_selector.h: Likewise.
3769         * lib/unictype/pr_white_space.h: Likewise.
3770         * lib/unictype/sy_c_ident.h: Likewise.
3771         * lib/unictype/sy_c_whitespace.h: Likewise.
3772         * lib/unictype/sy_java_whitespace.h: Likewise.
3773         * modules/uni*/*: Bump version number of expected libunistring version.
3774         Reported by Simon Josefsson.
3775
3776 2011-01-09  Karl Heuer  <kwzh@gnu.org>
3777
3778         useless-if-before-free: fix typo in --help and make the internal,
3779         automatic version date update process work once again.
3780         --help output contained a NUL character instead of the
3781         backslash-zero that was intended.  Also, the "must lie within
3782         the first 8 lines" line is on line 9, and hence not getting
3783         automatically updated.
3784         * build-aux/useless-if-before-free: Fix the former by adding a
3785         backslash, and the latter by condensing the three lines of what-it-does
3786         to a single line, leaving one line of slack for the future.
3787
3788 2011-01-09  Bruno Haible  <bruno@clisp.org>
3789
3790         uniwidth/width: Fix width of U+1D173..U+1D17A.
3791         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
3792         symbolic_width, output_width_property_test): New functions.
3793         (main): Invoke output_nonspacing_property, output_width_property_test.
3794         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
3795         U+1D173..U+1D17A.
3796         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
3797         1.
3798         * modules/uniwidth/*: Bump version number of expected libunistring
3799         version.
3800         * modules/unilbrk/*: Likewise.
3801
3802 2011-01-08  Bruno Haible  <bruno@clisp.org>
3803
3804         uninorm tests: Preserve copyright of Unicode data file.
3805         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
3806         Mention modifications.
3807
3808 2011-01-08  Bruno Haible  <bruno@clisp.org>
3809
3810         gen-uni-tables: Prepare for Unicode 5.2.0.
3811         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
3812         (debug_output_lbp, output_lbp): Update.
3813
3814 2011-01-08  Bruno Haible  <bruno@clisp.org>
3815
3816         unilbrk: Clarify gen-uni-tables.c code.
3817         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
3818         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
3819         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
3820
3821 2011-01-07  Bruno Haible  <bruno@clisp.org>
3822
3823         strtod: Restore errno when successfully parsing Infinity or NaN.
3824         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
3825         restore the original errno.
3826
3827 2011-01-07  Bruno Haible  <bruno@clisp.org>
3828
3829         remove test: Avoid failure on HP-UX 11.
3830         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
3831
3832 2011-01-07  Bruno Haible  <bruno@clisp.org>
3833
3834         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
3835         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
3836         error code.
3837
3838 2011-01-07  Pádraig Brady <P@draigBrady.com>
3839
3840         ignore-value: fixup comments, and add Eric Blake
3841         as an author since he rewrote the macros.
3842         * lib/ignore-value.h (ignore_value):  State that
3843         we now support aggregates.  Also specify exactly
3844         when the GCC warn_unused_result feature was added.
3845
3846 2011-01-06  Eric Blake  <eblake@redhat.com>
3847
3848         ignore-value: support aggregate types
3849         * lib/ignore-value.h (ignore_value): Provide separate gcc
3850         definition.
3851         * modules/ignore-value-tests: New test module.
3852         * tests/test-ignore-value.c: New test.
3853
3854         maint.mk: improve sc_prohibit_strcmp regex
3855         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
3856         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
3857         definition of STRNEQ.
3858
3859         signal: work around Haiku issue with SIGBUS
3860         * lib/siglist.h: Add comment.
3861         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
3862         strsignal's favoring of SIGSEGV.
3863         * tests/test-signal.c (main): Avoid test failure.
3864         * doc/posix-headers/signal.texi (signal.h): Document the issue.
3865         Reported by Scott McCreary.
3866
3867         maint.mk: add pre-release check to ensure submodule commits are public
3868         * top/maint.mk (public-submodule-commit): New rule.
3869         (submodule-checks): New variable.
3870         (alpha beta stable): Depend on the variable.
3871
3872 2011-01-05  Pádraig Brady <P@draigBrady.com>
3873         and Jim Meyering  <meyering@redhat.com>
3874
3875         ignore-value: make ignore_value more generic; deprecate ignore_ptr
3876         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
3877         (ATTRIBUTE_DEPRECATED): Define.
3878         (_ignore_case): New function.
3879         (ignore_value): New macro, to replace the old function.
3880         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
3881         * modules/ignore-value (Depends-on): Add stdint.
3882
3883 2011-01-04  Eric Blake  <eblake@redhat.com>
3884
3885         doc: regenerate INSTALL
3886         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
3887         @firstparagraphindent support, now that autoconf dropped it.
3888         (INSTALL_PRELUDE): Reinstate old macro.
3889         * doc/install.texi: Resync from autoconf.
3890         * doc/INSTALL: Reflect recent autoconf update.
3891         * doc/INSTALL.ISO: Likewise.
3892         * doc/INSTALL.UTF-8: Likewise.
3893         Reported by Karl Berry.
3894
3895 2011-01-04  Bruce Korb  <address@hidden>
3896
3897         git-version-gen: avoid a sub-shell
3898         * build-aux/git-version-gen: Redirect stderr in `...` via
3899         "exec 2>...", rather than via an added sub-shell.
3900
3901 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
3902
3903         git-version-gen: use (...) rather than sh -c '...'
3904         * build-aux/git-version-gen: Rather than hard-coding a shell's name
3905         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
3906
3907 2011-01-03  Jim Meyering  <meyering@redhat.com>
3908
3909         git-version-gen: convert leading TABs to spaces
3910         * build-aux/git-version-gen: Expand leading TABs.
3911
3912         git-version-gen: handle failed "git rev-list"
3913         * build-aux/git-version-gen: Rather than leaking a "fatal" error
3914         from git and proceeding as if it had succeeded but printed no SHA1
3915         checksums, suppress the diagnostic and handle the failure.
3916         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
3917
3918         git-version-gen: include command name in one more diagnostic
3919         * build-aux/git-version-gen: When the required .tarball-version file
3920         was missing or unreadable, you might see the diagnostic from "cat",
3921         but no trace of the name of the invoking script.  Now, you still see
3922         the diagnostic from cat, but also get one from "git-version-gen: ".
3923         Inspired by a patch from Bruce Korb.
3924
3925         update-copyright: adjust test to match changed code
3926         * tests/test-update-copyright.sh: Change test's expected output
3927         to match new actual output.
3928
3929 2011-01-02  Bruno Haible  <bruno@clisp.org>
3930
3931         getlogin_r: Avoid test failure on HP-UX 11.
3932         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
3933         ERANGE when the second argument is zero.
3934         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
3935         portability problem.
3936
3937 2011-01-02  Bruce Korb  <bkorb@gnu.org>
3938
3939         * build-aux/update-copyright: doc Simon's changes
3940
3941 2011-01-02  Simon Josefsson  <simon@josefsson.org>
3942
3943         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
3944         environment variable.
3945
3946 2011-01-02  Bruno Haible  <bruno@clisp.org>
3947
3948         unigbrk: Avoid gcc warnings.
3949         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
3950         unused variable.
3951         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
3952         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
3953         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
3954         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
3955         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
3956         Change type of first argument to 'const char *'.
3957         (main): Remove unused variable.
3958         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
3959         type of first argument to 'const char *'.
3960         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
3961         Likewise.
3962         (main): Change type of variable 's'.
3963         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
3964         to 'int'.
3965
3966 2011-01-02  Bruno Haible  <bruno@clisp.org>
3967
3968         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
3969         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
3970         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
3971         bug.
3972         * lib/pwrite.c: Undo 2010-12-31 patch.
3973         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
3974
3975 2011-01-02  Bruno Haible  <bruno@clisp.org>
3976
3977         pread: Fix test whether it works.
3978         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
3979
3980 2011-01-02  Bruno Haible  <bruno@clisp.org>
3981
3982         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
3983         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
3984         ends in "6". Don't require a specific month name. Try also the locale
3985         names found on HP-UX 11 and Solaris 7.
3986
3987 2011-01-02  Bruno Haible  <bruno@clisp.org>
3988
3989         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
3990         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
3991         C linkage.
3992         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
3993
3994 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
3995
3996         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
3997         for consistency, since the "cluster" term is not used elsewhere.
3998         * lib/unigbrk.in.h: Update name.
3999         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
4000         * lib/unigbrk/u16-grapheme-next.c: Update name.
4001         * lib/unigbrk/u16-grapheme-prev.c: Update name.
4002         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
4003         * lib/unigbrk/u32-grapheme-next.c: Update name.
4004         * lib/unigbrk/u32-grapheme-prev.c: Update name.
4005         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
4006         * lib/unigbrk/u8-grapheme-next.c: Update name.
4007         * lib/unigbrk/u8-grapheme-prev.c: Update name.
4008         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
4009         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
4010         Suggested by Bruno Haible.
4011
4012 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
4013
4014         Remove module 'u8-grapheme-len' as too redundant with
4015         'u8-grapheme-next'.
4016         * modules/unigbrk/u8-grapheme-len: Delete file.
4017         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
4018         * lib/unigbrk.in.h: Remove prototype for deleted function.
4019         * lib/unigbrk/u8-grapheme-len.c: Delete file.
4020         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
4021
4022         Remove module 'u16-grapheme-len' as too redundant with
4023         'u16-grapheme-next'.
4024         * modules/unigbrk/u16-grapheme-len: Delete file.
4025         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
4026         * lib/unigbrk.in.h: Remove prototype for deleted function.
4027         * lib/unigbrk/u16-grapheme-len.c: Delete file.
4028         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
4029
4030         Remove module 'u32-grapheme-len' as too redundant with
4031         'u32-grapheme-next'.
4032         * modules/unigbrk/u32-grapheme-len: Delete file.
4033         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
4034         * lib/unigbrk.in.h: Remove prototype for deleted function.
4035         * lib/unigbrk/u32-grapheme-len.c: Delete file.
4036         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
4037
4038         Suggested by Bruno Haible.
4039
4040 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
4041
4042         * unigbrk.in.h: Fix typo: "ben" => "been".
4043         Reported by Bruno Haible.
4044
4045 2011-01-01  Jim Meyering  <meyering@redhat.com>
4046
4047         maint: update almost all copyright ranges to include 2011
4048         Run the new "make update-copyright" rule.
4049
4050 2011-01-01  Jim Meyering  <meyering@redhat.com>
4051
4052         maint: update-copyright: exempt doc/INSTALL*
4053         * Makefile (update-copyright): Also exclude doc/INSTALL*,
4054         since they are generated.  Suggested by Bruno Haible.
4055
4056 2011-01-01  Jim Meyering  <meyering@redhat.com>
4057
4058         maint: refine the update-copyright rule
4059         * Makefile (update-copyright): Also exclude any file that includes
4060         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
4061         code that merely generates the comment.
4062
4063 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
4064
4065         New module 'u8-grapheme-len'.
4066         * modules/unigbrk/u8-grapheme-len: New file.
4067         * modules/unigbrk/u8-grapheme-len-tests: New file.
4068         * lib/unigbrk.in.h: Add prototype for new function.
4069         * lib/unigbrk/u8-grapheme-len.c: New file.
4070         * tests/unigbrk/test-u8-grapheme-len.c: New file.
4071
4072         New module 'u16-grapheme-len'.
4073         * modules/unigbrk/u16-grapheme-len: New file.
4074         * modules/unigbrk/u16-grapheme-len-tests: New file.
4075         * lib/unigbrk.in.h: Add prototype for new function.
4076         * lib/unigbrk/u16-grapheme-len.c: New file.
4077         * tests/unigbrk/test-u16-grapheme-len.c: New file.
4078
4079         New module 'u32-grapheme-len'.
4080         * modules/unigbrk/u32-grapheme-len: New file.
4081         * modules/unigbrk/u32-grapheme-len-tests: New file.
4082         * lib/unigbrk.in.h: Add prototype for new function.
4083         * lib/unigbrk/u32-grapheme-len.c: New file.
4084         * tests/unigbrk/test-u32-grapheme-len.c: New file.
4085
4086         New module 'u8-grapheme-next'.
4087         * modules/unigbrk/u8-grapheme-next: New file.
4088         * modules/unigbrk/u8-grapheme-next-tests: New file.
4089         * lib/unigbrk.in.h: Add prototype for new function.
4090         * lib/unigbrk/u8-grapheme-next.c: New file.
4091         * tests/unigbrk/test-u8-grapheme-next.c: New file.
4092
4093         New module 'u16-grapheme-next'.
4094         * modules/unigbrk/u16-grapheme-next: New file.
4095         * modules/unigbrk/u16-grapheme-next-tests: New file.
4096         * lib/unigbrk.in.h: Add prototype for new function.
4097         * lib/unigbrk/u16-grapheme-next.c: New file.
4098         * tests/unigbrk/test-u16-grapheme-next.c: New file.
4099
4100         New module 'u32-grapheme-next'.
4101         * modules/unigbrk/u32-grapheme-next: New file.
4102         * modules/unigbrk/u32-grapheme-next-tests: New file.
4103         * lib/unigbrk.in.h: Add prototype for new function.
4104         * lib/unigbrk/u32-grapheme-next.c: New file.
4105         * tests/unigbrk/test-u32-grapheme-next.c: New file.
4106
4107         New module 'u8-grapheme-prev'.
4108         * modules/unigbrk/u8-grapheme-prev: New file.
4109         * modules/unigbrk/u8-grapheme-prev-tests: New file.
4110         * lib/unigbrk.in.h: Add prototype for new function.
4111         * lib/unigbrk/u8-grapheme-prev.c: New file.
4112         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
4113
4114         New module 'u16-grapheme-prev'.
4115         * modules/unigbrk/u16-grapheme-prev: New file.
4116         * modules/unigbrk/u16-grapheme-prev-tests: New file.
4117         * lib/unigbrk.in.h: Add prototype for new function.
4118         * lib/unigbrk/u16-grapheme-prev.c: New file.
4119         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
4120
4121         New module 'u32-grapheme-prev'.
4122         * modules/unigbrk/u32-grapheme-prev: New file.
4123         * modules/unigbrk/u32-grapheme-prev-tests: New file.
4124         * lib/unigbrk.in.h: Add prototype for new function.
4125         * lib/unigbrk/u32-grapheme-prev.c: New file.
4126         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
4127
4128         New module 'u8-grapheme-breaks'.
4129         * modules/unigbrk/u8-grapheme-breaks: New file.
4130         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
4131         * lib/unigbrk.in.h: Add prototype for new function.
4132         * lib/unigbrk/u8-grapheme-breaks.c: New file.
4133         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
4134
4135         New module 'u16-grapheme-breaks'.
4136         * modules/unigbrk/u16-grapheme-breaks: New file.
4137         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
4138         * lib/unigbrk.in.h: Add prototype for new function.
4139         * lib/unigbrk/u16-grapheme-breaks.c: New file.
4140         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
4141
4142         New module 'u32-grapheme-breaks'.
4143         * modules/unigbrk/u32-grapheme-breaks: New file.
4144         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
4145         * lib/unigbrk.in.h: Add prototype for new function.
4146         * lib/unigbrk/u32-grapheme-breaks.c: New file.
4147         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
4148
4149         New module 'ulc-grapheme-breaks'.
4150         * modules/unigbrk/ulc-grapheme-breaks: New file.
4151         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
4152         * m4/locale-ar.m4: New file.
4153         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
4154         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
4155         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
4156
4157 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
4158
4159         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
4160         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
4161         modified how this file was generated before I initially submitted
4162         the module, but failed to regenerate it.  This meant that several
4163         of the level2 entries were wrong.
4164         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
4165         Remove the division-by-2 that is folded into the table now that
4166         gbrkprop.h has been regenerated properly.  Now -1 entries are
4167         handled correctly.
4168
4169         New module 'unigbrk/uc-gbrk-prop-tests'.
4170         * modules/unigbrk/uc-gbrk-prop-tests: New file.
4171         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
4172         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
4173         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
4174
4175 2011-01-01  Bruno Haible  <bruno@clisp.org>
4176
4177         Avoid use of hexadecimal escapes.
4178         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
4179         instead of hexadecimal escapes.
4180
4181 2011-01-01  Jim Meyering  <meyering@redhat.com>
4182
4183         maint: new rule to update copyright year ranges
4184         * Makefile (update-copyright): New rule.
4185
4186         maint: indent with TABs in Makefile
4187         * Makefile: Expand leading sequences of spaces to TABs
4188
4189         version-etc: update the copyright year it reports
4190         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
4191
4192 2010-12-31  Bruno Haible  <bruno@clisp.org>
4193
4194         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
4195         * lib/isfinite.c (zerof, zerod, zerol): New variables.
4196         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
4197         zero.
4198
4199 2010-12-31  Bruno Haible  <bruno@clisp.org>
4200
4201         pwrite: Work around HP-UX 11.11 bug.
4202         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
4203         works and set REPLACE_PWRITE if not.
4204         * lib/pwrite.c (pwrite): Add an implementation that uses the system
4205         function.
4206         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
4207
4208 2010-12-31  Bruno Haible  <bruno@clisp.org>
4209
4210         pread: Work around HP-UX 11 bugs.
4211         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
4212         and set REPLACE_PREAD if not.
4213         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
4214
4215 2010-12-31  Eric Blake  <eblake@redhat.com>
4216
4217         nl_langinfo: fix YESEXPR on Irix 6.5
4218         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
4219         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
4220         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
4221         it.
4222
4223 2010-12-31  Bruno Haible  <bruno@clisp.org>
4224
4225         iconv: Document HP-UX 11 bug.
4226         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
4227
4228 2010-12-31  Bruno Haible  <bruno@clisp.org>
4229
4230         ldexpl: Fix link error on HP-UX 11.
4231         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
4232         LDEXPL_LIBM, using $ISNANL_LIBM.
4233
4234 2010-12-31  Eric Blake  <eblake@redhat.com>
4235
4236         ftello: avoid compilation failure with SunStudio c89
4237         * lib/ftello.c (ftello): Use lseek, not llseek.
4238
4239         tests: avoid failing coreutils tests on cygwin
4240         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
4241         (create_exe_shims_): Return 0 when skipping.
4242
4243 2010-12-31  Bruno Haible  <bruno@clisp.org>
4244
4245         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
4246         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
4247
4248 2010-12-31  Bruno Haible  <bruno@clisp.org>
4249
4250         waitpid: Fix link error in C++ mode.
4251         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
4252
4253 2010-12-31  Bruno Haible  <bruno@clisp.org>
4254
4255         isnan: Use GCC built-ins when possible.
4256         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
4257         __builtin_isnan.
4258         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
4259         (isnan): Define using GCC built-ins for GCC >= 4.0.
4260
4261 2010-12-31  Bruno Haible  <bruno@clisp.org>
4262
4263         isnand: Fix mistake.
4264         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
4265         __builtin_isnand.
4266
4267 2010-12-31  Bruno Haible  <bruno@clisp.org>
4268
4269         open: Avoid C++ error on HP-UX 11.
4270         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
4271
4272 2010-12-31  Bruno Haible  <bruno@clisp.org>
4273
4274         time_r: Add missing declarations on HP-UX 11.
4275         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
4276         instead of HAVE_LOCALTIME_R.
4277         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
4278         HAVE_LOCALTIME_R always.
4279         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
4280         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
4281         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
4282         HAVE_LOCALTIME_R.
4283         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
4284         * doc/posix-functions/localtime_r.texi: Likewise.
4285
4286 2010-12-29  Eric Blake  <eblake@redhat.com>
4287
4288         mountlist: tweak previous commit
4289         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
4290         Reported by Paul Eggert.
4291
4292         mountlist: fix local drive detection on cygwin
4293         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
4294         that works for cygwin.
4295
4296 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
4297
4298         ftoastr, snprintf: ftoastr + snprintf module
4299         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
4300         since the snprintf module now should be good enough here.
4301         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
4302         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
4303         and gl_MODULE_INDICATOR([snprintf]), but the former enables
4304         GNULIB_SNPRINTF only for the test directory, and the latter
4305         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
4306         seems to suffice by itself.
4307
4308 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
4309
4310         alloca: one step towards thread-safety
4311         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
4312         need for a static variable.  All callers changed.  This does not
4313         make the alloca replacement thread-safe, but it's one step.
4314
4315         tests: minor indenting change
4316         * tests/init.sh: Sync from coreutils housekeeping patch
4317         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
4318         to keep lines within 80 columns.
4319
4320 2010-12-28  Jim Meyering  <meyering@redhat.com>
4321
4322         regex: don't infloop on persistent failing calloc
4323         * lib/regexec.c (build_trtable): Return failure indication upon
4324         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
4325         In glibc, this was fixed for version 2.13:
4326         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
4327
4328 2010-12-28  Bruno Haible  <bruno@clisp.org>
4329             Paul Eggert <eggert@cs.ucla.edu>
4330
4331         linkat: Make implementation robust against system behaviour variations.
4332         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
4333         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
4334         way, and to -2 if it needs a generic runtime test.
4335         * lib/linkat.c (solaris_optimized_link_immediate,
4336         solaris_optimized_link_follow): New functions.
4337         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
4338         (check_same_link): Use it.
4339
4340 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
4341
4342         New module 'unigbrk/base'.
4343         * modules/unigbrk/base: New file.
4344         * lib/unigbrk.in.h: New file.
4345
4346         New module 'unigbrk/uc-gbrk-prop'.
4347         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
4348         * modules/unigbrk/uc-gbrk-prop: New file.
4349         * lib/unigbrk/gbrkprop.h: New file.
4350         * lib/unigbrk/uc-gbrk-prop.c: New file.
4351
4352         New module 'unigbrk/uc-is-grapheme-break'.
4353         * modules/unigbrk/uc-is-grapheme-break: New file.
4354         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
4355         * lib/unigbrk/uc-is-grapheme-break.c: New file.
4356         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
4357         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
4358         * tests/unigbrk/GraphemeBreakTest.txt: New file.
4359
4360         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
4361
4362 2010-12-27  Bruno Haible  <bruno@clisp.org>
4363
4364         linkat test: Avoid failure on Solaris 11 2010-11.
4365         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
4366
4367 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
4368
4369         utimens: work around glibc rounding bug on more platforms
4370         * lib/utimens.c (fdutimens): Work around rounding bug even if
4371         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
4372         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
4373
4374 2010-12-27  Bruno Haible  <bruno@clisp.org>
4375
4376         select tests: Improve comments.
4377         * tests/test-select.c (do_select): Add comments.
4378
4379 2010-12-27  Bruno Haible  <bruno@clisp.org>
4380
4381         select tests: Safer way of handling timeout.
4382         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
4383         at every invocation.
4384
4385 2010-12-27  Bruno Haible  <bruno@clisp.org>
4386
4387         select tests: Use 'bool' where appropriate.
4388         * tests/test-select.c (connect_to_socket): Change argument type to
4389         'bool'.
4390
4391 2010-12-27  Bruno Haible  <bruno@clisp.org>
4392
4393         select tests: Use existing modules.
4394         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
4395         (configure.ac): Don't test for unistd.h.
4396         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
4397         declared in <unistd.h>.
4398
4399 2010-12-27  Bruno Haible  <bruno@clisp.org>
4400
4401         mbrtowc: Work around a Solaris 7 bug.
4402         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
4403         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
4404         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
4405         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
4406         MBRTOWC_NULL_ARG1_BUG.
4407         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
4408         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
4409         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
4410         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
4411
4412 2010-12-27  Jim Meyering  <meyering@redhat.com>
4413
4414         read-file.c: tweak syntax
4415         * lib/read-file.c (fread_file): Remove space after "*" in function
4416         definitions.
4417
4418 2010-12-27  Bruno Haible  <bruno@clisp.org>
4419
4420         times test: Avoid gcc warnings on OSF/1.
4421         * tests/test-times.c (main): Cast printf arguments from clock_t to
4422         'long int'.
4423
4424 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
4425
4426         utimens: work around glibc rounding bug on older Linux kernels
4427         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
4428         on Linux with a glibc whose utimes might not work, then work
4429         around a longstanding glibc bug involving rounding rather than
4430         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
4431         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
4432
4433 2010-12-26  Bruno Haible  <bruno@clisp.org>
4434
4435         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
4436         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
4437         _GL_CXXALIAS_SYS.
4438         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
4439
4440 2010-12-26  Bruno Haible  <bruno@clisp.org>
4441
4442         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
4443         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
4444         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
4445         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
4446         looking for the declaration.
4447         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
4448         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
4449         problem.
4450         * doc/posix-functions/inet_pton.texi: Likewise.
4451
4452 2010-12-26  Bruno Haible  <bruno@clisp.org>
4453
4454         arpa_inet: Use the common idioms with C++ support.
4455         * lib/arpa_inet.in.h: Include c++defs.h.
4456         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
4457         support.
4458         * modules/arpa_inet (Depends-on): Add c++defs.
4459         (Makefile.am): Substitute the contents of c++defs.h.
4460         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
4461         * modules/arpa_inet-c++-tests: New file.
4462         * tests/test-arpa_inet-c++.cc: New file.
4463
4464 2010-12-25  Bruno Haible  <bruno@clisp.org>
4465
4466         Fix more C++ link errors on Solaris 8.
4467         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
4468         $(LIB_EACCESS).
4469         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
4470         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
4471         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
4472         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
4473         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
4474
4475 2010-12-25  Bruno Haible  <bruno@clisp.org>
4476
4477         printf-posix: Fix link error when a non-GCC compiler is used.
4478         * lib/stdio.in.h (printf): When not using GCC, override printf
4479         correctly.
4480         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
4481
4482 2010-12-25  Bruno Haible  <bruno@clisp.org>
4483
4484         strerror_r-posix: Update doc.
4485         * doc/posix-functions/strerror_r.texi: Update doc about the return
4486         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
4487
4488 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
4489
4490         utimens: simplify the logic of the previous change
4491         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
4492         This should not affect whether the test succeeds or fails.
4493
4494         utimens: configure better on hosts with NFS clock skew
4495         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
4496         uses the clock of the local host.  It might use the clock of the
4497         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
4498         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
4499
4500 2010-12-25  Bruno Haible  <bruno@clisp.org>
4501
4502         ptsname test: Avoid failure on Solaris.
4503         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
4504         open a pseudo-terminal; don't use BSD-style ptys.
4505         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
4506
4507 2010-12-25  Bruno Haible  <bruno@clisp.org>
4508
4509         ptsname: Avoid ERANGE failure on some systems.
4510         * lib/ptsname.c (buffer): Increase size.
4511
4512 2010-12-25  Bruno Haible  <bruno@clisp.org>
4513
4514         rename, renameat: Avoid test failures at NFS mounted locations.
4515         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
4516         so that subsequent mkdir calls succeed.
4517
4518 2010-12-25  Bruno Haible  <bruno@clisp.org>
4519
4520         iswblank: Fix C++ link error on Solaris 8.
4521         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
4522         _GL_FUNCDECL_SYS.
4523
4524 2010-12-25  Bruno Haible  <bruno@clisp.org>
4525
4526         unistd: Fix C++ link error on Solaris 8.
4527         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
4528
4529 2010-12-25  Bruno Haible  <bruno@clisp.org>
4530
4531         readlink doc: Mention an old glibc bug.
4532         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
4533
4534 2010-12-25  Bruno Haible  <bruno@clisp.org>
4535
4536         fcntl-h: Fix for use of C++ on glibc systems.
4537         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
4538         also on glibc systems in C++ mode.
4539         Reported by Gary V. Vaughan <gary@gnu.org>.
4540
4541 2010-12-25  Bruno Haible  <bruno@clisp.org>
4542
4543         roundl-ieee: Make it work on OSF/1 5.1 with cc.
4544         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
4545
4546 2010-12-25  Bruno Haible  <bruno@clisp.org>
4547
4548         truncl-ieee: Make it work on OSF/1 5.1 with cc.
4549         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
4550         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
4551         test whether truncl works according to ISO C 99 with IEC 60559.
4552         * m4/truncl-ieee.m4: New file.
4553         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
4554         m4/signbit.m4.
4555         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
4556
4557 2010-12-25  Bruno Haible  <bruno@clisp.org>
4558
4559         ceill-ieee: Make it work on OSF/1 5.1 with cc.
4560         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
4561         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
4562         test whether ceill works according to ISO C 99 with IEC 60559.
4563         * m4/ceill-ieee.m4: New file.
4564         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
4565         m4/signbit.m4.
4566         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
4567
4568 2010-12-25  Bruno Haible  <bruno@clisp.org>
4569
4570         Ensure all prerequisites of <wchar.h> are included.
4571         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
4572         before <wchar.h>.
4573         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
4574         gl_MBRLEN_NUL_RETVAL): Likewise.
4575         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
4576         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
4577         AC_FUNC_MBRTOWC): Likewise.
4578         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
4579         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
4580         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
4581         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
4582         Likewise.
4583         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
4584         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
4585         (gl_WCHAR_H): Improve comments.
4586         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
4587
4588 2010-12-25  Bruno Haible  <bruno@clisp.org>
4589
4590         strtok_r: Fix C syntax error in autoconf macro.
4591         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
4592         characters in test program.
4593
4594 2010-12-24  Bruno Haible  <bruno@clisp.org>
4595
4596         ceil, trunc, round: Fix gcc warnings.
4597         * lib/ceil.c (MIN): Undefine before redefining.
4598         * lib/trunc.c (MIN): Likewise.
4599         * lib/round.c (MIN): Likewise.
4600         Include <math.h> first.
4601
4602 2010-12-24  Bruno Haible  <bruno@clisp.org>
4603
4604         select tests: Avoid failures on OSF/1 5.1.
4605         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
4606         failure of closing the last socket; it may fail with ECONNRESET.
4607
4608 2010-12-24  Eric Blake  <eblake@redhat.com>
4609
4610         stdint: avoid HP-UX 10.20 preprocessor bug
4611         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
4612         than #if.
4613         * tests/test-floor2.c (main): Likewise.
4614         Reported by Peter O'Gorman.
4615
4616         pipe: make obsoletion transition easier
4617         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
4618         * modules/pipe (Files): Include revived file.
4619         (Include): Drop reference, to mirror getdate's behavior.
4620
4621 2010-12-24  Bruno Haible  <bruno@clisp.org>
4622
4623         sys_socket: Hide mismatch of declarations on NonStop Kernel.
4624         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
4625         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
4626         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
4627
4628 2010-12-24  Bruno Haible  <bruno@clisp.org>
4629
4630         gethostname: Ensure declaration on NonStop Kernel.
4631         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
4632         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
4633
4634 2010-12-24  Bruno Haible  <bruno@clisp.org>
4635
4636         sys_select: Ensure all necessary types on NonStop Kernel.
4637         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
4638         include <sys/time.h>.
4639         * doc/posix-headers/sys_select.texi: Mention that it's missing on
4640         NonStop Kernel.
4641         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
4642
4643 2010-12-24  Bruno Haible  <bruno@clisp.org>
4644
4645         sys_select: Remove unneeded include.
4646         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
4647         have <sys/select.h>.
4648
4649 2010-12-24  Bruno Haible  <bruno@clisp.org>
4650
4651         gethostname: Provide a fallback for HOST_NAME_MAX.
4652         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
4653         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
4654         instead.
4655         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
4656
4657 2010-12-24  Bruno Haible  <bruno@clisp.org>
4658
4659         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
4660         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
4661         (SA_RESTART): Likewise.
4662         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
4663
4664 2010-12-24  Bruno Haible  <bruno@clisp.org>
4665
4666         signal: Define NSIG.
4667         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
4668         * tests/test-signal.c (nsig): New variable.
4669         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
4670
4671 2010-12-24  Bruno Haible  <bruno@clisp.org>
4672
4673         rename, renameat: Avoid test failures on OSF/1 5.1.
4674         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
4675         alternative error codes.
4676         * tests/test-renameat.c (main): Likewise.
4677
4678 2010-12-24  Bruno Haible  <bruno@clisp.org>
4679
4680         *printf: Detect large precisions bug on Solaris 10/SPARC.
4681         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
4682         by Paul Eggert.
4683         * tests/test-snprintf-posix.h (test_function): Add this test code here
4684         too.
4685         * tests/test-sprintf-posix.h (test_function): Likewise.
4686         * tests/test-vasnprintf-posix.c (test_function): Likewise.
4687         * tests/test-vasprintf-posix.c (test_function): Likewise.
4688         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
4689         around by gnulib.
4690         * doc/posix-functions/printf.texi: Likewise.
4691         * doc/posix-functions/snprintf.texi: Likewise.
4692         * doc/posix-functions/sprintf.texi: Likewise.
4693         * doc/posix-functions/vfprintf.texi: Likewise.
4694         * doc/posix-functions/vprintf.texi: Likewise.
4695         * doc/posix-functions/vsnprintf.texi: Likewise.
4696         * doc/posix-functions/vsprintf.texi: Likewise.
4697         * doc/posix-functions/dprintf.texi: Undo last commit.
4698         * doc/posix-functions/vdprintf.texi: Likewise.
4699
4700 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
4701
4702         tests: port test-fdutimensat.c to Solaris 8
4703         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
4704         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
4705         On Solaris 8, it fails with errno == ENOSYS, because there is no
4706         futimens (so it can't use the fd), and there is no lutimens (so it
4707         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
4708
4709         vsnprintf: make more consistent with snprintf; doc fixes
4710
4711         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
4712         the byte count return problem was promoted from the snprintf-posix
4713         to the snprintf module.
4714         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
4715         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
4716         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
4717         * tests/test-snprintf.c (main): Check the byte count returned.
4718         * tests/test-vsnprintf.c (main): Likewise.
4719
4720 2010-12-23  Eric Blake  <eblake@redhat.com>
4721
4722         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
4723         * modules/sigpipe (License): Relax license.
4724
4725 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
4726
4727         doc: document Solaris printf bug with large float precisions
4728         * doc/posix-functions/dprintf.texi (dprintf):
4729         * doc/posix-functions/fprintf.texi (fprintf):
4730         * doc/posix-functions/printf.texi (printf):
4731         * doc/posix-functions/snprintf.texi (snprintf):
4732         * doc/posix-functions/sprintf.texi (sprintf):
4733         * doc/posix-functions/vdprintf.texi (vdprintf):
4734         * doc/posix-functions/vfprintf.texi (vfprintf):
4735         * doc/posix-functions/vprintf.texi (vprintf):
4736         * doc/posix-functions/vsnprintf.texi (vsnprintf):
4737         * doc/posix-functions/vsprintf.texi (vsprintf):
4738         Mention that these functions mishandle large floating point
4739         precisions on Solaris 10.  The same bug is also present in Solaris
4740         8, and I assume earlier.  This causes "cd gnulib-tests; make
4741         check" to fail on Solaris 8 (and I assume, later) when building
4742         the latest coreutils, in test-vasprintf-posix's call to
4743         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
4744         the wide flavors (e.g., wprintf) so this patch just updates the
4745         documentation for the narrow ones.
4746
4747         test-posixtm.c: add two tests
4748         * tests/test-posixtm.c: Add two tests, to highlight the
4749         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
4750         around this bug; this is merely to document it.
4751
4752 2010-12-22  Bruno Haible  <bruno@clisp.org>
4753
4754         getlogin_r: Work around portability problem on OSF/1.
4755         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
4756         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
4757         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
4758         test for a truncated result.
4759         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
4760         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
4761         * modules/getlogin_r (Depends-on): Add memchr.
4762         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
4763
4764 2010-12-22  Bruno Haible  <bruno@clisp.org>
4765
4766         ptsname: Avoid test failure on OSF/1 5.1.
4767         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
4768         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
4769         (same_slave): New function.
4770         (main): Use it to compare ptsname's result with the expected file name.
4771
4772 2010-12-22  Bruno Haible  <bruno@clisp.org>
4773
4774         Port extended stdio modules to HP NonStop Kernel.
4775         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
4776         macros.
4777         * lib/fbufmode.c: Update comments.
4778         * lib/fflush.c: Likewise.
4779         * lib/fpurge.c: Likewise.
4780         * lib/freadable.c: Likewise.
4781         * lib/freadahead.c: Likewise.
4782         * lib/freading.c: Likewise.
4783         * lib/freadptr.c: Likewise.
4784         * lib/freadseek.c: Likewise.
4785         * lib/fseeko.c: Likewise.
4786         * lib/fseterr.c: Likewise.
4787         * lib/fwritable.c: Likewise.
4788         * lib/fwriting.c: Likewise.
4789         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
4790
4791 2010-12-22  Bruno Haible  <bruno@clisp.org>
4792
4793         ttyname_r: Work around bug on OSF/1 5.1.
4794         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
4795         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
4796         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
4797         present.
4798         * lib/ttyname_r.c (ttyname_r): Update comments.
4799
4800 2010-12-22  Bruno Haible  <bruno@clisp.org>
4801
4802         round: Implement result sign according to IEEE 754.
4803         * lib/round.c (MIN, MINUS_ZERO): New macros.
4804         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
4805         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
4806         * tests/test-round-ieee.c (main): Likewise.
4807         * tests/test-roundl-ieee.c (main): Likewise.
4808
4809         trunc: Implement result sign according to IEEE 754.
4810         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
4811         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
4812         * tests/test-trunc2.c: Include minus-zero.h.
4813         (MINUS_ZERO): New macro.
4814         (trunc_reference): Keep in sync with lib/trunc.c.
4815         * tests/test-truncf2.c: Include minus-zero.h.
4816         (MINUS_ZERO): New macro.
4817         (truncf_reference): Keep in sync with lib/trunc.c.
4818         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
4819         * tests/test-trunc-ieee.c (main): Likewise.
4820         * tests/test-truncl-ieee.c (main): Likewise.
4821
4822         ceil: Implement result sign according to IEEE 754.
4823         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
4824         (FUNC): Return -0.0 for -1 < x < 0.
4825         * tests/test-ceil2.c: Include minus-zero.h.
4826         (MINUS_ZERO): New macro.
4827         (ceil_reference): Keep in sync with lib/ceil.c.
4828         * tests/test-ceilf2.c: Include minus-zero.h.
4829         (MINUS_ZERO): New macro.
4830         (ceilf_reference): Keep in sync with lib/ceil.c.
4831         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
4832         * tests/test-ceil-ieee.c (main): Likewise.
4833         * tests/test-ceill-ieee.c (main): Likewise.
4834
4835         floor: Implement result sign according to IEEE 754.
4836         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
4837         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
4838         * tests/test-floorf2.c (floorf_reference): Likewise.
4839         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
4840         * tests/test-floor-ieee.c (main): Likewise.
4841         * tests/test-floorl-ieee.c (main): Likewise.
4842
4843 2010-12-22  Bruno Haible  <bruno@clisp.org>
4844
4845         getaddrinfo: Update doc.
4846         * doc/posix-functions/gai_strerror.texi: Return type is also different
4847         on AIX and HP-UX.
4848
4849 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
4850
4851         getaddrinfo, inet_ntop: Update doc for Solaris.
4852         * doc/posix-functions/gai_strerror.texi: Return type is also an
4853         issue on Solaris 9 and earlier.
4854         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
4855         on Solaris 10 and earlier.
4856
4857 2010-12-21  Bruno Haible  <bruno@clisp.org>
4858
4859         New module 'roundl-ieee'.
4860         * modules/roundl-ieee: New file.
4861         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
4862         test whether roundl works according to ISO C 99 with IEC 60559.
4863         * m4/roundl-ieee.m4: New file.
4864         * modules/roundl-ieee-tests: New file.
4865         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
4866         * tests/test-roundl.c (main): Remove signbit tests.
4867         * modules/roundl-tests (Depends-on): Remove signbit.
4868         * doc/posix-functions/roundl.texi: Mention the new module.
4869
4870 2010-12-21  Bruno Haible  <bruno@clisp.org>
4871
4872         New module 'truncl-ieee'.
4873         * modules/truncl-ieee: New file.
4874         * modules/truncl-ieee-tests: New file.
4875         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
4876         * tests/test-truncl.c (main): Remove signbit tests.
4877         * modules/truncl-tests (Depends-on): Remove signbit.
4878         * doc/posix-functions/truncl.texi: Mention the new module.
4879
4880 2010-12-21  Bruno Haible  <bruno@clisp.org>
4881
4882         New module 'ceill-ieee'.
4883         * modules/ceill-ieee: New file.
4884         * modules/ceill-ieee-tests: New file.
4885         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
4886         * tests/test-ceill.c (main): Remove signbit tests.
4887         * modules/ceill-tests (Depends-on): Remove signbit.
4888         * doc/posix-functions/ceill.texi: Mention the new module.
4889
4890 2010-12-21  Bruno Haible  <bruno@clisp.org>
4891
4892         New module 'floorl-ieee'.
4893         * modules/floorl-ieee: New file.
4894         * modules/floorl-ieee-tests: New file.
4895         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
4896         * tests/test-floorl.c (main): Remove signbit tests.
4897         * modules/floorl-tests (Depends-on): Remove signbit.
4898         * doc/posix-functions/floorl.texi: Mention the new module.
4899
4900 2010-12-21  Bruno Haible  <bruno@clisp.org>
4901
4902         New module 'round-ieee'.
4903         * modules/round-ieee: New file.
4904         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
4905         whether round works according to ISO C 99 with IEC 60559.
4906         * m4/round-ieee.m4: New file.
4907         * modules/round-ieee-tests: New file.
4908         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
4909         * tests/test-round1.c (main): Remove signbit tests.
4910         * modules/round-tests (Depends-on): Remove 'signbit'.
4911         * doc/posix-functions/round.texi: Mention the new module.
4912
4913 2010-12-21  Bruno Haible  <bruno@clisp.org>
4914
4915         New module 'trunc-ieee'.
4916         * modules/trunc-ieee: New file.
4917         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
4918         whether trunc works according to ISO C 99 with IEC 60559.
4919         * m4/trunc-ieee.m4: New file.
4920         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
4921         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
4922         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
4923         * modules/trunc-ieee-tests: New file.
4924         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
4925         * tests/test-trunc1.c (main): Remove signbit tests.
4926         * modules/trunc-tests (Depends-on): Remove 'signbit'.
4927         * doc/posix-functions/trunc.texi: Mention the new module.
4928
4929 2010-12-21  Bruno Haible  <bruno@clisp.org>
4930
4931         New module 'ceil-ieee'.
4932         * modules/ceil-ieee: New file.
4933         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
4934         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
4935         ISO C 99 with IEC 60559.
4936         * m4/ceil-ieee.m4: New file.
4937         * modules/ceil (Files): Add lib/ceil.c.
4938         (Depends-on): Add 'float'.
4939         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
4940         * lib/math.in.h (ceil): New declaration.
4941         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
4942         REPLACE_CEIL.
4943         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
4944         * modules/ceil-ieee-tests: New file.
4945         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
4946         * tests/test-math-c++.cc: Check the signature of 'ceil'.
4947         * doc/posix-functions/ceil.texi: Mention the new module.
4948
4949 2010-12-21  Bruno Haible  <bruno@clisp.org>
4950
4951         New module 'floor-ieee'.
4952         * modules/floor-ieee: New file.
4953         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
4954         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
4955         ISO C 99 with IEC 60559.
4956         * m4/floor-ieee.m4: New file.
4957         * modules/floor (Files): Add lib/floor.c.
4958         (Depends-on): Add 'float'.
4959         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
4960         * lib/math.in.h (floor): New declaration.
4961         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
4962         REPLACE_FLOOR.
4963         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
4964         * modules/floor-ieee-tests: New file.
4965         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
4966         * tests/test-math-c++.cc: Check the signature of 'floor'.
4967         * doc/posix-functions/floor.texi: Mention the new module.
4968
4969 2010-12-21  Bruno Haible  <bruno@clisp.org>
4970
4971         New module 'roundf-ieee'.
4972         * modules/roundf-ieee: New file.
4973         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
4974         test whether roundf works according to ISO C 99 with IEC 60559.
4975         * m4/roundf-ieee.m4: New file.
4976         * modules/roundf-ieee-tests: New file.
4977         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
4978         * tests/test-roundf1.c (main): Remove signbit tests.
4979         * modules/roundf-tests (Depends-on): Remove 'signbit'.
4980         * doc/posix-functions/roundf.texi: Mention the new module.
4981
4982 2010-12-21  Bruno Haible  <bruno@clisp.org>
4983
4984         New module 'truncf-ieee'.
4985         * modules/truncf-ieee: New file.
4986         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
4987         test whether truncf works according to ISO C 99 with IEC 60559.
4988         * m4/truncf-ieee.m4: New file.
4989         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
4990         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
4991         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
4992         * modules/truncf-ieee-tests: New file.
4993         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
4994         * tests/test-truncf1.c (main): Remove signbit tests.
4995         * modules/truncf-tests (Depends-on): Remove 'signbit'.
4996         * doc/posix-functions/truncf.texi: Mention the new module.
4997
4998 2010-12-21  Bruno Haible  <bruno@clisp.org>
4999
5000         New module 'ceilf-ieee'.
5001         * modules/ceilf-ieee: New file.
5002         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
5003         test whether ceilf works according to ISO C 99 with IEC 60559.
5004         * m4/ceilf-ieee.m4: New file.
5005         * modules/ceilf-ieee-tests: New file.
5006         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
5007         * tests/test-ceilf1.c (main): Remove signbit tests.
5008         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
5009         * doc/posix-functions/ceilf.texi: Mention the new module.
5010
5011 2010-12-21  Bruno Haible  <bruno@clisp.org>
5012
5013         New module 'floorf-ieee'.
5014         * modules/floorf-ieee: New file.
5015         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
5016         test whether floorf works according to ISO C 99 with IEC 60559.
5017         * m4/floorf-ieee.m4: New file.
5018         * modules/floorf-ieee-tests: New file.
5019         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
5020         * tests/test-floorf1.c (main): Remove signbit tests.
5021         * modules/floorf-tests (Depends-on): Remove 'signbit'.
5022         * doc/posix-functions/floorf.texi: Mention the new module.
5023
5024 2010-12-21  Bruno Haible  <bruno@clisp.org>
5025
5026         Support for minus zero in autoconf macros.
5027         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
5028         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
5029         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
5030         * tests/minus-zero.h: Update comments.
5031
5032 2010-12-21  Bruno Haible  <bruno@clisp.org>
5033
5034         Tests for module 'ceil'.
5035         * modules/ceil-tests: New file.
5036         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
5037         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
5038
5039 2010-12-21  Bruno Haible  <bruno@clisp.org>
5040
5041         Tests for module 'floor'.
5042         * modules/floor-tests: New file.
5043         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
5044         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
5045
5046 2010-12-21  Bruno Haible  <bruno@clisp.org>
5047
5048         math: Fix indentation.
5049         * lib/math.in.h (floorf): Fix indentation.
5050
5051 2010-12-21  Bruno Haible  <bruno@clisp.org>
5052
5053         Fix cross-compilation guesses on Solaris.
5054         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
5055         not match "solaris2.10".
5056         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
5057         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
5058         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
5059
5060 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
5061
5062         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
5063         This fixes a problem observed with the latest coreutils snapshot
5064         that caused a test to fail on Solaris 8.  src/csplit.c's call
5065         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
5066         earlier, instead of returning the number of bytes that would have
5067         been generated; this causes csplit to incorrectly report memory
5068         exhaustion.
5069         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
5070         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
5071         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
5072         comments to match.
5073         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
5074         Fix typo in matching older versions of Solaris: "solaris2.10"
5075         is matched by the shell pattern "solaris2.[0-9]*".  This matters
5076         only for guessing while cross-compiling.
5077         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
5078
5079 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
5080
5081         ftoastr: fix comment again
5082         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
5083         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
5084         Also, simplify example a bit by using flags = 0.
5085
5086 2010-12-20  Bruno Haible  <bruno@clisp.org>
5087
5088         round*, trunc*: Update documentation regarding glibc.
5089         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
5090         * doc/posix-functions/round.texi: Likewise.
5091         * doc/posix-functions/roundl.texi: Likewise.
5092         * doc/posix-functions/truncf.texi: Likewise.
5093         * doc/posix-functions/trunc.texi: Likewise.
5094         * doc/posix-functions/truncl.texi: Likewise.
5095
5096 2010-12-20  Bruno Haible  <bruno@clisp.org>
5097
5098         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
5099         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
5100         * doc/posix-functions/round.texi: Likewise.
5101         * doc/posix-functions/roundl.texi: Likewise.
5102
5103 2010-12-20  Bruno Haible  <bruno@clisp.org>
5104
5105         ttyname_r: Add missing declaration on HP-UX 11.
5106         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
5107         HAVE_TTYNAME_R.
5108         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
5109         declared. Set HAVE_TTYNAME_R always.
5110         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
5111         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
5112         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
5113         HAVE_TTYNAME_R.
5114         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
5115
5116 2010-12-20  Bruno Haible  <bruno@clisp.org>
5117
5118         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
5119         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
5120         * doc/posix-functions/getlogin_r.texi: Likewise.
5121         * tests/test-getlogin.c: Include <errno.h>.
5122         (main): Avoid test failure on HP-UX 11.11.
5123         * tests/test-getlogin_r.c (main): Likewise.
5124
5125 2010-12-20  Bruno Haible  <bruno@clisp.org>
5126
5127         getlogin_r: Add missing declaration on HP-UX 11.
5128         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
5129         declared also when it exists as a function.
5130         * doc/posix-functions/getlogin_r.texi: Document this workaround.
5131
5132 2010-12-20  Bruno Haible  <bruno@clisp.org>
5133
5134         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
5135         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
5136         through wcrtomb.
5137
5138 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
5139
5140         ftoastr: fix comment
5141         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
5142         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
5143
5144 2010-12-19  Bruno Haible  <bruno@clisp.org>
5145
5146         isnan: Ensure it is a macro.
5147         * lib/math.in.h (isnan): Define as a macro if not already a macro.
5148         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
5149         Solaris.
5150
5151 2010-12-19  Bruno Haible  <bruno@clisp.org>
5152
5153         ldexpl test: Fix link error on OSF/1 5.1.
5154         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
5155
5156 2010-12-19  Bruno Haible  <bruno@clisp.org>
5157
5158         wctype: Make it work in C++ mode on OSF/1 5.1.
5159         * lib/wctype.in.h (iswblank): Declare but not define here.
5160         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
5161         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
5162         * modules/wctype (Files): Add lib/iswblank.c.
5163
5164 2010-12-19  Bruno Haible  <bruno@clisp.org>
5165
5166         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
5167         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
5168         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
5169
5170 2010-12-19  Bruno Haible  <bruno@clisp.org>
5171
5172         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
5173         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
5174         _POSIX_PII_SOCKET.
5175         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
5176         * doc/posix-functions/recvfrom.texi: Likewise.
5177         * doc/posix-functions/send.texi: Likewise.
5178         * doc/posix-functions/sendto.texi: Likewise.
5179
5180 2010-12-19  Bruno Haible  <bruno@clisp.org>
5181
5182         tcgetsid: Add missing declaration on OSF/1 5.1.
5183         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
5184         HAVE_TCGETSID.
5185         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
5186         Don't set HAVE_TCGETSID.
5187         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
5188         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
5189         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
5190         HAVE_TCGETSID.
5191         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
5192
5193 2010-12-19  Bruno Haible  <bruno@clisp.org>
5194
5195         stdio: Fix problem with popen() declaration on OSF/1 5.1.
5196         * lib/stdio.in.h: During the include_next statement, let recursive
5197         includes of this file include only the system header file.
5198
5199 2010-12-19  Bruno Haible  <bruno@clisp.org>
5200
5201         iconv_open: Fix regression from 2010-12-04.
5202         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
5203         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
5204
5205 2010-12-19  Bruno Haible  <bruno@clisp.org>
5206
5207         stdbool test: Avoid a gcc warning.
5208         * tests/test-stdbool.c (main): Fail if e1 is false.
5209         Reported by Jim Meyering.
5210
5211 2010-12-19  Jim Meyering  <meyering@redhat.com>
5212
5213         setenv: restore to working order
5214         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
5215         mistakenly removed.
5216         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
5217         HAVE_SETENV.
5218         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
5219         HAVE_SETENV.
5220
5221 2010-12-19  Bruno Haible  <bruno@clisp.org>
5222
5223         Document some different function declarations on OSF/1 5.1.
5224         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
5225         * doc/posix-functions/inet_ntop.texi: Likewise.
5226         * doc/posix-functions/gethostname.texi: Likewise.
5227         * lib/unistd.in.h (gethostname): Update comment.
5228
5229 2010-12-19  Bruno Haible  <bruno@clisp.org>
5230
5231         doc: Mention vasprintf-posix module.
5232         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
5233         the 'vasprintf-posix' module.
5234         * doc/glibc-functions/vasprintf.texi: Likewise.
5235
5236 2010-12-19  Bruno Haible  <bruno@clisp.org>
5237
5238         unsetenv: Add missing declaration on OSF/1 5.1.
5239         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
5240         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
5241         Don't set HAVE_UNSETENV. In the test program, set _BSD.
5242         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
5243         not HAVE_UNSETENV.
5244         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
5245         HAVE_UNSETENV.
5246         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
5247
5248 2010-12-19  Bruno Haible  <bruno@clisp.org>
5249
5250         setenv: Add missing declaration on OSF/1 5.1.
5251         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
5252         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
5253         declared. Don't set HAVE_SETENV.
5254         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
5255         not HAVE_SETENV.
5256         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
5257         HAVE_SETENV.
5258         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
5259
5260 2010-12-19  Bruno Haible  <bruno@clisp.org>
5261
5262         nl_langinfo tests: Avoid gcc warning.
5263         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
5264
5265 2010-12-19  Bruno Haible  <bruno@clisp.org>
5266
5267         mknod: Avoid error in C++ mode on OSF/1 with GCC.
5268         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
5269         _GL_CXXALIAS_SYS.
5270
5271 2010-12-19  Bruno Haible  <bruno@clisp.org>
5272
5273         stdbool: Relax test.
5274         * tests/test-stdbool.c (e): Don't require that casts from a variable's
5275         address to 'bool' work in static initializer, for compilers other than
5276         GCC.
5277
5278 2010-12-19  Bruno Haible  <bruno@clisp.org>
5279
5280         ftello: Add missing declaration on OSF/1 5.1.
5281         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
5282         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
5283         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
5284         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
5285         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
5286
5287 2010-12-19  Bruno Haible  <bruno@clisp.org>
5288
5289         fseeko: Add missing declaration on OSF/1 5.1.
5290         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
5291         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
5292         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
5293         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
5294         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
5295
5296 2010-12-19  Bruno Haible  <bruno@clisp.org>
5297
5298         fchdir: Add missing declaration on OSF/1 5.1.
5299         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
5300         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
5301         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
5302         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
5303         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
5304
5305 2010-12-19  Bruno Haible  <bruno@clisp.org>
5306
5307         relocatable-prog-wrapper: Separate from relocatable-prog.
5308         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
5309         uninstall-relocwrapper rule here.
5310         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
5311         Reported by Ian Beckwith <ianb@erislabs.net>.
5312
5313 2010-12-19  Bruno Haible  <bruno@clisp.org>
5314
5315         unistr/u8-mbsnlen: Add missing dependency.
5316         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
5317         Reported by Ian Beckwith <ianb@erislabs.net>.
5318
5319 2010-12-19  Bruno Haible  <bruno@clisp.org>
5320
5321         iconv: Make it possible again to use this module without 'iconv-h'.
5322         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
5323         if it is not defined.
5324         Reported by Ian Beckwith <ianb@erislabs.net>.
5325
5326 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
5327
5328         acl: port to Solaris 8 when copying from tmpfs to ufs
5329         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
5330         error number.  Problem observed on Solaris 8 with latest
5331         coreutils, with "mv A B", where A is on a tmpfs file system and B
5332         is on a ufs file system.  This caused coreutils' mv/part-symlink
5333         test to fail.
5334
5335         tests: set fail=0 at start
5336         * tests/init.sh (setup_): Move fail=0 initialization here ...
5337         (mktempd_): ... from here, so that tests can rely on fail being
5338         set to 0 initially.  This fixes a problem in coreutils; see:
5339         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
5340
5341 2010-12-18  Bruno Haible  <bruno@clisp.org>
5342
5343         memmem-simple: Stylistic changes.
5344         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
5345         Fix preprocessor directive indentation.
5346
5347 2010-12-15  Pádraig Brady <P@draigBrady.com>
5348
5349         memmem, memmem-simple: reorganize and expand empty needle check
5350         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
5351         functional checks to memmem-simple so that one has a fully functional
5352         memmem by using just this module.
5353         Restrict the performance only check to the memmem module.
5354         Also expand the empty needle check to ensure the correct
5355         pointer is returned, not just a non NULL pointer.
5356         * doc/glibc-functions/memmem.texi: Rearrange the portability
5357         documentation to correlate with the rearranged checks.
5358         Clarify exactly how the memmem and memmem-simple modules
5359         relate to each other.
5360
5361 2010-12-15  Pádraig Brady <P@draigBrady.com>
5362             Bruno Haible  <bruno@clisp.org>
5363
5364         Improve cross-compilation guesses for uClibc.
5365         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
5366         that uClibc does not have the glibc bug.
5367         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
5368         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
5369
5370 2010-12-14  Eric Blake  <eblake@redhat.com>
5371
5372         configmake: provide fallbacks for oldest supported autotools
5373         * m4/configmake.m4: New file.
5374         * modules/configmake (Files): Ship it.
5375         (configure.ac): Use it to guarantee fallbacks.
5376
5377 2010-12-13  Pádraig Brady <P@draigBrady.com>
5378
5379         read-file: Improve handling of large files
5380         * lib/read-file.c (fread_file): Minimize realloc()s
5381         for regular files, and better manage sizes around SIZE_MAX.
5382
5383 2010-12-13  Eric Blake  <eblake@redhat.com>
5384
5385         cloexec, fcntl: relax license
5386         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
5387         consent from all contributors.
5388         * modules/fcntl (License): Likewise.
5389
5390 2010-12-10  Bruno Haible  <bruno@clisp.org>
5391
5392         Tests for module 'pipe-posix'.
5393         * modules/pipe-posix-tests: New file.
5394         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
5395
5396 2010-12-10  Bruno Haible  <bruno@clisp.org>
5397
5398         pipe-posix: Make it work in C++ mode.
5399         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
5400         (pipe): Use common idiom, not a macro definition.
5401         * lib/pipe.c: New file.
5402         * m4/pipe.m4: New file.
5403         * modules/pipe-posix (Description): Enhance.
5404         (Files): Add lib/pipe.c, m4/pipe.m4.
5405         (configure.ac): Invoke gl_FUNC_PIPE.
5406         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
5407         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
5408         * tests/test-unistd-c++.cc: Check the signature of pipe.
5409
5410 2010-12-10  Bruno Haible  <bruno@clisp.org>
5411
5412         Rename module 'pipe' to 'spawn-pipe'.
5413         * modules/spawn-pipe: New file, renamed from modules/pipe.
5414         (Files, configure.ac, Makefile.am): Update.
5415         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
5416         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
5417         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
5418         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
5419         "spawn-pipe.h" instead of "pipe.h".
5420         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
5421         to gl_SPAWN_PIPE.
5422         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
5423         (Files, Makefile.am): Update.
5424         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
5425         Update.
5426         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
5427         Include "spawn-pipe.h" instead of "pipe.h".
5428         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
5429         * lib/javacomp.c: Likewise.
5430         * lib/javaversion.c: Likewise.
5431         * lib/pipe-filter-gi.c: Likewise.
5432         * lib/pipe-filter-ii.c: Likewise.
5433         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
5434         * modules/javacomp (Depends-on): Likewise.
5435         * modules/javaversion (Depends-on): Likewise.
5436         * modules/pipe-filter-gi (Depends-on): Likewise.
5437         * modules/pipe-filter-ii (Depends-on): Likewise.
5438         * MODULES.html.sh (Executing programs): Update.
5439         * NEWS: Mention the change.
5440
5441 2010-12-10  Eric Blake  <eblake@redhat.com>
5442
5443         pipe-posix: new module
5444         * modules/pipe-posix: New file.
5445         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
5446         (gl_UNISTD_H): Check for declaration.
5447         * modules/unistd (Makefile.am): Substitute it.
5448         * lib/unistd.in.h (pipe): Provide it for mingw.
5449         * doc/posix-functions/pipe.texi (pipe): Update documentation.
5450         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
5451
5452 2010-12-07  Bruno Haible  <bruno@clisp.org>
5453
5454         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
5455         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
5456         u8_strcmp_gnu.
5457         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
5458
5459 2010-12-06  Bruno Haible  <bruno@clisp.org>
5460
5461         Update internal documentation.
5462         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
5463
5464 2010-12-04  Bruno Haible  <bruno@clisp.org>
5465
5466         Put more information about failed tests into the test return codes.
5467         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
5468         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
5469         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
5470         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
5471         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
5472         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
5473         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
5474         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
5475         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
5476         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
5477         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
5478         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
5479         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
5480         * m4/stdint.m4 (gl_STDINT_H): Likewise.
5481         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
5482         returns a bit mask.
5483         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
5484         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
5485         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
5486         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
5487         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
5488         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
5489         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
5490         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
5491         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
5492         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
5493         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
5494         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
5495         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
5496         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
5497         * m4/link.m4 (gl_FUNC_LINK): Likewise.
5498         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
5499         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
5500         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
5501         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
5502         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
5503         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
5504         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
5505         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
5506         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
5507         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
5508         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
5509         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
5510         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
5511         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
5512         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
5513         gl_PRINTF_PRECISION): Likewise.
5514         * m4/regex.m4 (gl_REGEX): Likewise.
5515         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
5516         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
5517         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
5518         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
5519         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
5520         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
5521         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
5522         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
5523         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
5524         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
5525         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
5526         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
5527         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
5528         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
5529         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
5530         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
5531         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
5532         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
5533         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
5534         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
5535         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
5536         enumerated value.
5537         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
5538
5539 2010-12-04  Bruno Haible  <bruno@clisp.org>
5540
5541         Update for Solaris 11 2010-11.
5542         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
5543         Express, released in November 2010.
5544
5545 2010-12-04  Bruno Haible  <bruno@clisp.org>
5546
5547         nproc: Relax license.
5548         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
5549         and Paul Eggert.
5550         Requested by Ludovic Courtès <ludo@gnu.org>.
5551
5552 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
5553
5554         utimecmp: fine-grained src to nearby coarse-grained dest
5555
5556         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
5557         and the source is on a file system with higher-resolution time
5558         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
5559         not work, and the time stamps are close together, the algorithm to
5560         determine the exact resolution from the read-back mtime was buggy:
5561         it had a "!=" where it should have had an "==".  This bug has been
5562         in the code ever since it was introduced to gnulib.
5563         Problem reported by Dan Jacobson in
5564         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
5565
5566 2010-11-30  Bruno Haible  <bruno@clisp.org>
5567
5568         strerror_r-posix: Fix autoconf test.
5569         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
5570
5571 2010-11-28  Bruno Haible  <bruno@clisp.org>
5572             Paul Eggert  <eggert@cs.ucla.edu>
5573
5574         Tests for module 'getdomainname'.
5575         * modules/getdomainname-tests: New file.
5576         * tests/test-getdomainname.c: New file, based on
5577         tests/test-gethostname.c.
5578
5579 2010-11-28  Bruno Haible  <bruno@clisp.org>
5580             Paul Eggert  <eggert@cs.ucla.edu>
5581
5582         getdomainname: Use the system function when possible.
5583         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
5584         (getdomainname): Replace if needed. Provide the declaration if it is
5585         missing. Don't use _GL_CXXALIAS_SYS_CAST.
5586         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
5587         (getdomainname): When the system has getdomainname, call the system
5588         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
5589         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
5590         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
5591         found in libnsl. Look for the declaration also in <netdb.h>. Replace
5592         the function if its second argument is of type 'int' or if it is found
5593         in libnsl.
5594         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
5595         <sys/systeminfo.h> and sysinfo().
5596         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
5597         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
5598         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
5599         HAVE_GETDOMAINNAME.
5600         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
5601         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
5602         * doc/glibc-functions/getdomainname.texi: Document the problems with
5603         the getdomainname declaration.
5604
5605 2010-11-28  Bruno Haible  <bruno@clisp.org>
5606
5607         sys_socket: Ensure ss_family field on AIX.
5608         * lib/sys_socket.in.h (ss_family): New macro definition.
5609         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
5610         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
5611         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
5612         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
5613         * modules/sys_socket (Makefile.am): Substitute
5614         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
5615         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
5616
5617 2010-11-27  Bruno Haible  <bruno@clisp.org>
5618
5619         readline: Improve configure output.
5620         * m4/readline.m4 (gl_FUNC_READLINE): Make the
5621         "checking for readline..." result understandable.
5622
5623 2010-11-27  Bruno Haible  <bruno@clisp.org>
5624
5625         *printf-posix: Detect a bug on Solaris 10/x86.
5626         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
5627         for floating-point output.
5628         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
5629         directive.
5630         * tests/test-snprintf-posix.h (test_function): Likewise.
5631         * tests/test-sprintf-posix.h (test_function): Likewise.
5632         * tests/test-vasprintf-posix.c (test_function): Likewise.
5633         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
5634         * doc/posix-functions/printf.texi: Likewise.
5635         * doc/posix-functions/snprintf.texi: Likewise.
5636         * doc/posix-functions/sprintf.texi: Likewise.
5637         * doc/posix-functions/vfprintf.texi: Likewise.
5638         * doc/posix-functions/vprintf.texi: Likewise.
5639         * doc/posix-functions/vsnprintf.texi: Likewise.
5640         * doc/posix-functions/vsprintf.texi: Likewise.
5641         * doc/glibc-functions/obstack_printf.texi: Likewise.
5642         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
5643
5644 2010-11-27  Bruno Haible  <bruno@clisp.org>
5645
5646         Fix link error when module libunistring-optional is in use.
5647         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
5648         * modules/striconveha-tests (Makefile.am): Likewise.
5649
5650 2010-11-27  Bruno Haible  <bruno@clisp.org>
5651
5652         regex: Mention link dependencies.
5653         * modules/regex (Link): New section.
5654         * modules/rpmatch (Link): Likewise.
5655         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
5656
5657 2010-11-27  Bruno Haible  <bruno@clisp.org>
5658
5659         ftoastr: Fix compilation error on Solaris.
5660         * lib/ftoastr.c: Include <config.h>.
5661
5662 2010-11-27  Bruno Haible  <bruno@clisp.org>
5663
5664         getloadavg: Update documentation.
5665         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
5666
5667 2010-11-27  Bruno Haible  <bruno@clisp.org>
5668
5669         sys_socket: Fix test whether the functions are declared.
5670         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
5671         not <sys/select.h>.
5672
5673 2010-11-27  Bruno Haible  <bruno@clisp.org>
5674
5675         getpass: Make sure to get system declaration on some platforms.
5676         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
5677         gl_USE_SYSTEM_EXTENSIONS.
5678         * modules/getpass (Depends-on): Add extensions.
5679
5680 2010-11-26  Bruno Haible  <bruno@clisp.org>
5681
5682         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
5683         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
5684         'iconv' module is present.
5685         (ICONV_CONST): New macro.
5686         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
5687         ICONV_CONST.
5688         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
5689         set ICONV_CONST.
5690         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
5691         here.
5692         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
5693         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
5694         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
5695         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
5696         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
5697         present.
5698
5699 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
5700
5701         ftoastr: comment fix
5702         * lib/ftoastr.c: "little" -> "little or no" in comment
5703
5704 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
5705
5706         stdint: port to GCC 4.3 + OSX + Octave
5707         On this platform, stdint.h is buggy and defines int64_t to long
5708         long int.  The replacement defined it to long int, causing
5709         problems with C++ style name mangling.  Instead, trust the system
5710         definition if INT64_MAX is defined, and likewise for the unsigned
5711         variant.   Problem reported by Jarno Rajahalme in
5712         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
5713         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
5714         and don't mess with int64_t and INT64_MAX in this case.
5715         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
5716
5717 2010-11-24  Bruno Haible  <bruno@clisp.org>
5718
5719         doc: Corrections regarding MacOS X 10.4 and 10.5.
5720         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
5721         MacOS X.
5722         Reported by Simon Josefsson.
5723
5724 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
5725
5726         Uninstall ".bin" files installed by relocwrapper.
5727         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
5728         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
5729         unless it is already there.
5730
5731 2010-11-21  Bruno Haible  <bruno@clisp.org>
5732
5733         Update for NetBSD 5.0.
5734         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
5735         NetBSD; the test fails on NetBSD 5.0.
5736         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
5737         about NetBSD.
5738
5739 2010-11-21  Bruno Haible  <bruno@clisp.org>
5740
5741         Update for HP-UX 11.23 and HP-UX 11.31.
5742         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
5743         HP-UX.
5744
5745 2010-11-21  Bruno Haible  <bruno@clisp.org>
5746
5747         Update for MacOS X 10.5.
5748         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
5749         MacOS X; the test fails on MacOS X 10.5.8.
5750         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
5751         about MacOS X.
5752
5753 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
5754
5755         bootstrap: add bootstrap_sync option.
5756         See discussion at
5757         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
5758         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
5759         * build-aux/bootstrap: Accept --bootstrap-sync to update
5760         bootstrap if it is not identical to the local gnulib's
5761         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
5762         enable this by default.  Accept --no-bootstrap-sync to disable
5763         it.
5764
5765 2010-11-20  Bruno Haible  <bruno@clisp.org>
5766
5767         Ensure that <features.h> is included before __GLIBC__ is tested.
5768         * lib/printf-parse.h: Include <features.h>.
5769         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
5770         Reported by Mike Frysinger <vapier@gentoo.org>.
5771
5772         Ensure that <features.h> is included before __GLIBC__ is tested.
5773         * lib/wchar.in.h: Include <features.h>.
5774         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
5775         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
5776         Reported by Mike Frysinger <vapier@gentoo.org>.
5777
5778         Ensure that <features.h> is included before __GLIBC__ is tested.
5779         * lib/arpa_inet.in.h: Include <features.h>.
5780         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
5781         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
5782         Reported by Mike Frysinger <vapier@gentoo.org>.
5783
5784         Ensure that <features.h> is included before __GLIBC__ is tested.
5785         * build-aux/link-warning.h: Include <features.h>.
5786         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
5787         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
5788         Reported by Mike Frysinger <vapier@gentoo.org>.
5789
5790         Ensure that <features.h> is included before __GLIBC__ is tested.
5791         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
5792         Reported by Mike Frysinger <vapier@gentoo.org>.
5793
5794 2010-11-20  Bruno Haible  <bruno@clisp.org>
5795
5796         memmem: Fix autoconf test.
5797         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
5798
5799 2010-11-20  Bruno Haible  <bruno@clisp.org>
5800
5801         Port to uClibc.
5802         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
5803         * lib/fcntl.in.h: Likewise.
5804         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
5805         * lib/mbrtowc.c (mbrtowc): Likewise.
5806         * lib/relocatable.c (find_shared_library_fullname): Likewise.
5807         * lib/strerror_r.c: Likewise.
5808         * lib/unistr/u8-strnlen.c: Likewise.
5809         * lib/vasnprintf.c (decimal_point_char): Likewise.
5810         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
5811         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
5812         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
5813         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
5814         * tests/test-sigaction.c (handler, main): Likewise.
5815         * lib/freading.h: Treat uClibc like a non-glibc platform.
5816         * lib/freading.c: Likewise.
5817         * lib/gettext.h: Likewise.
5818         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
5819         Likewise.
5820         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
5821         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
5822         * lib/propername.c (proper_name_utf8): Likewise.
5823         * lib/spawn.in.h: Likewise.
5824         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
5825         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
5826         mem_cd_iconveh_internal): Likewise.
5827         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
5828         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
5829         strstr, strcasestr): Likewise.
5830         * lib/unicodeio.c (unicode_to_mb): Likewise.
5831         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
5832         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
5833         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
5834         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
5835         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
5836         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
5837         * lib/unistr/u8-stpncpy.c: Likewise.
5838         * lib/vasnprintf.c (VASNPRINTF): Likewise.
5839         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
5840         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
5841         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
5842         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
5843         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
5844         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
5845         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
5846         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
5847         Likewise.
5848         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
5849         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
5850         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
5851         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
5852         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
5853         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
5854         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
5855         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
5856         * tests/test-getopt.h (OPTIND_MIN): Likewise.
5857         * tests/test-striconveha.c (main): Likewise.
5858         * tests/test-vasnprintf-posix.c (test_function): Likewise.
5859         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
5860         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
5861         * doc/posix-functions/getline.texi: Likewise.
5862         Reported by Mike Frysinger <vapier@gentoo.org>.
5863
5864 2010-11-20  Bruno Haible  <bruno@clisp.org>
5865
5866         nproc: Fix condition.
5867         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
5868         HAVE_PTHREAD_AFFINITY_NP.
5869
5870 2010-11-20  Bruno Haible  <bruno@clisp.org>
5871
5872         Fix a comment.
5873         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
5874
5875 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
5876
5877         ftoastr: don't assume snprintf
5878         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
5879         Implement a subset of snprintf here, by using sprintf safely.
5880         * modules/ftoastr (Depends-on): Remove snprintf.
5881
5882 2010-11-19  Jim Meyering  <meyering@redhat.com>
5883
5884         test-rename.h: fix compilation failure
5885         * tests/test-rename.h (test_rename): Add omitted "}".
5886
5887 2010-11-17  Jim Meyering  <meyering@redhat.com>
5888
5889         maint.mk: add a URL discussing the no-@acronym policy
5890         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
5891
5892 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
5893
5894         ftoastr: depend on snprintf, improve comments
5895         * lib/ftoastr.c: Also mention Loitsch's draft.
5896         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
5897         needed in the current implementation, but it might simplify
5898         speeding up the code later.
5899         * modules/ftoastr: Depend on snprintf; this improves portability.
5900         Suggested by Bruno Haible in the same email.
5901
5902         ftoastr: port to hosts lacking strtof and strtold
5903         Problem reported by Bruno Haible in
5904         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
5905         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
5906         environment and strtold (and presumably strtof) are not available.
5907         * modules/ftoastr (Files): Add m4/c-strtod.m4.
5908         (configure.ac): Require gl_C99_STRTOLD.
5909
5910 2010-11-18  Bruno Haible  <bruno@clisp.org>
5911
5912         c-strtold: Avoid link error on AIX 7.
5913         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
5914         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
5915         (gl_C_STRTOLD): Test whether strtold_l exists.
5916         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
5917
5918 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
5919
5920         intprops: new macro INT_BITS_STRLEN_BOUND
5921         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
5922         ftoastr.h.  This exposes an internal of intprops.h that was formerly
5923         not exposed.  Also, it uses a slightly tighter bound than before;
5924         though this makes no practical difference, we might as well be as
5925         tight as we easily can.
5926
5927         ftoastr: new module, for lossless conversion of floats to short strings
5928         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
5929         * modules/ftoastr: New files.
5930
5931 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
5932
5933         bootstrap: port to Solaris sed
5934         * build-aux/bootstrap (get_version): Port to Solaris sed.
5935         See Ralf Wildenhues's note in
5936         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
5937
5938 2010-11-14  Jim Meyering  <meyering@redhat.com>
5939
5940         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
5941         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
5942         and move definition closer to sole use.
5943
5944 2010-11-13  Jim Meyering  <meyering@redhat.com>
5945
5946         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
5947         Now we require at least autoconf-2.59, which means the work-around
5948         is no longer needed.
5949         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
5950         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
5951         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
5952         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
5953         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
5954
5955 2010-11-13  Bruno Haible  <bruno@clisp.org>
5956
5957         rename, renameat: Avoid test failures at NFS mounted locations.
5958         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
5959         functions.
5960         (test_rename): Use assert_nonexistent.
5961         * tests/test-rename.c: Include <dirent.h>.
5962         * tests/test-renameat.c: Likewise.
5963         Reported by Gary V. Vaughan <gary@gnu.org>.
5964
5965         rename, renameat: Document Linux bug with NFS
5966         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
5967         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
5968         * doc/posix-functions/renameat.texi: Likewise.
5969         Suggested by Eric Blake.
5970
5971 2010-11-13  Bruno Haible  <bruno@clisp.org>
5972
5973         rename test: Add comments.
5974         * tests/test-rename.h (test_rename): Add structure and comments.
5975
5976 2010-11-13  Eric Blake  <eblake@redhat.com>
5977
5978         maintainer-makefile: cover a few more files
5979         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
5980         scripts generated within C files, for libvirt.
5981
5982 2010-11-13  Bruno Haible  <bruno@clisp.org>
5983
5984         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
5985         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
5986         character, return the number of bytes that belong together, not always
5987         1.
5988         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
5989         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
5990         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
5991         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
5992         number of bytes of an invalid character.
5993         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
5994         (main): Invoke it.
5995         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
5996         results.
5997         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
5998         malformed byte sequences.
5999         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
6000         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
6001         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
6002         Reported by Ben Pfaff and Paolo Bonzini.
6003
6004 2010-11-13  Bruno Haible  <bruno@clisp.org>
6005
6006         openat: Work around glibc bug with fchownat() and empty file names.
6007         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
6008         (gl_FUNC_FCHOWNAT): Invoke it.
6009         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
6010         * doc/posix-functions/fchownat.texi: Document the glibc bug.
6011         Reported by Gary V. Vaughan <gary@gnu.org>.
6012
6013 2010-11-13  Bruno Haible  <bruno@clisp.org>
6014
6015         openat: Ensure autoconf macro ordering.
6016         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
6017         gl_USE_SYSTEM_EXTENSIONS.
6018         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
6019
6020 2010-11-13  Bruno Haible  <bruno@clisp.org>
6021
6022         Update comments.
6023         * lib/unistr/u8-check.c: Update file name in comments.
6024         * lib/unistr/u8-mblen.c: Likewise.
6025         * lib/unistr/u8-prev.c: Likewise.
6026         * lib/unistr/u8-strmblen.c: Likewise.
6027         * lib/unistr/u8-strmbtouc.c: Likewise.
6028
6029 2010-11-13  Jim Meyering  <meyering@redhat.com>
6030
6031         tests: avoid test failure on Solaris 10 due to lack of PATH export
6032         * tests/test-update-copyright.sh: Don't forget to export PATH.
6033
6034         init.sh: ensure that IFS is defined, just in case...
6035         * tests/init.sh (setup_): Ensure that IFS is defined,
6036         so that saving and restoring it works as expected.  This
6037         appears to be useful at least for an old version of dash
6038         from a long time ago (RH 6).  See here for details:
6039         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
6040
6041         maint.mk: tighten "test a == b" check
6042         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
6043         test to files that contain something like #!/bin/sh.
6044         Without this, coreutils would get two false positives in
6045         the comments of C source files.
6046
6047 2010-11-12  Eric Blake  <eblake@redhat.com>
6048
6049         bootstrap: fix typo in previous attempt
6050         * build-aux/bootstrap (buildreq): Correct the grouping.
6051         Reported by Paul Eggert.
6052
6053         maintainer-makefile: prohibit test x == x
6054         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
6055         Based on a report by Matthias Bolte.
6056
6057         bootstrap: allow FreeBSD gzip
6058         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
6059         which has no '.' and goes to stderr.
6060         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
6061         Reported by Matthias Bolte.
6062
6063         maintainer-makefile: check for i18n setup
6064         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
6065         will likely work.
6066
6067 2010-11-12  Bruno Haible  <bruno@clisp.org>
6068
6069         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
6070         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
6071         * lib/nanosleep.c (nanosleep): Likewise.
6072
6073 2010-11-11  Bruno Haible  <bruno@clisp.org>
6074
6075         fcntl-h: Fix for use of C++ on glibc systems.
6076         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
6077         also on glibc systems in C++ mode.
6078         Reported by Gary V. Vaughan <gary@gnu.org>.
6079
6080 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
6081
6082         mknod: avoid false failure with dash
6083         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
6084
6085 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
6086
6087         unlink: Fix "is it should" typo in diagnostic.
6088         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
6089         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
6090
6091 2010-11-11  Bruno Haible  <bruno@clisp.org>
6092
6093         Tests for module 'strerror_r-posix'.
6094         * modules/strerror_r-posix-tests: New file.
6095         * tests/test-strerror_r.c: New file.
6096         * tests/test-string-c++.cc: Check the signature of strerror_r.
6097
6098         New module 'strerror_r-posix'.
6099         * lib/string.in.h (strerror_r): New declaration.
6100         * lib/strerror_r.c: New file.
6101         * m4/strerror_r.m4: New file.
6102         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
6103         of strerror_r.
6104         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
6105         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
6106         * modules/strerror_r-posix: New file.
6107         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
6108         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
6109         * doc/posix-functions/strerror_r.texi: Mention the new module and the
6110         portability problems.
6111
6112 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
6113
6114         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
6115         line is also considered for output. Quoted function name in shell
6116         command, so temporary files for functions like MyClass::operator()
6117         are removed correctly without errors.
6118
6119 2010-11-09  Bruno Haible  <bruno@clisp.org>
6120
6121         * doc/posix-functions/strerror.texi: List more failing platforms.
6122
6123         * doc/posix-functions/strerror.texi: Add a comment.
6124
6125 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
6126
6127         fdopendir: fix bug on MacOS X when low on file descriptors
6128
6129         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
6130         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
6131         All callers changed.
6132         (fdopendir): Invoke save_cwd at the top level, not after using
6133         multiple dup() calls to use up file descriptors.  Then retry
6134         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
6135         less than the maximum number of open file descriptors, because
6136         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
6137         on Mac OS X 10.6.4 for tar 1.24
6138         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
6139         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
6140         and for tar 1.25
6141         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
6142
6143 2010-11-07  Bruno Haible  <bruno@clisp.org>
6144
6145         vasnprintf: Support I flag on glibc systems.
6146         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
6147         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
6148         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
6149         snprintf function.
6150         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
6151         glibc systems.
6152         * tests/test-vasnprintf-posix3.c: New file.
6153         * modules/vasnprintf-posix-tests (Files): Add it.
6154         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
6155
6156 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
6157
6158         [html] Fix copy/paste bug: Use unique name for compiler warnings.
6159         * MODULES.html.sh: For compiler warnings, use name
6160         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
6161
6162 2010-11-05  Eric Blake  <eblake@redhat.com>
6163
6164         ceil, floor: avoid spurious failure with icc
6165         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
6166         [denormals-as-zero] when optimizing without -mieee-fp option.
6167         * tests/test-floorf2.c (floorf_reference): Likewise.
6168         * tests/test-ceilf1.c (dummy): New function.
6169         (main): Use it to outsmart icc's optimization.
6170         * tests/test-floorf1.c (dummy, main): Likewise.
6171
6172         tests: require working signbit
6173         * modules/ceilf-tests (Depends-on): Add signbit.
6174         * modules/ceill-tests (Depends-on): Likewise.
6175         * modules/floorf-tests (Depends-on): Likewise.
6176         * modules/floorl-tests (Depends-on): Likewise.
6177         * modules/round-tests (Depends-on): Likewise.
6178         * modules/roundf-tests (Depends-on): Likewise.
6179         * modules/roundl-tests (Depends-on): Likewise.
6180         * modules/trunc-tests (Depends-on): Likewise.
6181         * modules/truncf-tests (Depends-on): Likewise.
6182         * modules/truncl-tests (Depends-on): Likewise.
6183
6184         strtod: work around icc bug
6185         * lib/strtod.c (minus_zero): Define to working value.
6186         (strtod): Use it to avoid icc bug.
6187
6188         copysign: enhance tests
6189         * modules/copysign-tests (Files): Add minus-zero.h.
6190         * tests/test-copysign.c (main): Also test zeros.
6191
6192 2010-11-04  Eric Blake  <eblake@redhat.com>
6193
6194         ceil, floor, round, trunc: enhance tests of -0
6195         * tests/test-ceilf1.c (main): Ensure correct sign of result.
6196         * tests/test-ceill.c (main): Likewise.
6197         * tests/test-floorf1.c (main): Likewise.
6198         * tests/test-floorl.c (main): Likewise.
6199         * tests/test-round1.c (main): Likewise.
6200         * tests/test-roundf1.c (main): Likewise.
6201         * tests/test-roundl.c (main): Likewise.
6202         * tests/test-trunc1.c (main): Likewise.
6203         * tests/test-truncf1.c (main): Likewise.
6204         * tests/test-truncl.c (main): Likewise.
6205
6206 2010-11-04  Eric Blake  <eblake@redhat.com>
6207
6208         frexp, tests: work around ICC bug with -zero
6209         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
6210         works with more compilers.
6211         * tests/minus-zero.h: New file.
6212         * modules/ceilf-tests (Files): Include it.
6213         * modules/ceill-tests (Files): Likewise.
6214         * modules/floorf-tests (Files): Likewise.
6215         * modules/floorl-tests (Files): Likewise.
6216         * modules/frexp-nolibm-tests (Files): Likewise.
6217         * modules/frexp-tests (Files): Likewise.
6218         * modules/frexpl-nolibm-tests (Files): Likewise.
6219         * modules/frexpl-tests (Files): Likewise.
6220         * modules/isnan-tests (Files): Likewise.
6221         * modules/isnand-nolibm-tests (Files): Likewise.
6222         * modules/isnand-tests (Files): Likewise.
6223         * modules/isnanf-nolibm-tests (Files): Likewise.
6224         * modules/isnanf-tests (Files): Likewise.
6225         * modules/isnanl-nolibm-tests (Files): Likewise.
6226         * modules/isnanl-tests (Files): Likewise.
6227         * modules/round-tests (Files): Likewise.
6228         * modules/roundf-tests (Files): Likewise.
6229         * modules/roundl-tests (Files): Likewise.
6230         * modules/ldexpl-tests (Files): Likewise.
6231         * modules/signbit-tests (Files): Likewise.
6232         * modules/snprintf-posix-tests (Files): Likewise.
6233         * modules/sprintf-posix-tests (Files): Likewise.
6234         * modules/strtod-tests (Files): Likewise.
6235         * modules/trunc-tests (Files): Likewise.
6236         * modules/truncf-tests (Files): Likewise.
6237         * modules/truncl-tests (Files): Likewise.
6238         * modules/vsnprintf-posix-tests (Files): Likewise.
6239         * modules/vsprintf-posix-tests (Files): Likewise.
6240         * modules/vasnprintf-posix-tests (Files): Likewise.
6241         * modules/vasprintf-posix-tests (Files): Likewise.
6242         * tests/test-ceilf1.c (main): Use it.
6243         * tests/test-ceill.c (main): Likewise.
6244         * tests/test-floorf1.c (main): Likewise.
6245         * tests/test-floorl.c (main): Likewise.
6246         * tests/test-frexp.c (main): Likewise.
6247         * tests/test-frexpl.c (main): Likewise.
6248         * tests/test-isnan.c (main): Likewise.
6249         * tests/test-isnand.h (main): Likewise.
6250         * tests/test-isnanf.h (main): Likewise.
6251         * tests/test-isnanl.h (main): Likewise.
6252         * tests/test-ldexpl.c (main): Likewise.
6253         * tests/test-round.c (main): Likewise.
6254         * tests/test-roundf.c (main): Likewise.
6255         * tests/test-roundl.c (main): Likewise.
6256         * tests/test-signbit.c (test_signbitf, test_signbitd)
6257         (test_signbitl): Likewise.
6258         * tests/test-snprintf-posix.h (test_function): Likewise.
6259         * tests/test-sprintf-posix.h (test_function): Likewise.
6260         * tests/test-strtod.c (main): Likewise.
6261         * tests/test-trunc1.c (main): Likewise.
6262         * tests/test-truncf1.c (main): Likewise.
6263         * tests/test-truncl.c (main): Likewise.
6264
6265         isnanl: work around icc bug
6266         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
6267
6268 2010-11-03  Eric Blake  <eblake@redhat.com>
6269
6270         tests: fix compiler warnings
6271         * tests/test-getopt.h (test_getopt): Fix condition.
6272         * tests/test-getopt_long.h (test_getopt_long): Likewise.
6273         * tests/test-pipe2.c (main): Likewise.
6274         * tests/test-quotearg-simple.c (main): Avoid icc warning.
6275
6276         utimens: fix broken m4 test
6277         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
6278
6279 2010-10-28  Bruno Haible  <bruno@clisp.org>
6280
6281         posix_spawn*, getdtablesize: Relax license.
6282         * modules/posix_spawn (License): Change to LGPLv2+.
6283         * modules/posix_spawnp (License): Likewise.
6284         * modules/posix_spawn-internal (License): Likewise.
6285         * modules/posix_spawnattr_init (License): Likewise.
6286         * modules/posix_spawnattr_getflags (License): Likewise.
6287         * modules/posix_spawnattr_setflags (License): Likewise.
6288         * modules/posix_spawnattr_getpgroup (License): Likewise.
6289         * modules/posix_spawnattr_setpgroup (License): Likewise.
6290         * modules/posix_spawnattr_getschedparam (License): Likewise.
6291         * modules/posix_spawnattr_setschedparam (License): Likewise.
6292         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
6293         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
6294         * modules/posix_spawnattr_getsigdefault (License): Likewise.
6295         * modules/posix_spawnattr_setsigdefault (License): Likewise.
6296         * modules/posix_spawnattr_getsigmask (License): Likewise.
6297         * modules/posix_spawnattr_setsigmask (License): Likewise.
6298         * modules/posix_spawnattr_destroy (License): Likewise.
6299         * modules/posix_spawn_file_actions_init (License): Likewise.
6300         * modules/posix_spawn_file_actions_addclose (License): Likewise.
6301         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
6302         * modules/posix_spawn_file_actions_addopen (License): Likewise.
6303         * modules/posix_spawn_file_actions_destroy (License): Likewise.
6304         * modules/getdtablesize (License): Likewise.
6305         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
6306
6307 2010-10-26  Bruno Haible  <bruno@clisp.org>
6308
6309         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
6310         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
6311         Cygwin and mingw.
6312         Suggested by Eric Blake.
6313
6314 2010-10-26  Bruno Haible  <bruno@clisp.org>
6315
6316         stdio: Work around compilation error due to renameat() on Solaris 10.
6317         * lib/stdio.in.h: Include <unistd.h> on Solaris.
6318         * lib/renameat.c: Don't include <unistd.h> here.
6319         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
6320         Reported by Paul Eggert and Eric Blake.
6321
6322 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
6323
6324         renameat: port to Solaris 10, which declares renameat in unistd.h
6325
6326         * lib/renameat.c: Include unistd.h before stdio.h, because
6327         Solaris 10 declares renameat in unistd.h.  Problem encountered
6328         when building GNU tar 1.24 on Solaris 10.
6329
6330 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
6331
6332         fdopendir: fix C89 compilation
6333         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
6334         compilers.
6335
6336 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
6337
6338         inttostr: simplify by removing unnecessary redundancy
6339         * lib/anytostr.c: Don't include verify.h.
6340         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
6341         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
6342         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
6343         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
6344         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
6345         Likewise.
6346         * modules/inttostr (Depends-on): Remove 'verify'.
6347
6348 2010-10-23  Bruno Haible  <bruno@clisp.org>
6349
6350         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
6351         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
6352         Reported by Eric Blake.
6353
6354 2010-10-23  Bruno Haible  <bruno@clisp.org>
6355
6356         Tests: Fix LOCALE_JA on MirBSD 10.
6357         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
6358         to an UTF-8 locale.
6359         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
6360         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
6361         Reported by Eric Blake.
6362
6363 2010-10-21  Bruno Haible  <bruno@clisp.org>
6364
6365         nl_langinfo test: Avoid test failure on NetBSD 5.
6366         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
6367         Reported by Eric Blake.
6368
6369 2010-10-21  Eric Blake  <eblake@redhat.com>
6370
6371         c-stack: work around libsigsegv 2.8 bug
6372         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
6373         overflow on at least PowerPC64.
6374
6375 2010-10-17  Bruno Haible  <bruno@clisp.org>
6376
6377         userspec: Drop redundant file.
6378         * modules/userspec (Files): Remove lib/inttostr.h.
6379
6380 2010-10-17  Bruno Haible  <bruno@clisp.org>
6381
6382         nl_langinfo tests: Silence some warnings.
6383         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
6384         Reported by Jim Meyering.
6385
6386 2010-10-17  Bruno Haible  <bruno@clisp.org>
6387
6388         Make use of GCC's attribute __alloc_size__.
6389         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
6390         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
6391         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
6392         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
6393         __alloc_size__.
6394         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
6395         Suggested by Jim Meyering.
6396
6397 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
6398
6399         bootstrap: anchor .gitignore entries.
6400         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
6401         with...
6402         (insert_vc_ignore): ... this new function, which prepends `/' to
6403         all .gitignore entries before passing them to
6404         insert_sorted_if_absent.
6405
6406 2010-10-16  Bruno Haible  <bruno@clisp.org>
6407
6408         nextafter: Fix configure check.
6409         * modules/nextafter (configure.ac): Correct expected prototype.
6410
6411 2010-10-16  Bruno Haible  <bruno@clisp.org>
6412
6413         termios: Update documentation.
6414         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
6415
6416 2010-10-16  Bruno Haible  <bruno@clisp.org>
6417
6418         tests: Make them compile with TinyCC.
6419         * tests/test-strstr.c (main): Remove parentheses around array
6420         initializer.
6421
6422 2010-10-15  Eric Blake  <eblake@redhat.com>
6423
6424         ignore-value: make header idempotent
6425         * lib/ignore-value.h: Add double-inclusion guards.
6426         Reported by Stefan Berger.
6427
6428 2010-10-15  Jim Meyering  <meyering@redhat.com>
6429
6430         GNUmakefile: handle "stable" target, not "major"
6431         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
6432         lists in maint.mk and announce-gen.  Without this, "make stable"
6433         would fail to ensure that $(VERSION) is up to date.
6434
6435 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
6436
6437         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
6438         & co.
6439
6440 2010-10-14  Bruno Haible  <bruno@clisp.org>
6441
6442         vasnprintf: Don't set errno to 0.
6443         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
6444         block that sets it to 0.
6445         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
6446
6447 2010-10-14  Bruno Haible  <bruno@clisp.org>
6448
6449         socketlib: Fix.
6450         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
6451         gl_PREREQ_SYS_H_WINSOCK2.
6452         Reported by Ian Beckwith <ianb@erislabs.net>.
6453
6454 2010-10-13  Jim Meyering  <meyering@redhat.com>
6455
6456         test-select-stdin.c: avoid warn_unused_result warnings
6457         * tests/test-select-stdin.c: Include "macros.h".
6458         ASSERT that read and fflush succeed.
6459
6460 2010-10-13  Jim Meyering  <meyering@redhat.com>
6461
6462         git-version-gen: do require git-VC'd files in cwd
6463         * build-aux/git-version-gen: Reject a git version string
6464         if there are no commits associated with the current directory.
6465         This avoids an unlikely false-positive (unrelated dir whose parent
6466         repository also contains a tag matching v*), as pointed out
6467         by Giuseppe Scrivano in
6468         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
6469
6470 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
6471
6472         argv-iter: omit nonconforming declaration
6473         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
6474         enum arg_iter_err declaration, which doesn't conform to C99.
6475         Solaris 10 cc warns about this.
6476
6477 2010-10-13  Eric Blake  <eblake@redhat.com>
6478
6479         termios: fix compilation on mingw
6480         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
6481         (gl_TERMIOS_H): Adjust it on mingw.
6482         * modules/termios (Makefile.am): Substitute new key.
6483         * lib/termios.in.h (includes): Make include_next conditional.
6484         * doc/posix-headers/termios.texi (termios.h): Update
6485         documentation.
6486         Reported by Daniel P. Berrange.
6487
6488 2010-10-13  Jim Meyering  <meyering@redhat.com>
6489
6490         git-version-gen: don't require that .git/ be in the current dir
6491         * build-aux/git-version-gen: Adjust this script so that it works
6492         when run from any working directory beneath the top-level .git/-
6493         containing directory.  Inspired by a patch from Giuseppe Scrivano,
6494         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
6495
6496         test-select: avoid warn_unused_result warnings
6497         * tests/test-select.c: Include "macros.h".
6498         ASSERT that each call to read, write, and pipe succeeds.
6499         While not technically required, also check each "close".
6500         * modules/select-tests (Files): Add tests/macros.h.
6501
6502         test-symlinkat: remove declaration of unused local
6503         * tests/test-symlinkat.c (main): Remove unused local, "buf".
6504
6505         test-inttostr: avoid shadowing warnings
6506         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
6507         and use malloc rather than the stack for the same reason as
6508         mentioned in the comment justifying the other allocation.
6509
6510 2010-10-11  Bruno Haible  <bruno@clisp.org>
6511
6512         stdlib: Allow multiple gnulib generated replacements to coexist.
6513         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
6514         Reported by Sam Steingold <sds@gnu.org>.
6515
6516 2010-10-11  Jim Meyering  <meyering@redhat.com>
6517
6518         fix a documentation typo
6519         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
6520
6521 2010-10-11  Eric Blake  <eblake@redhat.com>
6522
6523         futimens: work around Solaris 11 bug
6524         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
6525         * tests/test-futimens.h (test_futimens): Enhance, rather than
6526         weaken test.
6527         * doc/posix-functions/futimens.texi (futimens): Document the bug.
6528
6529 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
6530
6531         Indentation.
6532         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
6533         higher-level operators more to the left.
6534
6535 2010-10-11  Jim Meyering  <meyering@redhat.com>
6536
6537         test-futimens: avoid unwarranted test failure on Solaris 5.11
6538         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
6539         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
6540         because it tries to dereference the NULL name argument.
6541
6542 2010-10-11  Bruno Haible  <bruno@clisp.org>
6543
6544         Indentation.
6545         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
6546         indentation.
6547
6548 2010-10-11  Jim Meyering  <meyering@redhat.com>
6549
6550         spawn.in.h: make indentation consistent with parentheses
6551         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
6552         Make indentation consistent with parentheses.
6553
6554 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
6555
6556         Fix mismatched parens in previous commit
6557         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
6558         parens.
6559
6560 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
6561
6562         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
6563
6564         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
6565         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
6566         * lib/malloca.c: Include "verify.h".
6567         (verify1): Remove, replacing with a verify call.
6568         * lib/relocwrapper.c (verify1): Likewise.
6569         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
6570         Likewise.
6571         * modules/malloca (Depends-on): Add 'verify'.
6572         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
6573         * modules/vasnprintf (Depends-on): Add 'verify'.
6574         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
6575         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
6576         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
6577         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
6578         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
6579         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
6580         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
6581
6582         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
6583
6584         Formerly the style was sometimes 2*X - 1, because the C standard
6585         was wrongly thought to disallow ?: in integral constant expressions.
6586         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
6587         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
6588         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
6589         * lib/stdint.in.h (_verify_intmax_size): Likewise.
6590         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
6591         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
6592         verify that time_t cannot be floating.
6593
6594 2010-10-08  Eric Blake  <eblake@redhat.com>
6595
6596         time: enforce recent POSIX ruling that time_t is integral
6597         * lib/time.in.h (__time_t_must_be_integral): Detect any
6598         problematic systems, allowing the rest of gnulib to assume POSIX.
6599
6600 2010-10-08  Jim Meyering  <meyering@redhat.com>
6601
6602         fdopendir: fix a bug on systems lacking openat and /proc support
6603         OpenBSD 4.7 is one such system.  The most noticeable effect was
6604         failure of any application making nontrivial use of fts: rm, du,
6605         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
6606           ./rm: traversal failed: `a': Bad file descriptor
6607         Debugging that, you see that even though FD 6 was closed just
6608         prior to the opendir call in fd_clone_opendir, its resulting
6609         dir->dd_fd was 8, rather than the expected value of 6:
6610
6611         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
6612         93                close (fd);
6613         (gdb) n
6614         94                dir = fd_clone_opendir (dupfd);
6615         (gdb) n
6616         95                saved_errno = errno;
6617         (gdb) p dir->dd_fd
6618         $11 = 8
6619
6620         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
6621         The problem is that on OpenBSD, fd_clone_opendir has to resort
6622         to using the old-style save/restore CWD mechanism, due to its
6623         lack of openat/proc support, and *that* would steal the FD (6)
6624         that opendir was supposed to use.
6625
6626         The fix is to squirrel away the desired FD so that save_cwd uses a
6627         different one, and then free the dest FD right before calling opendir.
6628         That guarantees opendir will use the required file descriptor.
6629
6630         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
6631
6632 2010-10-08  Bruno Haible  <bruno@clisp.org>
6633
6634         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
6635         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
6636
6637 2010-10-08  Bruno Haible  <bruno@clisp.org>
6638
6639         nanosleep: Make replacement POSIX compliant.
6640         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
6641         is out of range.
6642         Reported by Jim Meyering.
6643
6644 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
6645
6646         bootstrap: add hook for altering gnulib.mk, for Bison
6647         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
6648         the Bison bootstrapping process can rewrite file names and variables
6649         in this file before later parts of 'bootstrap' use the file.
6650         Bison wants to include lib/gnulib.mk from the top-level makefile,
6651         so it needs the file names in this file to be relative to the top
6652         level, not relative to lib; plus it needs variable names to be
6653         rewritten.
6654         (slurp): Use the new function.
6655
6656         bootstrap: reformat for readability
6657         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
6658
6659 2010-10-08  Eric Blake  <eblake@redhat.com>
6660
6661         docs: update cygwin progress
6662         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
6663         1.7.7.
6664         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
6665         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
6666         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
6667         * doc/posix-functions/carg.texi (carg): Likewise.
6668         * doc/posix-functions/cargf.texi (cargf): Likewise.
6669         * doc/posix-functions/casin.texi (casin): Likewise.
6670         * doc/posix-functions/casinf.texi (casinf): Likewise.
6671         * doc/posix-functions/casinh.texi (casinh): Likewise.
6672         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
6673         * doc/posix-functions/catan.texi (catan): Likewise.
6674         * doc/posix-functions/catanf.texi (catanf): Likewise.
6675         * doc/posix-functions/catanh.texi (catanh): Likewise.
6676         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
6677         * doc/posix-functions/ccos.texi (ccos): Likewise.
6678         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
6679         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
6680         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
6681         * doc/posix-functions/cexp.texi (cexp): Likewise.
6682         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
6683         * doc/posix-functions/cimag.texi (cimag): Likewise.
6684         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
6685         * doc/posix-functions/clog.texi (clog): Likewise.
6686         * doc/posix-functions/clogf.texi (clogf): Likewise.
6687         * doc/posix-functions/conj.texi (conj): Likewise.
6688         * doc/posix-functions/conjf.texi (conjf): Likewise.
6689         * doc/posix-functions/cpow.texi (cpow): Likewise.
6690         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
6691         * doc/posix-functions/cproj.texi (cproj): Likewise.
6692         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
6693         * doc/posix-functions/creal.texi (creal): Likewise.
6694         * doc/posix-functions/crealf.texi (crealf): Likewise.
6695         * doc/posix-functions/csin.texi (csin): Likewise.
6696         * doc/posix-functions/csinf.texi (csinf): Likewise.
6697         * doc/posix-functions/csinh.texi (csinh): Likewise.
6698         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
6699         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
6700         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
6701         * doc/posix-functions/ctan.texi (ctan): Likewise.
6702         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
6703         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
6704         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
6705         * doc/posix-headers/complex.texi (complex.h): Likewise.
6706
6707 2010-10-07  Jim Meyering  <meyering@redhat.com>
6708
6709         parse-datetime: avoid compilation failure on OpenBSD 4.7
6710         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
6711         This works around a compilation failure on OpenBSD 4.7:
6712         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
6713
6714 2010-10-07  Eric Blake  <eblake@redhat.com>
6715
6716         docs: update cygwin progress
6717         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
6718         1.7.6.
6719         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
6720         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
6721         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
6722         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
6723         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
6724         Likewise.
6725         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
6726         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
6727         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
6728         Likewise.
6729         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
6730         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
6731         Likewise.
6732         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
6733         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
6734         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
6735         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
6736         Likewise.
6737         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
6738         Likewise.
6739         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
6740
6741         docs: update parse-datetime history
6742         * doc/parse-datetime.texi (Authors of parse_datetime): Better
6743         documentation of this function's history and alternatives.
6744
6745         cygwin: use more robust version check
6746         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
6747         exclude an eventual cygwin 1.9.1.
6748         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
6749         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
6750         (gl_FUNC_STRCASESTR): Likewise.
6751         Reported by Bruno Haible.
6752
6753 2010-10-06  Bruno Haible  <bruno@clisp.org>
6754
6755         string, sys_select: Avoid #including large headers unless necessary.
6756         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
6757         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
6758         OSF/1, BeOS, Haiku.
6759         Reported by Jim Meyering.
6760
6761 2010-10-05  Eric Blake  <eblake@redhat.com>
6762
6763         memmem, strstr, strcasestr: fix bug with long periodic needle
6764         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
6765         periodic needle having false positive.
6766         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
6767         and cygwin 1.7.7.
6768         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
6769         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
6770         (gl_FUNC_STRCASESTR): Likewise.
6771         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
6772         * tests/test-memmem.c (main): Expose the bug.
6773         * tests/test-strcasestr.c (main): Likewise.
6774         * tests/test-strstr.c (main): Likewise.
6775         * tests/test-c-strcasestr.c (main): Likewise.
6776         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
6777         * doc/posix-functions/strstr.texi (strstr): Likewise.
6778         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
6779         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
6780
6781 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
6782
6783         parse-datetime: do some more renaming
6784         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
6785         parse_datetime, not get_date.  Mention the renaming.
6786         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
6787         in comments.
6788         * m4/bison.m4: Likewise.
6789
6790 2010-10-05  Eric Blake  <eblake@redhat.com>
6791
6792         parse-datetime: better name than get_date
6793         * NEWS: Reword the deprecation notice.
6794         * modules/get_date: Rename to modules/parse-datetime.
6795         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
6796         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
6797         * lib/get_date.y: Rename to lib/parse-datetime.y.
6798         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
6799         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
6800         * doc/getdate.texi: Provide fallback wrapper.
6801         * lib/getdate.h: Move guts, and wrap...
6802         * lib/parse-datetime.h: ...new file.
6803         * lib/parse-datetime.y (get_date): Rename...
6804         (parse_datetime): ...to this.
6805         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
6806         (gl_PARSE_DATETIME): ...to this.
6807         * doc/posix-functions/getdate.texi (get_date): Provide fallback
6808         documentation.
6809         * modules/getdate (Files): Provide fallback docs and header.
6810         (Notice, Depends-on): Update references.
6811         * tests/test-parse-datetime.c: Likewise.
6812         * DEPENDENCIES: Likewise.
6813         * MODULES.html.sh (Date and time <time.h>): Likewise.
6814         * doc/parse-datetime.texi (Date input formats)
6815         (Authors of parse_datetime): Likewise.
6816         * modules/parse-datetime (Files, configure.ac, Makefile.am)
6817         (Include): Likewise.
6818         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
6819         * gnulib-tool: Likewise.
6820         * m4/bison.m4 (gl_BISON): Likewise.
6821         Suggested by Bruno Haible.
6822
6823 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
6824
6825         more ports to Solaris tr, which needs [] around ranges
6826         * gnulib-tool: Solaris tr needs [] around ranges.
6827         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
6828         * tests/test-pipe-filter-gi1.c (main): Likewise.
6829         * tests/test-pipe-filter-ii1.c (main): Likewise.
6830
6831 2010-10-05  Eric Blake  <eblake@redhat.com>
6832
6833         bootstrap: fix Solaris regression
6834         * build-aux/bootstrap (check_versions): Solaris tr still needs []
6835         around ranges.
6836         Reported by Pádraig Brady.
6837
6838         bootstrap: work with pkg-config
6839         * build-aux/bootstrap (check_versions): Also transliterate - in
6840         prerequisite name.
6841         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
6842         prerequisites that were already found, to avoid confusion.
6843         Reported by Justin Clift.
6844
6845         faccessat: remove unused wrappers
6846         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
6847         presence of these wrappers dragged in -lgen on Solaris.
6848         Reported by Clemens Brogi; fix suggested by Paul Eggert.
6849
6850 2010-10-05  Jim Meyering  <meyering@redhat.com>
6851
6852         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
6853         * Makefile (sc_pragma_columns): New syntax-check rule.
6854
6855 2010-10-04  Bruno Haible  <bruno@clisp.org>
6856
6857         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
6858         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
6859         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
6860         Reported by Bruce Korb and Eric Blake.
6861
6862 2010-10-04  Bruno Haible  <bruno@clisp.org>
6863
6864         threadlib: Make option --with-libpth-prefix work.
6865         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
6866         use $LIBPTH, not just -lpth.
6867
6868 2010-10-04  Bruno Haible  <bruno@clisp.org>
6869
6870         Avoid line length limitation from HP NonStop system header files.
6871         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
6872         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
6873         * lib/ctype.in.h: Likewise.
6874         * lib/dirent.in.h: Likewise.
6875         * lib/errno.in.h: Likewise.
6876         * lib/fcntl.in.h: Likewise.
6877         * lib/float.in.h: Likewise.
6878         * lib/getopt.in.h: Likewise.
6879         * lib/iconv.in.h: Likewise.
6880         * lib/inttypes.in.h: Likewise.
6881         * lib/langinfo.in.h: Likewise.
6882         * lib/locale.in.h: Likewise.
6883         * lib/math.in.h: Likewise.
6884         * lib/netdb.in.h: Likewise.
6885         * lib/netinet_in.in.h: Likewise.
6886         * lib/poll.in.h: Likewise.
6887         * lib/pthread.in.h: Likewise.
6888         * lib/pty.in.h: Likewise.
6889         * lib/sched.in.h: Likewise.
6890         * lib/se-selinux.in.h: Likewise.
6891         * lib/search.in.h: Likewise.
6892         * lib/signal.in.h: Likewise.
6893         * lib/spawn.in.h: Likewise.
6894         * lib/stdarg.in.h: Likewise.
6895         * lib/stddef.in.h: Likewise.
6896         * lib/stdint.in.h: Likewise.
6897         * lib/stdio.in.h: Likewise.
6898         * lib/stdlib.in.h: Likewise.
6899         * lib/string.in.h: Likewise.
6900         * lib/strings.in.h: Likewise.
6901         * lib/sys_file.in.h: Likewise.
6902         * lib/sys_ioctl.in.h: Likewise.
6903         * lib/sys_select.in.h: Likewise.
6904         * lib/sys_socket.in.h: Likewise.
6905         * lib/sys_stat.in.h: Likewise.
6906         * lib/sys_time.in.h: Likewise.
6907         * lib/sys_times.in.h: Likewise.
6908         * lib/sys_utsname.in.h: Likewise.
6909         * lib/sys_wait.in.h: Likewise.
6910         * lib/sysexits.in.h: Likewise.
6911         * lib/termios.in.h: Likewise.
6912         * lib/time.in.h: Likewise.
6913         * lib/unistd.in.h: Likewise.
6914         * lib/wchar.in.h: Likewise.
6915         * lib/wctype.in.h: Likewise.
6916         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
6917         * modules/ctype (Makefile.am): Likewise.
6918         * modules/dirent (Makefile.am): Likewise.
6919         * modules/errno (Makefile.am): Likewise.
6920         * modules/fcntl-h (Makefile.am): Likewise.
6921         * modules/float (Makefile.am): Likewise.
6922         * modules/getopt-posix (Makefile.am): Likewise.
6923         * modules/iconv-h (Makefile.am): Likewise.
6924         * modules/inttypes (Makefile.am): Likewise.
6925         * modules/langinfo (Makefile.am): Likewise.
6926         * modules/locale (Makefile.am): Likewise.
6927         * modules/math (Makefile.am): Likewise.
6928         * modules/netdb (Makefile.am): Likewise.
6929         * modules/netinet_in (Makefile.am): Likewise.
6930         * modules/poll-h (Makefile.am): Likewise.
6931         * modules/pthread (Makefile.am): Likewise.
6932         * modules/pty (Makefile.am): Likewise.
6933         * modules/sched (Makefile.am): Likewise.
6934         * modules/search (Makefile.am): Likewise.
6935         * modules/selinux-h (Makefile.am): Likewise.
6936         * modules/signal (Makefile.am): Likewise.
6937         * modules/spawn (Makefile.am): Likewise.
6938         * modules/stdarg (Makefile.am): Likewise.
6939         * modules/stddef (Makefile.am): Likewise.
6940         * modules/stdint (Makefile.am): Likewise.
6941         * modules/stdio (Makefile.am): Likewise.
6942         * modules/stdlib (Makefile.am): Likewise.
6943         * modules/string (Makefile.am): Likewise.
6944         * modules/strings (Makefile.am): Likewise.
6945         * modules/sys_file (Makefile.am): Likewise.
6946         * modules/sys_ioctl (Makefile.am): Likewise.
6947         * modules/sys_select (Makefile.am): Likewise.
6948         * modules/sys_socket (Makefile.am): Likewise.
6949         * modules/sys_stat (Makefile.am): Likewise.
6950         * modules/sys_time (Makefile.am): Likewise.
6951         * modules/sys_times (Makefile.am): Likewise.
6952         * modules/sys_utsname (Makefile.am): Likewise.
6953         * modules/sys_wait (Makefile.am): Likewise.
6954         * modules/sysexits (Makefile.am): Likewise.
6955         * modules/termios (Makefile.am): Likewise.
6956         * modules/time (Makefile.am): Likewise.
6957         * modules/unistd (Makefile.am): Likewise.
6958         * modules/wchar (Makefile.am): Likewise.
6959         * modules/wctype (Makefile.am): Likewise.
6960
6961 2010-10-04  Bruno Haible  <bruno@clisp.org>
6962
6963         read-file tests: Avoid a test failure on NonStop Kernel.
6964         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
6965         a regular file.
6966         Reported by Joachim Schmitz <schmitz@hp.com>.
6967
6968 2010-10-03  Bruno Haible  <bruno@clisp.org>
6969
6970         gnulib-tool: Fixes for --create-testdir with --libtool.
6971         * gnulib-tool (func_get_automake_snippet): Don't augment
6972         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
6973         an executable.
6974         (func_create_testdir): Handle module 'alloca' like func_import.
6975         Reported by Bruce Korb <bruce.korb@gmail.com>.
6976
6977 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
6978
6979         Avoid some lines longer than 80 characters.
6980         * lib/stdint.in.h: Break long comment lines.
6981         * lib/math.in.h: Likewise.
6982         (_GL_NUM_UINT_WORDS): New macro, for readability.
6983         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
6984         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
6985         * lib/stdlib.in.h: Likewise.
6986         * lib/spawn.in.h: Likewise.
6987         * lib/sys_socket.in.h: Update an URL.
6988         * lib/sys_stat.in.h: Break long line.
6989
6990 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
6991
6992         Improve pmccabe2html.
6993         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
6994         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
6995         when the sources change. Remove the line in the HTML about "Used
6996         ranges" (which implied that there might be other unused ranges),
6997         rename "Resume" to "Summary" (easier to understand for more users).
6998         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
6999         styles, and some unnecessary blank lines.
7000
7001 2010-10-03  Bruno Haible  <bruno@clisp.org>
7002             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
7003
7004         acl: Add support for ACLs on NonStop Kernel.
7005         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
7006         Check whether the function aclsort() exists.
7007         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
7008         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
7009         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
7010         (acl_nontrivial [HAVE_ACLSORT]: New function.
7011         (file_has_acl): Implement for NonStop Kernel.
7012         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
7013         (qset_acl): Implement for NonStop Kernel.
7014         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
7015         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
7016         (main): Implement for NonStop Kernel.
7017         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
7018         Kernel. Handle this flavor.
7019         * tests/test-set-mode-acl.sh: Likewise.
7020         * tests/test-copy-acl.sh: Likewise.
7021         * tests/test-copy-file.sh: Likewise.
7022
7023 2010-10-03  Bruno Haible  <bruno@clisp.org>
7024
7025         Info about ACLs on NonStop Kernel.
7026         * doc/acl-resources.txt: Add info about NonStop Kernel.
7027         References by Joachim Schmitz <schmitz@hp.com>.
7028
7029 2010-10-02  Bruno Haible  <bruno@clisp.org>
7030
7031         Define missing EDQUOT on NonStop Kernel.
7032         * lib/errno.in.h (EDQUOT): Assign a value if missing.
7033         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
7034         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
7035         missing.
7036         * doc/posix-headers/errno.texi: Mention the NSK bug.
7037         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
7038         Reported by Joachim Schmitz <schmitz@hp.com>.
7039
7040 2010-10-02  Bruno Haible  <bruno@clisp.org>
7041
7042         Update doc for POSIX:2008.
7043         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
7044         Update URL of POSIX specification.
7045
7046 2010-10-02  Bruno Haible  <bruno@clisp.org>
7047
7048         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
7049         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
7050         from gnulib, not from Automake.
7051
7052 2010-10-02  Bruno Haible  <bruno@clisp.org>
7053
7054         New module 'system-posix'.
7055         * modules/system-posix: New file.
7056         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
7057         module is present.
7058         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
7059         GNULIB_SYSTEM_POSIX.
7060         * modules/stdlib (Depends-on): Remove sys_wait.
7061         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
7062         * doc/posix-functions/system.texi: Mention the new module.
7063         * doc/posix-headers/stdlib.texi: Likewise.
7064         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
7065         define test_sys_wait_macros to a no-op.
7066         Reported by Sam Steingold <sds@gnu.org>.
7067
7068 2010-09-30  Bruno Haible  <bruno@clisp.org>
7069
7070         More renaming from 'getdate' to 'get_date'.
7071         * doc/get_date.texi: Renamed from doc/getdate.texi.
7072         * modules/get_date (Files): Update.
7073         * MODULES.html.sh (Date and time <time.h>): Update.
7074         * DEPENDENCIES: Update.
7075         * gnulib-tool: Update comment.
7076         * m4/bison.m4 (gl_BISON): Likewise.
7077         * m4/get_date.m4 (gl_GET_DATE): Likewise.
7078
7079 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
7080
7081         bootstrap: support ACLOCAL_FLAGS during aclocal
7082         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
7083         can add additional -I dir for third-party .m4 files.
7084
7085 2010-09-30  Eric Blake  <eblake@redhat.com>
7086
7087         bootstrap: use glibtoolize on MacOS
7088         * build-aux/bootstrap (check_versions): Convert libtool into
7089         libtoolize.
7090         (tool search): Move libtool check earlier, and look for
7091         glibtoolize for MacOS.
7092         (gnulib_tool_options): Auto-add --libtool when appropriate.
7093         Reported by Justin Clift.
7094
7095         poll: fix typo that broke test on MacOS
7096         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
7097         Reported by Justin Clift.
7098
7099         getdate: rename to get_date
7100         Note: getdate.h is not renamed, to minimize client impact.
7101         * modules/getdate: Mark obsolete.  Move old contents...
7102         * modules/get_date: ...to new module name.
7103         * modules/getdate-tests: Move...
7104         * modules/get_date-tests: ...here.
7105         * m4/getdate.m4: Move...
7106         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
7107         * lib/getdate.y: Move...
7108         * lib/get_date.y: ...here.
7109         * tests/test-getdate.c: Move...
7110         * tests/test-get_date.c: ...here.
7111         * doc/posix-functions/getdate.texi (getdate): Update name.
7112         * NEWS: Mention the change.
7113
7114 2010-09-29  Bruno Haible  <bruno@clisp.org>
7115
7116         Separate the module 'waitpid' from the module 'sys_wait'.
7117         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
7118         present.
7119         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
7120         gl_MODULE_INDICATOR_FOR_TESTS.
7121         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
7122         * modules/sys_wait (Depends-on): Remove waitpid.
7123         (Makefile.am): Substitute GNULIB_WAITPID.
7124         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
7125         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
7126         signature only if the 'waitpid' module is present.
7127         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
7128         * NEWS: Mention the change.
7129         * modules/grantpt (Depends-on): Add waitpid.
7130         * modules/wait-process (Depends-on): Likewise.
7131
7132 2010-09-29  Bruno Haible  <bruno@clisp.org>
7133
7134         More tests for module 'sys_wait'.
7135         * modules/sys_wait-c++-tests: New file.
7136         * tests/test-sys_wait-c++.cc: New file.
7137         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
7138         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
7139
7140 2010-09-29  Bruno Haible  <bruno@clisp.org>
7141
7142         New module 'waitpid'.
7143         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
7144         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
7145         Don't include <process.h>.
7146         (waitpid): Declare only, using modern idiom.
7147         * m4/waitpid.m4: New file.
7148         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
7149         * modules/waitpid: New file.
7150         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
7151         (Makefile.am): Update.
7152         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
7153
7154 2010-09-28  Bruno Haible  <bruno@clisp.org>
7155
7156         poll: Assume ANSI C.
7157         * lib/poll.c (poll): Use an ANSI C declaration.
7158
7159 2010-09-28  Bruno Haible  <bruno@clisp.org>
7160
7161         poll-h: Create poll.h on all platforms.
7162         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
7163         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
7164         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
7165         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
7166         (gl_REPLACE_POLL_H): Don't set POLL_H.
7167         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
7168         * modules/poll-h (Depends-on): Add include_next.
7169         (Makefile.am): Create poll.h unconditionally. Substitute also
7170         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
7171
7172 2010-09-28  Bruno Haible  <bruno@clisp.org>
7173
7174         Tests for module 'poll-h'.
7175         * modules/poll-h-c++-tests: New file.
7176         * tests/test-poll-h-c++.cc: New file.
7177
7178         Tests for module 'poll-h'.
7179         * modules/poll-h-tests: New file.
7180         * tests/test-poll-h.c: New file.
7181
7182 2010-09-28  Bruno Haible  <bruno@clisp.org>
7183
7184         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
7185         * modules/poll-h (Depends-on): Add 'extensions'.
7186
7187 2010-09-28  Bruno Haible  <bruno@clisp.org>
7188
7189         New module 'poll-h'.
7190         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
7191         (poll): Use modern idiom.
7192         * modules/poll-h: New file.
7193         * modules/poll (Files): Remove lib/poll.in.h.
7194         (Depends-on): Add poll-h.
7195         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
7196         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
7197         * m4/poll_h.m4: New file.
7198         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
7199         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
7200         and invoke gl_REPLACE_POLL_H.
7201         * lib/poll.c: Use common idiom.
7202         * tests/test-poll.c: Likewise.
7203         * doc/posix-headers/poll.texi: Mention the poll-h module.
7204         Suggested by Eric Blake.
7205
7206 2010-09-26  Bruno Haible  <bruno@clisp.org>
7207
7208         sys_wait: Implement WSTOPSIG.
7209         * lib/sys_wait.in.h (WSTOPSIG): New macro.
7210         Reported by Simon Josefsson.
7211
7212 2010-09-26  Simon Josefsson  <simon@josefsson.org>
7213
7214         stdlib, sys_wait: Avoid compilation error on mingw.
7215         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
7216
7217 2010-09-26  Bruno Haible  <bruno@clisp.org>
7218
7219         stdlib tests: Avoid code duplication.
7220         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
7221         * modules/sys_wait-tests (Files): Likewise.
7222         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
7223         * tests/test-stdlib.c: Include test-sys_wait.h.
7224         (main): Invoke test_sys_wait_macros.
7225         * tests/test-sys_wait.c: Include test-sys_wait.h.
7226         (main): Invoke test_sys_wait_macros.
7227
7228 2010-09-25  Simon Josefsson  <simon@josefsson.org>
7229
7230         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
7231         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
7232         sure Windows sockets are working before calling getaddrinfo.
7233         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
7234         * doc/gnulib.texi (Windows sockets): Fix typo.
7235
7236 2010-09-25  Bruno Haible  <bruno@clisp.org>
7237
7238         Tests for module 'regex-quote'.
7239         * modules/regex-quote-tests: New file.
7240         * tests/test-regex-quote.c: New file.
7241
7242         New module 'regex-quote'.
7243         * lib/regex-quote.h: New file.
7244         * lib/regex-quote.c: New file.
7245         * modules/regex-quote: New file.
7246         Suggested by Reuben Thomas <rrt@sc3d.org>.
7247
7248 2010-09-24  Bruno Haible  <bruno@clisp.org>
7249
7250         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
7251         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
7252
7253 2010-09-23  Bruno Haible  <bruno@clisp.org>
7254
7255         setenv: Relax license.
7256         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
7257         Blake.
7258         Requested by Eric Blake.
7259
7260 2010-09-22  Bruno Haible  <bruno@clisp.org>
7261
7262         termios: Relax license.
7263         * modules/termios (License): Change to LGPLv2+.
7264         Requested by Eric Blake.
7265
7266 2010-09-22  Bruno Haible  <bruno@clisp.org>
7267
7268         threadlib: Allow the package to change the default to 'no'.
7269         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
7270         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
7271         Reported by Paul Eggert.
7272
7273 2010-09-22  Pádraig Brady  <P@draigbrady.com>
7274             Bruno Haible  <bruno@clisp.org>
7275
7276         Fix endless loop in mbmemcasecoll.
7277         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
7278         byte.
7279         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
7280
7281 2010-09-22  Bruno Haible  <bruno@clisp.org>
7282
7283         Tests for module 'memcoll'.
7284         * modules/memcoll-tests: New file.
7285         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
7286
7287         memcoll, xmemcoll: Clarify size vs. length.
7288         * modules/memcoll.c (memcoll0): Clarify specification.
7289         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
7290         passed to collate_error.
7291
7292 2010-09-22  Bruno Haible  <bruno@clisp.org>
7293
7294         Tests for module 'memcasecmp'.
7295         * modules/memcasecmp-tests: New file.
7296         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
7297
7298 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
7299
7300         * lib/pthread.in.h: Add split double-inclusion guard, and include
7301         system <pthread.h> if there is one.  Use @@-style as in other
7302         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
7303         pthread.h doesn't.
7304         (pthread_mutexattr_destroy, pthread_mutexattr_init):
7305         (pthread_mutexattr_settype, pthread_mutex_trylock):
7306         New static inline functions, if there's no system <pthread.h>.
7307         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
7308         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
7309         Approximate with mutexes if the system lacks spinlocks, as in
7310         MacOS.
7311         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
7312         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
7313         @@-style.  Check for spinlocks separately.
7314         (gl_PTHREAD_DEFAULTS): New macro.
7315         * modules/pthread: Redo to use a more typical style for in.h files.
7316
7317 2010-09-21  Eric Blake  <eblake@redhat.com>
7318
7319         net_if: enhance tests
7320         * tests/test-net_if.c (main): Move signature checks earlier.
7321         Print failures to stderr.
7322         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
7323         Document the bug that we do not yet fix.
7324
7325 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
7326
7327         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
7328         about gnulib, not GSS.
7329
7330 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
7331
7332         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
7333         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
7334         for Emacs.
7335         * build-aux/pmccabe2html: Make Makefile.am example code more
7336         cut-and-paste friendly.
7337
7338 2010-09-21  Simon Josefsson  <simon@josefsson.org>
7339
7340         * tests/test-net_if.c: New file.
7341         * modules/net_if-tests: New file.
7342
7343 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
7344
7345         pthread: add pthread_spin_destroy
7346         * lib/pthread.in.h (pthread_spin_destroy): New function.
7347
7348 2010-09-19  Bruno Haible  <bruno@clisp.org>
7349
7350         gnulib-tool: Fix --help output.
7351         * gnulib-tool (func_usage): Fix help message.
7352         Reported by Reuben Thomas <rrt@sc3d.org>.
7353
7354 2010-09-18  Jim Meyering  <meyering@redhat.com>
7355
7356         maint.mk: avoid unexpanded \n in two diagnostics
7357         * top/maint.mk (sc_prohibit_always_true_header_tests):
7358         Don't use a literal \n in a halt=... assignment.  It would not be
7359         expanded, and the two \n bytes would appear in the diagnostic output
7360         rather than the desired newline.  Use halt=$$(printf ... instead.
7361         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
7362
7363 2010-09-18  Bruno Haible  <bruno@clisp.org>
7364
7365         netinet_in: Doc tweak.
7366         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
7367         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
7368
7369 2010-09-18  Jim Meyering  <meyering@redhat.com>
7370
7371         init.sh: correct an outdated comment
7372         * tests/init.sh (create_exe_shims_):  s/function/alias/
7373
7374         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
7375         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
7376         a file named "*.exe" is removed between the glob expansion and the
7377         processing of that oddly named file.
7378
7379 2010-09-17  Eric Blake  <eblake@redhat.com>
7380
7381         mirbsd: add some more support
7382         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
7383         in BSD family.
7384         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
7385         devices as OpenBSD.
7386         * m4/host-os.m4 (mirbsd): Add MirBSD.
7387
7388         tests: fix unportable assumption on sys/wait.h
7389         * tests/test-sys_wait.c (main): Relax test.
7390         * tests/test-stdlib.c (main): Likewise.
7391
7392         init.sh: accomodate directory with no .exes
7393         * tests/init.sh: Accomodate directory containing only scripts.
7394
7395         tests: avoid compiler warning
7396         * tests/test-stdlib.c (main): Use the variable.
7397
7398         fdutimens, fdutimensat: update signature, again
7399         * lib/utimens.h (gl_futimens): Delete, and move signature...
7400         (fdutimens): ...here.
7401         (fdutimensat): Rearrange signature.
7402         (lutimensat): Rename variable for clarity.
7403         * lib/fdutimensat.c (fdutimensat): Update signature.
7404         * lib/utimens.c (fdutimens): Likewise.
7405         (gl_futimens): Delete.
7406         (utimens, lutimens): Update callers.
7407         * lib/futimens.c (futimens): Likewise.
7408         * tests/test-fdutimensat.c: Likewise.
7409         * tests/test-utimens.c: Likewise.
7410         * tests/test-futimens.h: Update comment.
7411         * NEWS: Mention this.
7412         Suggested by Paul Eggert.
7413
7414 2010-09-17  Bruno Haible  <bruno@clisp.org>
7415
7416         Take over the maintenance of some older macros from Autoconf.
7417         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
7418         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
7419         GNU Autoconf.
7420         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
7421         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
7422
7423 2010-09-17  Eric Blake  <eblake@redhat.com>
7424
7425         fdutimensat: drop atflag validation
7426         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
7427         with valid fd, to close a race scenario where futimens is
7428         unsupported and FILE was replaced by a symlink.
7429         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
7430         accordingly.
7431         Suggested by Paul Eggert.
7432
7433 2010-09-16  Bruno Haible  <bruno@clisp.org>
7434
7435         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
7436         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
7437
7438 2010-09-16  Bruno Haible  <bruno@clisp.org>
7439
7440         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
7441         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
7442         login_tty exists.
7443         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
7444
7445 2010-09-16  Bruno Haible  <bruno@clisp.org>
7446
7447         login_tty: Make the replacement code work on BSD systems.
7448         * lib/login_tty.c: Include <sys/ioctl.h>.
7449         (login_tty): Use ioctl TIOCSCTTY when available.
7450         * modules/login_tty (Depends-on): Add sys_ioctl.
7451         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
7452
7453 2010-09-16  Bruno Haible  <bruno@clisp.org>
7454
7455         login_tty: Stricter unit test.
7456         * modules/login_tty-tests (Depends-on): Add tcgetsid.
7457         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
7458         and tcgetsid() after login_tty.
7459         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
7460
7461 2010-09-16  Bruno Haible  <bruno@clisp.org>
7462
7463         New module 'tcgetsid'.
7464         * lib/tcgetsid.c: New file.
7465         * m4/tcgetsid.m4: New file.
7466         * modules/tcgetsid: New file.
7467         * modules/termios (Depends-on): Add c++defs, warn-on-use.
7468         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
7469         GNULIB_TCGETSID, HAVE_TCGETSID.
7470         * lib/termios.in.h: Include <sys/types.h>.
7471         (tcgetsid): New declaration.
7472         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
7473         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
7474         * doc/posix-functions/tcgetsid.texi: Mention the new module.
7475         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
7476
7477 2010-09-16  Bruno Haible  <bruno@clisp.org>
7478
7479         Tests for module 'termios'.
7480         * modules/termios-c++-tests: New file.
7481         * modules/termios-tests: New file.
7482         * tests/test-termios-c++.cc: New file.
7483         * tests/test-termios.c: New file.
7484
7485         New module 'termios'.
7486         * modules/termios: New file.
7487         * lib/termios.in.h: New file.
7488         * m4/termios_h.m4: New file.
7489         * doc/posix-headers/termios.texi: Mention the new module.
7490
7491 2010-09-16  Eric Blake  <eblake@redhat.com>
7492
7493         fdutimensat: add an atflag parameter
7494         * lib/fdutimensat.c (fdutimensat): Add new parameter.
7495         * lib/utimens.h (fdutimensat): Update prototype.
7496         * tests/test-fdutimensat.c: Adjust test to match.
7497         * NEWS: Document the change.
7498         Suggested by Paul Eggert.
7499
7500 2010-09-16  Bruno Haible  <bruno@clisp.org>
7501
7502         Fix typos in comments.
7503         * lib/striconveh.h: Fix typo in comment.
7504         * lib/login_tty.c (login_tty): Likewise.
7505
7506 2010-09-15  Bruno Haible  <bruno@clisp.org>
7507
7508         stdlib: clarify MirBSD WEXITSTATUS bug
7509         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
7510         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
7511
7512 2010-09-15  Eric Blake  <eblake@redhat.com>
7513
7514         stdlib: work around MirBSD WEXITSTATUS bug
7515         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
7516         * modules/stdlib (Depends-on): Add sys_wait.
7517         * tests/test-sys_wait.c (main): Enhance test.
7518         * tests/test-stdlib.c (main): Likewise.
7519         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
7520
7521         docs: mention MacOS issue with WEXITSTATUS(constant)
7522         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
7523         issue.
7524         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
7525
7526         strnlen: add tests
7527         * modules/strnlen-tests: New file.
7528         * tests/test-strnlen.c: Likewise.
7529
7530 2010-09-14  Bruno Haible  <bruno@clisp.org>
7531
7532         unistr/base: Avoid link errors when module 'libunistring' is also used.
7533         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
7534         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
7535         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
7536         Declare also when HAVE_LIBUNISTRING is set.
7537         Reported by Pádraig Brady <P@draigbrady.com>.
7538
7539 2010-09-14  Eric Blake  <eblake@redhat.com>
7540
7541         test-rawmemchr: make more robust
7542         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
7543         (Depends-on, configure.ac): Add needed prerequisites to use it.
7544         * modules/memchr-tests (Files, Depends-on, configure.ac):
7545         Likewise, to avoid implicit reliance on memchr module prereqs.
7546         * tests/test-memchr.c (main): Ensure proper masking.
7547         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
7548         reads.
7549
7550         memchr: detect glibc Alpha bug
7551         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
7552         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
7553         Alpha.
7554         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
7555         * tests/test-memchr.c (main): Enhance test.
7556         Reported by Nelson H. F. Beebe.
7557
7558 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
7559
7560         fts, getcwd, glob: audit for dirfd returning -1
7561         * lib/fts.c (opendir): Remove #define; no longer used.
7562         (opendirat): New arg PDIR_FD.  All callers changed.
7563         (fts_build, _opendir2): Use new opendirat to avoid the need for
7564         dirfd, or for checking whether dirfd returns a negative value.
7565         Don't use opendir; always use openat followed by fdopendir.
7566         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
7567         it.
7568         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
7569         returns -1 here.
7570         * modules/fts (Depends-on): Remove dirfd.
7571         * modules/getcwd (Depends-on): Likewise.
7572
7573 2010-09-13  Eric Blake  <eblake@redhat.com>
7574
7575         float: fix broken MirBSD header
7576         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
7577         * doc/posix-headers/float.texi (float.h): Document it.
7578
7579 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
7580
7581         fts: use O_NOFOLLOW to avoid race condition when opening a directory
7582         * lib/fts.c (opendirat): New arg extra_flags.
7583         (__opendir2): Use it to avoid following symlinks when opening
7584         a directory, if symlinks are not supposed to be followed.  See
7585         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
7586
7587         fdopendir: preserve argument fd before returning
7588         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
7589         (fdopendir_with_dup, fd_clone_opendir): New static functions.
7590         (fdopendir): Use them, arranging for FD to be open to the same
7591         directory that it was when it started.  (It might be temporarily
7592         closed while fdopendir is running, so this not thread- or
7593         signal-safe.)  Be careful to do the right thing even when file
7594         descriptors are scarce and dup fails with errno == EMFILE.  See
7595         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
7596
7597 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
7598
7599         regex: Pass the system regex if its only problem is 32-bit regoff_t.
7600         * NEWS: Document change.
7601         * m4/regex.m4: Disable test for regoff_t size.
7602
7603 2010-09-13  Jim Meyering  <meyering@redhat.com>
7604
7605         fts: don't operate on an invalid file descriptor after failed dup
7606         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
7607         negative file descriptor.
7608
7609 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
7610
7611         savedir: add streamsavedir, deprecate fdsavedir
7612         * NEWS: Mention deprecation of fdsavedir.
7613         * lib/savedir.c (streamsavedir): New extern function, whose name
7614         ends in "savedir" to be consistent with the others.  This differs
7615         from savedirstream in that it doesn't close its argument.  The
7616         next version of GNU tar will use this instead of fdsavedir, to
7617         avoid some race conditions and conserve file descriptors.
7618         (savedirstream): Reimplement as a wrapper around streamsavedir.
7619         (fdsavedir): Add a comment deprecating this function.  As far as
7620         I know, only GNU tar used it, and GNU tar doesn't need it any more.
7621         * lib/savedir.h (streamsavedir): New decl.
7622         (fdsavedir): Add a comment deprecating this.
7623
7624 2010-09-10  Bruno Haible  <bruno@clisp.org>
7625
7626         langinfo: Fix last commit.
7627         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
7628         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
7629         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7630
7631 2010-09-10  Bruno Haible  <bruno@clisp.org>
7632
7633         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
7634         * lib/progreloc.c (O_EXEC): Define fallback.
7635
7636 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
7637
7638         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
7639         * NEWS: Document recent changes to fcntl-h.
7640         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
7641         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
7642         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
7643         Similarly for O_SEARCH; this last was already true, but not documented.
7644         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
7645         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
7646         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
7647         Likewise.
7648         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
7649         is zero, not whether it is defined.
7650         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
7651         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
7652         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
7653
7654 2010-09-10  Bruno Haible  <bruno@clisp.org>
7655
7656         langinfo, nl_langinfo: Fix for IRIX 5.3.
7657         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
7658         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
7659         HAVE_LANGINFO_YESEXPR.
7660         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
7661         HAVE_LANGINFO_YESEXPR.
7662         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
7663         HAVE_LANGINFO_T_FMT_AMPM is 0.
7664         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
7665         HAVE_LANGINFO_YESEXPR is 0.
7666         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
7667         NOEXPR.
7668         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
7669         * doc/posix-functions/nl_langinfo.texi: Likewise.
7670         Reported by Eric Blake.
7671
7672 2010-09-10  Bruno Haible  <bruno@clisp.org>
7673
7674         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
7675         * doc/glibc-functions/login_tty.texi: Mention the include file problem
7676         on FreeBSD 8.0 and OpenBSD 4.6.
7677         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
7678         * m4/pty_h.m4 (gl_PTY_H): Likewise.
7679         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
7680         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
7681         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
7682         ac_includes_default.
7683         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
7684
7685 2010-09-09  Eric Blake  <eblake@redhat.com>
7686
7687         strsignal: work around NetBSD bug
7688         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
7689         * lib/string.in.h (includes): Likewise.
7690         * doc/posix-functions/strsignal.texi (strsignal): Document the
7691         bug.
7692         Reported by Nelson H. F. Beebe.
7693
7694         gnulib-tool: work with NetBSD /bin/sh
7695         * gnulib-tool (func_cache_var, func_cache_lookup_module)
7696         (func_get_description, func_get_comment, func_get_status)
7697         (func_get_notice, func_get_applicability, func_get_filelist)
7698         (func_get_dependencies, func_get_autoconf_early_snippet)
7699         (func_get_autoconf_snippet, func_get_automake_snippet)
7700         (func_get_include_directive, func_get_link_directive)
7701         (func_get_license, func_get_maintainer, func_import): Avoid
7702         shell syntax errors from parsing syntax extensions.
7703
7704 2010-09-09  Bruno Haible  <bruno@clisp.org>
7705
7706         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
7707         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
7708         a reliable way to determine whether the 'alias' command works.
7709
7710 2010-09-08  Jim Meyering  <meyering@redhat.com>
7711
7712         init.sh: penalize a set-x-impaired shell; don't disqualify it
7713         * tests/init.sh: Too many shells corrupt application stderr when
7714         you set -x, so we can't afford to disqualify them, since at least
7715         on Irix-6.5, that would disqualify all bourne shells.
7716         Instead, use a two-pass approach.
7717         On the first pass, try to find a shell that meets the stricter
7718         condition that set -x does not corrupt stderr.
7719         If no shell meets the stricter condition, retest each candidate
7720         shell, but without that extra condition.  Finally, when
7721         VERBOSE=yes is requested and set -x might cause trouble, simply
7722         issue a warning and refrain from enabling debug output.
7723
7724 2010-09-08  Eric Blake  <eblake@redhat.com>
7725
7726         unsetenv: fix OpenBSD bug
7727         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
7728         * doc/posix-functions/unsetenv.texi (unsetenv): Update
7729         documentation.
7730         Reported by Jim Meyering.
7731
7732         strtod: work around IRIX 6.5 bug
7733         * lib/strtod.c (strtod): Reparse number on shorter string if
7734         exponent parse was invalid.
7735         * tests/test-strtod.c (main): Add check for "0x1p 2".
7736         Reported by Tom G. Christensen.
7737
7738         getopt: optimize previous patch
7739         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
7740         empty variable.  Speed up awk script.
7741         Reported by Paolo Bonzini.
7742
7743 2010-09-08  Jim Meyering  <meyering@redhat.com>
7744
7745         test.sh: disqualify shells for which set -x corrupts stderr
7746         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
7747         and OpenBSD 4.7.  They make it so with "set -x", environment settings
7748         appear in stderr output.  For example, this command:
7749             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
7750         prints "P=1" on those two systems:
7751
7752 2010-09-08  Bruno Haible  <bruno@clisp.org>
7753
7754         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
7755         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
7756         commands, because some shells ignore redirections when there is an
7757         error in the command lookup.
7758         Reported by Eric Blake.
7759
7760 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
7761
7762         * lib/regex.h: Fix a mention of `regex_compile' (should be
7763         `re_compile_pattern').
7764         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
7765         (re_set_registers): Correct name of parameter in comment.
7766
7767         * doc/regex.texi: Add documentation for missing syntax flags.
7768         Remove commented-out documentation of defunct syntax option
7769         RE_NO_EMPTY_ALTS.
7770         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
7771         Add documentation of re_set_registers.
7772         Document trick to re-use a pattern buffer by setting fastmap manually.
7773         Update documentation of struct re_pattern_buffer per public members.
7774         Uncomment documentation of equivalence class operators and
7775         collating symbol operators, since they are now implemented,
7776         Explain leftmost-longest matching in relation to alternatives.
7777         Tidy documentation of substring matching.
7778         Remove POSIX documentation, which is done better in
7779         glibc, and refer the reader there. Keep BSD API documentation, as
7780         that is not readily available elsewhere.
7781
7782 2010-09-07  Eric Blake  <eblake@redhat.com>
7783
7784         getopt: handle POSIXLY_CORRECT set but not exported
7785         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
7786         export state of POSIXLY_CORRECT, due to bash set -o posix.
7787         Reported by Dustin J. Mitchell.
7788
7789 2010-09-05  Bruno Haible  <bruno@clisp.org>
7790
7791         gnulib-tool: Highlight the changed options.
7792         * gnulib-tool (func_usage): Display the --import, --add-import,
7793         --remove-import explanations in bold font.
7794
7795 2010-09-06  Karl Berry  <karl@gnu.org>
7796
7797         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
7798
7799 2010-09-05  Bruno Haible  <bruno@clisp.org>
7800
7801         uniwidth/width: Update comment.
7802         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
7803         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
7804
7805 2010-09-05  Bruno Haible  <bruno@clisp.org>
7806
7807         isinf, isnan: Relax license.
7808         * modules/isinf (License): Change from GPL to LGPL, with consent from
7809         Ben Pfaff.
7810         * modules/isnan (License): Likewise.
7811         Requested by Ludovic Courtès.
7812
7813 2010-09-04  Bruno Haible  <bruno@clisp.org>
7814
7815         gnulib-tool: Help migration from --import to --add-import or --update.
7816         * gnulib-tool: Emit a verbose error message when --import is used
7817         without any module name.
7818
7819 2010-09-04  Bruno Haible  <bruno@clisp.org>
7820
7821         Update doc about gnulib-tool.
7822         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
7823         'gnulib-tool --update' in more detail.
7824         Reported by Eric Blake.
7825
7826 2010-09-04  Bruno Haible  <bruno@clisp.org>
7827
7828         gnulib-tool: Change --import. New options --add/remove-import.
7829         * gnulib-tool: New options --add-import, --remove-import.
7830         (func_usage): Document them.
7831         (have_associative): Define always.
7832         (func_import): In import mode, don't merge the specified settings with
7833         the cached settings. Implement remove-import mode.
7834         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
7835         Explain when to use them versus --import.
7836         (Simple update): Use --add-import instead of --import.
7837         * NEWS: Mention the change.
7838
7839 2010-09-04  Bruno Haible  <bruno@clisp.org>
7840
7841         * doc/gnulib-tool.texi (Initial import): Update paragraph about
7842         separate gnulib.mk.
7843
7844 2010-09-04  Bruno Haible  <bruno@clisp.org>
7845
7846         gnulib-tool: Don't talk about CVS any more.
7847         * gnulib-tool (func_usage, func_import): Write "version control"
7848         instead of CVS.
7849
7850 2010-09-04  Jim Meyering  <meyering@redhat.com>
7851
7852         maint.mk: avoid obscure sc_copyright_check failure in coreutils
7853         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
7854         false positives (whose names may be ill-chosen) when searching
7855         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
7856         would cause a false-positive.
7857
7858         avoid coreutils "make distcheck" failure
7859         Coreutils tests with an absolute build directory name that contains
7860         a space.  Not quoting this directory name caused a failure.
7861         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
7862         * tests/test-vc-list-files-cvs.sh: Likewise.
7863
7864 2010-09-04  Bruno Haible  <bruno@clisp.org>
7865
7866         gnulib-tool: Avoid error when run in a package without Makefile.am.
7867         * gnulib-tool: When collecting the m4dirs in a package that does not
7868         have a Makefile.am, eliminate those directories that contain no
7869         gnulib-cache.m4. Fix expression that counts these directories.
7870
7871 2010-09-04  Bruno Haible  <bruno@clisp.org>
7872
7873         update-copyright test: Improve output when perl is missing or too old.
7874         * tests/test-update-copyright.sh: Move test of Perl version down after
7875         the test whether Perl exists. Provide an explanation relating Perl's
7876         error message to Automake's SKIP: message.
7877
7878 2010-09-04  Bruno Haible  <bruno@clisp.org>
7879
7880         Don't augment PATH in TESTS_ENVIRONMENT.
7881         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
7882         set abs_aux_dir instead of augmenting PATH.
7883         * modules/vc-list-files-tests (Makefile.am): Likewise.
7884         * tests/test-update-copyright.sh: Augment PATH here.
7885         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
7886         path_prepend_.
7887         * tests/test-vc-list-files-git.sh: Likewise.
7888
7889 2010-09-04  Jim Meyering  <meyering@redhat.com>
7890
7891         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
7892         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
7893
7894 2010-09-04  Bruno Haible  <bruno@clisp.org>
7895
7896         strdup: Fix compilation error in C++ mode.
7897         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
7898         the macro.
7899
7900 2010-09-04  Bruno Haible  <bruno@clisp.org>
7901
7902         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
7903         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
7904         macro into a function.
7905         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
7906
7907 2010-09-04  Bruno Haible  <bruno@clisp.org>
7908
7909         Set PATH_SEPARATOR the same way autoconf does.
7910         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
7911         the value of PATH_SEPARATOR the same way autoconf-generated configure
7912         scripts do.
7913         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
7914         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
7915
7916 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
7917
7918         Set PATH_SEPARATOR the same way autoconf does.
7919         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
7920         the same way autoconf-generated configure scripts do.
7921         * posix-modules: Likewise.
7922
7923 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
7924
7925         hash: fix safe_hasher const typo
7926         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
7927         const; otherwise, there is a type error later.
7928
7929 2010-09-02  Jim Meyering  <meyering@redhat.com>
7930
7931         test-update-copyright.sh: require perl 5.8.0
7932         * tests/test-update-copyright.sh: Require 5.8.0,
7933         which Tom G. Christensen has confirmed is adequate,
7934         while 5.6.1 is not.
7935
7936 2010-09-02  Eric Blake  <eblake@redhat.com>
7937
7938         tests: init.sh improvements for re-exec'ing with zsh
7939         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
7940         -vx through shell re-exec.
7941         Reported by Tom G. Christensen.
7942
7943         wctype: fix typo in previous commit
7944         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
7945         Reported by Ludovic Courtès.
7946
7947 2010-09-02  Jim Meyering  <meyering@redhat.com>
7948
7949         test-update-copyright.sh: skip test if Perl is too old
7950         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
7951         Reported by Tom G. Christensen.
7952
7953 2010-09-02  Bruno Haible  <bruno@clisp.org>
7954
7955         wctype: Avoid compilation error on IRIX 6.5.30.
7956         * lib/wctype.in.h (iswblank): Declare with a replacement if
7957         REPLACE_ISWBLANK is set.
7958         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
7959         declared. Set REPLACE_ISWBLANK.
7960         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
7961         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
7962         * doc/posix-headers/wctype.texi: Likewise.
7963         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7964
7965 2010-09-01  Bruno Haible  <bruno@clisp.org>
7966
7967         New module 'socketlib'.
7968         * modules/socketlib: New file.
7969         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
7970         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
7971         * modules/sockets (Depends-on): Add socketlib.
7972         Suggested by Sam Steingold <sds@gnu.org>.
7973
7974 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
7975
7976         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
7977
7978         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
7979         when one needs search access to a directory but not read access.
7980         On systems where it is available, it works in some cases where
7981         O_RDONLY does not, namely on directories that are searchable but
7982         not readable, and which need only to be searchable.  If O_SEARCH
7983         is not available, fall back to the traditional method of using
7984         O_RDONLY.
7985
7986         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
7987         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
7988         when opening a directory that needs only to be searchable.
7989         * lib/chdir-safer.c (chdir_no_follow): Likewise.
7990         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
7991         * lib/openat-proc.c (openat_proc_name): Likewise.
7992         * lib/openat.c (openat_needs_fchdir): Likewise.
7993         * lib/save-cwd.c (save_cwd): Likewise.
7994         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
7995
7996 2010-08-28  Bruno Haible  <bruno@clisp.org>
7997
7998         New module 'host-cpu-c-abi'.
7999         * modules/host-cpu-c-abi: New file.
8000         * m4/host-cpu-c-abi.m4: New file, based on part of
8001         clisp/src/m4/general.m4.
8002         Requested by Sam Steingold <sds@gnu.org>.
8003
8004 2010-08-31  Eric Blake  <eblake@redhat.com>
8005         and Jim Meyering  <meyering@redhat.com>
8006
8007         hash: factor, and guard against misbehaving hasher function
8008         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
8009         of table->hasher's return value.  Also protect against a hash value
8010         so large that adding it to table->bucket results in a NULL pointer.
8011         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
8012         Use it in place of open-coded check-and-abort.
8013
8014 2010-08-30  Bruno Haible  <bruno@clisp.org>
8015
8016         hash: silence spurious clang warning
8017         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
8018         Reported by Eric Blake.
8019
8020 2010-08-30  Eric Blake  <eblake@redhat.com>
8021
8022         strstr, memmem, strcasestr: avoid leaked shell message
8023         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
8024         FreeBSD.
8025         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
8026         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
8027
8028         tests: silence clang warning
8029         * tests/test-malloca.c (do_allocation): Avoid dead store.
8030
8031 2010-08-29  Bruno Haible  <bruno@clisp.org>
8032
8033         gettext: Fix recent mistake.
8034         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
8035
8036 2010-08-29  Bruno Haible  <bruno@clisp.org>
8037
8038         selinux-h: Offer a --without-selinux option.
8039         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
8040         --without-selinux was specified, skip all tests and define
8041         HAVE_SELINUX_SELINUX_H to 0.
8042         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
8043         set LIB_SELINUX to empty.
8044         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
8045         gl_LIBSELINUX. If --without-selinux was specified, replace
8046         selinux/context.h.
8047         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
8048
8049 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8050             Bruno Haible  <bruno@clisp.org>
8051
8052         Make the module 'realloc-gnu' work again on AIX and OSF/1.
8053         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
8054         of HAVE_REALLOC.
8055         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
8056         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
8057         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
8058         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
8059
8060 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8061             Bruno Haible  <bruno@clisp.org>
8062
8063         Make the module 'calloc-gnu' work again on AIX and OSF/1.
8064         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
8065         HAVE_CALLOC.
8066         * lib/xmalloc.c: Update accordingly.
8067         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
8068         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
8069         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
8070
8071 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8072             Bruno Haible  <bruno@clisp.org>
8073
8074         Make the module 'malloc-gnu' work again on AIX and OSF/1.
8075         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
8076         HAVE_MALLOC.
8077         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
8078         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
8079         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
8080
8081 2010-08-29  Bruno Haible  <bruno@clisp.org>
8082
8083         Update modules list.
8084         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
8085         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
8086         (String handling <string.h>): Add astrxfrm.
8087         (File system functions): Add readlinkat.
8088
8089 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8090
8091         Tests for module 'realloc-gnu'.
8092         * modules/realloc-gnu-tests: New file.
8093         * tests/test-realloc-gnu.c: New file.
8094
8095         Tests for module 'calloc-gnu'.
8096         * modules/calloc-gnu-tests: New file.
8097         * tests/test-calloc-gnu.c: New file.
8098
8099         Tests for module 'malloc-gnu'.
8100         * modules/malloc-gnu-tests: New file.
8101         * tests/test-malloc-gnu.c: New file.
8102
8103 2010-08-28  Bruno Haible  <bruno@clisp.org>
8104
8105         Rename module 'realloc' -> 'realloc-gnu'.
8106         * modules/realloc-gnu: New file, copied from modules/realloc.
8107         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
8108         obsolete.
8109         * modules/mgetgroups (Depends-on): Update.
8110         * doc/posix-functions/realloc.texi: Update.
8111         * NEWS: Mention the change.
8112
8113         Rename module 'calloc' -> 'calloc-gnu'.
8114         * modules/calloc-gnu: New file, copied from modules/calloc.
8115         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
8116         obsolete.
8117         * doc/posix-functions/calloc.texi: Update.
8118         * NEWS: Mention the change.
8119
8120         Rename module 'malloc' -> 'malloc-gnu'.
8121         * modules/malloc-gnu: New file, copied from modules/malloc.
8122         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
8123         obsolete.
8124         * modules/argp (Depends-on): Update.
8125         * modules/regex (Depends-on): Update.
8126         * doc/posix-functions/malloc.texi: Update.
8127         * NEWS: Mention the change.
8128
8129 2010-08-28  Eric Blake  <eblake@redhat.com>
8130
8131         pread, pwrite: add missing dependency
8132         * modules/pread (Depends-on): Add extensions.
8133         * modules/pwrite (Depends-on): Likewise.
8134
8135 2010-08-28  Bruno Haible  <bruno@clisp.org>
8136
8137         unistr/u*-strchr: Fix tests dependencies.
8138         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
8139         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
8140         Reported by Ian Beckwith <ianb@erislabs.net>.
8141
8142 2010-08-28  Bruno Haible  <bruno@clisp.org>
8143
8144         read-file: Don't occupy too much unused memory.
8145         * lib/read-file.c (fread_file): Shrink the buffer at the end.
8146
8147 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
8148             Eric Blake  <eblake@redhat.com>
8149             Bruno Haible  <bruno@clisp.org>
8150
8151         read-file: Avoid memory reallocations with regular files.
8152         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
8153         (fread_file): With regular files, use the remaining length as the
8154         initial buffer size.  Check against overflow.
8155         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
8156         sys_stat.
8157
8158 2010-08-28  Bruno Haible  <bruno@clisp.org>
8159
8160         ftello: Relax license.
8161         * modules/ftello (License): Relax to LGPLv2+.
8162         Reported by Eric Blake.
8163
8164 2010-08-28  Bruno Haible  <bruno@clisp.org>
8165
8166         Avoid relocwrapper link errors due to gnulib replacement functions.
8167         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
8168         function.
8169         Reported by Ben Pfaff <blp@cs.stanford.edu>.
8170
8171 2010-08-28  Bruno Haible  <bruno@clisp.org>
8172
8173         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
8174         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
8175         defined.
8176         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
8177         Suggested by Eric Blake.
8178
8179 2010-08-28  Bruno Haible  <bruno@clisp.org>
8180
8181         sys_socket, netdb: Ensure socklen_t gets defined.
8182         * modules/sys_socket (Depends-on): Add socklen.
8183         * modules/netdb (Depends-on): Likewise.
8184         * modules/getaddrinfo (Depends-on): Remove socklen.
8185         * modules/getsockopt (Depends-on): Likewise.
8186         * modules/setsockopt (Depends-on): Likewise.
8187         * tests/test-sys_socket.c: Check that socklen_t is defined.
8188         * tests/test-netdb.c: Likewise.
8189         * m4/socklen.m4: Update comments.
8190         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8191
8192 2010-08-27  Eric Blake  <eblake@redhat.com>
8193
8194         login_tty: add missing dependency
8195         * modules/login_tty (Depends-on): Add pty.
8196
8197 2010-08-26  Eric Blake  <eblake@redhat.com>
8198
8199         lib-symbol-versions: fix m4 quoting
8200         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
8201         format for AC_LINK_IFELSE.
8202
8203         glob: fix compile test
8204         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
8205
8206         btowc: fix missing file
8207         * modules/btowc (Files): Also ship locale-fr.m4.
8208
8209         lseek: fix link test
8210         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
8211         AC_LINK_IFELSE.
8212
8213         include_next: silence autoconf 2.68 warning
8214         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
8215         AC_COMPILE_IFELSE as special.
8216         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
8217         autoconf < 2.68.
8218
8219         acl: fix compilation test
8220         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
8221         AC_COMPILE_IFELSE.
8222
8223 2010-08-26  Bruno Haible  <bruno@clisp.org>
8224
8225         Modernize AC_TRY_RUN invocations.
8226         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
8227         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
8228         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
8229         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
8230         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
8231         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
8232         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
8233         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
8234         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
8235         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
8236         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
8237         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
8238         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
8239         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
8240         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
8241         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
8242         gl_MBRLEN_NUL_RETVAL): Likewise.
8243         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
8244         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
8245         Likewise.
8246         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
8247         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
8248         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
8249         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
8250         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
8251         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
8252         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
8253         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
8254         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
8255         Likewise.
8256         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
8257         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
8258         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
8259         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
8260         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
8261         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
8262         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
8263         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
8264         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
8265         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
8266
8267 2010-08-26  Bruno Haible  <bruno@clisp.org>
8268
8269         Modernize AC_TRY_LINK invocations.
8270         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
8271         AC_TRY_LINK.
8272         * m4/argp.m4 (gl_ARGP): Likewise.
8273         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
8274         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
8275         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
8276         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
8277         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
8278         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
8279         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
8280         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
8281         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
8282         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
8283         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
8284         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
8285         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
8286         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
8287         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
8288         * m4/hostent.m4 (gl_HOSTENT): Likewise.
8289         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
8290         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
8291         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
8292         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
8293         Likewise.
8294         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
8295         Likewise.
8296         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
8297         Likewise.
8298         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
8299         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
8300         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
8301         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
8302         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
8303         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
8304         * m4/servent.m4 (gl_SERVENT): Likewise.
8305         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
8306         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
8307         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
8308         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
8309         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
8310         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
8311         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
8312         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
8313         * modules/tsearch-tests (configure.ac): Likewise.
8314
8315 2010-08-26  Bruno Haible  <bruno@clisp.org>
8316
8317         Modernize AC_TRY_COMPILE invocations.
8318         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
8319         AC_TRY_COMPILE.
8320         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
8321         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
8322         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
8323         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
8324         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
8325         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
8326         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
8327         * m4/lock.m4 (gl_LOCK): Likewise.
8328         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
8329         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
8330         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
8331         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
8332         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
8333         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
8334         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
8335         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
8336         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
8337         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
8338         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
8339         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
8340         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
8341         extraneous semicolon.
8342
8343 2010-08-26  Jim Meyering  <meyering@redhat.com>
8344
8345         stat-time: relax license LGPL
8346         * modules/stat-time (License): Change from GPL to LGPL,
8347         with consent from all contributors, for use in libguile.
8348         Requested by Ludovic Courtès.
8349
8350 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
8351
8352         poll: return immediately on POLLHUP.
8353         * lib/poll.c (poll): Always set timeout before wait_timeout is
8354         computed.
8355
8356 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8357
8358         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
8359         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
8360         rmdir ("dir/.//"), unlinkat.
8361
8362 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
8363
8364         stdbool: avoid spurious failure with modern xlc
8365         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
8366
8367 2010-08-24  Bruno Haible  <bruno@clisp.org>
8368
8369         getloadavg: simplify code
8370         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
8371         gl_have_func. Update comments.
8372
8373 2010-08-24  Eric Blake  <eblake@redhat.com>
8374
8375         getloadavg: don't define SVR4 on cygwin
8376         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
8377         only define SVR4 when -lkvm is required.
8378         Reported by Yaakov Selkowitz.
8379
8380 2010-08-24  Bruno Haible  <bruno@clisp.org>
8381
8382         priv-set: fix comment
8383         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
8384
8385 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
8386
8387         priv-set: fix comments
8388         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
8389         to match code, as suggested by David Bartley in:
8390         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
8391
8392 2010-08-23  Eric Blake  <eblake@redhat.com>
8393
8394         stdbool: avoid rejecting clang
8395         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
8396         * tests/test-stdbool.c: Enable more tests if using the system
8397         <stdbool.h> instead of the gnulib replacement.
8398         (main): Move xlc bug test to a runtime test for all compilers.
8399         Reported by Anders Kaseorg.
8400
8401         argz: fix shell quoting issue
8402         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
8403         Reported by Charles Wilson.
8404
8405 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
8406             Erik Faye-Lund <kusmabite@gmail.com>
8407
8408         poll, select: handle ERROR_BROKEN_PIPE.
8409         * lib/poll.c (win32_compute_revents): Return POLLHUP when
8410         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
8411         * lib/select.c (win32_compute_revents): Do not mark a pipe
8412         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
8413
8414 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
8415
8416         fts: allow compilation with C++
8417         * lib/fts_.h: Specify extern "C" linkage with C++.
8418
8419 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8420
8421         Fix gnulib-tool sed script de-commentation for AIX sed.
8422         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
8423         sed.
8424
8425 2010-08-17  Eric Blake  <eblake@redhat.com>
8426
8427         test-stddef: test for (some) offsetof bugs
8428         * tests/test-stddef.c: Enhance test to ensure correct type of
8429         offsetof.
8430         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
8431         that we are not fixing at this time.
8432
8433 2010-08-15  Bruno Haible  <bruno@clisp.org>
8434
8435         stpncpy: Allow stpncpy to be defined as a macro.
8436         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
8437         if it's already correctly declared.
8438         * lib/string.in.h (stpncpy): Undefine before redefining.
8439         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
8440
8441 2010-08-14  Bruno Haible  <bruno@clisp.org>
8442
8443         Rename module 'memxfrm' to 'amemxfrm'.
8444         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
8445         (amemxfrm): Renamed from memxfrm.
8446         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
8447         (amemxfrm): Renamed from memxfrm.
8448         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
8449         * NEWS: Mention the change.
8450         * MODULES.html.sh (String handling <string.h>): Update.
8451         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
8452         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
8453         * lib/unicase/u16-casexfrm.c: Likewise.
8454         * lib/unicase/u32-casexfrm.c: Likewise.
8455         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
8456         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
8457         * lib/uninorm/u16-normxfrm.c: Likewise.
8458         * lib/uninorm/u32-normxfrm.c: Likewise.
8459         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
8460         memxfrm.
8461         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
8462         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
8463         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
8464         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
8465         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
8466         Suggested by Paul Eggert.
8467
8468 2010-08-14  Bruno Haible  <bruno@clisp.org>
8469
8470         Tests for module 'astrxfrm'.
8471         * modules/astrxfrm-tests: New file.
8472         * tests/test-astrxfrm.c: New file.
8473
8474         New module 'astrxfrm'.
8475         * lib/astrxfrm.h: New file.
8476         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
8477         * modules/astrxfrm: New file.
8478
8479 2010-08-14  Reuben Thomas <rrt@sc3d.org>
8480
8481         regex: Tweak doc.
8482         * doc/regex.texi (Overview): Don't mention regex.c.
8483         (GNU Regular Expression Compiling): Likewise.
8484         (Match-end-of-line Operator): Mention 'not_eol'.
8485
8486 2010-08-14  Brian Gough  <bjg@gnu.org>
8487             Bruno Haible  <bruno@clisp.org>
8488
8489         git-merge-changelog: add doc relating to use with bzr and hg.
8490         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
8491
8492 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
8493
8494         pthread: fix pthread.h creation for srcdir != builddir
8495         * modules/pthread (Makefile.am): Fix the rule to work also in a
8496         non-srcdir build.
8497
8498 2010-08-13  Karl Berry  <karl@gnu.org>
8499
8500         * doc/regex.texi (Predefined Syntaxes): @smallexample.
8501         * doc/posix-*/*: force line break before @url of POSIX
8502         specifications.
8503         Suggested by Werner Lemberg.
8504
8505 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
8506
8507         strtod: fix const diagnostic
8508         * lib/strtod.c (strtod): Don't assign const char * to char *,
8509         as this elicits a warning from GCC when warnings are enabled.
8510
8511 2010-08-10  Pádraig Brady <P@draigbrady.com>
8512         and Eric Blake  <eblake@redhat.com>
8513
8514         copy-acl: ignore ENOTSUP on HP-UX
8515         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
8516         so that it is available for HP-UX.
8517         * lib/copy-acl.c (qcopy_acl): Use it.
8518         Reported by Patrick M. Callahan.
8519
8520 2010-08-10  Eric Blake  <eblake@redhat.com>
8521
8522         open, chown: relax license
8523         * modules/open (License): Change to LGPLv2+, with consent by all
8524         authors, for use in augeas.
8525         * modules/chown (License): Likewise.
8526         * modules/lchown (Likewise): Likewise.
8527         Requested by Adam Stokes.
8528
8529 2010-08-09  Karl Berry  <karl@gnu.org>
8530
8531         * build-aux/ar-lib: new file, import from Automake.
8532         * config/srclist.txt: autocheck for updates.
8533
8534 2010-08-09  Eric Blake  <eblake@redhat.com>
8535
8536         readlinkat: adjust client modules
8537         * modules/areadlinkat (Depends-on): Use readlinkat, not
8538         symlinkat.
8539         * modules/areadlinkat-with-size (Depends-on): Likewise.
8540
8541         mknod: be more vocal about danger of running tests as root
8542         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
8543         root, since that is just asking for problems.
8544         Suggested by Bruno Haible, based on a report by Rainer Tammer.
8545
8546         readlinkat: split into its own module
8547         * modules/symlinkat: Split readlinkat...
8548         * modules/readlinkat: ...into separate module.
8549         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
8550         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
8551         * lib/symlinkat.c (readlinkat): Move...
8552         * lib/readlinkat.c: ...into new file.
8553         * modules/symlinkat-tests: Split readlinkat test...
8554         * modules/readlinkat-tests: ...into separate module.
8555         * tests/test-symlinkat.c: Split...
8556         * tests/test-readlinkat.c: ...into new file.
8557         * NEWS: Document the split.
8558         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
8559         * lib/unistd.in.h (readlinkat): Likewise.
8560         Suggested by Bruno Haible.
8561
8562 2010-08-08  Bruno Haible  <bruno@clisp.org>
8563
8564         memxfrm: Speed up.
8565         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
8566         that usually only one call to strxfrm is necessary for each string
8567         part.
8568         Reported by Paul Eggert <eggert@cs.ucla.edu>.
8569
8570 2010-08-07  Karl Berry  <karl@gnu.org>
8571
8572         * doc/posix-headers/limits.texi,
8573         * doc/posix-functions/malloc.texi,
8574         * doc/posix-functions/strsignal.texi: missing @item.
8575         * doc/ld-version-script.texi: spurious leading i.
8576         * doc/regex.texi (Interval Operators): no commas inside @var.
8577
8578 2010-08-01  Bruno Haible  <bruno@clisp.org>
8579
8580         Integrate the regex documentation.
8581         * doc/gnulib.texi: Define 'cn' index.
8582         (Regular expressions): New a chapter that includes regex.texi and
8583         regexprops-generic.texi.
8584         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
8585         syntax.
8586
8587         Whitespace cleanup.
8588         * doc/regex.texi: Remove trailing spaces.
8589
8590         Add regex documentation.
8591         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
8592         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
8593         Written by Kathy A. Hargreaves and Karl Berry.
8594
8595 2010-08-01  Bruno Haible  <bruno@clisp.org>
8596
8597         link: Update documentation.
8598         * doc/posix-functions/link.texi: Update regarding Solaris.
8599
8600 2010-07-31  Bruno Haible  <bruno@clisp.org>
8601
8602         Update modules list.
8603         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
8604         (String handling <string.h>): Add memcmp2, memxfrm.
8605         (Container data structures): Add xlist, xsublist, xoset.
8606         (Core language properties): Add alignof, unused-parameter.
8607         (Process control, Numeric conversion functions <stdlib.h>): Renamed
8608         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
8609         (Unibyte characters <ctype.h>): New section.
8610         (String handling <string.h>): New section.
8611         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
8612         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
8613         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
8614         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
8615         tan, tanh, tanl, y0, y1, yn.
8616         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
8617         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
8618         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
8619         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
8620         unlockpt, vdprintf, vdprintf-posix.
8621         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
8622         (File system functions): Add concat-filename, sys_file, sys_ioctl,
8623         xconcat-filename.
8624         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
8625         getdtablesize, pipe2, pipe2-safer.
8626         (Security): New section.
8627         (Networking functions): Add accept4.
8628         (Signal handling): Add sigpipe.
8629         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
8630         mbmemcasecoll.
8631         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
8632         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
8633         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
8634         pipe-filter-ii.
8635         (Misc): Add argp-version-etc, login_tty, parse-duration.
8636
8637 2010-07-31  Bruno Haible  <bruno@clisp.org>
8638
8639         Improve doc in MODULES.html.
8640         * modules/linkat (Description): Add the word "function".
8641         * modules/mkfifo (Description): Likewise.
8642         * modules/mknod (Description): Likewise.
8643         * modules/remove (Description): Likewise.
8644         * modules/renameat (Description): Likewise.
8645         * modules/stat (Description): Likewise.
8646         * modules/symlink (Description): Likewise.
8647         * modules/unlink (Description): Likewise.
8648
8649 2010-07-31  Bruno Haible  <bruno@clisp.org>
8650
8651         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
8652         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
8653         option --enable/disable-c++ instead of --enable/disable-cxx.
8654         * NEWS: Mention the change.
8655
8656 2010-07-31  Bruno Haible  <bruno@clisp.org>
8657
8658         readlink, areadlink: Relax test a bit.
8659         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
8660         alternative to ENOTDIR.
8661         * tests/test-areadlink.h (test_areadlink): Likewise.
8662         Reported by Rainer Tammer.
8663
8664 2010-07-31  Bruno Haible  <bruno@clisp.org>
8665
8666         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
8667         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
8668         character, perform the search using U_STRCHR.
8669         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
8670         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
8671         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
8672         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
8673         Suggested by Paolo Bonzini.
8674
8675 2010-07-31  Bruno Haible  <bruno@clisp.org>
8676
8677         unistr/u*-strstr: Fix dependencies.
8678         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
8679         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
8680         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
8681
8682 2010-07-31  Bruno Haible  <bruno@clisp.org>
8683
8684         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
8685         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
8686         the beginning of the loop.
8687         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
8688         cases in 'switch' statement.
8689
8690         unistr/u8-strchr: Fix several bugs.
8691         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
8692         the string. When not found, return NULL, not a pointer near the end.
8693
8694         More tests for unistr/u8-strchr.
8695         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
8696         that the function does not read past the first occurrence of the byte
8697         being searched.
8698         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
8699         * tests/unistr/test-u16-strchr.c (main): New function.
8700         * tests/unistr/test-u32-strchr.c (main): New function.
8701
8702 2010-07-31  Bruno Haible  <bruno@clisp.org>
8703
8704         posix-modules: Ignore backup files of documentation files.
8705         * posix-modules: grep only through files named *.texi.
8706
8707 2010-07-31  Bruno Haible  <bruno@clisp.org>
8708
8709         symlinkat: Fix documentation.
8710         * doc/posix-functions/readlinkat.texi: Fix module name.
8711
8712 2010-07-31  Bruno Haible  <bruno@clisp.org>
8713
8714         fchownat: Replace also when chown has the trailing slash bug.
8715         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
8716         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
8717         introduced on 2010-04-10.
8718         Reported by Rainer Tammer.
8719
8720 2010-07-31  Bruno Haible  <bruno@clisp.org>
8721
8722         linkat: Work around AIX 7.1 bug.
8723         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
8724         whether linkat handles trailing slash correctly. If not, replace linkat
8725         and define LINKAT_TRAILING_SLASH_BUG.
8726         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
8727         check whether (fd1,file1) points to a directory if file1 or file2 ends
8728         in a slash. Code taken from lib/link.c.
8729         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
8730         Reported by Rainer Tammer.
8731
8732 2010-07-31  Bruno Haible  <bruno@clisp.org>
8733
8734         Correctly determine whether pow is available in libc on AIX 7 with xlc.
8735         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
8736         This disables an xlc optimization that was causing wrong test results.
8737         Reported by Rainer Tammer.
8738
8739 2010-07-31  Bruno Haible  <bruno@clisp.org>
8740
8741         iconv: Work around AIX 6.1..7.1 bug.
8742         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
8743         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
8744         cross-compiling, guess no on all versions of AIX.
8745         Reported by Rainer Tammer.
8746
8747 2010-07-31  Bruno Haible  <bruno@clisp.org>
8748
8749         readlink: Relax test a bit.
8750         * tests/test-readlink.h (test_readlink): Allow different errno value
8751         when readlink is called with a file name that ends in / and refers to
8752         a file.
8753         Suggested by Eric Blake.
8754         Reported by Rainer Tammer.
8755
8756 2010-07-31  Bruno Haible  <bruno@clisp.org>
8757
8758         copysign: Does not require -lm on glibc systems.
8759         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
8760         gl_COMMON_DOUBLE_MATHFUNC.
8761         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
8762
8763 2010-07-31  Bruno Haible  <bruno@clisp.org>
8764
8765         duplocale: Work around AIX 7.1 bug.
8766         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
8767         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
8768         * lib/duplocale.c (rpl_duplocale): Update comment.
8769         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
8770         Reported by Rainer Tammer.
8771
8772 2010-07-30  Bruno Haible  <bruno@clisp.org>
8773
8774         dirfd: Avoid link error on AIX 7.1.
8775         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
8776         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
8777         exist, set REPLACE_DIRFD.
8778         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
8779         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
8780         * doc/posix-functions/dirfd.texi: Update.
8781         Reported by Rainer Tammer.
8782
8783 2010-07-30  Eric Blake  <eblake@redhat.com>
8784
8785         strtod: next round of AIX fixes
8786         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
8787         exponent.
8788         * tests/test-strtod.c (main): Enhance tests.
8789         * doc/posix-functions/strtod.texi (strtod): Document next bug.
8790         Reported by Rainer Tammer.
8791
8792         futimens: fix configure check
8793         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
8794         Reported by Bruno Haible.
8795
8796 2010-07-30  Bruno Haible  <bruno@clisp.org>
8797
8798         getline: Update regarding AIX.
8799         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
8800         Reported by Rainer Tammer.
8801
8802 2010-07-30  Bruno Haible  <bruno@clisp.org>
8803
8804         wcwidth: Drop replacement on AIX 7.
8805         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
8806         AIX 7.
8807         Reported by Rainer Tammer.
8808
8809 2010-07-30  Bruno Haible  <bruno@clisp.org>
8810
8811         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
8812         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
8813         a 'char *'.
8814         Reported by Rainer Tammer.
8815
8816 2010-07-30  Bruno Haible  <bruno@clisp.org>
8817
8818         unlink: Update regarding AIX.
8819         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
8820         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
8821         Reported by Rainer Tammer.
8822
8823 2010-07-30  Bruno Haible  <bruno@clisp.org>
8824
8825         symlink: Update regarding AIX.
8826         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
8827         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
8828         Reported by Rainer Tammer.
8829
8830 2010-07-30  Bruno Haible  <bruno@clisp.org>
8831
8832         strndup: Update regarding AIX.
8833         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
8834         AIX 7.
8835         Reported by Rainer Tammer.
8836
8837 2010-07-30  Bruno Haible  <bruno@clisp.org>
8838
8839         stat: Update regarding AIX.
8840         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
8841         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
8842         Reported by Rainer Tammer.
8843
8844 2010-07-30  Bruno Haible  <bruno@clisp.org>
8845
8846         truncl: Fix autoconf test.
8847         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
8848         whether truncl works.
8849         Reported by Rainer Tammer.
8850
8851 2010-07-30  Bruno Haible  <bruno@clisp.org>
8852
8853         round: Update regarding AIX.
8854         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
8855         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
8856         Reported by Rainer Tammer.
8857
8858 2010-07-30  Bruno Haible  <bruno@clisp.org>
8859
8860         rename: Update regarding AIX.
8861         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
8862         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
8863         Reported by Rainer Tammer.
8864
8865 2010-07-30  Bruno Haible  <bruno@clisp.org>
8866
8867         printf.m4: Update regarding AIX.
8868         * m4/printf.m4: Update comments regarding AIX.
8869         Reported by Rainer Tammer.
8870
8871 2010-07-30  Bruno Haible  <bruno@clisp.org>
8872
8873         iconv: Update regarding AIX.
8874         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
8875         AIX 7.
8876         Reported by Rainer Tammer.
8877
8878 2010-07-30  Bruno Haible  <bruno@clisp.org>
8879
8880         getopt: Update regarding AIX.
8881         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
8882         no on AIX.
8883         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
8884         Reported by Rainer Tammer.
8885
8886 2010-07-30  Bruno Haible  <bruno@clisp.org>
8887
8888         ldexpl; Update regarding AIX.
8889         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
8890         on AIX 7.
8891         Reported by Rainer Tammer.
8892
8893 2010-07-30  Bruno Haible  <bruno@clisp.org>
8894
8895         frexpl: Update regarding AIX.
8896         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
8897         on AIX 7.
8898         Reported by Rainer Tammer.
8899
8900 2010-07-30  Bruno Haible  <bruno@clisp.org>
8901
8902         open, fopen: Update regarding AIX.
8903         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
8904         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
8905         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
8906         * doc/posix-functions/fopen.texi: Likewise.
8907         Reported by Rainer Tammer.
8908
8909 2010-07-30  Bruno Haible  <bruno@clisp.org>
8910
8911         chown: Update doc regarding AIX.
8912         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
8913         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
8914         Reported by Rainer Tammer.
8915
8916 2010-07-30  Eric Blake  <eblake@redhat.com>
8917
8918         strtod: fix bug in replacement function on AIX
8919         * lib/strtod.c (strtod): Special case broken "0x" parse in
8920         underlying strtod.
8921         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
8922         * doc/posix-functions/strtod.texi (strtod): Likewise.
8923         Reported by Rainer Tammer.
8924
8925 2010-07-30  Bruno Haible  <bruno@clisp.org>
8926
8927         mbrlen: Fix cross-compilation guess for AIX.
8928         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
8929         guess. Leftover from 2008-12-22.
8930
8931 2010-07-30  Bruno Haible  <bruno@clisp.org>
8932
8933         mbrtowc: Fix cross-compilation guess for AIX.
8934         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
8935         guess. Leftover from 2008-12-21.
8936
8937 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
8938
8939         init.sh: work around trap limitation of some shells
8940         * tests/init.sh (setup_): Move exit trap outside of shell function.
8941
8942 2010-07-29  Eric Blake  <eblake@redhat.com>
8943
8944         strtod: aid debugging
8945         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
8946         understanding why strtod is rejected.
8947
8948 2010-07-28  Bruno Haible  <bruno@clisp.org>
8949
8950         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
8951         * lib/unistr/u8-chr.c: Include <string.h>.
8952         * tests/unistr/test-u8-chr.c: Likewise.
8953         * tests/unistr/test-u16-chr.c: Likewise.
8954         * tests/unistr/test-u32-chr.c: Likewise.
8955         * tests/unistr/test-u8-strchr.c: Likewise.
8956         * tests/unistr/test-u16-strchr.c: Likewise.
8957         * tests/unistr/test-u32-strchr.c: Likewise.
8958         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
8959         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
8960         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
8961         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
8962
8963 2010-07-28  Bruno Haible  <bruno@clisp.org>
8964
8965         Use spaces for indentation, not tabs.
8966         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
8967
8968 2010-07-27  Bruno Haible  <bruno@clisp.org>
8969
8970         mbspcasecmp: Fix function specification.
8971         * lib/string.in.h (mbspcasecmp): Fix specification comment.
8972         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
8973         Reported by Eric Blake <eblake@redhat.com>.
8974
8975 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
8976
8977         timespec: use cast and not conditional, as truncation isn't possible
8978         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
8979         instead of a conditional.  Comment about the situation in more detail.
8980         This undoes most of the 2009-10-29 patch.
8981
8982 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
8983
8984         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
8985         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
8986         * lib/unistr/u8-strchr.c: Likewise.
8987         * modules/unistr/u8-chr: Depend on memchr.
8988
8989         unistr/u*-strchr: add tests
8990         * modules/unistr/u8-strchr-tests: New file.
8991         * modules/unistr/u16-strchr-tests: New file.
8992         * modules/unistr/u32-strchr-tests: New file.
8993         * tests/unistr/test-strchr.h: New file.
8994         * tests/unistr/test-u8-strchr.c: New file.
8995         * tests/unistr/test-u16-strchr.c: New file.
8996         * tests/unistr/test-u32-strchr.c: New file.
8997
8998         unistr/u*-chr: test multibyte sequences more
8999         * tests/unistr/test-chr.h: Do complete testing of the characters in the
9000         test vector.
9001         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
9002         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
9003         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
9004
9005         unistr/u*-chr: test multibyte sequences
9006         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
9007
9008         unistr/u*-chr: prepare for multibyte tests
9009         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
9010         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
9011         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
9012         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
9013         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
9014         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
9015
9016 2010-07-18  Bruno Haible  <bruno@clisp.org>
9017
9018         unistr/u8-strchr: Optimize non-ASCII argument case.
9019         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
9020         because the first byte often matches anyway.
9021         Reported by Pádraig Brady <P@draigbrady.com>.
9022
9023 2010-07-15  Karl Berry  <karl@gnu.org>
9024
9025         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
9026
9027 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
9028
9029         getcwd: on Solaris, work better if ancestors are inaccessible
9030         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
9031         buffer and size, try again with a large buffer.  This works better
9032         on Solaris, since its getcwd succeeds even if the path to the root
9033         is inaccessible, and this is helpful in common cases such as .zfs
9034         hidden directories.  Problem reported by J Chapman Flack in
9035         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
9036         Use system getcwd if it's declared, not merely if it's partly
9037         working; use the partly-working test only to avoid needless effort
9038         if the system getcwd fails.
9039         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
9040         comment that was already obsolete and is now even more obsolete.
9041         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
9042         now might call strdup.
9043
9044 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
9045
9046         pthread: Add enough so that coreutils/src/sort.c compiles.
9047         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
9048         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
9049         gnulib. Include <sched.h> and <time.h>, as per POSIX.
9050         Include <sys/types.h>, in case it defines pthread_t.
9051         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
9052         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
9053         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
9054         (pthread_rwlockattr_t, pthread_spinlock_t):
9055         New typedefs, if HAVE_PTHREAD_T is not defined.
9056         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
9057         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
9058         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
9059         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
9060         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
9061         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
9062         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
9063         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
9064         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
9065         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
9066         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
9067         New macros.
9068         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
9069         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
9070         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
9071         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
9072         (pthread_spin_unlock): New dummy functions.
9073         (pthread_create): Return EAGAIN; don't set errno.
9074         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
9075         require AC_C_INLINE.
9076         * modules/pthread (Depends-on): Add sched, time.
9077         (pthread.h): Use AM_V_GEN.
9078
9079 2010-07-13  Bruno Haible  <bruno@clisp.org>
9080
9081         striconveh: Don't malloc memory if the result buffer is sufficient.
9082         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
9083         buffer if its size is sufficient.
9084         Reported by Ludovic Courtès <ludo@gnu.org>.
9085
9086 2010-07-13  Bruno Haible  <bruno@clisp.org>
9087
9088         strtod: Add safety check.
9089         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
9090
9091 2010-07-12  Bruno Haible  <bruno@clisp.org>
9092
9093         Unify tests that set gl_cv_func_ldexpl_no_libm.
9094         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
9095         gl_FUNC_LDEXPL.
9096         (gl_FUNC_LDEXPL): Invoke it.
9097         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
9098
9099 2010-07-12  Bruno Haible  <bruno@clisp.org>
9100
9101         Unify tests that set gl_cv_func_ldexp_no_libm.
9102         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
9103         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
9104         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
9105         (configure.ac): Simply invoke gl_FUNC_LDEXP.
9106         * modules/strtod (Files): Add m4/ldexp.m4.
9107
9108 2010-07-12  Bruno Haible  <bruno@clisp.org>
9109
9110         Unify tests that set gl_cv_func_frexpl_no_libm.
9111         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
9112         gl_FUNC_FREXPL_NO_LIBM.
9113         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
9114         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
9115
9116 2010-07-12  Bruno Haible  <bruno@clisp.org>
9117
9118         Unify tests that set gl_cv_func_frexp_no_libm.
9119         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
9120         gl_FUNC_FREXP_NO_LIBM.
9121         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
9122         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
9123
9124 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
9125
9126         memcoll: clarify sizes versus lengths, document better, and tweak perf
9127         * lib/memcoll.c (strcoll_loop, memcoll0):
9128         Improve quality of descriptive comments.  Name variables
9129         consistently as to whether they are lengths (which do not include
9130         terminating null) versus sizes (which do).
9131         * lib/xmemcoll.c (xmemcoll0): Likewise.
9132         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
9133         returned when s1size == 0; this is easier to compile and saves
9134         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
9135
9136 2010-07-12  Bruno Haible  <bruno@clisp.org>
9137
9138         Tests for module '_Exit'.
9139         * modules/_Exit-tests: New file.
9140         * tests/test-_Exit.sh: New file.
9141         * tests/test-_Exit.c: New file.
9142
9143         New module '_Exit'.
9144         * lib/stdlib.in.h (__attribute__): New macro.
9145         (_Exit): New declaration.
9146         * lib/_Exit.c: New file.
9147         * m4/_Exit.m4: New file.
9148         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
9149         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
9150         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
9151         * modules/_Exit: New file.
9152         * tests/test-stdlib-c++.cc (_Exit): Check signature.
9153         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
9154
9155 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
9156
9157         strtod: make it more-accurate typically, and don't require libm
9158         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
9159         Include limits.h.  Don't include string.h.
9160         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
9161         (locale_isspace): New function, so that no casts are needed to
9162         check whether *s is a space.
9163         (ldexp): Provide an unused dummy if not available.
9164         (scale_radix_exp, parse_number, underlying_strtod): New functions.
9165         (strtod): Use them.  This implementation prefers to use the
9166         underlying strtod if available, falling back on our own code
9167         only to fix known bugs.  This is more likely to produce an
9168         accurate result.  Also, it avoids the use of libm functions.
9169         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
9170         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
9171         was absent, but it caused a test failure with coreutils.
9172         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
9173         with libm.
9174         * modules/strtod (Makefile.am, Link): libm is no longer needed.
9175         * modules/strtod-tests (Makefile.am): Likewise.
9176
9177 2010-07-11  Pádraig Brady  <P@draigBrady.com>
9178             Bruno Haible  <bruno@clisp.org>
9179
9180         unistr/u8-strchr: Optimize ASCII argument case.
9181         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
9182
9183 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
9184
9185         (x)memcoll: minor tweaks
9186         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
9187         is after the type that it qualifies.
9188         (memcoll0): Likewise.
9189         * lib/memcoll.h (memcoll0): Likewise.
9190         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
9191         * lib/xmemcoll.h (xmemcoll0): Likewise.
9192         * lib/memcoll.c (memcoll0): Correct the comment.  This function
9193         differs from memcoll in that the NUL byte is part of the argument.
9194         Omit the abort-checks, as performance is a real issue here.  Plus,
9195         the checks were wrong anyway (an off-by-one error).  Omit local
9196         variable 'diff', as it's a bit clearer that way.
9197         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
9198         no longer needed.
9199
9200 2010-07-08  Chen Guo <chenguo4@yahoo.com>
9201
9202         (x)memcoll: speedup when input is known to be NUL delimited
9203         * lib/memcoll.c: Include stdlib.
9204         (memcoll0) New function.
9205         (strcoll_loop) New function, refactored for use in both memcoll
9206         and memcoll0.
9207         * lib/memcoll.h: Add prototype for memcoll0.
9208         * lib/xmemcoll.c: (xmemcoll0) New function.
9209         (collate_error) New function, refactored for use in both xmemcoll
9210         and xmemcoll0.
9211         * lib/xmemcoll.h: Add prototype for xmemcoll0.
9212         * m4/memcoll.m4: add inline invocation.
9213
9214 2010-07-06  Pádraig Brady  <P@draigBrady.com>
9215
9216         * build-aux/bootstrap: Remove any local translations
9217         from the translation project synchronization directory,
9218         so that local only translations are not distributed.
9219
9220 2010-07-04  Bruno Haible  <bruno@clisp.org>
9221
9222         fsusage: Clarify which code applies to which platforms.
9223         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
9224         platform.
9225         * lib/fsusage.c (get_fs_usage): Likewise.
9226
9227 2010-07-04  Bruno Haible  <bruno@clisp.org>
9228
9229         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
9230         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
9231         Reported by Martin Lambers <marlam@marlam.de>.
9232
9233 2010-07-04  Jim Meyering  <meyering@redhat.com>
9234
9235         hash: once again explicitly disallow insertion of NULL
9236         * lib/hash.c (hash_insert0): Reinstate just-removed test:
9237         inserting a NULL pointer cannot work with these functions.
9238         Add a comment with details.
9239         This reverts part of the 2010-07-01 commit, 5bef1a35
9240         "hash: extend module to deal with non-pointer keys".
9241
9242 2010-07-01  Bruno Haible  <bruno@clisp.org>
9243
9244         stdbool: Update doc.
9245         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
9246         Info from Christian Weisgerber <naddy@mips.inka.de>.
9247
9248 2010-07-01  Jim Meyering  <meyering@redhat.com>
9249
9250         hash: extend module to deal with non-pointer keys
9251         * lib/hash.c (hash_insert0): New interface, much like hash_insert
9252         but that allows insertion of non-pointer entries.
9253         Do not disallow an ENTRY value of NULL.
9254         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
9255         * lib/hash.h (hash_insert0): Declare.
9256
9257 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
9258
9259         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
9260         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
9261         not present (i.e. with autoconf 2.59 and when using gettextize, not
9262         gnulib), require AC_GNU_SOURCE instead.
9263
9264 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
9265
9266         idpriv-drop: Fix tests.
9267         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
9268         not to the test-idpriv-droptemp program.
9269
9270 2010-06-29  Bruno Haible  <bruno@clisp.org>
9271
9272         string: Fix syntax error with g++ 2.96.
9273         * lib/string.in.h (__pure__): Remove definition.
9274         (_GL_ATTRIBUTE_PURE): New macro.
9275         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
9276         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
9277         Reported by Christian Weisgerber <naddy@mips.inka.de>.
9278
9279 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
9280
9281         unitypes: Fix bug introduced on 2010-05-18.
9282         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
9283
9284 2010-06-22  Eric Blake  <eblake@redhat.com>
9285
9286         memmem: slight optimization
9287         * lib/str-two-way.h (critical_factorization): Update comments.
9288         Reduce work during factorization phase.
9289         Reported by Carlos Bueno <carlos@bueno.org>.
9290
9291 2010-06-21  Bruno Haible  <bruno@clisp.org>
9292
9293         Fix HAVE_CALLOC_POSIX misnomer.
9294         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
9295         !HAVE_CALLOC_POSIX.
9296         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
9297         HAVE_CALLOC_POSIX.
9298         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
9299         instead of HAVE_CALLOC_POSIX.
9300         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
9301         HAVE_CALLOC_POSIX.
9302
9303         Use modern idiom for calloc() replacement.
9304         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
9305         AC_FUNC_CALLOC.
9306         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
9307         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
9308         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
9309         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
9310         (gl_REPLACE_CALLOC): New macro.
9311
9312 2010-06-21  Bruno Haible  <bruno@clisp.org>
9313
9314         Fix HAVE_REALLOC_POSIX misnomer.
9315         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
9316         !HAVE_REALLOC_POSIX.
9317         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
9318         HAVE_REALLOC_POSIX.
9319         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
9320         instead of HAVE_REALLOC_POSIX.
9321         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
9322         HAVE_REALLOC_POSIX.
9323
9324         Use modern idiom for realloc() replacement.
9325         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
9326         AC_FUNC_REALLOC.
9327         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
9328         Autoconf's AC_FUNC_REALLOC.
9329         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
9330         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
9331         (gl_REPLACE_REALLOC): New macro.
9332         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
9333
9334 2010-06-21  Bruno Haible  <bruno@clisp.org>
9335
9336         Fix HAVE_MALLOC_POSIX misnomer.
9337         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
9338         !HAVE_MALLOC_POSIX.
9339         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
9340         HAVE_MALLOC_POSIX.
9341         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
9342         instead of HAVE_MALLOC_POSIX.
9343         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
9344         HAVE_MALLOC_POSIX.
9345
9346         Use modern idiom for malloc() replacement.
9347         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
9348         AC_FUNC_MALLOC.
9349         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
9350         Autoconf's AC_FUNC_MALLOC.
9351         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
9352         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
9353         (gl_REPLACE_MALLOC): New macro.
9354         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
9355
9356 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
9357
9358         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
9359         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
9360         This macro takes 3 arguments, not 4.
9361
9362 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
9363
9364         ipv6: fix detection under mingw
9365         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
9366         in6_addr.
9367
9368 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
9369
9370         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
9371         that strtod() works when cross-compiling to a glibc version known
9372         to work.
9373
9374 2010-06-15  Bruno Haible  <bruno@clisp.org>
9375
9376         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
9377
9378 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
9379
9380         select: Correct timeout.
9381         * lib/select.c (rpl_select): Compute wait_timeout correctly.
9382
9383 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
9384
9385         git-version-gen: init shell var to avoid env var influence
9386         * build-aux/git-version-gen (v): Init shell var to empty.
9387
9388 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
9389
9390         priv-set: Don't assume that priv.h exists merely because getppriv does.
9391         See Jan Andersen's bug report about AIX 5L in
9392         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
9393         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
9394         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
9395         * lib/priv-set.h: Likewise.
9396         * tests/test-priv-set.c: Likewise.
9397
9398 2010-06-13  Bruno Haible  <bruno@clisp.org>
9399
9400         relocatable: Make it easier to test whether to install wrappers.
9401         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
9402         RELOCATABLE_VIA_WRAPPER.
9403
9404 2010-06-13  Bruno Haible  <bruno@clisp.org>
9405
9406         gnulib-tool: Display specified modules and dependencies differently.
9407         * gnulib-tool (func_show_module_list): New function.
9408         (func_import, func_create_testdir): Invoke it.
9409         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
9410
9411 2010-06-13  Bruno Haible  <bruno@clisp.org>
9412
9413         gnulib-tool: Align code of func_import and func_create_testdir.
9414         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
9415         specified_modules.
9416
9417 2010-06-12  Jim Meyering  <meyering@redhat.com>
9418
9419         test-inttostr: avoid spurious failure on Solaris 9
9420         * tests/test-inttostr.c (main): Skip the test when snprintf fails
9421         to accept "%ju".  Reported by Bruno Haible.
9422
9423 2010-06-11  Jim Meyering  <meyering@redhat.com>
9424
9425         test-sys_socket: mark variables as used more readably
9426         * tests/test-sys_socket.c (main): Mark otherwise unused variables
9427         as "used" explicitly via (void) statement casts.  This is more
9428         readable than using them in an artificial return expression.
9429         Suggestion from Bruno Haible.
9430
9431 2010-06-11  Bruno Haible  <bruno@clisp.org>
9432
9433         Avoid some more warnings from "gcc -Wwrite-strings".
9434         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
9435         to 'const char *'.
9436         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
9437         * tests/test-c-strcasestr.c (main): Likewise.
9438         * tests/test-mbscasestr1.c (main): Likewise.
9439         * tests/test-mbscasestr2.c (main): Likewise.
9440         * tests/test-memmem.c (main): Likewise.
9441         * tests/test-strstr.c (main): Likewise.
9442         * tests/test-strcasestr.c (main): Likewise.
9443
9444 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9445
9446         init.sh: change framework_failure_ to fail with status 99, not 1
9447         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
9448         automake's parallel-tests rule that this is an unexpected failure,
9449         even if the test is listed in XFAIL_TESTS.
9450
9451 2010-06-11  Jim Meyering  <meyering@redhat.com>
9452
9453         test-inttostr: avoid warnings about 4-6KB literal strings
9454         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
9455         Include "macros.h", for its definition of ASSERT.
9456         (CK): s/assert/ASSERT/
9457         * modules/inttostr-tests (Files): Add macros.h.
9458
9459         init.sh: don't use $ME_ or skip_ before they are defined
9460         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
9461         their first uses.  Also hoist their companions: warn_, fail_,
9462         framework_failure_, $stderr_fileno.  Prompted by a patch from
9463         Stefano Lattarini.
9464
9465         test-sys_socket: avoid set-but-not-used warnings from gcc
9466         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
9467         avoid warning about set-but-not-used variables.
9468
9469         test-xvasprintf: avoid 'const' discard warnings
9470         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
9471         "const" when assigning from literal strings.
9472         (test_xasprintf): Add "void" in function argument list to placate
9473         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
9474
9475         tests: avoid compilation warnings in argmatch and exclude tests...
9476         in packages that define ARGMATCH_DIE_DECL, like coreutils.
9477         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
9478         Since it always exits, declare with the "noreturn" attribute.
9479         * tests/test-argmatch.c: Likewise.
9480
9481         tests: avoid 'const' discard warnings in mbsstr tests
9482         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
9483         * tests/test-mbsstr2.c (main): Likewise.
9484
9485         test-verify: avoid warning from gcc's -Wmissing-declarations
9486         * tests/test-verify.c (function): Declare to be static.
9487
9488         test-inttostr.c: include <string.h> for use of strcmp
9489         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
9490
9491         test-linkat: avoid failed assertion on "other" architectures
9492         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
9493         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
9494         sparc: https://bugs.launchpad.net/bugs/591968
9495
9496 2010-06-11  Jim Meyering  <meyering@redhat.com>
9497
9498         printf.m4: avoid autoconf's "Expanded Before Required" warning
9499         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
9500         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
9501         autoconf warning.
9502
9503 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
9504
9505         Replacement header templates are now named with ".in", not "_".
9506         * doc/gnulib-intro.texi: Correct.
9507
9508 2010-06-10  Jim Meyering  <meyering@redhat.com>
9509
9510         inttostr-tests: depend on snprintf, not snprintf-posix
9511         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
9512         snprintf-posix, to avoid this aclocal failure:
9513           missing file gnulib-tests/vasnprintf.c
9514           configure.ac:45: error: expected source file, required through \
9515           AC_LIBSOURCES, not found
9516
9517 2010-06-10  Jim Meyering  <meyering@redhat.com>
9518
9519         inttostr: add a new function, inttostr, and tests
9520         The namesake function was not available.  The existence of the
9521         template file, inttostr.c makes its addition nontrivial.
9522         * lib/anytostr.c: Rename from inttostr.c.
9523         (anytostr): Rename from inttostr.
9524         * lib/inttostr.c: New file.
9525         * modules/inttostr (Files): Add anytostr.c.
9526         (Makefile.am): Set lib_SOURCES instead of ...
9527         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
9528         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
9529         * lib/offtostr.c: Likewise.
9530         * lib/uinttostr.c: Likewise.
9531         * lib/umaxtostr.c: Likewise.
9532         * modules/inttostr-tests: New file.
9533         * tests/test-inttostr.c: New file.  Test these functions.
9534
9535 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
9536             Bruno Haible  <bruno@clisp.org>
9537
9538         Add "Extending Gnulib" chapter to manual.
9539         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
9540         chapter.
9541         (Extending Gnulib): New chapter.
9542         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
9543         chapter.
9544
9545 2010-06-09  Bruno Haible  <bruno@clisp.org>
9546
9547         Avoid relocwrapper link errors due to gnulib replacement functions.
9548         * lib/areadlink.c: Use the system's malloc, realloc functions.
9549         (areadlink): Set errno to ENOMEM explicitly.
9550         * modules/areadlink (Depends-on): Remove malloc-posix.
9551         Reported by Ben Pfaff <blp@cs.stanford.edu>.
9552
9553 2010-06-09  Bruno Haible  <bruno@clisp.org>
9554
9555         Avoid relocwrapper link errors due to gnulib replacement functions.
9556         * lib/canonicalize-lgpl.c: Use the system's malloc function.
9557         * lib/malloca.c: Likewise.
9558         * lib/relocatable.c: Likewise.
9559         * lib/progreloc.c: Use the system's malloc, sprintf functions.
9560         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
9561         * lib/setenv.c: Use the system's malloc, realloc functions.
9562         * lib/strerror.c: Use the system's sprintf function.
9563         Reported by Ben Pfaff <blp@cs.stanford.edu>.
9564
9565 2010-06-04  Bruno Haible  <bruno@clisp.org>
9566
9567         Prefer documented low-level autoconf macro names.
9568         * m4/lib-link.m4: Use m4_translit instead of translit.
9569         * m4/environ.m4: Likewise.
9570         * m4/mathfunc.m4: Likewise.
9571         * m4/onceonly.m4: Likewise.
9572         * m4/stdint.m4: Likewise.
9573         Suggested by Eric Blake.
9574
9575 2010-06-04  Martin Lambers  <marlam@marlam.de>
9576             Bruno Haible  <bruno@clisp.org>
9577
9578         havelib: Allow library names with '+' characters.
9579         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
9580         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
9581
9582 2010-06-09  Bruno Haible  <bruno@clisp.org>
9583
9584         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
9585         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
9586         realloc failed.
9587
9588 2010-06-08  Peter Simons  <simons@cryp.to>
9589
9590         maint.mk: make the news-check rule more configurable
9591         * top/maint.mk (news-check-lines-spec) New variable.
9592         (news-check): Use "sed -n 1,10p" in place of "head".
9593
9594 2010-06-07  Jim Meyering  <meyering@redhat.com>
9595
9596         do-release-commit-and-tag: fix typo in --help
9597         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
9598
9599         regex: avoid new dead-code warning with gcc-4.6.0
9600         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
9601         if-block containing a while-loop.  It's been unused for at least
9602         5 years.
9603
9604 2010-06-05  Bruno Haible  <bruno@clisp.org>
9605
9606         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
9607         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
9608
9609 2010-06-04  Bruno Haible  <bruno@clisp.org>
9610
9611         Update to GNU gettext 0.18.1.
9612         * modules/gettext (configure.ac): Require gettext infrastructure from
9613         version 0.18.1.
9614
9615 2010-06-03  Bruno Haible  <bruno@clisp.org>
9616
9617         Don't use AC_LIBOBJ with file names in subdirectories.
9618         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
9619         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
9620         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
9621         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
9622         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
9623         gl_LIBUNISTRING_LIBSOURCE.
9624         (Makefile.am): Augment lib_SOURCES here, conditionally.
9625         * NEWS: Drop requirement for Automake option 'subdir-objects'.
9626
9627 2010-06-03  Bruno Haible  <bruno@clisp.org>
9628
9629         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
9630         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
9631         expansion does not end with a newline.
9632         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
9633         unnecessary newline.
9634
9635 2010-06-03  Bruno Haible  <bruno@clisp.org>
9636
9637         Reduce dependencies.
9638         * tests/test-quotearg.h: New file, extracted from
9639         tests/test-quotearg.c.
9640         * tests/test-quotearg-simple.c: New file, extracted from
9641         tests/test-quotearg.c.
9642         * tests/test-quotearg.c: Don't include <ctype.h>.
9643         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
9644         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
9645         use_quote_double_quotes, use_quotearg_colon): Moved to
9646         tests/test-quotearg.h.
9647         (results_g, flag_results, custom_quotes, custom_results): Moved
9648         to tests/test-quotearg-simple.c.
9649         (main): Moved the part that does not depend on gettext to
9650         tests/test-quotearg-simple.c. Return 77 if the test cannot be
9651         performed.
9652         * modules/quotearg-simple: New file.
9653         * modules/quotearg-simple-tests: New file.
9654         * modules/quotearg (Depends-on): Add quotearg-simple.
9655         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
9656         (Files): Add tests/test-quotearg.h.
9657         Reported by Paolo Bonzini.
9658
9659 2010-06-03  Bruno Haible  <bruno@clisp.org>
9660
9661         Reduce dependencies.
9662         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
9663
9664 2010-06-03  Bruno Haible  <bruno@clisp.org>
9665
9666         time: Undefine more broken macros.
9667         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
9668         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
9669         Reported by Eric Blake.
9670
9671 2010-06-03  Bruno Haible  <bruno@clisp.org>
9672
9673         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
9674         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
9675         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
9676         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
9677         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
9678         Reported by Ludovic Courtès <ludo@gnu.org>.
9679
9680 2010-06-02  Eric Blake  <eblake@redhat.com>
9681
9682         time: work with mingw + pthreads-win32 library
9683         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
9684         if timespec is defined only in pthread.h.
9685         * modules/time (Makefile.am): Substitute it.
9686         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
9687         <pthread.h>, when needed.
9688         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
9689         from the library.
9690
9691 2010-05-31  Bruno Haible  <bruno@clisp.org>
9692
9693         Avoid expanding two macros in the wrong order.
9694         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
9695         gl_LIBUNISTRING if it is defined.
9696         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
9697         autoconf >= 2.64.
9698         Reported by Ludovic Courtès <ludo@gnu.org>.
9699
9700 2010-05-27  Jim Meyering  <meyering@redhat.com>
9701
9702         maint.mk: also prohibit "#undef" of always-defined symbols
9703         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
9704         Allow more than one space before the symbol name.
9705         (sc_prohibit_always-defined_macros): Use grep's -E, now that
9706         the regexp uses alternation.
9707
9708 2010-05-26  Eric Blake  <eblake@redhat.com>
9709
9710         maint.mk: avoid echo -e
9711         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
9712         Convert all uses of echo -* to printf.
9713         Reported by Matthias Bolte.
9714
9715 2010-05-25  Bruno Haible  <bruno@clisp.org>
9716
9717         Update to GNU gettext 0.18, part 2.
9718         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
9719         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
9720
9721 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9722
9723         Add missing include in test-pwrite.c.
9724         * tests/test-pwrite.c: Include string.h, for strcmp.
9725
9726 2010-05-24  Bruno Haible  <bruno@clisp.org>
9727
9728         * NEWS: Mention requirement for Automake option 'subdir-objects'.
9729
9730 2010-05-24  Bruno Haible  <bruno@clisp.org>
9731
9732         Don't use conversion with transliteration in u{8,16,32}_strcoll.
9733         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
9734         iconveh_error argument.
9735         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
9736         U_STRCONV_TO_LOCALE.
9737         * lib/unistr/u16-strcoll.c: Likewise.
9738         * lib/unistr/u32-strcoll.c: Likewise.
9739         * modules/unistr/u8-strcoll (Depends-on): Add
9740         uniconv/u8-strconv-to-enc, localcharset. Remove
9741         uniconv/u8-strconv-to-locale.
9742         (configure.ac): Bump version number.
9743         * modules/unistr/u16-strcoll (Depends-on): Add
9744         uniconv/u16-strconv-to-enc, localcharset. Remove
9745         uniconv/u16-strconv-to-locale.
9746         (configure.ac): Bump version number.
9747         * modules/unistr/u32-strcoll (Depends-on): Add
9748         uniconv/u32-strconv-to-enc, localcharset. Remove
9749         uniconv/u32-strconv-to-locale.
9750         (configure.ac): Bump version number.
9751
9752 2010-05-24  Bruno Haible  <bruno@clisp.org>
9753
9754         Avoid a test failure on NetBSD 5.0.
9755         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
9756         an iconv() bug.
9757
9758 2010-05-24  Bruno Haible  <bruno@clisp.org>
9759
9760         Adjust #include directive style.
9761         * modules/regex (Includes): Recommend to write <regex.h>.
9762
9763 2010-05-24  Bruno Haible  <bruno@clisp.org>
9764
9765         regex: Don't require alloca.
9766         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
9767         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
9768         only inside if (0).
9769
9770 2010-05-23  Jim Meyering  <meyering@redhat.com>
9771
9772         test-renameat.c: include <sys/stat.h>
9773         * tests/test-renameat.c: Include <sys/stat.h>; required for
9774         definition of S_IS* macros.
9775
9776 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
9777
9778         Update maintainer documentation for 'relocatable-prog' module.
9779         * doc/relocatable-maint.texi: Update.
9780         Comments by Bruno Haible.
9781
9782 2010-05-23  Bruno Haible  <bruno@clisp.org>
9783
9784         git-merge-changelog: Enable --split-merged-entry by default.
9785         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
9786         (usage): Don't mention this option any more.
9787         Reported by Ralf Wildenhues.
9788
9789 2010-05-23  Jim Meyering  <meyering@redhat.com>
9790
9791         test-pwrite: do not leave behind a test file named "out"
9792         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
9793         The trivial-looking use of init.sh is really necessary.
9794         It ensures that the temporary file, "out", is created in
9795         a temporary directory, and removed upon termination.
9796         * tests/test-pwrite.sh: Re-add file.
9797         * modules/pwrite-tests: Reference it.
9798
9799 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9800
9801         Fix output redirection buglet in init.sh.
9802         * tests/init.sh: Fix redirection of stderr.
9803
9804 2010-05-20  Simon Josefsson  <simon@josefsson.org>
9805
9806         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
9807
9808 2010-05-17  Simon Josefsson  <simon@josefsson.org>
9809
9810         * modules/valgrind-tests: New file.
9811         * m4/valgrind-tests.m4: New file.
9812         * doc/valgrind-tests.texi: New file.
9813         * doc/gnulib.texi (Running self-tests under valgrind): New
9814         section.
9815
9816 2010-05-19  Bruno Haible  <bruno@clisp.org>
9817
9818         Clean up dead code in recent commit.
9819         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
9820         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
9821         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
9822         Suggested by Paolo Bonzini.
9823
9824 2010-05-19  Bruno Haible  <bruno@clisp.org>
9825
9826         Avoid valgrind error reports from libunistring.
9827         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
9828         * modules/libunistring (Files): Add it.
9829         * modules/libunistring-optional (Files): Likewise.
9830
9831 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
9832             Bruno Haible  <bruno@clisp.org>
9833
9834         New module 'libunistring-optional'.
9835         * modules/libunistring-optional: New file.
9836         * m4/libunistring-base.m4: New file.
9837         * m4/libunistring-optional.m4: New file.
9838         * lib/unicase.in.h: Renamed from lib/unicase.h.
9839         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
9840         * lib/unictype.in.h: Renamed from lib/unictype.h.
9841         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
9842         * lib/uniname.in.h: Renamed from lib/uniname.h.
9843         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
9844         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
9845         * lib/unistr.in.h: Renamed from lib/unistr.h.
9846         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
9847         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
9848         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
9849         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
9850         gl_LIBUNISTRING. If the library was found, determine the installed
9851         version and set LIBUNISTRING_VERSION.
9852         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
9853         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
9854         handle a configuration option --with-included-libunistring.
9855         * modules/libunistring (Files): Add m4/absolute-header.m4.
9856         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
9857         Add m4/libunistring-base.m4.
9858         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
9859         (Makefile.am): Build unicase.h from unicase.in.h.
9860         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
9861         Add m4/libunistring-base.m4.
9862         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
9863         (Makefile.am): Build uniconv.h from uniconv.in.h.
9864         * modules/unictype/base (Files): Use unictype.in.h instead of
9865         unictype.h. Add m4/libunistring-base.m4.
9866         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
9867         (Makefile.am): Build unictype.h from unictype.in.h.
9868         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
9869         Add m4/libunistring-base.m4.
9870         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
9871         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
9872         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
9873         Add m4/libunistring-base.m4.
9874         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
9875         (Makefile.am): Build uniname.h from uniname.in.h.
9876         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
9877         Add m4/libunistring-base.m4.
9878         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
9879         (Makefile.am): Build uninorm.h from uninorm.in.h.
9880         * modules/unistdio/base (Files): Use unistdio.in.h instead of
9881         unistdio.h. Add m4/libunistring-base.m4.
9882         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
9883         (Makefile.am): Build unistdio.h from unistdio.in.h.
9884         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
9885         Add m4/libunistring-base.m4.
9886         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
9887         (Makefile.am): Build unistr.h from unistr.in.h.
9888         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
9889         Add m4/libunistring-base.m4.
9890         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
9891         (Makefile.am): Build unitypes.h from unitypes.in.h.
9892         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
9893         Add m4/libunistring-base.m4.
9894         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
9895         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
9896         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
9897         uniwidth.h. Add m4/libunistring-base.m4.
9898         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
9899         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
9900         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
9901         instead of augmenting lib_SOURCES.
9902         * modules/unicase/empty-suffix-context: Likewise.
9903         * modules/unicase/locale-language: Likewise.
9904         * modules/unicase/tolower: Likewise.
9905         * modules/unicase/totitle: Likewise.
9906         * modules/unicase/toupper: Likewise.
9907         * modules/unicase/u8-casecmp: Likewise.
9908         * modules/unicase/u8-casecoll: Likewise.
9909         * modules/unicase/u8-casefold: Likewise.
9910         * modules/unicase/u8-casexfrm: Likewise.
9911         * modules/unicase/u8-ct-casefold: Likewise.
9912         * modules/unicase/u8-ct-tolower: Likewise.
9913         * modules/unicase/u8-ct-totitle: Likewise.
9914         * modules/unicase/u8-ct-toupper: Likewise.
9915         * modules/unicase/u8-is-cased: Likewise.
9916         * modules/unicase/u8-is-casefolded: Likewise.
9917         * modules/unicase/u8-is-lowercase: Likewise.
9918         * modules/unicase/u8-is-titlecase: Likewise.
9919         * modules/unicase/u8-is-uppercase: Likewise.
9920         * modules/unicase/u8-prefix-context: Likewise.
9921         * modules/unicase/u8-suffix-context: Likewise.
9922         * modules/unicase/u8-tolower: Likewise.
9923         * modules/unicase/u8-totitle: Likewise.
9924         * modules/unicase/u8-toupper: Likewise.
9925         * modules/unicase/u16-casecmp: Likewise.
9926         * modules/unicase/u16-casecoll: Likewise.
9927         * modules/unicase/u16-casefold: Likewise.
9928         * modules/unicase/u16-casexfrm: Likewise.
9929         * modules/unicase/u16-ct-casefold: Likewise.
9930         * modules/unicase/u16-ct-tolower: Likewise.
9931         * modules/unicase/u16-ct-totitle: Likewise.
9932         * modules/unicase/u16-ct-toupper: Likewise.
9933         * modules/unicase/u16-is-cased: Likewise.
9934         * modules/unicase/u16-is-casefolded: Likewise.
9935         * modules/unicase/u16-is-lowercase: Likewise.
9936         * modules/unicase/u16-is-titlecase: Likewise.
9937         * modules/unicase/u16-is-uppercase: Likewise.
9938         * modules/unicase/u16-prefix-context: Likewise.
9939         * modules/unicase/u16-suffix-context: Likewise.
9940         * modules/unicase/u16-tolower: Likewise.
9941         * modules/unicase/u16-totitle: Likewise.
9942         * modules/unicase/u16-toupper: Likewise.
9943         * modules/unicase/u32-casecmp: Likewise.
9944         * modules/unicase/u32-casecoll: Likewise.
9945         * modules/unicase/u32-casefold: Likewise.
9946         * modules/unicase/u32-casexfrm: Likewise.
9947         * modules/unicase/u32-ct-casefold: Likewise.
9948         * modules/unicase/u32-ct-tolower: Likewise.
9949         * modules/unicase/u32-ct-totitle: Likewise.
9950         * modules/unicase/u32-ct-toupper: Likewise.
9951         * modules/unicase/u32-is-cased: Likewise.
9952         * modules/unicase/u32-is-casefolded: Likewise.
9953         * modules/unicase/u32-is-lowercase: Likewise.
9954         * modules/unicase/u32-is-titlecase: Likewise.
9955         * modules/unicase/u32-is-uppercase: Likewise.
9956         * modules/unicase/u32-prefix-context: Likewise.
9957         * modules/unicase/u32-suffix-context: Likewise.
9958         * modules/unicase/u32-tolower: Likewise.
9959         * modules/unicase/u32-totitle: Likewise.
9960         * modules/unicase/u32-toupper: Likewise.
9961         * modules/unicase/ulc-casecmp: Likewise.
9962         * modules/unicase/ulc-casecoll: Likewise.
9963         * modules/unicase/ulc-casexfrm: Likewise.
9964         * modules/uniconv/u8-conv-from-enc: Likewise.
9965         * modules/uniconv/u8-conv-to-enc: Likewise.
9966         * modules/uniconv/u8-strconv-from-enc: Likewise.
9967         * modules/uniconv/u8-strconv-from-locale: Likewise.
9968         * modules/uniconv/u8-strconv-to-enc: Likewise.
9969         * modules/uniconv/u8-strconv-to-locale: Likewise.
9970         * modules/uniconv/u16-conv-from-enc: Likewise.
9971         * modules/uniconv/u16-conv-to-enc: Likewise.
9972         * modules/uniconv/u16-strconv-from-enc: Likewise.
9973         * modules/uniconv/u16-strconv-from-locale: Likewise.
9974         * modules/uniconv/u16-strconv-to-enc: Likewise.
9975         * modules/uniconv/u16-strconv-to-locale: Likewise.
9976         * modules/uniconv/u32-conv-from-enc: Likewise.
9977         * modules/uniconv/u32-conv-to-enc: Likewise.
9978         * modules/uniconv/u32-strconv-from-enc: Likewise.
9979         * modules/uniconv/u32-strconv-from-locale: Likewise.
9980         * modules/uniconv/u32-strconv-to-enc: Likewise.
9981         * modules/uniconv/u32-strconv-to-locale: Likewise.
9982         * modules/unictype/bidicategory-byname: Likewise.
9983         * modules/unictype/bidicategory-name: Likewise.
9984         * modules/unictype/bidicategory-of: Likewise.
9985         * modules/unictype/bidicategory-test: Likewise.
9986         * modules/unictype/block-list: Likewise.
9987         * modules/unictype/block-test: Likewise.
9988         * modules/unictype/category-C: Likewise.
9989         * modules/unictype/category-Cc: Likewise.
9990         * modules/unictype/category-Cf: Likewise.
9991         * modules/unictype/category-Cn: Likewise.
9992         * modules/unictype/category-Co: Likewise.
9993         * modules/unictype/category-Cs: Likewise.
9994         * modules/unictype/category-L: Likewise.
9995         * modules/unictype/category-Ll: Likewise.
9996         * modules/unictype/category-Lm: Likewise.
9997         * modules/unictype/category-Lo: Likewise.
9998         * modules/unictype/category-Lt: Likewise.
9999         * modules/unictype/category-Lu: Likewise.
10000         * modules/unictype/category-M: Likewise.
10001         * modules/unictype/category-Mc: Likewise.
10002         * modules/unictype/category-Me: Likewise.
10003         * modules/unictype/category-Mn: Likewise.
10004         * modules/unictype/category-N: Likewise.
10005         * modules/unictype/category-Nd: Likewise.
10006         * modules/unictype/category-Nl: Likewise.
10007         * modules/unictype/category-No: Likewise.
10008         * modules/unictype/category-P: Likewise.
10009         * modules/unictype/category-Pc: Likewise.
10010         * modules/unictype/category-Pd: Likewise.
10011         * modules/unictype/category-Pe: Likewise.
10012         * modules/unictype/category-Pf: Likewise.
10013         * modules/unictype/category-Pi: Likewise.
10014         * modules/unictype/category-Po: Likewise.
10015         * modules/unictype/category-Ps: Likewise.
10016         * modules/unictype/category-S: Likewise.
10017         * modules/unictype/category-Sc: Likewise.
10018         * modules/unictype/category-Sk: Likewise.
10019         * modules/unictype/category-Sm: Likewise.
10020         * modules/unictype/category-So: Likewise.
10021         * modules/unictype/category-Z: Likewise.
10022         * modules/unictype/category-Zl: Likewise.
10023         * modules/unictype/category-Zp: Likewise.
10024         * modules/unictype/category-Zs: Likewise.
10025         * modules/unictype/category-and: Likewise.
10026         * modules/unictype/category-and-not: Likewise.
10027         * modules/unictype/category-byname: Likewise.
10028         * modules/unictype/category-name: Likewise.
10029         * modules/unictype/category-none: Likewise.
10030         * modules/unictype/category-of: Likewise.
10031         * modules/unictype/category-or: Likewise.
10032         * modules/unictype/category-test: Likewise.
10033         * modules/unictype/combining-class: Likewise.
10034         * modules/unictype/ctype-alnum: Likewise.
10035         * modules/unictype/ctype-alpha: Likewise.
10036         * modules/unictype/ctype-blank: Likewise.
10037         * modules/unictype/ctype-cntrl: Likewise.
10038         * modules/unictype/ctype-digit: Likewise.
10039         * modules/unictype/ctype-graph: Likewise.
10040         * modules/unictype/ctype-lower: Likewise.
10041         * modules/unictype/ctype-print: Likewise.
10042         * modules/unictype/ctype-punct: Likewise.
10043         * modules/unictype/ctype-space: Likewise.
10044         * modules/unictype/ctype-upper: Likewise.
10045         * modules/unictype/ctype-xdigit: Likewise.
10046         * modules/unictype/decimal-digit: Likewise.
10047         * modules/unictype/digit: Likewise.
10048         * modules/unictype/mirror: Likewise.
10049         * modules/unictype/numeric: Likewise.
10050         * modules/unictype/property-alphabetic: Likewise.
10051         * modules/unictype/property-ascii-hex-digit: Likewise.
10052         * modules/unictype/property-bidi-arabic-digit: Likewise.
10053         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
10054         * modules/unictype/property-bidi-block-separator: Likewise.
10055         * modules/unictype/property-bidi-boundary-neutral: Likewise.
10056         * modules/unictype/property-bidi-common-separator: Likewise.
10057         * modules/unictype/property-bidi-control: Likewise.
10058         * modules/unictype/property-bidi-embedding-or-override: Likewise.
10059         * modules/unictype/property-bidi-eur-num-separator: Likewise.
10060         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
10061         * modules/unictype/property-bidi-european-digit: Likewise.
10062         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
10063         * modules/unictype/property-bidi-left-to-right: Likewise.
10064         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
10065         * modules/unictype/property-bidi-other-neutral: Likewise.
10066         * modules/unictype/property-bidi-pdf: Likewise.
10067         * modules/unictype/property-bidi-segment-separator: Likewise.
10068         * modules/unictype/property-bidi-whitespace: Likewise.
10069         * modules/unictype/property-byname: Likewise.
10070         * modules/unictype/property-combining: Likewise.
10071         * modules/unictype/property-composite: Likewise.
10072         * modules/unictype/property-currency-symbol: Likewise.
10073         * modules/unictype/property-dash: Likewise.
10074         * modules/unictype/property-decimal-digit: Likewise.
10075         * modules/unictype/property-default-ignorable-code-point: Likewise.
10076         * modules/unictype/property-deprecated: Likewise.
10077         * modules/unictype/property-diacritic: Likewise.
10078         * modules/unictype/property-extender: Likewise.
10079         * modules/unictype/property-format-control: Likewise.
10080         * modules/unictype/property-grapheme-base: Likewise.
10081         * modules/unictype/property-grapheme-extend: Likewise.
10082         * modules/unictype/property-grapheme-link: Likewise.
10083         * modules/unictype/property-hex-digit: Likewise.
10084         * modules/unictype/property-hyphen: Likewise.
10085         * modules/unictype/property-id-continue: Likewise.
10086         * modules/unictype/property-id-start: Likewise.
10087         * modules/unictype/property-ideographic: Likewise.
10088         * modules/unictype/property-ids-binary-operator: Likewise.
10089         * modules/unictype/property-ids-trinary-operator: Likewise.
10090         * modules/unictype/property-ignorable-control: Likewise.
10091         * modules/unictype/property-iso-control: Likewise.
10092         * modules/unictype/property-join-control: Likewise.
10093         * modules/unictype/property-left-of-pair: Likewise.
10094         * modules/unictype/property-line-separator: Likewise.
10095         * modules/unictype/property-logical-order-exception: Likewise.
10096         * modules/unictype/property-lowercase: Likewise.
10097         * modules/unictype/property-math: Likewise.
10098         * modules/unictype/property-non-break: Likewise.
10099         * modules/unictype/property-not-a-character: Likewise.
10100         * modules/unictype/property-numeric: Likewise.
10101         * modules/unictype/property-other-alphabetic: Likewise.
10102         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
10103         * modules/unictype/property-other-grapheme-extend: Likewise.
10104         * modules/unictype/property-other-id-continue: Likewise.
10105         * modules/unictype/property-other-id-start: Likewise.
10106         * modules/unictype/property-other-lowercase: Likewise.
10107         * modules/unictype/property-other-math: Likewise.
10108         * modules/unictype/property-other-uppercase: Likewise.
10109         * modules/unictype/property-paired-punctuation: Likewise.
10110         * modules/unictype/property-paragraph-separator: Likewise.
10111         * modules/unictype/property-pattern-syntax: Likewise.
10112         * modules/unictype/property-pattern-white-space: Likewise.
10113         * modules/unictype/property-private-use: Likewise.
10114         * modules/unictype/property-punctuation: Likewise.
10115         * modules/unictype/property-quotation-mark: Likewise.
10116         * modules/unictype/property-radical: Likewise.
10117         * modules/unictype/property-sentence-terminal: Likewise.
10118         * modules/unictype/property-soft-dotted: Likewise.
10119         * modules/unictype/property-space: Likewise.
10120         * modules/unictype/property-terminal-punctuation: Likewise.
10121         * modules/unictype/property-test: Likewise.
10122         * modules/unictype/property-titlecase: Likewise.
10123         * modules/unictype/property-unassigned-code-value: Likewise.
10124         * modules/unictype/property-unified-ideograph: Likewise.
10125         * modules/unictype/property-uppercase: Likewise.
10126         * modules/unictype/property-variation-selector: Likewise.
10127         * modules/unictype/property-white-space: Likewise.
10128         * modules/unictype/property-xid-continue: Likewise.
10129         * modules/unictype/property-xid-start: Likewise.
10130         * modules/unictype/property-zero-width: Likewise.
10131         * modules/unictype/scripts: Likewise.
10132         * modules/unictype/syntax-c-ident: Likewise.
10133         * modules/unictype/syntax-c-whitespace: Likewise.
10134         * modules/unictype/syntax-java-ident: Likewise.
10135         * modules/unictype/syntax-java-whitespace: Likewise.
10136         * modules/unilbrk/u8-possible-linebreaks: Likewise.
10137         * modules/unilbrk/u8-width-linebreaks: Likewise.
10138         * modules/unilbrk/u16-possible-linebreaks: Likewise.
10139         * modules/unilbrk/u16-width-linebreaks: Likewise.
10140         * modules/unilbrk/u32-possible-linebreaks: Likewise.
10141         * modules/unilbrk/u32-width-linebreaks: Likewise.
10142         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
10143         * modules/unilbrk/ulc-width-linebreaks: Likewise.
10144         * modules/uniname/uniname: Likewise.
10145         * modules/uninorm/canonical-decomposition: Likewise.
10146         * modules/uninorm/composition: Likewise.
10147         * modules/uninorm/decomposing-form: Likewise.
10148         * modules/uninorm/decomposition: Likewise.
10149         * modules/uninorm/filter: Likewise.
10150         * modules/uninorm/nfc: Likewise.
10151         * modules/uninorm/nfd: Likewise.
10152         * modules/uninorm/nfkc: Likewise.
10153         * modules/uninorm/nfkd: Likewise.
10154         * modules/uninorm/u8-normalize: Likewise.
10155         * modules/uninorm/u8-normcmp: Likewise.
10156         * modules/uninorm/u8-normcoll: Likewise.
10157         * modules/uninorm/u8-normxfrm: Likewise.
10158         * modules/uninorm/u16-normalize: Likewise.
10159         * modules/uninorm/u16-normcmp: Likewise.
10160         * modules/uninorm/u16-normcoll: Likewise.
10161         * modules/uninorm/u16-normxfrm: Likewise.
10162         * modules/uninorm/u32-normalize: Likewise.
10163         * modules/uninorm/u32-normcmp: Likewise.
10164         * modules/uninorm/u32-normcoll: Likewise.
10165         * modules/uninorm/u32-normxfrm: Likewise.
10166         * modules/unistdio/u8-asnprintf: Likewise.
10167         * modules/unistdio/u8-asprintf: Likewise.
10168         * modules/unistdio/u8-snprintf: Likewise.
10169         * modules/unistdio/u8-sprintf: Likewise.
10170         * modules/unistdio/u8-u8-asnprintf: Likewise.
10171         * modules/unistdio/u8-u8-asprintf: Likewise.
10172         * modules/unistdio/u8-u8-snprintf: Likewise.
10173         * modules/unistdio/u8-u8-sprintf: Likewise.
10174         * modules/unistdio/u8-u8-vasnprintf: Likewise.
10175         * modules/unistdio/u8-u8-vasprintf: Likewise.
10176         * modules/unistdio/u8-u8-vsnprintf: Likewise.
10177         * modules/unistdio/u8-u8-vsprintf: Likewise.
10178         * modules/unistdio/u8-vasnprintf: Likewise.
10179         * modules/unistdio/u8-vasprintf: Likewise.
10180         * modules/unistdio/u8-vsnprintf: Likewise.
10181         * modules/unistdio/u8-vsprintf: Likewise.
10182         * modules/unistdio/u16-asnprintf: Likewise.
10183         * modules/unistdio/u16-asprintf: Likewise.
10184         * modules/unistdio/u16-snprintf: Likewise.
10185         * modules/unistdio/u16-sprintf: Likewise.
10186         * modules/unistdio/u16-u16-asnprintf: Likewise.
10187         * modules/unistdio/u16-u16-asprintf: Likewise.
10188         * modules/unistdio/u16-u16-snprintf: Likewise.
10189         * modules/unistdio/u16-u16-sprintf: Likewise.
10190         * modules/unistdio/u16-u16-vasnprintf: Likewise.
10191         * modules/unistdio/u16-u16-vasprintf: Likewise.
10192         * modules/unistdio/u16-u16-vsnprintf: Likewise.
10193         * modules/unistdio/u16-u16-vsprintf: Likewise.
10194         * modules/unistdio/u16-vasnprintf: Likewise.
10195         * modules/unistdio/u16-vasprintf: Likewise.
10196         * modules/unistdio/u16-vsnprintf: Likewise.
10197         * modules/unistdio/u16-vsprintf: Likewise.
10198         * modules/unistdio/u32-asnprintf: Likewise.
10199         * modules/unistdio/u32-asprintf: Likewise.
10200         * modules/unistdio/u32-snprintf: Likewise.
10201         * modules/unistdio/u32-sprintf: Likewise.
10202         * modules/unistdio/u32-u32-asnprintf: Likewise.
10203         * modules/unistdio/u32-u32-asprintf: Likewise.
10204         * modules/unistdio/u32-u32-snprintf: Likewise.
10205         * modules/unistdio/u32-u32-sprintf: Likewise.
10206         * modules/unistdio/u32-u32-vasnprintf: Likewise.
10207         * modules/unistdio/u32-u32-vasprintf: Likewise.
10208         * modules/unistdio/u32-u32-vsnprintf: Likewise.
10209         * modules/unistdio/u32-u32-vsprintf: Likewise.
10210         * modules/unistdio/u32-vasnprintf: Likewise.
10211         * modules/unistdio/u32-vasprintf: Likewise.
10212         * modules/unistdio/u32-vsnprintf: Likewise.
10213         * modules/unistdio/u32-vsprintf: Likewise.
10214         * modules/unistdio/ulc-asnprintf: Likewise.
10215         * modules/unistdio/ulc-asprintf: Likewise.
10216         * modules/unistdio/ulc-fprintf: Likewise.
10217         * modules/unistdio/ulc-snprintf: Likewise.
10218         * modules/unistdio/ulc-sprintf: Likewise.
10219         * modules/unistdio/ulc-vasnprintf: Likewise.
10220         * modules/unistdio/ulc-vasprintf: Likewise.
10221         * modules/unistdio/ulc-vfprintf: Likewise.
10222         * modules/unistdio/ulc-vsnprintf: Likewise.
10223         * modules/unistdio/ulc-vsprintf: Likewise.
10224         * modules/unistr/u8-check: Likewise.
10225         * modules/unistr/u8-chr: Likewise.
10226         * modules/unistr/u8-cmp: Likewise.
10227         * modules/unistr/u8-cmp2: Likewise.
10228         * modules/unistr/u8-cpy: Likewise.
10229         * modules/unistr/u8-cpy-alloc: Likewise.
10230         * modules/unistr/u8-endswith: Likewise.
10231         * modules/unistr/u8-mblen: Likewise.
10232         * modules/unistr/u8-mbsnlen: Likewise.
10233         * modules/unistr/u8-mbtouc: Likewise.
10234         * modules/unistr/u8-mbtouc-unsafe: Likewise.
10235         * modules/unistr/u8-mbtoucr: Likewise.
10236         * modules/unistr/u8-move: Likewise.
10237         * modules/unistr/u8-next: Likewise.
10238         * modules/unistr/u8-prev: Likewise.
10239         * modules/unistr/u8-set: Likewise.
10240         * modules/unistr/u8-startswith: Likewise.
10241         * modules/unistr/u8-stpcpy: Likewise.
10242         * modules/unistr/u8-stpncpy: Likewise.
10243         * modules/unistr/u8-strcat: Likewise.
10244         * modules/unistr/u8-strchr: Likewise.
10245         * modules/unistr/u8-strcmp: Likewise.
10246         * modules/unistr/u8-strcoll: Likewise.
10247         * modules/unistr/u8-strcpy: Likewise.
10248         * modules/unistr/u8-strcspn: Likewise.
10249         * modules/unistr/u8-strdup: Likewise.
10250         * modules/unistr/u8-strlen: Likewise.
10251         * modules/unistr/u8-strmblen: Likewise.
10252         * modules/unistr/u8-strmbtouc: Likewise.
10253         * modules/unistr/u8-strncat: Likewise.
10254         * modules/unistr/u8-strncmp: Likewise.
10255         * modules/unistr/u8-strncpy: Likewise.
10256         * modules/unistr/u8-strnlen: Likewise.
10257         * modules/unistr/u8-strpbrk: Likewise.
10258         * modules/unistr/u8-strrchr: Likewise.
10259         * modules/unistr/u8-strspn: Likewise.
10260         * modules/unistr/u8-strstr: Likewise.
10261         * modules/unistr/u8-strtok: Likewise.
10262         * modules/unistr/u8-to-u16: Likewise.
10263         * modules/unistr/u8-to-u32: Likewise.
10264         * modules/unistr/u8-uctomb: Likewise.
10265         * modules/unistr/u16-check: Likewise.
10266         * modules/unistr/u16-chr: Likewise.
10267         * modules/unistr/u16-cmp: Likewise.
10268         * modules/unistr/u16-cmp2: Likewise.
10269         * modules/unistr/u16-cpy: Likewise.
10270         * modules/unistr/u16-cpy-alloc: Likewise.
10271         * modules/unistr/u16-endswith: Likewise.
10272         * modules/unistr/u16-mblen: Likewise.
10273         * modules/unistr/u16-mbsnlen: Likewise.
10274         * modules/unistr/u16-mbtouc: Likewise.
10275         * modules/unistr/u16-mbtouc-unsafe: Likewise.
10276         * modules/unistr/u16-mbtoucr: Likewise.
10277         * modules/unistr/u16-move: Likewise.
10278         * modules/unistr/u16-next: Likewise.
10279         * modules/unistr/u16-prev: Likewise.
10280         * modules/unistr/u16-set: Likewise.
10281         * modules/unistr/u16-startswith: Likewise.
10282         * modules/unistr/u16-stpcpy: Likewise.
10283         * modules/unistr/u16-stpncpy: Likewise.
10284         * modules/unistr/u16-strcat: Likewise.
10285         * modules/unistr/u16-strchr: Likewise.
10286         * modules/unistr/u16-strcmp: Likewise.
10287         * modules/unistr/u16-strcoll: Likewise.
10288         * modules/unistr/u16-strcpy: Likewise.
10289         * modules/unistr/u16-strcspn: Likewise.
10290         * modules/unistr/u16-strdup: Likewise.
10291         * modules/unistr/u16-strlen: Likewise.
10292         * modules/unistr/u16-strmblen: Likewise.
10293         * modules/unistr/u16-strmbtouc: Likewise.
10294         * modules/unistr/u16-strncat: Likewise.
10295         * modules/unistr/u16-strncmp: Likewise.
10296         * modules/unistr/u16-strncpy: Likewise.
10297         * modules/unistr/u16-strnlen: Likewise.
10298         * modules/unistr/u16-strpbrk: Likewise.
10299         * modules/unistr/u16-strrchr: Likewise.
10300         * modules/unistr/u16-strspn: Likewise.
10301         * modules/unistr/u16-strstr: Likewise.
10302         * modules/unistr/u16-strtok: Likewise.
10303         * modules/unistr/u16-to-u32: Likewise.
10304         * modules/unistr/u16-to-u8: Likewise.
10305         * modules/unistr/u16-uctomb: Likewise.
10306         * modules/unistr/u32-check: Likewise.
10307         * modules/unistr/u32-chr: Likewise.
10308         * modules/unistr/u32-cmp: Likewise.
10309         * modules/unistr/u32-cmp2: Likewise.
10310         * modules/unistr/u32-cpy: Likewise.
10311         * modules/unistr/u32-cpy-alloc: Likewise.
10312         * modules/unistr/u32-endswith: Likewise.
10313         * modules/unistr/u32-mblen: Likewise.
10314         * modules/unistr/u32-mbsnlen: Likewise.
10315         * modules/unistr/u32-mbtouc: Likewise.
10316         * modules/unistr/u32-mbtouc-unsafe: Likewise.
10317         * modules/unistr/u32-mbtoucr: Likewise.
10318         * modules/unistr/u32-move: Likewise.
10319         * modules/unistr/u32-next: Likewise.
10320         * modules/unistr/u32-prev: Likewise.
10321         * modules/unistr/u32-set: Likewise.
10322         * modules/unistr/u32-startswith: Likewise.
10323         * modules/unistr/u32-stpcpy: Likewise.
10324         * modules/unistr/u32-stpncpy: Likewise.
10325         * modules/unistr/u32-strcat: Likewise.
10326         * modules/unistr/u32-strchr: Likewise.
10327         * modules/unistr/u32-strcmp: Likewise.
10328         * modules/unistr/u32-strcoll: Likewise.
10329         * modules/unistr/u32-strcpy: Likewise.
10330         * modules/unistr/u32-strcspn: Likewise.
10331         * modules/unistr/u32-strdup: Likewise.
10332         * modules/unistr/u32-strlen: Likewise.
10333         * modules/unistr/u32-strmblen: Likewise.
10334         * modules/unistr/u32-strmbtouc: Likewise.
10335         * modules/unistr/u32-strncat: Likewise.
10336         * modules/unistr/u32-strncmp: Likewise.
10337         * modules/unistr/u32-strncpy: Likewise.
10338         * modules/unistr/u32-strnlen: Likewise.
10339         * modules/unistr/u32-strpbrk: Likewise.
10340         * modules/unistr/u32-strrchr: Likewise.
10341         * modules/unistr/u32-strspn: Likewise.
10342         * modules/unistr/u32-strstr: Likewise.
10343         * modules/unistr/u32-strtok: Likewise.
10344         * modules/unistr/u32-to-u16: Likewise.
10345         * modules/unistr/u32-to-u8: Likewise.
10346         * modules/unistr/u32-uctomb: Likewise.
10347         * modules/uniwbrk/u8-wordbreaks: Likewise.
10348         * modules/uniwbrk/u16-wordbreaks: Likewise.
10349         * modules/uniwbrk/u32-wordbreaks: Likewise.
10350         * modules/uniwbrk/ulc-wordbreaks: Likewise.
10351         * modules/uniwbrk/wordbreak-property: Likewise.
10352         * modules/uniwidth/u8-strwidth: Likewise.
10353         * modules/uniwidth/u8-width: Likewise.
10354         * modules/uniwidth/u16-strwidth: Likewise.
10355         * modules/uniwidth/u16-width: Likewise.
10356         * modules/uniwidth/u32-strwidth: Likewise.
10357         * modules/uniwidth/u32-width: Likewise.
10358         * modules/uniwidth/width: Likewise.
10359         * modules/unicase/cased-tests (Makefile.am): Link all test programs
10360         with $(LIBUNISTRING).
10361         * modules/unicase/ignorable-tests: Likewise.
10362         * modules/unicase/locale-language-tests: Likewise.
10363         * modules/unicase/tolower-tests: Likewise.
10364         * modules/unicase/totitle-tests: Likewise.
10365         * modules/unicase/toupper-tests: Likewise.
10366         * modules/unicase/u8-casecmp-tests: Likewise.
10367         * modules/unicase/u8-casecoll-tests: Likewise.
10368         * modules/unicase/u8-casefold-tests: Likewise.
10369         * modules/unicase/u8-is-cased-tests: Likewise.
10370         * modules/unicase/u8-is-casefolded-tests: Likewise.
10371         * modules/unicase/u8-is-lowercase-tests: Likewise.
10372         * modules/unicase/u8-is-titlecase-tests: Likewise.
10373         * modules/unicase/u8-is-uppercase-tests: Likewise.
10374         * modules/unicase/u8-tolower-tests: Likewise.
10375         * modules/unicase/u8-totitle-tests: Likewise.
10376         * modules/unicase/u8-toupper-tests: Likewise.
10377         * modules/unicase/u16-casecmp-tests: Likewise.
10378         * modules/unicase/u16-casecoll-tests: Likewise.
10379         * modules/unicase/u16-casefold-tests: Likewise.
10380         * modules/unicase/u16-is-cased-tests: Likewise.
10381         * modules/unicase/u16-is-casefolded-tests: Likewise.
10382         * modules/unicase/u16-is-lowercase-tests: Likewise.
10383         * modules/unicase/u16-is-titlecase-tests: Likewise.
10384         * modules/unicase/u16-is-uppercase-tests: Likewise.
10385         * modules/unicase/u16-tolower-tests: Likewise.
10386         * modules/unicase/u16-totitle-tests: Likewise.
10387         * modules/unicase/u16-toupper-tests: Likewise.
10388         * modules/unicase/u32-casecmp-tests: Likewise.
10389         * modules/unicase/u32-casecoll-tests: Likewise.
10390         * modules/unicase/u32-casefold-tests: Likewise.
10391         * modules/unicase/u32-is-cased-tests: Likewise.
10392         * modules/unicase/u32-is-casefolded-tests: Likewise.
10393         * modules/unicase/u32-is-lowercase-tests: Likewise.
10394         * modules/unicase/u32-is-titlecase-tests: Likewise.
10395         * modules/unicase/u32-is-uppercase-tests: Likewise.
10396         * modules/unicase/u32-tolower-tests: Likewise.
10397         * modules/unicase/u32-totitle-tests: Likewise.
10398         * modules/unicase/u32-toupper-tests: Likewise.
10399         * modules/unicase/ulc-casecmp-tests: Likewise.
10400         * modules/unicase/ulc-casecoll-tests: Likewise.
10401         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
10402         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
10403         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
10404         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
10405         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
10406         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
10407         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
10408         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
10409         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
10410         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
10411         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
10412         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
10413         * modules/unictype/bidicategory-byname-tests: Likewise.
10414         * modules/unictype/bidicategory-name-tests: Likewise.
10415         * modules/unictype/bidicategory-of-tests: Likewise.
10416         * modules/unictype/bidicategory-test-tests: Likewise.
10417         * modules/unictype/block-list-tests: Likewise.
10418         * modules/unictype/block-of-tests: Likewise.
10419         * modules/unictype/block-test-tests: Likewise.
10420         * modules/unictype/category-C-tests: Likewise.
10421         * modules/unictype/category-Cc-tests: Likewise.
10422         * modules/unictype/category-Cf-tests: Likewise.
10423         * modules/unictype/category-Cn-tests: Likewise.
10424         * modules/unictype/category-Co-tests: Likewise.
10425         * modules/unictype/category-Cs-tests: Likewise.
10426         * modules/unictype/category-L-tests: Likewise.
10427         * modules/unictype/category-Ll-tests: Likewise.
10428         * modules/unictype/category-Lm-tests: Likewise.
10429         * modules/unictype/category-Lo-tests: Likewise.
10430         * modules/unictype/category-Lt-tests: Likewise.
10431         * modules/unictype/category-Lu-tests: Likewise.
10432         * modules/unictype/category-M-tests: Likewise.
10433         * modules/unictype/category-Mc-tests: Likewise.
10434         * modules/unictype/category-Me-tests: Likewise.
10435         * modules/unictype/category-Mn-tests: Likewise.
10436         * modules/unictype/category-N-tests: Likewise.
10437         * modules/unictype/category-Nd-tests: Likewise.
10438         * modules/unictype/category-Nl-tests: Likewise.
10439         * modules/unictype/category-No-tests: Likewise.
10440         * modules/unictype/category-P-tests: Likewise.
10441         * modules/unictype/category-Pc-tests: Likewise.
10442         * modules/unictype/category-Pd-tests: Likewise.
10443         * modules/unictype/category-Pe-tests: Likewise.
10444         * modules/unictype/category-Pf-tests: Likewise.
10445         * modules/unictype/category-Pi-tests: Likewise.
10446         * modules/unictype/category-Po-tests: Likewise.
10447         * modules/unictype/category-Ps-tests: Likewise.
10448         * modules/unictype/category-S-tests: Likewise.
10449         * modules/unictype/category-Sc-tests: Likewise.
10450         * modules/unictype/category-Sk-tests: Likewise.
10451         * modules/unictype/category-Sm-tests: Likewise.
10452         * modules/unictype/category-So-tests: Likewise.
10453         * modules/unictype/category-Z-tests: Likewise.
10454         * modules/unictype/category-Zl-tests: Likewise.
10455         * modules/unictype/category-Zp-tests: Likewise.
10456         * modules/unictype/category-Zs-tests: Likewise.
10457         * modules/unictype/category-and-not-tests: Likewise.
10458         * modules/unictype/category-and-tests: Likewise.
10459         * modules/unictype/category-byname-tests: Likewise.
10460         * modules/unictype/category-name-tests: Likewise.
10461         * modules/unictype/category-none-tests: Likewise.
10462         * modules/unictype/category-of-tests: Likewise.
10463         * modules/unictype/category-or-tests: Likewise.
10464         * modules/unictype/category-test-withtable-tests: Likewise.
10465         * modules/unictype/combining-class-tests: Likewise.
10466         * modules/unictype/ctype-alnum-tests: Likewise.
10467         * modules/unictype/ctype-alpha-tests: Likewise.
10468         * modules/unictype/ctype-blank-tests: Likewise.
10469         * modules/unictype/ctype-cntrl-tests: Likewise.
10470         * modules/unictype/ctype-digit-tests: Likewise.
10471         * modules/unictype/ctype-graph-tests: Likewise.
10472         * modules/unictype/ctype-lower-tests: Likewise.
10473         * modules/unictype/ctype-print-tests: Likewise.
10474         * modules/unictype/ctype-punct-tests: Likewise.
10475         * modules/unictype/ctype-space-tests: Likewise.
10476         * modules/unictype/ctype-upper-tests: Likewise.
10477         * modules/unictype/ctype-xdigit-tests: Likewise.
10478         * modules/unictype/decimal-digit-tests: Likewise.
10479         * modules/unictype/digit-tests: Likewise.
10480         * modules/unictype/mirror-tests: Likewise.
10481         * modules/unictype/numeric-tests: Likewise.
10482         * modules/unictype/property-alphabetic-tests: Likewise.
10483         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
10484         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
10485         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
10486         * modules/unictype/property-bidi-block-separator-tests: Likewise.
10487         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
10488         * modules/unictype/property-bidi-common-separator-tests: Likewise.
10489         * modules/unictype/property-bidi-control-tests: Likewise.
10490         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
10491         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
10492         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
10493         * modules/unictype/property-bidi-european-digit-tests: Likewise.
10494         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
10495         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
10496         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
10497         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
10498         * modules/unictype/property-bidi-pdf-tests: Likewise.
10499         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
10500         * modules/unictype/property-bidi-whitespace-tests: Likewise.
10501         * modules/unictype/property-byname-tests: Likewise.
10502         * modules/unictype/property-combining-tests: Likewise.
10503         * modules/unictype/property-composite-tests: Likewise.
10504         * modules/unictype/property-currency-symbol-tests: Likewise.
10505         * modules/unictype/property-dash-tests: Likewise.
10506         * modules/unictype/property-decimal-digit-tests: Likewise.
10507         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
10508         * modules/unictype/property-deprecated-tests: Likewise.
10509         * modules/unictype/property-diacritic-tests: Likewise.
10510         * modules/unictype/property-extender-tests: Likewise.
10511         * modules/unictype/property-format-control-tests: Likewise.
10512         * modules/unictype/property-grapheme-base-tests: Likewise.
10513         * modules/unictype/property-grapheme-extend-tests: Likewise.
10514         * modules/unictype/property-grapheme-link-tests: Likewise.
10515         * modules/unictype/property-hex-digit-tests: Likewise.
10516         * modules/unictype/property-hyphen-tests: Likewise.
10517         * modules/unictype/property-id-continue-tests: Likewise.
10518         * modules/unictype/property-id-start-tests: Likewise.
10519         * modules/unictype/property-ideographic-tests: Likewise.
10520         * modules/unictype/property-ids-binary-operator-tests: Likewise.
10521         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
10522         * modules/unictype/property-ignorable-control-tests: Likewise.
10523         * modules/unictype/property-iso-control-tests: Likewise.
10524         * modules/unictype/property-join-control-tests: Likewise.
10525         * modules/unictype/property-left-of-pair-tests: Likewise.
10526         * modules/unictype/property-line-separator-tests: Likewise.
10527         * modules/unictype/property-logical-order-exception-tests: Likewise.
10528         * modules/unictype/property-lowercase-tests: Likewise.
10529         * modules/unictype/property-math-tests: Likewise.
10530         * modules/unictype/property-non-break-tests: Likewise.
10531         * modules/unictype/property-not-a-character-tests: Likewise.
10532         * modules/unictype/property-numeric-tests: Likewise.
10533         * modules/unictype/property-other-alphabetic-tests: Likewise.
10534         * modules/unictype/property-other-default-ignorable-code-point-tests:
10535         Likewise.
10536         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
10537         * modules/unictype/property-other-id-continue-tests: Likewise.
10538         * modules/unictype/property-other-id-start-tests: Likewise.
10539         * modules/unictype/property-other-lowercase-tests: Likewise.
10540         * modules/unictype/property-other-math-tests: Likewise.
10541         * modules/unictype/property-other-uppercase-tests: Likewise.
10542         * modules/unictype/property-paired-punctuation-tests: Likewise.
10543         * modules/unictype/property-paragraph-separator-tests: Likewise.
10544         * modules/unictype/property-pattern-syntax-tests: Likewise.
10545         * modules/unictype/property-pattern-white-space-tests: Likewise.
10546         * modules/unictype/property-private-use-tests: Likewise.
10547         * modules/unictype/property-punctuation-tests: Likewise.
10548         * modules/unictype/property-quotation-mark-tests: Likewise.
10549         * modules/unictype/property-radical-tests: Likewise.
10550         * modules/unictype/property-sentence-terminal-tests: Likewise.
10551         * modules/unictype/property-soft-dotted-tests: Likewise.
10552         * modules/unictype/property-space-tests: Likewise.
10553         * modules/unictype/property-terminal-punctuation-tests: Likewise.
10554         * modules/unictype/property-test-tests: Likewise.
10555         * modules/unictype/property-titlecase-tests: Likewise.
10556         * modules/unictype/property-unassigned-code-value-tests: Likewise.
10557         * modules/unictype/property-unified-ideograph-tests: Likewise.
10558         * modules/unictype/property-uppercase-tests: Likewise.
10559         * modules/unictype/property-variation-selector-tests: Likewise.
10560         * modules/unictype/property-white-space-tests: Likewise.
10561         * modules/unictype/property-xid-continue-tests: Likewise.
10562         * modules/unictype/property-xid-start-tests: Likewise.
10563         * modules/unictype/property-zero-width-tests: Likewise.
10564         * modules/unictype/scripts-tests: Likewise.
10565         * modules/unictype/syntax-c-ident-tests: Likewise.
10566         * modules/unictype/syntax-c-whitespace-tests: Likewise.
10567         * modules/unictype/syntax-java-ident-tests: Likewise.
10568         * modules/unictype/syntax-java-whitespace-tests: Likewise.
10569         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
10570         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
10571         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
10572         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
10573         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
10574         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
10575         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
10576         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
10577         * modules/uniname/uniname-tests: Likewise.
10578         * modules/uninorm/canonical-decomposition-tests: Likewise.
10579         * modules/uninorm/compat-decomposition-tests: Likewise.
10580         * modules/uninorm/composition-tests: Likewise.
10581         * modules/uninorm/decomposing-form-tests: Likewise.
10582         * modules/uninorm/decomposition-tests: Likewise.
10583         * modules/uninorm/filter-tests: Likewise.
10584         * modules/uninorm/nfc-tests: Likewise.
10585         * modules/uninorm/nfd-tests: Likewise.
10586         * modules/uninorm/nfkc-tests: Likewise.
10587         * modules/uninorm/nfkd-tests: Likewise.
10588         * modules/uninorm/u8-normcmp-tests: Likewise.
10589         * modules/uninorm/u8-normcoll-tests: Likewise.
10590         * modules/uninorm/u16-normcmp-tests: Likewise.
10591         * modules/uninorm/u16-normcoll-tests: Likewise.
10592         * modules/uninorm/u32-normcmp-tests: Likewise.
10593         * modules/uninorm/u32-normcoll-tests: Likewise.
10594         * modules/unistdio/u8-asnprintf-tests: Likewise.
10595         * modules/unistdio/u8-vasnprintf-tests: Likewise.
10596         * modules/unistdio/u8-vasprintf-tests: Likewise.
10597         * modules/unistdio/u8-vsnprintf-tests: Likewise.
10598         * modules/unistdio/u8-vsprintf-tests: Likewise.
10599         * modules/unistdio/u16-asnprintf-tests: Likewise.
10600         * modules/unistdio/u16-vasnprintf-tests: Likewise.
10601         * modules/unistdio/u16-vasprintf-tests: Likewise.
10602         * modules/unistdio/u16-vsnprintf-tests: Likewise.
10603         * modules/unistdio/u16-vsprintf-tests: Likewise.
10604         * modules/unistdio/u32-asnprintf-tests: Likewise.
10605         * modules/unistdio/u32-vasnprintf-tests: Likewise.
10606         * modules/unistdio/u32-vasprintf-tests: Likewise.
10607         * modules/unistdio/u32-vsnprintf-tests: Likewise.
10608         * modules/unistdio/u32-vsprintf-tests: Likewise.
10609         * modules/unistdio/ulc-asnprintf-tests: Likewise.
10610         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
10611         * modules/unistdio/ulc-vasprintf-tests: Likewise.
10612         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
10613         * modules/unistdio/ulc-vsprintf-tests: Likewise.
10614         * modules/unistr/u8-check-tests: Likewise.
10615         * modules/unistr/u8-chr-tests: Likewise.
10616         * modules/unistr/u8-cmp-tests: Likewise.
10617         * modules/unistr/u8-cmp2-tests: Likewise.
10618         * modules/unistr/u8-cpy-alloc-tests: Likewise.
10619         * modules/unistr/u8-cpy-tests: Likewise.
10620         * modules/unistr/u8-mblen-tests: Likewise.
10621         * modules/unistr/u8-mbsnlen-tests: Likewise.
10622         * modules/unistr/u8-mbtouc-tests: Likewise.
10623         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
10624         * modules/unistr/u8-mbtoucr-tests: Likewise.
10625         * modules/unistr/u8-move-tests: Likewise.
10626         * modules/unistr/u8-next-tests: Likewise.
10627         * modules/unistr/u8-prev-tests: Likewise.
10628         * modules/unistr/u8-set-tests: Likewise.
10629         * modules/unistr/u8-stpcpy-tests: Likewise.
10630         * modules/unistr/u8-stpncpy-tests: Likewise.
10631         * modules/unistr/u8-strcat-tests: Likewise.
10632         * modules/unistr/u8-strcmp-tests: Likewise.
10633         * modules/unistr/u8-strcoll-tests: Likewise.
10634         * modules/unistr/u8-strcpy-tests: Likewise.
10635         * modules/unistr/u8-strdup-tests: Likewise.
10636         * modules/unistr/u8-strlen-tests: Likewise.
10637         * modules/unistr/u8-strmblen-tests: Likewise.
10638         * modules/unistr/u8-strmbtouc-tests: Likewise.
10639         * modules/unistr/u8-strncat-tests: Likewise.
10640         * modules/unistr/u8-strncmp-tests: Likewise.
10641         * modules/unistr/u8-strncpy-tests: Likewise.
10642         * modules/unistr/u8-strnlen-tests: Likewise.
10643         * modules/unistr/u8-to-u16-tests: Likewise.
10644         * modules/unistr/u8-to-u32-tests: Likewise.
10645         * modules/unistr/u8-uctomb-tests: Likewise.
10646         * modules/unistr/u16-check-tests: Likewise.
10647         * modules/unistr/u16-chr-tests: Likewise.
10648         * modules/unistr/u16-cmp-tests: Likewise.
10649         * modules/unistr/u16-cmp2-tests: Likewise.
10650         * modules/unistr/u16-cpy-alloc-tests: Likewise.
10651         * modules/unistr/u16-cpy-tests: Likewise.
10652         * modules/unistr/u16-mblen-tests: Likewise.
10653         * modules/unistr/u16-mbsnlen-tests: Likewise.
10654         * modules/unistr/u16-mbtouc-tests: Likewise.
10655         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
10656         * modules/unistr/u16-mbtoucr-tests: Likewise.
10657         * modules/unistr/u16-move-tests: Likewise.
10658         * modules/unistr/u16-next-tests: Likewise.
10659         * modules/unistr/u16-prev-tests: Likewise.
10660         * modules/unistr/u16-set-tests: Likewise.
10661         * modules/unistr/u16-stpcpy-tests: Likewise.
10662         * modules/unistr/u16-stpncpy-tests: Likewise.
10663         * modules/unistr/u16-strcat-tests: Likewise.
10664         * modules/unistr/u16-strcmp-tests: Likewise.
10665         * modules/unistr/u16-strcoll-tests: Likewise.
10666         * modules/unistr/u16-strcpy-tests: Likewise.
10667         * modules/unistr/u16-strdup-tests: Likewise.
10668         * modules/unistr/u16-strlen-tests: Likewise.
10669         * modules/unistr/u16-strmblen-tests: Likewise.
10670         * modules/unistr/u16-strmbtouc-tests: Likewise.
10671         * modules/unistr/u16-strncat-tests: Likewise.
10672         * modules/unistr/u16-strncmp-tests: Likewise.
10673         * modules/unistr/u16-strncpy-tests: Likewise.
10674         * modules/unistr/u16-strnlen-tests: Likewise.
10675         * modules/unistr/u16-to-u32-tests: Likewise.
10676         * modules/unistr/u16-to-u8-tests: Likewise.
10677         * modules/unistr/u16-uctomb-tests: Likewise.
10678         * modules/unistr/u32-check-tests: Likewise.
10679         * modules/unistr/u32-chr-tests: Likewise.
10680         * modules/unistr/u32-cmp-tests: Likewise.
10681         * modules/unistr/u32-cmp2-tests: Likewise.
10682         * modules/unistr/u32-cpy-alloc-tests: Likewise.
10683         * modules/unistr/u32-cpy-tests: Likewise.
10684         * modules/unistr/u32-mblen-tests: Likewise.
10685         * modules/unistr/u32-mbsnlen-tests: Likewise.
10686         * modules/unistr/u32-mbtouc-tests: Likewise.
10687         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
10688         * modules/unistr/u32-mbtoucr-tests: Likewise.
10689         * modules/unistr/u32-move-tests: Likewise.
10690         * modules/unistr/u32-next-tests: Likewise.
10691         * modules/unistr/u32-prev-tests: Likewise.
10692         * modules/unistr/u32-set-tests: Likewise.
10693         * modules/unistr/u32-stpcpy-tests: Likewise.
10694         * modules/unistr/u32-stpncpy-tests: Likewise.
10695         * modules/unistr/u32-strcat-tests: Likewise.
10696         * modules/unistr/u32-strcmp-tests: Likewise.
10697         * modules/unistr/u32-strcoll-tests: Likewise.
10698         * modules/unistr/u32-strcpy-tests: Likewise.
10699         * modules/unistr/u32-strdup-tests: Likewise.
10700         * modules/unistr/u32-strlen-tests: Likewise.
10701         * modules/unistr/u32-strmblen-tests: Likewise.
10702         * modules/unistr/u32-strmbtouc-tests: Likewise.
10703         * modules/unistr/u32-strncat-tests: Likewise.
10704         * modules/unistr/u32-strncmp-tests: Likewise.
10705         * modules/unistr/u32-strncpy-tests: Likewise.
10706         * modules/unistr/u32-strnlen-tests: Likewise.
10707         * modules/unistr/u32-to-u16-tests: Likewise.
10708         * modules/unistr/u32-to-u8-tests: Likewise.
10709         * modules/unistr/u32-uctomb-tests: Likewise.
10710         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
10711         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
10712         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
10713         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
10714         * modules/uniwidth/u8-strwidth-tests: Likewise.
10715         * modules/uniwidth/u8-width-tests: Likewise.
10716         * modules/uniwidth/u16-strwidth-tests: Likewise.
10717         * modules/uniwidth/u16-width-tests: Likewise.
10718         * modules/uniwidth/u32-strwidth-tests: Likewise.
10719         * modules/uniwidth/u32-width-tests: Likewise.
10720         * modules/uniwidth/width-tests: Likewise.
10721
10722 2010-05-18  Richard Jones  <rjones@redhat.com>
10723
10724         doc: users.txt: list hivex
10725         * users.txt: Add hivex.
10726
10727 2010-05-18  Richard Jones  <rjones@redhat.com>
10728
10729         doc: users.txt: list febootstrap
10730         * users.txt: Add febootstrap.
10731
10732 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
10733
10734         bootstrap: fix an error when gnulib is not used as a git submodule
10735         * build-aux/bootstrap (gnulib_path): If its length is zero then
10736         assign "gnulib" to it.
10737         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
10738
10739 2010-05-16  Bruno Haible  <bruno@clisp.org>
10740
10741         Avoid autoconf warnings about AM_ICONV.
10742         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
10743         2.64.
10744
10745 2010-05-16  Bruno Haible  <bruno@clisp.org>
10746
10747         absolute-header: Make the macro usable in more situations.
10748         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
10749         from gl_ABSOLUTE_HEADER.
10750         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
10751
10752 2010-05-16  James Youngman  <jay@gnu.org>
10753
10754         doc: update users.txt
10755         * users.txt: Add CSSC.
10756
10757 2010-05-16  Jim Meyering  <meyering@redhat.com>
10758
10759         init.sh: fix an error in the previous change; add more comments
10760         * tests/init.sh: Compare exit code in loop against 9, not 2.
10761         Patch by Bruno Haible.
10762         Make the two tests more similar by adding an empty "then" clause.
10763         Add comments.
10764
10765         init.sh: avoid unnecessary shell re-exec
10766         * tests/init.sh: Improve the re-exec-required check to first test the
10767         current shell.  If it passes the test, do not search for a shell that
10768         does pass, and do not re-exec.  This test is particularly contorted to
10769         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
10770         of $(...) evokes a syntax error and causes immediate shell exit with
10771         status 2.  Bruno Haible reported that the re-exec made it impossible
10772         to single-step through any init.sh-using script.
10773
10774 2010-05-16  Bruno Haible  <bruno@clisp.org>
10775
10776         Fix collision between gnulib's and libintl's printf replacements.
10777         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
10778         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
10779         (printf): When using GNU C, map the __printf__ function to rpl_printf
10780         via __asm__. When not using GNU C, define rpl_printf instead of
10781         __printf__.
10782         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
10783         commit.
10784         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
10785         commit.
10786         * m4/asm-underscore.m4: New file.
10787         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
10788         * modules/stdio (Files): Add m4/asm-underscore.m4.
10789         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
10790         Reported by Ben Pfaff.
10791
10792 2010-05-16  Bruno Haible  <bruno@clisp.org>
10793
10794         verify: Avoid skipping the test on openSUSE 11.0.
10795         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
10796
10797 2010-05-13  Bruno Haible  <bruno@clisp.org>
10798
10799         Avoid useless warnings from G++.
10800         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
10801         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
10802         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
10803
10804 2010-05-11  Jim Meyering  <meyering@redhat.com>
10805
10806         maint.mk: tweak preceding change
10807         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
10808         regexps tighter by anchoring at EOL, and make the new group "shy"
10809         for slightly decreased overhead.
10810
10811 2010-05-11  Eric Blake  <eblake@redhat.com>
10812
10813         maint.mk: gnulib doesn't guarantee NSIG
10814         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
10815
10816 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
10817
10818         test-pwrite.c: Remove unused variable declaration.
10819         * tests/test-pwrite.c (main): Remove read_buf declaration.
10820
10821         Remove useless test-pwrite.sh file.
10822         * tests/test-pwrite.sh: Delete file.
10823         * modules/pwrite-tests: Remove references.
10824         Reported by Bruno Haible.
10825
10826 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
10827
10828         init.sh: fix a typo
10829         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
10830
10831 2010-05-10  Jim Meyering  <meyering@redhat.com>
10832
10833         maint.mk: avoid using a temporary file in the always-defined-macros check
10834         * top/maint.mk (.re-defmac): Remove rule.
10835         (gl_trap_): Remove definition.
10836         (sc_prohibit_always-defined_macros): Rewrite not to create and
10837         depend on a temporary file.  Instead, depend on GNU grep's ability
10838         to read a list of regular expressions from stdin when given "-f -".
10839
10840 2010-05-09  Bruno Haible  <bruno@clisp.org>
10841
10842         Update to GNU gettext 0.18, part 1.
10843         * m4/gettext.m4: Update to GNU gettext 0.18.
10844         * m4/intl.m4: Likewise.
10845         * m4/po.m4: Likewise.
10846         * modules/gettext (Files): Add m4/fcntl-o.m4.
10847         (configure.ac): Require gettext infrastructure from version 0.18.
10848
10849 2010-05-09  Jim Meyering  <meyering@redhat.com>
10850
10851         init.sh: enable MALLOC_PERTURB_
10852         * tests/init.sh: Enable glibc's malloc-perturbing option.
10853
10854         maint.mk: improve sc_cross_check_PATH_usage_in_tests
10855         With my recent change in init.sh from the two-line form:
10856             -#   : ${srcdir=.}
10857             -#   . "$srcdir/init.sh"; path_prepend_ .
10858             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
10859         I noticed that using the one-line form would cause this test
10860         to fail with a false-positive, or to stop working altogether,
10861         depending on whether help-version changed or all the tests did.
10862         * top/maint.mk (_hv_regex): Remove this definition.
10863         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
10864         (_hv_regex_strong): Use a stronger regex to check for conformance.
10865         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
10866         Give a separate diagnostic for lack of conforming use.
10867
10868         maint.mk: prohibit definition of symbols defined by gnulib
10869         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
10870         definition of symbols defined by gnulib.
10871
10872 2010-05-09  Bruno Haible  <bruno@clisp.org>
10873
10874         acl: Avoid test failure on Cygwin-hosted mingw.
10875         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
10876
10877 2010-05-09  Bruno Haible  <bruno@clisp.org>
10878
10879         error: Use system's fcntl function.
10880         * lib/error.c (fcntl): Undefine.
10881
10882 2010-05-09  Jim Meyering  <meyering@redhat.com>
10883
10884         verify: adjust formatting to be more consistent
10885         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
10886         argument-list '('s, and after one comma.
10887
10888 2010-05-09  Bruno Haible  <bruno@clisp.org>
10889
10890         error: More reliable output on mingw.
10891         * lib/error.c: Include <windows.h>.
10892         (is_open): New function.
10893         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
10894         defined.
10895
10896 2010-05-09  Bruno Haible  <bruno@clisp.org>
10897
10898         vasnprintf: Fix syntax errors in libintl build on mingw.
10899         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
10900         pad_ourselves and prec_ourselves after use.
10901
10902 2010-05-08  Bruno Haible  <bruno@clisp.org>
10903
10904         * lib/config.charset: Update comments for Cygwin 1.7.
10905         * lib/localcharset.c: Likewise.
10906
10907 2010-05-07  Jim Meyering  <meyering@redhat.com>
10908
10909         init.sh: improve comments
10910         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
10911         . "${srcdir=.}/init.sh"; path_prepend_ .
10912         Add a note about path_prepend_ and the alternative of using
10913         TESTS_ENVIRONMENT.
10914
10915 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
10916
10917         exclude: Unescape hashed patterns in wildcard mode.
10918         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
10919         to the hash list.
10920         * tests/test-exclude8.sh: New test case.
10921         * modules/exclude-tests: Add new test.
10922
10923 2010-05-05  Eric Blake  <eblake@redhat.com>
10924
10925         verify: automate tests
10926         * modules/verify-tests: New module.
10927         * tests/test-verify.sh: New file.
10928         * tests/test-verify.c: Guard each negative test with a unique id.
10929         Also avoid warning about unused left hand of comma expressions.
10930
10931 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
10932
10933         Further improvements to verify.h, suggested by Eric Blake.
10934         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
10935         the GL_* versions, to avoid collision with OpenGL.
10936         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
10937         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
10938         than testing merely whether it's defined.
10939
10940         Modify verify.h to pacify gcc -Wredundant_decls.
10941         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
10942         These use the prefix "GL_" since they're likely to be useful elsewhere.
10943         We may need to break them out into a different .h file.
10944         (__COUNTER__): Define to 0 if the compiler doesn't support it.
10945         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
10946         of verify_function__.
10947
10948 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
10949
10950         Tests for module pwrite.
10951         * modules/pwrite-tests: New file.
10952         * tests/test-pwrite.sh: New file.
10953         * tests/test-pwrite.c: New file.
10954
10955         New module pwrite.
10956         * lib/unistd.in.h (pwrite): New declaration.
10957         * lib/pwrite.c: New file, from glibc with modifications.
10958         * m4/pwrite.m4: New file.
10959         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
10960         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
10961         REPLACE_PWRITE.
10962         * modules/pwrite: New file.
10963         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
10964         REPLACE_PWRITE.
10965         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
10966         * doc/posix-functions/pwrite.texi: Mention the new module.
10967
10968 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
10969
10970         pread: Update documentation.
10971         * doc/posix-functions/pread.texi: Mention the 'pread' module.
10972
10973 2010-05-04  Eric Blake  <eblake@redhat.com>
10974
10975         docs: update cygwin progress
10976         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
10977         this bug.
10978         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
10979         Added in cygwin 1.7.2.
10980         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
10981         Likewise.
10982         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
10983         Likewise.
10984         * doc/glibc-functions/dup3.texi (dup3): Likewise.
10985         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
10986         * doc/glibc-functions/accept4.texi (accept4): Likewise.
10987         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
10988         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
10989         Mention nproc module.
10990         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
10991         bug in cygwin 1.7.5 addition.
10992         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
10993         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
10994         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
10995         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
10996         1.7.5.
10997         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
10998         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
10999         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
11000         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
11001         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
11002         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
11003         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
11004         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
11005         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
11006         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
11007         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
11008         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
11009         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
11010         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
11011         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
11012         Likewise.
11013         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
11014         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
11015         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
11016         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
11017         Likewise.
11018         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
11019         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
11020         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
11021         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
11022         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
11023         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
11024         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
11025         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
11026         Likewise.
11027         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
11028         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
11029         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
11030         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
11031         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
11032         Likewise.
11033         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
11034         Likewise.
11035         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
11036         Likewise.
11037         * doc/glibc-functions/xdrrec_endofrecord.texi
11038         (xdrrec_endofrecord): Likewise.
11039         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
11040         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
11041         Likewise.
11042         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
11043         Likewise.
11044
11045 2010-05-04  Jim Meyering  <meyering@redhat.com>
11046
11047         gendocs.sh: make its "-s FILE" option more useful
11048         * build-aux/gendocs.sh: When honoring the -s FILE option, update
11049         $PACKAGE to reflect the probably-different basename of "FILE".
11050
11051 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
11052
11053         bootstrap: don't ignore download_po_files failure
11054         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
11055         failure.
11056
11057 2010-05-03  Jim Meyering  <meyering@redhat.com>
11058
11059         maint.mk: allow to pass options to gendocs.sh
11060         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
11061         (gendocs_options_): New overridable variable.
11062
11063         gnu-web-doc-update: don't ignore configure or build failure
11064         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
11065
11066         announce-gen: backslash-escape '@'s in --help output
11067         * build-aux/announce-gen: Fix syntax errors.
11068
11069         maint.mk, announce-gen: allow project-specific announcement mail headers
11070         * top/maint.mk (translation_project_): Define default.
11071         (announcement_Cc_, announcement_mail_headers_): Likewise.
11072         (announcement): Invoke announce-gen with new --mail-headers option.
11073         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
11074
11075         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
11076         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
11077         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
11078         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
11079         line in the "err2" output file when running "make check" in verbose
11080         mode (i.e., with set -x enabled).
11081
11082 2010-05-03  Bruno Haible  <bruno@clisp.org>
11083
11084         wctob: Fix for weird platforms.
11085         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
11086         argument value.
11087
11088 2010-05-03  Jim Meyering  <meyering@redhat.com>
11089
11090         maint.mk: prohibit unwarranted use of <strings.h>
11091         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
11092         strings.h in a file that does not also use strcasecmp, strncasecmp,
11093         ffs or ffsll.
11094
11095         maint.mk: remove obsolete comments
11096         * top/maint.mk: Remove stale, commented-out rules.
11097
11098 2010-05-02  Bruno Haible  <bruno@clisp.org>
11099
11100         wcwidth: Declare also when it's aliased.
11101         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
11102         macro.
11103
11104 2010-05-02  Bruno Haible  <bruno@clisp.org>
11105
11106         Fix regression from 2010-04-25.
11107         * gnulib-tool (func_modules_transitive_closure): Check the status of
11108         all modules, not only of the tests that are of the form foo-tests where
11109         foo is a module.
11110
11111 2010-05-02  Bruno Haible  <bruno@clisp.org>
11112
11113         wctob: Work around nasty Cygwin 1.7.2 bug.
11114         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
11115         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
11116
11117 2010-05-01  Bruno Haible  <bruno@clisp.org>
11118
11119         fpurge: Sharper test.
11120         * tests/test-fpurge.c (main): Add one more ftell check.
11121         * modules/fpurge-tests (Depends-on): Add ftell.
11122         Suggested by Eric Blake.
11123
11124 2010-05-01  Bruno Haible  <bruno@clisp.org>
11125
11126         ftello: Another test.
11127         * tests/test-ftello3.c: New file.
11128         * modules/ftello-tests (Files): Add it.
11129         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
11130         MOSTLYCLEANFILES.
11131
11132         ftell: Another test.
11133         * tests/test-ftell3.c: New file.
11134         * modules/ftell-tests (Files): Add it.
11135         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
11136         MOSTLYCLEANFILES.
11137
11138 2010-05-01  Bruno Haible  <bruno@clisp.org>
11139
11140         ftell, ftello: Work around Solaris bug.
11141         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
11142         * lib/ftello.c: Include stdio-impl.h.
11143         (ftello): On Solaris, when _IOWRT is set, compute the result without
11144         looking at _IOREAD.
11145         * modules/ftello (Files): Add lib/stdio-impl.h.
11146         * doc/posix-functions/ftell.texi: Mention Solaris bug.
11147         * doc/posix-functions/ftello.texi: Likewise.
11148         Reported by Eric Blake.
11149
11150 2010-05-01  Bruno Haible  <bruno@clisp.org>
11151
11152         freading: Adapt to special meaning of _IOREAD flag on Solaris.
11153         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
11154         the _IOWRT flag is also set.
11155
11156 2010-05-01  Bruno Haible  <bruno@clisp.org>
11157
11158         Fix doc about a HP-UX stdio bug.
11159         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
11160         * doc/posix-functions/ftello.texi: Likewise.
11161
11162 2010-05-01  Bruno Haible  <bruno@clisp.org>
11163
11164         lseek test: Fix failure on Solaris.
11165         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
11166         output.
11167
11168 2010-04-30  Jim Meyering  <meyering@redhat.com>
11169
11170         bootstrap: don't ignore failure to generate po*/Makevars
11171         * build-aux/bootstrap (with_gettext): Don't ignore failure
11172         to create po/Makevars or runtime-po/Makevars.
11173
11174 2010-04-29  Eric Blake  <eblake@redhat.com>
11175
11176         headers: relax license to LGPLv2+
11177         * modules/fcntl-h (License): Relax license.
11178         * modules/getopt-posix (License): Likewise.
11179         * modules/locale (License): Likewise.
11180         * modules/math (License): Likewise.
11181         * modules/pty (License): Likewise.
11182         * modules/sched (License): Likewise.
11183         * modules/search (License): Likewise.
11184         * modules/spawn (License): Likewise.
11185         * modules/stdarg (License): Likewise.
11186         * modules/sysexits (License): Likewise.
11187
11188 2010-04-29  Jim Meyering  <meyering@redhat.com>
11189
11190         inttypes: relax license to LGPLv2+
11191         * modules/inttypes (License): Relax license.
11192
11193 2010-04-29  Simon Josefsson  <simon@josefsson.org>
11194
11195         * top/maint.mk (indent): Run twice to produce idempotent results.
11196
11197 2010-04-28  Bruno Haible  <bruno@clisp.org>
11198
11199         getdate: Generate getdate.c in the source directory.
11200         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
11201         MOSTLYCLEANFILES.
11202         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
11203
11204 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
11205
11206         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
11207         is not declared as a const *; avoid warnings in that case.
11208
11209 2010-04-28  Eric Blake  <eblake@redhat.com>
11210
11211         canonicalize-lgpl: avoid compiler warning
11212         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
11213         declaration' / 'extraneous semicolon' warning with some compilers.
11214         Reported by Andreas Gruenbacher.
11215
11216 2010-04-28  Jim Meyering  <meyering@redhat.com>
11217
11218         init.sh: ensure a more reliable exit status when exiting via trap
11219         * tests/init.sh (setup_): Don't rely on $? in signal handler.
11220         Inspired by patches from Dmitry V. Levin.
11221         Also trap on signal 3 (SIGQUIT).
11222
11223 2010-04-27  Bruno Haible  <bruno@clisp.org>
11224
11225         Update doc about utimes().
11226         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
11227         'utimens' module.
11228         Reported by Andreas Gruenbacher <agruen@suse.de>.
11229
11230 2010-04-27  Eric Blake  <eblake@redhat.com>
11231
11232         full-read, full-write: relax license
11233         * modules/full-read (License): Drop to LGPLv2+.
11234         * modules/full-write (License): Likewise.
11235         * modules/safe-read (License): Likewise.
11236         * modules/safe-write (License): Likewise.
11237
11238         pthread: mention library for linking
11239         * modules/pthread (Link): Mention $(LIB_PTHREAD).
11240
11241 2010-04-27  Jim Meyering  <meyering@redhat.com>
11242
11243         maint.mk: fix a bug introduced in last change
11244         * top/maint.mk (gl_assured_headers_): Now that all names are on
11245         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
11246         is not anchored to end of word, it should be adequate.
11247
11248         maint.mk: avoid side-effect in latest syntax-check
11249         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
11250         to run commands via $(shell...), and hence to incur cost only when
11251         the new rule is actually run.
11252
11253         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
11254         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
11255         and use that to create a regexp used to detect all #if HAVE_..._H uses.
11256         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
11257         (gl_assured_headers_, az_, AZ_): Define.
11258         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
11259
11260 2010-04-26  Jim Meyering  <jim@meyering.net>
11261             Bruno Haible  <bruno@clisp.org>
11262
11263         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
11264         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
11265         Prompted by an exchange with Gilles Espinasse.
11266
11267 2010-04-26  Jim Meyering  <meyering@redhat.com>
11268
11269         git-version-gen: aesthetic tweak
11270         * build-aux/git-version-gen: Use "$nl" rather than a literal,
11271         so that the command remains on a single line.
11272
11273 2010-04-26  Eric Blake  <eblake@redhat.com>
11274
11275         git-version-gen: allow use on EBCDIC hosts
11276         * build-aux/git-version-gen (dirty): Use literal rather than tying
11277         ourselves to ascii.
11278         Reported by Steve Goetze.
11279
11280 2010-04-25  Bruno Haible  <bruno@clisp.org>
11281
11282         netdb: Add support for GNULIB_POSIXCHECK.
11283         * lib/netdb.in.h: Include warn-on-use.h.
11284         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
11285         functions are used when GNULIB_POSIXCHECK is defined and the
11286         getaddrinfo module is not in use.
11287         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
11288         freeaddrinfo, gai_strerror, getnameinfo are declared.
11289         * modules/netdb (Depends-on): Add warn-on-use.
11290         (Makefile.am): Include warn-on-use.h in netdb.h.
11291
11292 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
11293
11294         build: avoid "make check" failure without .git/ directory
11295         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
11296         there is no .git/ directory.
11297
11298 2010-04-25  Bruno Haible  <bruno@clisp.org>
11299
11300         ptsname: Fix misuse of ttyname_r.
11301         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
11302         of errno.
11303
11304 2010-04-25  Bruno Haible  <bruno@clisp.org>
11305
11306         ttyname_r: Make it work on Solaris 10.
11307         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
11308         if the system function has the POSIX declaration. Test whether the
11309         function fails if the buffer is less than 128 bytes large.
11310         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
11311         system's ttyname_r function. Provide a reasonably large buffer.
11312         * modules/ttyname_r (Depends-on): Add extensions.
11313         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
11314
11315 2010-04-25  Bruno Haible  <bruno@clisp.org>
11316
11317         Use the 'extensions' module for some more functions on Solaris.
11318         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
11319         module.
11320         * doc/posix-functions/ctime_r.texi: Likewise.
11321         * doc/posix-functions/getgrgid_r.texi: Likewise.
11322         * doc/posix-functions/getgrnam_r.texi: Likewise.
11323         * doc/posix-functions/getpwnam_r.texi: Likewise.
11324         * doc/posix-functions/getpwuid_r.texi: Likewise.
11325         * doc/posix-functions/readdir_r.texi: Likewise.
11326         * doc/posix-functions/sigwait.texi: Likewise.
11327         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
11328         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
11329
11330 2010-04-25  Bruno Haible  <bruno@clisp.org>
11331
11332         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
11333         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
11334         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
11335         * lib/ttyname_r.c: Include <limits.h>.
11336         (ttyname_r): Define using the system's ttyname_r function, if it exists
11337         and not on Solaris.
11338         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
11339         set.
11340         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
11341         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
11342         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
11343         Reported by Simon Josefsson.
11344
11345 2010-04-25  Bruno Haible  <bruno@clisp.org>
11346
11347         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
11348         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
11349         * doc/posix-functions/ctime_r.texi: Likewise.
11350         * doc/posix-functions/getgrgid_r.texi: Likewise.
11351         * doc/posix-functions/getgrnam_r.texi: Likewise.
11352         * doc/posix-functions/getlogin_r.texi: Likewise.
11353         * doc/posix-functions/getpwnam_r.texi: Likewise.
11354         * doc/posix-functions/getpwuid_r.texi: Likewise.
11355         * doc/posix-functions/readdir_r.texi: Likewise.
11356         * doc/posix-functions/sigwait.texi: Likewise.
11357         * doc/posix-functions/ttyname_r.texi: Likewise.
11358         Reported by Simon Josefsson.
11359
11360 2010-04-25  Bruno Haible  <bruno@clisp.org>
11361
11362         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
11363         * gnulib-tool (func_usage): Document that --with-*-tests options apply
11364         also to --create-testdir.
11365         (func_acceptable): Don't consider the status of *-tests modules here.
11366         (func_modules_transitive_closure): Consider it here, before including a
11367         test module.
11368         (func_import, func_create_testdir): Set inc_all_direct_tests,
11369         inc_all_indirect_tests.
11370         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
11371         --create-testdir and --create-megatestdir.
11372
11373 2010-04-25  Bruno Haible  <bruno@clisp.org>
11374
11375         gnulib-tool: Add --without-*-tests options.
11376         * gnulib-tool (func_usage): Document the --without-*-tests options.
11377         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
11378         excl_unportable_tests): New variables.
11379         Fail if they are specified with --import or --update.
11380         (func_acceptable): Respect the excl_*_tests variables.
11381         (func_import): Set the excl_*_tests variables to empty.
11382
11383 2010-04-25  Simon Josefsson  <simon@josefsson.org>
11384             Bruno Haible  <bruno@clisp.org>
11385
11386         Work around a MacOS X 10.4 bug with openpty.
11387         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
11388         * tests/test-openpty.c (main): Close the master side explicitly.
11389
11390 2010-04-25  Bruno Haible  <bruno@clisp.org>
11391
11392         strnlen: Fix a C++ test error on MacOS X and Solaris.
11393         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
11394         the function is not declared.
11395         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
11396         Simon Josefsson.
11397
11398 2010-04-24  Bruno Haible  <bruno@clisp.org>
11399
11400         Avoid a gcc warning.
11401         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
11402         of correct type for %08lx directive.
11403         Reported by Eric Blake.
11404
11405 2010-04-24  Bruno Haible  <bruno@clisp.org>
11406
11407         vasnprintf: Correct errno value in case of out-of-memory.
11408         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
11409         or sprintf. Use the errno value from SNPRINTF or sprintf.
11410         Reported by Ian Beckwith <ianb@erislabs.net>.
11411
11412 2010-04-24  Bruno Haible  <bruno@clisp.org>
11413
11414         ansi-c++-opt: Find correct compiler when cross-compiling.
11415         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
11416         AC_CHECK_PROGS.
11417         Reported by Simon Josefsson.
11418
11419 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
11420
11421         vc-list-files: Add support for subversion
11422         * build-aux/vc-list-files: Use "svn list" to generate the list of
11423         files controlled by subversion.
11424
11425 2010-04-23  Jim Meyering  <meyering@redhat.com>
11426
11427         vc-list-files tests: convert to use init.sh
11428         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
11429         path_prepend_.
11430         Use Exit, not exit.
11431         Use skip_ rather than open coding it.
11432         Remove trap set-up and compare definitions.
11433         * tests/test-vc-list-files-git.sh: Likewise.
11434         * modules/vc-list-files-tests (Files): Add tests/init.sh.
11435
11436 2010-04-22  Simon Josefsson  <simon@josefsson.org>
11437
11438         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
11439         backup files.
11440
11441 2010-04-21  Simon Josefsson  <simon@josefsson.org>
11442
11443         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
11444
11445 2010-04-20  Eric Blake  <eblake@redhat.com>
11446
11447         tests: be robust to ignored SIGPIPE
11448         * tests/test-select-in.sh: Consume all output.
11449         * tests/test-lseek.sh: Check correct exit status, while avoiding
11450         EPIPE.
11451
11452 2010-04-20  Simon Josefsson  <simon@josefsson.org>
11453             Bruno Haible  <bruno@clisp.org>
11454
11455         visibility: Don't use -fvisibility if it leads to a warning.
11456         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
11457         yes, don't pretend that visibility works if it leads to a warning.
11458         Reported by Mike Gran <spk121@yahoo.com>.
11459
11460 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
11461
11462         * build-aux/bootstrap: Use "git -h" for testing for supported options
11463         instead of "git --help".  The short-form option only shows a summary,
11464         and doesn't layout the full man page.  Grep for the full option name
11465         in the summary, too.
11466
11467 2010-04-19  Bruno Haible  <bruno@clisp.org>
11468
11469         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
11470         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
11471         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
11472         mention of RELOCATABLE_STRIP.
11473         Reported by Sylvain Beucler <beuc@beuc.net>.
11474
11475 2010-04-19  Bruno Haible  <bruno@clisp.org>
11476
11477         * lib/diffseq.h: Fix typo in comment.
11478         Reported by Eric Blake.
11479
11480 2010-04-19  Bruno Haible  <bruno@clisp.org>
11481
11482         ioctl: Move autoconf macro to a .m4 file.
11483         * m4/ioctl.m4: New file, extracted from modules/ioctl.
11484         * modules/ioctl (Files): Add it.
11485         (configure.ac): Simply invoke gl_FUNC_IOCTL.
11486         Reported by Ian Beckwith <ianb@erislabs.net>.
11487
11488 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
11489             Bruno Haible  <bruno@clisp.org>
11490
11491         diffseq: Accommodate use-case with abstract arrays.
11492         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
11493         is not defined.
11494         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
11495         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
11496
11497 2010-04-18  Bruno Haible  <bruno@clisp.org>
11498
11499         * doc/posix-headers/stdbool.texi: More precise wording.
11500
11501 2010-04-17  Jim Meyering  <meyering@redhat.com>
11502
11503         maint.mk: use gnu-style indentation in an embedded perl script
11504         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
11505         Rename variable: s/two/last_two_bytes/
11506
11507 2010-04-16  Eric Blake  <eblake@redhat.com>
11508
11509         test-stdbool: skip test that fails with Solaris CC
11510         * tests/test-stdbool.c (f): Skip test that causes compilation
11511         error under buggy C++ compiler.
11512         * lib/stdbool.in.h: Document the limitation.
11513         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
11514
11515         setenv: allow compilation with C++
11516         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
11517         register keyword.
11518
11519         stdint: allow test to pass with C++
11520         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
11521
11522         getopt: allow compilation with C++
11523         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
11524         struct.
11525         * lib/getopt.c (_getopt_internal_r): Use correct type.
11526         Reported by Dagobert Michelson, via Joel E. Denny.
11527
11528 2010-04-16  Bruno Haible  <bruno@clisp.org>
11529
11530         Override netdb.h always.
11531         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
11532         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
11533         Reported by Ludovic Courtès <ludo@gnu.org>.
11534
11535 2010-04-15  Bruno Haible  <bruno@clisp.org>
11536
11537         openpty: Fix mistake from 2010-03-21.
11538         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
11539         Reported by Simon Josefsson.
11540
11541 2010-04-15  Eric Blake  <eblake@redhat.com>
11542
11543         test-forkpty: fix expected signature
11544         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
11545         Reported by Simon Josefsson.
11546
11547 2010-04-15  Jim Meyering  <meyering@redhat.com>
11548
11549         maint.mk: texinfo_suffix_re_: correct the default regexp
11550         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
11551
11552         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
11553         make it configurable via texinfo_suffix_re_.
11554
11555 2010-04-14  Eric Blake  <eblake@redhat.com>
11556
11557         strtok_r: relax license to LGPLv2+
11558         * modules/strtok_r (License): Relax license.
11559         Reported by Matthias Bolte.
11560
11561 2010-04-14  Simon Josefsson  <simon@josefsson.org>
11562
11563         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
11564         version 1.4.4 by default instead of requiring the libgcrypt
11565         version used during build.  This makes it possible to use the
11566         application with older but still binary compatible libgcrypt
11567         versions.
11568
11569 2010-04-13  Eric Blake  <eblake@redhat.com>
11570
11571         getopt-gnu: match recent glibc fixes and posix ruling
11572         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
11573         '+' handling, when requesting extensions.
11574         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
11575         'W;' handling.
11576         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
11577         * doc/posix-functions/getopt.texi (getopt): Document this.
11578         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
11579         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
11580         Likewise.
11581
11582         getopt: merge bug fixes from glibc
11583         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
11584         diagnostics.  Honor '+:' correctly.  Reject ';'.
11585
11586         getopt-posix: detect MacOS bug
11587         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
11588         optind when missing a required argument.
11589         * doc/posix-functions/getopt.texi (getopt): Document the bug.
11590         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
11591         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
11592         Likewise.
11593
11594         getopt-posix: avoid spurious failure on Solaris
11595         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
11596         an indicator that setting optind=1 is sufficient for reset.
11597
11598         getopt-posix: avoid spurious failure on FreeBSD
11599         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
11600         in POSIX mode, since the m4 test uses it.
11601
11602         gnulib-tool: silence warning on BSD sh
11603         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
11604
11605 2010-04-13  Jim Meyering  <meyering@redhat.com>
11606
11607         doc: users.txt: GNU patch now uses gnulib
11608         * users.txt: Add patch.
11609
11610 2010-04-12  Jim Meyering  <meyering@redhat.com>
11611
11612         maint.mk: generate more concise timing data for syntax-check rules
11613         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
11614         " done" from each line that reports a syntax-check test duration.
11615
11616 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
11617
11618         git-version-gen: use "git update-index..." rather than "git status"
11619         * build-aux/git-version-gen: Use git update-index --refresh, not
11620         "git status".  With some versions of git, "git status" would fail
11621         to update the index and result in an unwarranted "-dirty" suffix.
11622
11623 2010-04-11  Jim Meyering  <meyering@redhat.com>
11624
11625         openat: correct formatting (no semantic change)
11626         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
11627         Suggested by Bruno Haible.
11628
11629 2010-04-11  Bruno Haible  <bruno@clisp.org>
11630
11631         Stricter declaration checking in testdirs.
11632         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
11633         If for_tests is true, augment AM_CPPFLAGS to define
11634         GNULIB_STRICT_CHECKING.
11635         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
11636         GNULIB_STRICT_CHECKING is defined, verify that the function is
11637         declared.
11638
11639 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
11640             Bruno Haible  <bruno@clisp.org>
11641
11642         libunistring: Improve configure output.
11643         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
11644         Don't say "consider installing GNU libunistring" when checking again
11645         with libiconv.
11646
11647 2010-04-11  Bruno Haible  <bruno@clisp.org>
11648
11649         libunistring: Correct value of $LTLIBUNISTRING.
11650         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
11651         correct the value of $LTLIBUNISTRING.
11652
11653 2010-04-11  Bruno Haible  <bruno@clisp.org>
11654
11655         havelib: Add static libraries to LIBS in the right order.
11656         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
11657         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
11658
11659 2010-04-11  Bruno Haible  <bruno@clisp.org>
11660
11661         libunistring: Detect libunistring also when it depends on libiconv.
11662         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
11663         the second AC_LIB_HAVE_LINKFLAGS invocation.
11664
11665 2010-04-11  James Youngman  <jay@gnu.org>
11666
11667         close-stream: declare local scalars to be "const"
11668         * lib/close-stream.c (close_stream): Make boolean variables const
11669         to document the fact that we set but do not change them.
11670
11671 2010-04-11  Bruno Haible  <bruno@clisp.org>
11672
11673         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
11674
11675 2010-04-11  Jim Meyering  <meyering@redhat.com>
11676
11677         maint.mk: don't include dist-check.mk
11678         * top/maint.mk: Remove bogus include directive.
11679
11680         maint.mk: improve empty-line-at-EOF check
11681         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
11682         solution, rather than tail+Perl-based one.  The latter would read
11683         a few kilobytes from the end of each file, and did not handle empty
11684         files properly.
11685
11686         maint.mk: print the elapsed time for each syntax-check rule
11687         * top/maint.mk (sc_m_rules_): Save start time in a file.
11688         (sc_z_rules_): New rules: remove temp file and print elapsed time.
11689         (local-check): Interpose the .z rules
11690
11691 2010-04-11  Jim Meyering  <meyering@redhat.com>
11692
11693         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
11694         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
11695         empty file with one that ends in an empty line.
11696
11697 2010-04-10  Bruno Haible  <bruno@clisp.org>
11698
11699         mkdir: Make it work on mingw64.
11700         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
11701         * lib/mkdir.c: Update comment.
11702         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
11703
11704 2010-04-10  Bruno Haible  <bruno@clisp.org>
11705
11706         Don't override improved macro from newer autoconf.
11707         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
11708         autoconf >= 2.62.
11709         Reported by Joel E. Denny <jdenny@clemson.edu>.
11710
11711 2010-04-10  Jim Meyering  <meyering@redhat.com>
11712
11713         maint.mk: new syntax-check rule: prohibit empty lines at end of file
11714         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
11715
11716         maint.mk: correct a diagnostic
11717         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
11718         in diagnostic; now use $prohibit.
11719
11720 2010-04-10  Bruno Haible  <address@hidden>
11721
11722         fchownat: Fix a C++ test error on Solaris 8.
11723         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
11724         the function does not exist.
11725
11726 2010-04-10  Bruno Haible  <bruno@clisp.org>
11727
11728         vasnprintf: Add more tests.
11729         * tests/test-vasnprintf-posix.c: Include <errno.h>.
11730         (test_function): Test converting an invalid wide string.
11731
11732         vasnprintf: Correct handling of unconvertible wide string arguments.
11733         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
11734         VASNPRINTF.
11735         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
11736         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
11737         smaller than the expected maximum need for the directive. Set errno to
11738         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
11739         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
11740         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
11741         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
11742         * modules/vasnprintf (Files): Add m4/printf.m4.
11743         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
11744
11745 2010-04-10  Bruno Haible  <bruno@clisp.org>
11746
11747         vasnprintf: Fix crash in %ls directive.
11748         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
11749         string is passed as argument to %ls, with no precision and no width.
11750         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
11751
11752 2010-04-10  Bruno Haible  <bruno@clisp.org>
11753
11754         vasnprintf: Fix multiple test failures on mingw.
11755         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
11756         _snprintf, or snwprintf, not _snwprintf.
11757
11758 2010-04-10  Bruno Haible  <bruno@clisp.org>
11759
11760         write: Fix a C++ test error on mingw.
11761         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
11762
11763 2010-04-10  Bruno Haible  <bruno@clisp.org>
11764
11765         vasnprintf test: Reduce code duplication.
11766         * tests/test-vasnprintf.c (test_function): New function, extracted from
11767         test_vasnprintf.
11768         (test_vasnprintf, test_asnprintf): Invoke it.
11769
11770 2010-04-10  Bruno Haible  <bruno@clisp.org>
11771
11772         strnlen: Fix warning in C++ mode on MacOS X.
11773         * lib/string.in.h (strnlen): Use the modern idiom.
11774         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
11775         defining strnlen as a macro already in <config.h>.
11776         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
11777         REPLACE_STRNLEN.
11778         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
11779         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
11780
11781 2010-04-08  James Youngman  <jay@gnu.org>
11782
11783         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
11784         the example.
11785
11786 2010-04-09  Jim Meyering  <meyering@redhat.com>
11787
11788         maint.mk: print better diagnostic when there is no $(_hv_file)
11789         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
11790         announce that when $(_hv_file) (aka help-version) does not exist.
11791
11792         init.sh: run tr in the "C" locale to avoid multibyte interpretation
11793         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
11794         not try to interpret its random input bytes.  Jarno Rajahalme reported
11795         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
11796         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
11797         (mktempd_): Likewise, just in case.
11798
11799         ftruncate: add two years to projected module removal date: 2012
11800         * m4/ftruncate.m4: Adjust comments.
11801
11802         ftruncate: mark module as obsolete; even MinGW provides it, now
11803         * modules/ftruncate (Status): Obsolete.
11804         (Notice): Say that.
11805         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
11806         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
11807
11808 2010-04-08  Bruno Haible  <bruno@clisp.org>
11809
11810         Fix side effects from tests-related modules.
11811         * modules/dprintf-posix (Comment): New section.
11812         * modules/fprintf-posix (Comment): Likewise.
11813         * modules/obstack-printf-posix (Comment): Likewise.
11814         * modules/printf-posix (Comment): Likewise.
11815         * modules/snprintf-posix (Comment): Likewise.
11816         * modules/sprintf-posix (Comment): Likewise.
11817         * modules/vasnprintf-posix (Comment): Likewise.
11818         * modules/vasprintf-posix (Comment): Likewise.
11819         * modules/vdprintf-posix (Comment): Likewise.
11820         * modules/vfprintf-posix (Comment): Likewise.
11821         * modules/vprintf-posix (Comment): Likewise.
11822         * modules/vsnprintf-posix (Comment): Likewise.
11823         * modules/vsprintf-posix (Comment): Likewise.
11824         * modules/xprintf-posix (Comment): Likewise.
11825         * modules/xvasprintf-posix (Comment): Likewise.
11826         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
11827         * modules/floorf-tests (Depends-on): Likewise.
11828         * modules/round-tests (Depends-on): Likewise.
11829         * modules/roundf-tests (Depends-on): Likewise.
11830         * modules/trunc-tests (Depends-on): Likewise.
11831         * modules/truncf-tests (Depends-on): Likewise.
11832         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
11833         'fprintf-posix' module is not present.
11834         * tests/test-floorf2.c (check): Likewise.
11835         * tests/test-trunc2.c (check): Likewise.
11836         * tests/test-truncf2.c (check): Likewise.
11837         * tests/test-round2.c (equal): Likewise.
11838         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
11839
11840 2010-04-07  Karl Berry  <karl@gnu.org>
11841
11842         * config/srclist.txt,
11843         * config/srclistvars.sh,
11844         * config/srclist-update: doc fixes.
11845
11846 2010-04-07  Jim Meyering  <meyering@redhat.com>
11847
11848         maint.mk: add a PATH crosschecking syntax-check rule
11849         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
11850         Useful if you use a test like the one in help-version (coreutils,
11851         diffutils, grep, gzip) that ensures $(VERSION) matches what is
11852         printed by prog --version.
11853
11854 2010-04-06  Bruno Haible  <bruno@clisp.org>
11855
11856         Fix link error on mingw.
11857         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
11858         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
11859
11860 2010-04-06  Bruno Haible  <bruno@clisp.org>
11861
11862         Assume rmdir exists.
11863         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
11864
11865 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
11866
11867         doc: update users.txt
11868         * users.txt: Add gcal.
11869
11870 2010-04-06  Jim Meyering  <meyering@redhat.com>
11871
11872         init.sh: simply unset TMPDIR rather than risking env -i
11873         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
11874         although it probably works fine on all Unix-based systems, some
11875         systems (Cygwin?) cannot tolerate a totally cleared environment.
11876         Suggestion from Eric Blake.
11877
11878 2010-04-06  Jim Meyering  <meyering@redhat.com>
11879
11880         init.sh: portability fix: use env's POSIX-specified -i option not -u
11881         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
11882         than unportable env -u.  Solaris 5.11's env lacks support for -u.
11883
11884 2010-04-05  Bruno Haible  <bruno@clisp.org>
11885
11886         btowc: Work around Cygwin 1.7.2 bug.
11887         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
11888         does not map NUL to 0.
11889         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
11890
11891 2010-04-05  Bruno Haible  <bruno@clisp.org>
11892
11893         Make the multithread modules work on Cygwin 1.7.2.
11894         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
11895         imported symbols can be declared weak, so that it returns "no" on
11896         Cygwin 1.7.2.
11897
11898 2010-04-05  Bruno Haible  <bruno@clisp.org>
11899
11900         Use the module 'strncat'.
11901         * modules/unistr/u8-strncat (Depends-on): Add strncat.
11902
11903         Tests for module 'strncat'.
11904         * modules/strncat-tests: New file.
11905         * tests/test-strncat.c: New file.
11906
11907         New module 'strncat'.
11908         * lib/string.in.h (strncat): New declaration.
11909         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
11910         * m4/strncat.m4: New file, based on m4/memchr.m4.
11911         * modules/strncat: New file.
11912         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
11913         is declared.
11914         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
11915         REPLACE_STRNCAT.
11916         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
11917         REPLACE_STRNCAT.
11918         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
11919         module.
11920         * tests/test-string-c++.cc: Check signature of strncat.
11921
11922 2010-04-05  Jim Meyering  <meyering@redhat.com>
11923
11924         xstrtoumax-tests: convert to use init.sh
11925         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
11926         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
11927         Use Exit, not exit.
11928         Remove uses of $EXEEXT and "./" to run a program in the current dir.
11929
11930         xstrtoimax-tests: convert to use init.sh
11931         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
11932         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
11933         Use Exit, not exit.
11934         Remove uses of $EXEEXT and "./" to run a program in the current dir.
11935
11936 2010-04-05  Bruno Haible  <bruno@clisp.org>
11937
11938         sys_socket: Avoid #define replacements in C++ mode.
11939         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
11940         warning to the function if possible, rather than #defining the symbol
11941         to a dysfunctional alias.
11942
11943 2010-04-05  Bruno Haible  <bruno@clisp.org>
11944
11945         fseeko: Fix C++ test error on mingw.
11946         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
11947         gl_FUNC_FSEEKO.
11948         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
11949         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
11950         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
11951         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
11952
11953 2010-04-05  Bruno Haible  <bruno@clisp.org>
11954
11955         duplocale: Improve test output.
11956         * tests/test-duplocale.c (main): Print reason for skipped test.
11957
11958 2010-04-05  Bruno Haible  <bruno@clisp.org>
11959
11960         Assume rmdir exists.
11961         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
11962         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
11963
11964 2010-04-05  Bruno Haible  <bruno@clisp.org>
11965
11966         Fix link error on Solaris 8 with cc.
11967         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
11968
11969 2010-04-05  Bruno Haible  <bruno@clisp.org>
11970
11971         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
11972         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
11973
11974 2010-04-05  Bruno Haible  <bruno@clisp.org>
11975
11976         vasprintf: Update documentation.
11977         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
11978
11979 2010-04-05  Bruno Haible  <bruno@clisp.org>
11980
11981         ptsname: Improve test.
11982         * tests/test-ptsname.c (main): Also try the various master names of BSD
11983         systems.
11984
11985 2010-04-05  Bruno Haible  <bruno@clisp.org>
11986
11987         memchr: Avoid a possible C++ test error.
11988         * lib/string.in.h (memchr): Provide declaration if function is missing.
11989         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
11990         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
11991         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
11992         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
11993
11994 2010-04-05  Bruno Haible  <bruno@clisp.org>
11995
11996         strtok_r: Improve idiom.
11997         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
11998         AC_LIBOBJ is used.
11999
12000 2010-04-05  Bruno Haible  <bruno@clisp.org>
12001
12002         strdup: Improve idiom.
12003         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
12004         AC_LIBOBJ is used.
12005         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
12006         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
12007         when AC_LIBOBJ is used.
12008
12009 2010-04-05  Bruno Haible  <bruno@clisp.org>
12010
12011         mbsinit, mbrtowc, wcrtomb: Improve idioms.
12012         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
12013         don't set REPLACE_MBSINIT to 1.
12014         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
12015         don't set REPLACE_MBRTOWC to 1.
12016         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
12017         exist, don't set REPLACE_MBSRTOWCS to 1.
12018         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
12019         exist, don't set REPLACE_MBSNRTOWCS to 1.
12020         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
12021         don't set REPLACE_WCRTOMB to 1.
12022         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
12023         exist, don't set REPLACE_WCSRTOMBS to 1.
12024         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
12025         exist, don't set REPLACE_WCSNRTOMBS to 1.
12026
12027 2010-04-05  Bruno Haible  <bruno@clisp.org>
12028
12029         ldexpl: Improve idiom.
12030         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
12031         make sure to set HAVE_DECL_LDEXPL to 0.
12032
12033 2010-04-05  Jim Meyering  <meyering@redhat.com>
12034
12035         xstrtol-tests: convert to use init.sh
12036         * modules/xstrtol-tests (Files): Add tests/init.sh.
12037         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
12038         Use Exit, not exit.
12039         Remove uses of $EXEEXT and "./" to run a program in the current dir.
12040
12041         atexit-tests: convert to use init.sh
12042         * modules/atexit-tests (Files): Add tests/init.sh.
12043         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
12044         Use Exit, not exit.
12045         Remove uses of $EXEEXT and "./" to run a program in the current dir.
12046
12047         init.sh: fix typo
12048         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
12049
12050         init.sh: make it easier for a test script to write to the tty, ...
12051         when using automake's parallel-tests mode.
12052         * tests/init.sh (stderr_fileno_): Define overridable variable.
12053         (warn_): New function, to use it.
12054         (fail_, skip_, framework_failure_): Use warn_.
12055
12056 2010-04-04  Bruno Haible  <bruno@clisp.org>
12057
12058         btowc: Avoid warning.
12059         * lib/btowc.c: Include <stdlib.h>.
12060         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
12061
12062 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
12063             Bruno Haible  <bruno@clisp.org>
12064
12065         wchar: Port to NetBSD 1.5.
12066         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
12067         * lib/wctype.in.h (WEOF): Likewise.
12068
12069 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
12070             Bruno Haible  <bruno@clisp.org>
12071
12072         Port extended stdio to NetBSD 1.5.
12073         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
12074         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
12075         older.
12076
12077 2010-04-04  Bruno Haible  <bruno@clisp.org>
12078
12079         string: Remove unused substitution.
12080         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
12081         HAVE_DECL_STRERROR.
12082         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
12083
12084 2010-04-04  Bruno Haible  <bruno@clisp.org>
12085
12086         strtod: Avoid a possible C++ test error.
12087         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
12088         set REPLACE_STRTOD.
12089
12090 2010-04-04  Bruno Haible  <bruno@clisp.org>
12091
12092         strerror: Update documentation.
12093         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
12094
12095 2010-04-04  Bruno Haible  <bruno@clisp.org>
12096
12097         stdio: Fix some C++ test errors on Solaris 8 with GCC.
12098         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
12099         _GL_CXXALIAS_SYS_CAST.
12100
12101 2010-04-04  Bruno Haible  <bruno@clisp.org>
12102
12103         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
12104         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
12105         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
12106         REPLACE_FREXPL to 1.
12107         * doc/posix-functions/frexpl.texi: Update documentation.
12108
12109 2010-04-04  Bruno Haible  <bruno@clisp.org>
12110
12111         math: Fix some C++ test errors on Solaris 8 and Cygwin.
12112         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
12113
12114 2010-04-04  Bruno Haible  <bruno@clisp.org>
12115
12116         Implement nanosleep for native Windows.
12117         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
12118
12119 2010-04-04  Bruno Haible  <bruno@clisp.org>
12120
12121         math: Fix some C++ test errors on Solaris 8.
12122         * lib/math.in.h (truncf, trunc): Use simpler idiom.
12123
12124 2010-04-04  Bruno Haible  <bruno@clisp.org>
12125
12126         math: Fix some C++ test errors on Cygwin.
12127         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
12128         truncl): Provide declaration if the system does not have it.
12129         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
12130         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
12131         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
12132         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
12133         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
12134         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
12135         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
12136         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
12137         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
12138         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
12139         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
12140         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
12141         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
12142         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
12143         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
12144         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
12145         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
12146         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
12147         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
12148         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
12149         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
12150         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
12151
12152 2010-04-04  Bruno Haible  <bruno@clisp.org>
12153
12154         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
12155         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
12156         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
12157         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
12158         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
12159         * m4/isinf.m4 (gl_ISINF): Likewise.
12160         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
12161
12162 2010-04-04  Bruno Haible  <bruno@clisp.org>
12163
12164         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
12165         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
12166
12167 2010-04-04  Bruno Haible  <bruno@clisp.org>
12168
12169         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
12170         * modules/tmpfile (configure.ac): Update.
12171
12172         tmpfile: Fix C++ test error on mingw.
12173         * lib/stdio.in.h (tmpfile): New declaration.
12174         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
12175         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
12176         * modules/tmpfile (Depends-on): Add stdio.
12177         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
12178         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
12179         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
12180         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
12181         REPLACE_TMPFILE.
12182         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
12183
12184 2010-04-04  Bruno Haible  <bruno@clisp.org>
12185
12186         ioctl: Fix C++ test error on mingw.
12187         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
12188         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
12189         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
12190
12191 2010-04-03  Bruno Haible  <bruno@clisp.org>
12192
12193         wcwidth: Fix C++ test error on mingw.
12194         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
12195         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
12196         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
12197
12198 2010-04-03  Bruno Haible  <bruno@clisp.org>
12199
12200         nanosleep: Fix C++ test error on mingw.
12201         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
12202         * lib/time.in.h (nanosleep): Use modern idiom.
12203         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
12204         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
12205         REPLACE_NANOSLEEP to 1.
12206         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
12207         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
12208
12209 2010-04-03  Bruno Haible  <bruno@clisp.org>
12210
12211         strptime: Fix C++ test error on mingw.
12212         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
12213         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
12214         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
12215         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
12216         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
12217         not REPLACE_STRPTIME.
12218         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
12219         REPLACE_STRPTIME.
12220
12221 2010-04-03  Bruno Haible  <bruno@clisp.org>
12222
12223         timegm: Fix C++ test error on mingw.
12224         * lib/time.in.h (timegm): Use modern idiom.
12225         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
12226         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
12227         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
12228         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
12229
12230 2010-04-03  Bruno Haible  <bruno@clisp.org>
12231
12232         timegm: Assume declaration if function exists.
12233         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
12234         if it exists. Don't clobber ac_cv_func_timegm.
12235
12236 2010-04-03  Bruno Haible  <bruno@clisp.org>
12237
12238         time_r: Fix C++ test error on mingw.
12239         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
12240         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
12241         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
12242         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
12243         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
12244
12245 2010-04-03  Bruno Haible  <bruno@clisp.org>
12246
12247         time_r: Minor updates.
12248         * modules/time_r (Description): Mention the provided functions.
12249         * lib/time_r.c: Don't include <string.h>.
12250         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
12251         * doc/posix-functions/localtime_r.texi: Likewise.
12252
12253 2010-04-03  Bruno Haible  <bruno@clisp.org>
12254
12255         time: Fix regression introduced on 2010-03-08.
12256         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
12257         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
12258
12259 2010-04-03  Jim Meyering  <meyering@redhat.com>
12260
12261         maint.mk: don't silently disable project-specific syntax-check rules
12262         * top/maint.mk (_prohibit_regexp): Define, to help people realize
12263         that they need to convert their project-specific syntax-check rules
12264         to use the new _sc_search_regexp.
12265
12266 2010-04-03  Bruno Haible  <bruno@clisp.org>
12267
12268         fchdir: Fix regression introduced on 2010-03-08.
12269         * lib/unistd.in.h (fchdir): Fix declaration.
12270         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
12271         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
12272         REPLACE_FCHDIR.
12273         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
12274         REPLACE_FCHDIR.
12275
12276 2010-04-03  Bruno Haible  <bruno@clisp.org>
12277
12278         getpagesize: Fix C++ test error on mingw.
12279         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
12280         system does not declare the function.
12281         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
12282         declared.
12283         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
12284         HAVE_DECL_GETPAGESIZE.
12285         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
12286
12287 2010-04-03  Bruno Haible  <bruno@clisp.org>
12288
12289         stdio: Make C++ tests work on mingw.
12290         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
12291         does not declare the function.
12292
12293 2010-04-03  Bruno Haible  <bruno@clisp.org>
12294
12295         ftello: Fix C++ test error on mingw.
12296         * lib/stdio.in.h (ftello): Use modern idiom.
12297         * lib/ftello.c (ftello): Renamed from rpl_ftello.
12298         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
12299         is missing and that it needs to be replaced.
12300         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
12301         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
12302         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
12303
12304 2010-04-03  Bruno Haible  <bruno@clisp.org>
12305
12306         fseeko: Fix C++ test error on mingw.
12307         * lib/stdio.in.h (fseeko): Use modern idiom.
12308         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
12309         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
12310         is missing and that it needs to be replaced.
12311         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
12312         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
12313         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
12314
12315 2010-04-03  Bruno Haible  <bruno@clisp.org>
12316
12317         mkstemp: Fix C++ test error on mingw.
12318         * lib/stdlib.in.h (mkstemp): Use modern idiom.
12319         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
12320         function is missing and that it needs to be replaced.
12321         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
12322         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
12323
12324 2010-04-03  Bruno Haible  <bruno@clisp.org>
12325
12326         stpncpy: Fix C++ test error on mingw.
12327         * lib/string.in.h (stpncpy): Use modern idiom.
12328         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
12329         function is missing and that it needs to be replaced.
12330         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
12331         REPLACE_STPNCPY.
12332         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
12333
12334 2010-04-03  Bruno Haible  <bruno@clisp.org>
12335
12336         sys_stat: Fix C++ test error on mingw.
12337         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
12338         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
12339
12340 2010-04-03  Bruno Haible  <bruno@clisp.org>
12341
12342         pty: Update doc.
12343         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
12344
12345 2010-04-03  Bruno Haible  <bruno@clisp.org>
12346
12347         unistd: Fix C++ test error on mingw.
12348         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
12349
12350 2010-04-03  Bruno Haible  <bruno@clisp.org>
12351
12352         Update doc regarding mingw.
12353         * doc/glibc-functions/openpty.texi: Update regarding mingw.
12354         * doc/glibc-functions/login_tty.texi: Likewise.
12355         * doc/glibc-functions/forkpty.texi: Likewise.
12356
12357 2010-04-03  Bruno Haible  <bruno@clisp.org>
12358
12359         stdlib: Avoid compilation failure of c-strtold on mingw.
12360         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
12361
12362 2010-04-03  Bruno Haible  <bruno@clisp.org>
12363
12364         locale: Make C++ tests work on Cygwin and mingw.
12365         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
12366         cannot provide the function.
12367         Reported by Simon Josefsson.
12368
12369 2010-04-03  Bruno Haible  <bruno@clisp.org>
12370
12371         localename: Port to MacOS X 10.6.
12372         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
12373         memory layout of the locales in MacOS X 10.6 as well.
12374         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
12375
12376 2010-04-02  Bruno Haible  <bruno@clisp.org>
12377
12378         gnulib-tool: Ensure that long-running tests are executed last.
12379         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
12380         running tests after the one for the other tests.
12381
12382 2010-04-02  Bruno Haible  <bruno@clisp.org>
12383
12384         gnulib-tool: Ensure the tests in the main directory are executed first.
12385         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
12386         start with the current directory.
12387
12388 2010-04-02  Bruno Haible  <bruno@clisp.org>
12389
12390         Tests for module 'havelib', moved here from GNU gettext.
12391         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
12392         modifications.
12393         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
12394         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
12395         with modifications.
12396         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
12397         modifications.
12398         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
12399         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
12400         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
12401         with modifications.
12402         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
12403         with modifications.
12404         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
12405         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
12406         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
12407         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
12408         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
12409         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
12410         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
12411         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
12412         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
12413         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
12414         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
12415         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
12416         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
12417         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
12418         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
12419         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
12420         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
12421         with modifications.
12422         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
12423         with modifications.
12424         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
12425         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
12426         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
12427         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
12428         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
12429         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
12430         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
12431         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
12432         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
12433         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
12434         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
12435         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
12436         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
12437         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
12438         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
12439         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
12440         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
12441         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
12442         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
12443         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
12444         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
12445         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
12446         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
12447         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
12448         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
12449         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
12450         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
12451         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
12452         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
12453         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
12454         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
12455         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
12456         * tests/havelib/rpathx/rpathx.c: New file, from
12457         gettext/autoconf-lib-link.
12458         * tests/havelib/rpathx/Makefile.am: New file, from
12459         gettext/autoconf-lib-link.
12460         * tests/havelib/rpathx/configure.ac: New file, from
12461         gettext/autoconf-lib-link with modifications.
12462         * tests/havelib/rpathy/rpathy.c: New file, from
12463         gettext/autoconf-lib-link.
12464         * tests/havelib/rpathy/Makefile.am: New file, from
12465         gettext/autoconf-lib-link.
12466         * tests/havelib/rpathy/configure.ac: New file, from
12467         gettext/autoconf-lib-link with modifications.
12468         * tests/havelib/rpathz/rpathz.c: New file, from
12469         gettext/autoconf-lib-link.
12470         * tests/havelib/rpathz/Makefile.am: New file, from
12471         gettext/autoconf-lib-link.
12472         * tests/havelib/rpathz/configure.ac: New file, from
12473         gettext/autoconf-lib-link with modifications.
12474         * tests/havelib/rpathlx/usex.c: New file, from
12475         gettext/autoconf-lib-link.
12476         * tests/havelib/rpathlx/Makefile.am: New file, from
12477         gettext/autoconf-lib-link.
12478         * tests/havelib/rpathlx/configure.ac: New file, from
12479         gettext/autoconf-lib-link with modifications.
12480         * tests/havelib/rpathly/usey.c: New file, from
12481         gettext/autoconf-lib-link.
12482         * tests/havelib/rpathly/Makefile.am: New file, from
12483         gettext/autoconf-lib-link.
12484         * tests/havelib/rpathly/configure.ac: New file, from
12485         gettext/autoconf-lib-link with modifications.
12486         * tests/havelib/rpathlz/usez.c: New file, from
12487         gettext/autoconf-lib-link.
12488         * tests/havelib/rpathlz/Makefile.am: New file, from
12489         gettext/autoconf-lib-link.
12490         * tests/havelib/rpathlz/configure.ac: New file, from
12491         gettext/autoconf-lib-link with modifications.
12492         * tests/havelib/rpathlyx/usey.c: New file, from
12493         gettext/autoconf-lib-link.
12494         * tests/havelib/rpathlyx/Makefile.am: New file, from
12495         gettext/autoconf-lib-link.
12496         * tests/havelib/rpathlyx/configure.ac: New file, from
12497         gettext/autoconf-lib-link with modifications.
12498         * tests/havelib/rpathlzyx/usez.c: New file, from
12499         gettext/autoconf-lib-link.
12500         * tests/havelib/rpathlzyx/Makefile.am: New file, from
12501         gettext/autoconf-lib-link.
12502         * tests/havelib/rpathlzyx/configure.ac: New file, from
12503         gettext/autoconf-lib-link with modifications.
12504         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
12505         with modifications.
12506
12507 2010-04-02  Bruno Haible  <bruno@clisp.org>
12508
12509         gnulib-tool: Create distributed built sources also for the tests.
12510         * gnulib-tool (func_create_testdir): Also generate distributed built
12511         sources in the tests directory.
12512
12513 2010-04-02  Bruno Haible  <bruno@clisp.org>
12514
12515         gnulib-tool: Obey user's environment variables.
12516         * gnulib-tool (func_create_testdir): When creating built sources,
12517         respect the environment variables for autoconf, automake, etc. given by
12518         the user.
12519
12520 2010-04-02  Bruno Haible  <bruno@clisp.org>
12521
12522         gnulib-tool: Provide the value of --m4-base to modules.
12523         * gnulib-tool (func_import, func_create_testdir): Emit a definition
12524         of gl_m4_base.
12525
12526 2010-04-02  Eric Blake  <eblake@redhat.com>
12527
12528         maint.mk: fix some fallout
12529         * NEWS: Document the incompatible change, and its effect on cfg.mk.
12530         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
12531
12532 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
12533
12534         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
12535         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
12536         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
12537         (sc_cast_of_x_alloc_return_value): Likewise.
12538         (sc_cast_of_alloca_return_value): Likewise.
12539         (sc_space_tab): Likewise.
12540         (sc_prohibit_atoi_atof): Likewise.
12541         (sc_prohibit_magic_number_exit): Likewise.
12542         (sc_error_exit_success): Likewise.
12543         (sc_file_system): Likewise.
12544         (sc_prohibit_have_config_h): Likewise.
12545         (sc_require_config_h): Likewise.
12546         (sc_prohibit_HAVE_MBRTOWC): Likewise.
12547         (sc_obsolete_symbols): Likewise.
12548         (sc_changelog): Likewise.
12549         (sc_program_name): Likewise.
12550         (sc_the_the): Likewise.
12551         (sc_trailing_blank): Likewise.
12552         (sc_two_space_separator_in_usage): Likewise.
12553         (sc_useless_cpp_parens): Likewise.
12554         (sc_GPL_version): Likewise.
12555         (sc_GFDL_version): Likewise.
12556         (sc_texinfo_acronym): Likewise.
12557         (sc_prohibit_cvs_keyword): Likewise.
12558         (sc_prohibit_stat_st_blocks): Likewise.
12559         (sc_prohibit_S_IS_definition): Likewise.
12560         (sc_redundant_const): Likewise.
12561         (sc_makefile_TAB_only_indentation): Likewise.
12562         (sc_m4_quote_check): Likewise.
12563         (sc_makefile_path_separator_check): Likewise.
12564         (sc_copyright_check): Likewise.
12565         (sc_Wundef_boolean): Likewise.
12566         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
12567
12568         maint.mk: match 0 or more whitespace-before-function-call '('
12569         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
12570         that have zero or two-and-more spaces between the function name
12571         and the open parenthesis.
12572         (sc_error_message_warn_fatal): Likewise.
12573         (sc_error_message_uppercase): Likewise.
12574         (sc_error_message_period): Likewise.
12575
12576 2010-03-31  Eric Blake  <eblake@redhat.com>
12577
12578         maint.mk: check for [ as well as test
12579         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
12580         Based on a libvirt report by Matthias Bolte.
12581
12582         gnumakefile: don't squelch _version output
12583         * top/GNUmakefile (_version): Create one-shot dependency rather
12584         than using $(shell) when version must be regenerated.
12585         (_autoreconf): Run verbosely, by default.
12586
12587         sys_time: avoid compiler warnings
12588         * lib/sys_time.in.h (includes): Ensure gcc pragma is
12589         unconditional, fixing regression from 2010-03-29.
12590         Reported by Simon Josefsson.
12591
12592 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
12593
12594         maint.mk: s/_header_without_use/_sc_header_without_use/
12595         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
12596         (sc_prohibit_assert_without_use): Use the new name.
12597         (sc_prohibit_close_stream_without_use): Likewise.
12598         (sc_prohibit_getopt_without_use): Likewise.
12599         (sc_prohibit_quotearg_without_use): Likewise.
12600         (sc_prohibit_quote_without_use): Likewise.
12601         (sc_prohibit_long_options_without_use): Likewise.
12602         (sc_prohibit_inttostr_without_use): Likewise.
12603         (sc_prohibit_ignore_value_without_use): Likewise.
12604         (sc_prohibit_error_without_use): Likewise.
12605         (sc_prohibit_xalloc_without_use): Likewise.
12606         (sc_prohibit_hash_without_use): Likewise.
12607         (sc_prohibit_hash_pjw_without_use): Likewise.
12608         (sc_prohibit_safe_read_without_use): Likewise.
12609         (sc_prohibit_argmatch_without_use): Likewise.
12610         (sc_prohibit_canonicalize_without_use): Likewise.
12611         (sc_prohibit_root_dev_ino_without_use): Likewise.
12612         (sc_prohibit_openat_without_use): Likewise.
12613         (sc_prohibit_c_ctype_without_use): Likewise.
12614         (sc_prohibit_signal_without_use): Likewise.
12615         (sc_prohibit_intprops_without_use): Likewise.
12616
12617 2010-03-30  Eric Blake  <eblake@redhat.com>
12618
12619         maint: improve module indicators
12620         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
12621         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
12622         columns, and avoid extra macro expansion.
12623
12624         fdopendir: work around FreeBSD bug
12625         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
12626         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
12627         * modules/dirent (Makefile.am): Substitute it.
12628         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
12629         declaration.
12630         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
12631         fix.
12632         Reported by Christian Weisgerber <naddy@mips.inka.de>.
12633
12634 2010-03-29  Bruno Haible  <bruno@clisp.org>
12635
12636         Emit #pragma system_header after the inclusion guard, not before.
12637         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
12638         guard that spans the entire file, not before. This enables an
12639         optimization in GCC's preprocessor.
12640         * lib/ctype.in.h: Likewise.
12641         * lib/dirent.in.h: Likewise.
12642         * lib/errno.in.h: Likewise.
12643         * lib/float.in.h: Likewise.
12644         * lib/getopt.in.h: Likewise.
12645         * lib/iconv.in.h: Likewise.
12646         * lib/langinfo.in.h: Likewise.
12647         * lib/locale.in.h: Likewise.
12648         * lib/math.in.h: Likewise.
12649         * lib/netdb.in.h: Likewise.
12650         * lib/netinet_in.in.h: Likewise.
12651         * lib/pty.in.h: Likewise.
12652         * lib/sched.in.h: Likewise.
12653         * lib/se-selinux.in.h: Likewise.
12654         * lib/search.in.h: Likewise.
12655         * lib/spawn.in.h: Likewise.
12656         * lib/stdarg.in.h: Likewise.
12657         * lib/stdint.in.h: Likewise.
12658         * lib/string.in.h: Likewise.
12659         * lib/strings.in.h: Likewise.
12660         * lib/sys_file.in.h: Likewise.
12661         * lib/sys_ioctl.in.h: Likewise.
12662         * lib/sys_time.in.h: Likewise.
12663         * lib/sys_times.in.h: Likewise.
12664         * lib/sys_utsname.in.h: Likewise.
12665         * lib/sys_wait.in.h: Likewise.
12666         * lib/sysexits.in.h: Likewise.
12667         * lib/wctype.in.h: Likewise.
12668
12669 2010-03-28  James Youngman  <jay@gnu.org>
12670
12671         save-cwd: don't leak a file descriptor when the caller execs.
12672         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
12673         saved file descriptor.
12674         * modules/save-cwd (Depends-on): Depend on cloexec.
12675
12676 2010-03-29  Bruno Haible  <bruno@clisp.org>
12677
12678         Remove vestiges of fts-lgpl module.
12679         * lib/fts_.h: Assume GNULIB_FTS is 1.
12680         * lib/fts.c: Likewise.
12681         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
12682
12683 2010-03-28  Bruno Haible  <bruno@clisp.org>
12684
12685         Fix definition of tests witness macro.
12686         * gnulib-tool (func_import): Fix definition of witness macro.
12687
12688 2010-03-28  Bruno Haible  <bruno@clisp.org>
12689
12690         Fix ioctl's protoype on glibc systems.
12691         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
12692         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
12693         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
12694         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
12695         signature. If not, arrange to replace the ioctl function.
12696         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
12697         REPLACE_IOCTL.
12698         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
12699         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
12700         Reported by Ludovic Courtès <ludo@gnu.org>.
12701
12702 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
12703
12704         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
12705         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
12706         made it so grep -r --include=GLOB* ... did not work.
12707
12708 2010-03-26  Jim Meyering  <meyering@redhat.com>
12709             Eric Blake  <eblake@redhat.com>
12710
12711         maint.mk: prohibit use of test's -o and -a operators
12712         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
12713
12714 2010-03-28  Bruno Haible  <bruno@clisp.org>
12715
12716         Remove unused GNULIB_XYZ macro definitions.
12717         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
12718         invocation.
12719
12720 2010-03-28  Bruno Haible  <bruno@clisp.org>
12721
12722         Mark privileged tests modules.
12723         * modules/idpriv-drop-tests (Status): New section.
12724         * modules/idpriv-droptemp-tests (Status): New section.
12725
12726 2010-03-28  Bruno Haible  <bruno@clisp.org>
12727
12728         Split C++ tests into separate tests modules.
12729         * modules/dirent-c++-tests: New file, extracted from
12730         modules/dirent-tests.
12731         * modules/dirent-tests: Depend on it.
12732         * modules/fcntl-h-c++-tests: New file, extracted from
12733         modules/fcntl-h-tests.
12734         * modules/fcntl-h-tests: Depend on it.
12735         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
12736         * modules/glob-tests: Depend on it.
12737         * modules/iconv-h-c++-tests: New file, extracted from
12738         modules/iconv-h-tests.
12739         * modules/iconv-h-tests: Depend on it.
12740         * modules/langinfo-c++-tests: New file, extracted from
12741         modules/langinfo-tests.
12742         * modules/langinfo-tests: Depend on it.
12743         * modules/locale-c++-tests: New file, extracted from
12744         modules/locale-tests.
12745         * modules/locale-tests: Depend on it.
12746         * modules/math-c++-tests: New file, extracted from modules/math-tests.
12747         * modules/math-tests: Depend on it.
12748         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
12749         * modules/pty-tests: Depend on it.
12750         * modules/search-c++-tests: New file, extracted from
12751         modules/search-tests.
12752         * modules/search-tests: Depend on it.
12753         * modules/signal-c++-tests: New file, extracted from
12754         modules/signal-tests.
12755         * modules/signal-tests: Depend on it.
12756         * modules/spawn-c++-tests: New file, extracted from
12757         modules/spawn-tests.
12758         * modules/spawn-tests: Depend on it.
12759         * modules/stdio-c++-tests: New file, extracted from
12760         modules/stdio-tests.
12761         * modules/stdio-tests: Depend on it.
12762         * modules/stdlib-c++-tests: New file, extracted from
12763         modules/stdlib-tests.
12764         * modules/stdlib-tests: Depend on it.
12765         * modules/string-c++-tests: New file, extracted from
12766         modules/string-tests.
12767         * modules/string-tests: Depend on it.
12768         * modules/sys_ioctl-c++-tests: New file, extracted from
12769         modules/sys_ioctl-tests.
12770         * modules/sys_ioctl-tests: Depend on it.
12771         * modules/sys_select-c++-tests: New file, extracted from
12772         modules/sys_select-tests.
12773         * modules/sys_select-tests: Depend on it.
12774         * modules/sys_socket-c++-tests: New file, extracted from
12775         modules/sys_socket-tests.
12776         * modules/sys_socket-tests: Depend on it.
12777         * modules/sys_stat-c++-tests: New file, extracted from
12778         modules/sys_stat-tests.
12779         * modules/sys_stat-tests: Depend on it.
12780         * modules/sys_time-c++-tests: New file, extracted from
12781         modules/sys_time-tests.
12782         * modules/sys_time-tests: Depend on it.
12783         * modules/time-c++-tests: New file, extracted from modules/time-tests.
12784         * modules/time-tests: Depend on it.
12785         * modules/unistd-c++-tests: New file, extracted from
12786         modules/unistd-tests.
12787         * modules/unistd-tests: Depend on it.
12788         * modules/wchar-c++-tests: New file, extracted from
12789         modules/wchar-tests.
12790         * modules/wchar-tests: Depend on it.
12791         * modules/wctype-c++-tests: New file, extracted from
12792         modules/wctype-tests.
12793         * modules/wctype-tests: Depend on it.
12794         Reported by Simon Josefsson.
12795
12796 2010-03-28  Bruno Haible  <bruno@clisp.org>
12797
12798         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
12799         * gnulib-tool (func_exists_module): New function, extracted from
12800         func_verify_module.
12801         (func_verify_module): Use it.
12802         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
12803         'foo' only if 'foo' exists.
12804         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
12805         module.
12806
12807 2010-03-28  Bruno Haible  <bruno@clisp.org>
12808
12809         gnulib-tool: Add support for special categories of tests.
12810         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
12811         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
12812         (func_usage): Document them.
12813         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
12814         inc_unportable_tests, inc_all_tests): New variables.
12815         (func_acceptable): Consider these variables.
12816         (func_modules_transitive_closure): Make it work when the 'Status' field
12817         consists of multiple words.
12818         (func_import): Store and restore the values of inc_cxx_tests,
12819         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
12820         inc_all_tests in gnulib-comp.m4.
12821         (func_create_testdir): Set inc_all_tests to true.
12822         * doc/gnulib.texi (Extra tests modules): New section.
12823         Suggested by Jim Meyering.
12824
12825 2010-03-28  Bruno Haible  <bruno@clisp.org>
12826
12827         ansi-c++-opt: Allow turning off the C++ build by default.
12828         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
12829         gl_CXX_CHOICE_DEFAULT_NO is defined.
12830         Requested by Eric Blake.
12831
12832 2010-03-28  Bruno Haible  <bruno@clisp.org>
12833
12834         unistd: Avoid #define replacements in C++ mode.
12835         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
12836         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
12837         setsockopt, shutdown, select): In C++, attach a warning to the function
12838         if possible, rather than #defining the symbol to a dysfunctional alias.
12839         Reported by John W. Eaton <jwe@gnu.org>.
12840
12841 2010-03-28  Bruno Haible  <bruno@clisp.org>
12842
12843         Fix link errors on mingw.
12844         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
12845         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
12846         $(LIBSOCKET).
12847         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
12848         $(LIBSOCKET).
12849
12850 2010-03-28  Bruno Haible  <bruno@clisp.org>
12851             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12852
12853         lib-ignore: Determine different options for different compilers.
12854         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
12855         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
12856         Add comments.
12857         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
12858         * NEWS: Mention the change.
12859
12860 2010-03-27  Bruno Haible  <bruno@clisp.org>
12861
12862         Remove unused GNULIB_XYZ macro definitions.
12863         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
12864         * modules/fseek (configure.ac): Likewise.
12865         * modules/ioctl (configure.ac): Likewise.
12866         * modules/open (configure.ac): Likewise.
12867         * modules/stdlib-safer (configure.ac): Likewise.
12868
12869 2010-03-27  Bruno Haible  <bruno@clisp.org>
12870
12871         Add a remark about certain modules.
12872         * modules/malloc (Comment): New section.
12873         * modules/realloc (Comment): Likewise.
12874         * modules/sigpipe (Comment): Likewise.
12875
12876 2010-03-27  Bruno Haible  <bruno@clisp.org>
12877
12878         Resolve conflict between the two kinds of module indicators.
12879         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
12880         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
12881         * modules/canonicalize (configure.ac): Invoke
12882         gl_MODULE_INDICATOR_FOR_TESTS.
12883         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
12884         GNULIB_XYZ.
12885         * tests/test-dirent-c++.cc: Likewise.
12886         * tests/test-dirent-safer.c: Likewise.
12887         * tests/test-dup2.c: Likewise.
12888         * tests/test-fchdir.c: Likewise.
12889         * tests/test-fcntl-h-c++.cc: Likewise.
12890         * tests/test-getopt.c: Likewise.
12891         * tests/test-getopt.h: Likewise.
12892         * tests/test-langinfo-c++.cc: Likewise.
12893         * tests/test-locale-c++.cc: Likewise.
12894         * tests/test-math-c++.cc: Likewise.
12895         * tests/test-pty-c++.cc: Likewise.
12896         * tests/test-search-c++.cc: Likewise.
12897         * tests/test-signal-c++.cc: Likewise.
12898         * tests/test-spawn-c++.cc: Likewise.
12899         * tests/test-stdio-c++.cc: Likewise.
12900         * tests/test-stdlib-c++.cc: Likewise.
12901         * tests/test-string-c++.cc: Likewise.
12902         * tests/test-sys_ioctl-c++.cc: Likewise.
12903         * tests/test-sys_select-c++.cc: Likewise.
12904         * tests/test-sys_socket-c++.cc: Likewise.
12905         * tests/test-sys_stat-c++.cc: Likewise.
12906         * tests/test-sys_time-c++.cc: Likewise.
12907         * tests/test-time-c++.cc: Likewise.
12908         * tests/test-unistd-c++.cc: Likewise.
12909         * tests/test-wchar-c++.cc: Likewise.
12910         * tests/uninorm/test-u8-nfc.c: Likewise.
12911         * tests/uninorm/test-u8-nfd.c: Likewise.
12912         * tests/uninorm/test-u8-nfkc.c: Likewise.
12913         * tests/uninorm/test-u8-nfkd.c: Likewise.
12914         * tests/uninorm/test-u16-nfc.c: Likewise.
12915         * tests/uninorm/test-u16-nfd.c: Likewise.
12916         * tests/uninorm/test-u16-nfkc.c: Likewise.
12917         * tests/uninorm/test-u16-nfkd.c: Likewise.
12918         * tests/uninorm/test-u32-nfc.c: Likewise.
12919         * tests/uninorm/test-u32-nfc-big.c: Likewise.
12920         * tests/uninorm/test-u32-nfd.c: Likewise.
12921         * tests/uninorm/test-u32-nfd-big.c: Likewise.
12922         * tests/uninorm/test-u32-nfkc.c: Likewise.
12923         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
12924         * tests/uninorm/test-u32-nfkd.c: Likewise.
12925         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
12926         * tests/uninorm/test-u32-normalize-big.c: Likewise.
12927
12928 2010-03-27  Bruno Haible  <bruno@clisp.org>
12929
12930         Distinguish two kinds of module indicators.
12931         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
12932         gl_MODULE_INDICATOR.
12933         (gl_MODULE_INDICATOR): New macro.
12934         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
12935         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
12936         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
12937         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
12938         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
12939         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
12940         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
12941         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
12942         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
12943         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
12944         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
12945         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
12946         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
12947         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
12948         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
12949         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
12950         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
12951         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
12952         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
12953         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
12954         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
12955         * modules/cloexec (configure.ac): Likewise.
12956         * modules/getopt-gnu (configure.ac): Likewise.
12957         * modules/uninorm/u8-normalize (configure.ac): Likewise.
12958         * modules/uninorm/u16-normalize (configure.ac): Likewise.
12959         * modules/uninorm/u32-normalize (configure.ac): Likewise.
12960         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
12961
12962 2010-03-27  Bruno Haible  <bruno@clisp.org>
12963
12964         New module description field 'Comment'.
12965         * gnulib-tool: New option --extract-comment.
12966         (func_usage): Document it.
12967         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
12968         (func_get_comment): New function.
12969         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
12970
12971 2010-03-27  Bruno Haible  <bruno@clisp.org>
12972
12973         Addendum to 2010-02-07 commit.
12974         * gnulib-tool (func_usage): Document --extract-applicability option.
12975
12976 2010-03-27  Bruno Haible  <bruno@clisp.org>
12977
12978         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
12979         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
12980         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
12981         rather than link errors.
12982
12983 2010-03-27  Bruno Haible  <bruno@clisp.org>
12984
12985         Avoid side effects from tests-related modules on the compilation of lib.
12986         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
12987         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
12988         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
12989         parameter. Emit into AM_CPPFLAGS a definition of the designated C
12990         macro.
12991         (func_import): Define a witness macro. Assign it a value that depends
12992         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
12993         tests-related modules.
12994         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
12995         Reported by Jim Meyering.
12996
12997 2010-03-27  Bruno Haible  <bruno@clisp.org>
12998
12999         Factorize common .m4 code.
13000         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
13001         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
13002         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
13003         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
13004         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
13005         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
13006         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
13007         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
13008         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
13009         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
13010         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
13011         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
13012         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
13013         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
13014         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
13015         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
13016         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
13017         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
13018         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
13019         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
13020         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
13021         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
13022         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
13023         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
13024         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
13025         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
13026         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
13027         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
13028         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
13029         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
13030         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
13031         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
13032
13033 2010-03-27  Bruno Haible  <bruno@clisp.org>
13034
13035         Fix a compilation error on Cygwin with g++ >= 4.3.
13036         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
13037         if it is undefined or if we alias it to chmod.
13038         (lstat): Don't warn about the use of this function if it is undefined
13039         or if we alias it to stat.
13040         Reported by Simon Josefsson.
13041
13042 2010-03-27  Bruno Haible  <bruno@clisp.org>
13043
13044         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
13045         * modules/getlogin (configure.ac): Update.
13046
13047         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
13048         * modules/getlogin_r (configure.ac): Update.
13049
13050         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
13051         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
13052         * modules/inet_ntop (configure.ac): Update.
13053
13054         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
13055         * modules/inet_pton (configure.ac): Update.
13056
13057         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
13058         * modules/mbslen (configure.ac): Update.
13059
13060         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
13061         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
13062         * modules/forkpty (configure.ac): Update.
13063         * modules/openpty (configure.ac): Update.
13064
13065 2010-03-26  Simon Josefsson  <simon@josefsson.org>
13066
13067         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
13068         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
13069
13070 2010-03-25  Eric Blake  <eblake@redhat.com>
13071
13072         maint: use pragma consistently across replacement headers
13073         * lib/ctype.in.h (system_header): Hoist for consistent placement.
13074         * lib/dirent.in.h (system_header): Likewise.
13075         * lib/errno.in.h (system_header): Likewise.
13076         * lib/float.in.h (system_header): Likewise.
13077         * lib/getopt.in.h (system_header): Likewise.
13078         * lib/iconv.in.h (system_header): Likewise.
13079         * lib/inttypes.in.h (system_header): Likewise.
13080         * lib/langinfo.in.h (system_header): Likewise.
13081         * lib/locale.in.h (system_header): Likewise.
13082         * lib/math.in.h (system_header): Likewise.
13083         * lib/netdb.in.h (system_header): Likewise.
13084         * lib/netinet_in.in.h (system_header): Likewise.
13085         * lib/pty.in.h (system_header): Likewise.
13086         * lib/sched.in.h (system_header): Likewise.
13087         * lib/se-selinux.in.h (system_header): Likewise.
13088         * lib/search.in.h (system_header): Likewise.
13089         * lib/spawn.in.h (system_header): Likewise.
13090         * lib/stdarg.in.h (system_header): Likewise.
13091         * lib/stdint.in.h (system_header): Likewise.
13092         * lib/string.in.h (system_header): Likewise.
13093         * lib/strings.in.h (system_header): Likewise.
13094         * lib/sys_file.in.h (system_header): Likewise.
13095         * lib/sys_ioctl.in.h (system_header): Likewise.
13096         * lib/sys_socket.in.h (system_header): Likewise.
13097         * lib/sys_times.in.h (system_header): Likewise.
13098         * lib/sys_utsname.in.h (system_header): Likewise.
13099         * lib/sys_wait.in.h (system_header): Likewise.
13100         * lib/sysexits.in.h (system_header): Likewise.
13101         * lib/unistd.in.h (system_header): Likewise.
13102         * lib/wctype.in.h (system_header): Likewise.
13103
13104         arpa/inet: fix mingw compilation warning
13105         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
13106         Reported by Matthew Bolte.
13107
13108 2010-03-25  Bruno Haible  <bruno@clisp.org>
13109
13110         Avoid collision between gnulib wrapper and libintl wrapper.
13111         * lib/printf.c (printf): Don't define if a printf wrapper is already
13112         defined in intl/printf.c.
13113         Reported by Michel Boaventura <michel@michelboaventura.com>.
13114
13115 2010-03-25  Bruno Haible  <bruno@clisp.org>
13116
13117         Use ANSI C.
13118         * lib/readutmp.h (getutent): Provide ANSI C prototype.
13119
13120 2010-03-25  Bruno Haible  <bruno@clisp.org>
13121
13122         Minor formatting changes.
13123         * lib/acosl.c: Insert space before function argument list.
13124         * lib/argz.c: Likewise.
13125         * lib/asinl.c: Likewise.
13126         * lib/expl.c: Likewise.
13127         * lib/gen-uni-tables.c: Likewise.
13128         * lib/gettext.h: Likewise.
13129         * lib/glthread/lock.h: Likewise.
13130         * lib/tanl.c: Likewise.
13131         * lib/uniname/uniname.c: Likewise.
13132         * tests/test-idpriv-drop.c: Likewise.
13133         * tests/test-idpriv-droptemp.c: Likewise.
13134         * tests/test-lock.c: Likewise.
13135         * tests/test-tls.c: Likewise.
13136         * lib/argp-help.c: Insert space before function-like macro argument
13137         list.
13138         * lib/memcmp.c: Likewise.
13139         * tests/test-base64.c: Likewise.
13140         * lib/localename.c: Insert space before sizeof's argument list.
13141         * lib/safe-alloc.h: Likewise.
13142         * lib/file-set.h: Insert space before macro argument list.
13143         * tests/test-argp.c: Likewise.
13144         * lib/argp-namefrob.h: Insert space before function parameter list.
13145         * lib/getaddrinfo.c: Likewise.
13146         * lib/netdb.in.h: Likewise.
13147         * lib/parse-duration.h: Likewise.
13148         * lib/parse-duration.c: Likewise.
13149         * lib/poll.c: Likewise.
13150         * lib/select.c: Likewise.
13151         * lib/trim.h: Likewise.
13152         * tests/test-usleep.c: Likewise.
13153         * lib/ldexpl.c: Insert space before function parameter list and before
13154         function argument list.
13155         * lib/logl.c: Likewise.
13156         * lib/sqrtl.c: Likewise.
13157         * lib/trim.c: Likewise.
13158         * lib/cosl.c: Use GNU style indentation. Insert space before function
13159         argument list.
13160         * lib/sinl.c: Likewise.
13161         * lib/tsearch.c: Insert space after 'for'.
13162         Reported by Jim Meyering.
13163
13164 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
13165
13166         * maint.mk (sc_Wundef_boolean): Check for the presence of the
13167         config header before grepping, as it's not present before
13168         autoreconf/configure are run.  Reported by Simon Josefsson.
13169
13170 2010-03-23  Bruno Haible  <bruno@clisp.org>
13171
13172         pt_chown: Make it work with automake < 1.11.
13173         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
13174         Reported by Simon Josefsson.
13175
13176 2010-03-23  Bruno Haible  <bruno@clisp.org>
13177
13178         pt_chown: Don't depend on GPLed modules.
13179         * lib/pt_chown.c: Don't include idpriv.h.
13180         (main): Don't drop privileges.
13181         * modules/pt_chown (Depends-on): Remove idpriv-drop.
13182         Reported by Simon Josefsson.
13183
13184 2010-03-24  Simon Josefsson  <simon@josefsson.org>
13185
13186         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
13187         suggestions from karl@freefriends.org (Karl Berry).
13188
13189 2010-03-22  Eric Blake  <eblake@redhat.com>
13190
13191         gethostname: further tweaks
13192         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
13193         are overriding gethostname.
13194         Suggested by Bruno Haible.
13195
13196 2010-03-21  Bruno Haible  <bruno@clisp.org>
13197
13198         Fix comments.
13199         * lib/forkpty.c (rpl_forkpty): Fix comment.
13200         * lib/openpty.c (rpl_openpty): Likewise.
13201         Reported by Eric Blake.
13202
13203 2010-03-22  Eric Blake  <eblake@redhat.com>
13204
13205         gethostname: fix build on mingw
13206         * lib/unistd.in.h (includes): Work around fact that mingw
13207         <winsock2.h> re-includes <unistd.h>, by avoiding any
13208         redeclarations if we are being included by <winsock2.h>.
13209         Reported by Matthias Bolte.
13210
13211 2010-03-21  Bruno Haible  <bruno@clisp.org>
13212
13213         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
13214         * lib/forkpty.c (forkpty): New replacement function, from glibc with
13215         modifications.
13216         * lib/pty.in.h (forkpty): Update declaration. Add comments.
13217         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
13218         provide the replacement.
13219         * modules/forkpty (Depends-on): Add openpty, login_tty.
13220         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
13221         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
13222         * doc/glibc-functions/forkpty.texi: More supported platforms.
13223         * config/srclist.txt: Add forkpty.c (commented).
13224
13225 2010-03-21  Bruno Haible  <bruno@clisp.org>
13226
13227         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
13228         (Makefile.am): Verify that PTY_LIB is defined.
13229
13230         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
13231
13232 2010-03-21  Bruno Haible  <bruno@clisp.org>
13233
13234         Tests for module 'login_tty'.
13235         * modules/login_tty-tests: New file.
13236         * tests/test-login_tty.c: New file.
13237
13238         New module 'login_tty'.
13239         * lib/login_tty.c: New file.
13240         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
13241         * modules/login_tty: New file.
13242         * doc/glibc-functions/login_tty.texi: Mention the new module.
13243
13244 2010-03-21  Bruno Haible  <bruno@clisp.org>
13245
13246         login_tty: Documentation.
13247         * doc/glibc-functions/login_tty.texi: New file.
13248         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
13249
13250 2010-03-21  Bruno Haible  <bruno@clisp.org>
13251
13252         pty: Consistent macro naming.
13253         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
13254         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
13255         * modules/pty (configure.ac): Update.
13256
13257 2010-03-21  Bruno Haible  <bruno@clisp.org>
13258
13259         Tests for openpty: Make stricter.
13260         * tests/test-openpty.c (main): Add test of canonical processing and
13261         erase.
13262         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
13263
13264         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
13265         * lib/openpty.c (openpty): New replacement function.
13266         * lib/pty.in.h: Include <termios.h>.
13267         (openpty): Update declaration. Add comments.
13268         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
13269         is not declared, arrange to provide the replacement. Check for _getpty
13270         and posix_openpt.
13271         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
13272         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
13273         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
13274         * modules/pty-tests (test_pty_c___LDADD): New variable.
13275         * doc/glibc-functions/openpty.texi: More supported platforms.
13276
13277 2010-03-21  Bruno Haible  <bruno@clisp.org>
13278
13279         setenv: Tweaks.
13280         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
13281         the test program.
13282         * doc/posix-functions/setenv.texi: Update platforms list.
13283
13284 2010-03-21  Bruno Haible  <bruno@clisp.org>
13285
13286         New module 'unlockpt'.
13287         * lib/unlockpt.c: New file, from glibc with modifications.
13288         * m4/unlockpt.m4: New file.
13289         * modules/unlockpt: New file.
13290         * lib/stdlib.in.h (unlockpt): New declaration.
13291         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
13292         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
13293         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
13294         HAVE_UNLOCKPT.
13295         * doc/posix-functions/unlockpt.texi: Mention the new module.
13296         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
13297         * config/srclist.txt: Add unlockpt.c (commented).
13298
13299 2010-03-21  Jim Meyering  <meyering@redhat.com>
13300
13301         maint.mk: prohibit inclusion of "intprops.h" without use
13302         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
13303
13304 2010-03-21  Bruno Haible  <bruno@clisp.org>
13305
13306         New module 'grantpt'.
13307         * lib/grantpt.c: New file, from glibc with modifications.
13308         * m4/grantpt.m4: New file.
13309         * modules/grantpt: New file.
13310         * lib/stdlib.in.h (grantpt): New declaration.
13311         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
13312         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
13313         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
13314         HAVE_GRANTPT.
13315         * doc/posix-functions/grantpt.texi: Mention the new module.
13316         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
13317         * config/srclist.txt: Add grantpt.c (commented).
13318
13319 2010-03-21  Bruno Haible  <bruno@clisp.org>
13320
13321         New module 'pt_chown'.
13322         * lib/pt_chown.c: New file, from glibc with modifications.
13323         * lib/pty-private.h: New file, from glibc with modifications.
13324         * modules/pt_chown: New file.
13325         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
13326
13327 2010-03-21  Bruno Haible  <bruno@clisp.org>
13328
13329         Tests for module 'ptsname'.
13330         * modules/ptsname-tests: New file.
13331         * tests/test-ptsname.c: New file.
13332
13333         New module 'ptsname'.
13334         * lib/ptsname.c: New file, from glibc with modifications.
13335         * m4/ptsname.m4: New file.
13336         * modules/ptsname: New file.
13337         * lib/stdlib.in.h (ptsname): New declaration.
13338         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
13339         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
13340         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
13341         HAVE_PTSNAME.
13342         * doc/posix-functions/ptsname.texi: Mention the new module.
13343         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
13344         * config/srclist.txt: Add ptsname.c (commented).
13345
13346 2010-03-21  Bruno Haible  <bruno@clisp.org>
13347
13348         Tests for module 'ttyname_r'.
13349         * modules/ttyname_r-tests: New file.
13350         * tests/test-ttyname_r.c: New file.
13351
13352         New module 'ttyname_r'.
13353         * lib/ttyname_r.c: New file.
13354         * m4/ttyname_r.m4: New file.
13355         * modules/ttyname_r: New file.
13356         * lib/unistd.in.h (ttyname_r): New declaration.
13357         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
13358         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
13359         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
13360         HAVE_TTYNAME_R.
13361         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
13362         * doc/posix-functions/ttyname_r.texi: Mention the new module.
13363
13364 2010-03-20  Bruno Haible  <bruno@clisp.org>
13365
13366         signal: Undefine macro definitions in C++ mode.
13367         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
13368         sigfillset): Undefine macro definitions from the system header in C++
13369         mode.
13370         Reported by John W. Eaton <jwe@gnu.org>.
13371
13372 2010-03-20  Bruno Haible  <bruno@clisp.org>
13373
13374         Ensure no #include statements inside extern "C" { ... }.
13375         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
13376         contain #include statements.
13377         * lib/time.in.h: Likewise.
13378
13379 2010-03-20  Bruno Haible  <bruno@clisp.org>
13380
13381         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
13382         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
13383         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
13384         Reported by John W. Eaton <jwe@gnu.org>.
13385
13386 2010-03-20  Bruno Haible  <bruno@clisp.org>
13387
13388         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
13389         Reported by Jim Meyering.
13390
13391 2010-03-20  Bruno Haible  <bruno@clisp.org>
13392
13393         pipe: Set errno upon failure.
13394         * lib/pipe.h: Specify that when -1 is returned, errno is set.
13395         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
13396         errno value in error message.
13397
13398 2010-03-20  Bruno Haible  <bruno@clisp.org>
13399             Jim Meyering  <meyering@redhat.com>
13400
13401         lchown: Avoid "unused variable" warning.
13402         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
13403
13404 2010-03-20  Bruno Haible  <bruno@clisp.org>
13405
13406         Work around unlink() bug on MacOS X 10.5.6.
13407         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
13408         attempting to unlink a parent directory.
13409         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
13410         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
13411         activate for the replacement function.
13412         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
13413
13414 2010-03-20  Bruno Haible  <bruno@clisp.org>
13415
13416         Fix link errors on Solaris 8.
13417         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
13418         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
13419
13420 2010-03-19  Jim Meyering  <meyering@redhat.com>
13421
13422         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
13423         The _LIBC implementation of build_range_exp correctly honors the
13424         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
13425         However, the non-_LIBC implementation would ignore that syntax-bit
13426         flag and return REG_ERANGE unconditionally.
13427         This change makes it honor that flag.
13428         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
13429         Make two pointer parameters "const".
13430         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
13431         (parse_bracket_exp): Update caller.
13432
13433         regex.m4: correct the reversed range endpoint ([b-a]) test
13434         * m4/regex.m4: When requiring that [b-a] evoke failure,
13435         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
13436         test pass once again for x86-based systems.
13437
13438 2010-03-19  Bruno Haible  <bruno@clisp.org>
13439
13440         scandir: Fix link error on Solaris 8.
13441         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
13442         macros.
13443
13444 2010-03-19  Bruno Haible  <bruno@clisp.org>
13445
13446         getusershell: Fix documentation.
13447         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
13448         module.
13449         * doc/glibc-functions/setusershell.texi: Likewise.
13450
13451         getusershell: Provide declaration, missing on Solaris 9.
13452         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
13453         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
13454         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
13455         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
13456         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
13457         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
13458         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
13459         HAVE_GETUSERSHELL.
13460         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
13461
13462 2010-03-19  Bruno Haible  <bruno@clisp.org>
13463
13464         wctype: Provide iswblank function.
13465         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
13466         exists and is fine.
13467         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
13468         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
13469         * tests/test-wctype.c (main): Re-enable the iswblank tests.
13470         * doc/posix-functions/iswblank.texi: Update.
13471
13472 2010-03-19  Bruno Haible  <bruno@clisp.org>
13473
13474         Tests of module 'pty' in C++ mode.
13475         * modules/pty-tests: New file.
13476         * tests/test-pty-c++.cc: New file.
13477         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
13478
13479 2010-03-19  Eric Blake  <eblake@redhat.com>
13480
13481         logb: fix documentation
13482         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
13483         1.5 declaration bug.
13484
13485         forkpty, openpty: prefer glibc's const-safe prototype
13486         * lib/forkpty.c (rpl_forkpty): New file.
13487         * lib/openpty.c (rpl_openpty): Likewise.
13488         * modules/forkpty (Files): Distribute it.
13489         * modules/openpty (Files): Likewise.
13490         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
13491         check...
13492         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
13493         replacement for for non-const BSD signature.
13494         * modules/pty (Makefile.am): Substitute witnesses.
13495         * lib/pty.in.h (forkpty, openpty): Declare replacements.
13496         * tests/test-forkpty.c: Update signature check.
13497         * tests/test-openpty.c: Likewise.
13498         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
13499         * doc/glibc-functions/openpty.texi (openpty): Likewise.
13500
13501         forkpty, openpty: split functions into new modules
13502         * modules/pty (Makefile.am): Substitute new witnesses.
13503         (Libraries): Move library detection...
13504         * modules/forkpty: ...into new module.
13505         * modules/openpty: Another new module.
13506         * modules/pty-tests: Rename and split...
13507         * modules/forkpty-tests: ...to this...
13508         * modules/openpty-tests: ...and this.
13509         * tests/test-pty.c: Rename and split...
13510         * tests/test-forkpty.c: ...to this...
13511         * tests/test-openpty.c: ...and this.
13512         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
13513         (gl_PTY): Split library searching...
13514         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
13515         (gl_FORKPTY, gl_OPENPTY): New macros.
13516         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
13517         * NEWS: Mention the split.
13518         * MODULES.html.sh (Misc): Document the modules.
13519         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
13520         * doc/glibc-functions/openpty.texi (openpty): Likewise.
13521
13522         pty: improve replacement header
13523         * lib/pty.in.h: New file.
13524         * modules/pty (Files): Ship it.
13525         (Makefile.am): Always build replacement.
13526         * m4/pty.m4: Rename...
13527         * m4/pty_h.m4: ...to this.
13528         (gl_PTY): Modernize setting of witness macros; update check of
13529         forkpty to take proper advantage of cache.
13530         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
13531
13532         getopt: avoid compiler warning
13533         * lib/getopt.c (attribute_hidden): Remove unused macro.
13534
13535 2010-03-18  Bruno Haible  <bruno@clisp.org>
13536
13537         Fix link errors on Solaris 8.
13538         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
13539         * modules/search-tests (test_search_c___LDADD): Likewise.
13540         * modules/signal-tests (test_signal_c___LDADD): Likewise.
13541         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
13542         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
13543         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
13544         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
13545         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
13546         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
13547
13548 2010-03-18  Bruno Haible  <bruno@clisp.org>
13549
13550         Fix bug introduced on 2010-03-14.
13551         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
13552         (gl_SPAWN_H): Require it.
13553         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
13554         Reported by Simon Josefsson.
13555
13556 2010-03-18  Bruno Haible  <bruno@clisp.org>
13557
13558         Fix typo introduced on 2009-12-31.
13559         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
13560         posix_spawn_file_actions_adddup2.
13561
13562 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
13563         and Eric Blake  <eblake@redhat.com>
13564
13565         test-vc-list-files-git: make more robust
13566         * tests/test-vc-list-files-git.sh: Unset problematic environment
13567         variables.  Chain commands together.
13568
13569 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
13570
13571         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
13572         `AC_CHECK_DECL' invocation.
13573
13574 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
13575
13576         * lib/inttostr.c (inttostr): Make sure the invocation of verify
13577         appears before executable statements. Suggested by Petr Sumbera
13578         <Petr.Sumbera@Sun.COM>.
13579
13580 2010-03-14  Bruno Haible  <bruno@clisp.org>
13581
13582         * tests/test-flock.c (test_exclusive): Comment out a test that causes
13583         portability problems. Instead use a simpler test.
13584         (main): Check that invalid arguments are rejected only on Linux.
13585
13586 2010-03-14  Bruno Haible  <bruno@clisp.org>
13587
13588         Fix bug introduced on 2009-12-31.
13589         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
13590         gl_PREREQ_SYS_H_WINSOCK2 always.
13591         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
13592         SYS_SOCKET_H variable.
13593         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
13594         Update comments.
13595         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
13596         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
13597         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
13598         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
13599         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
13600
13601 2010-03-14  Bruno Haible  <bruno@clisp.org>
13602
13603         Fix values returned by sinl, cosl.
13604         * lib/trigl.h: Add specification comments.
13605         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
13606         that combines the values from the precomputed table with the values of
13607         the Chebyshev polynomials.
13608
13609 2010-03-14  Bruno Haible  <bruno@clisp.org>
13610
13611         Fix compilation error when modules 'posix_spawn[p]' are not used.
13612         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
13613         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
13614
13615 2010-03-14  Bruno Haible  <bruno@clisp.org>
13616
13617         Fix compilation error on mingw when module 'time_r' is not used.
13618         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
13619         is 1.
13620         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
13621         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
13622         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
13623         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
13624
13625 2010-03-14  Bruno Haible  <bruno@clisp.org>
13626
13627         Fix compilation error with Sun C.
13628         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
13629         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
13630         instead of GCC specific ULONG_LONG_MAX.
13631         * lib/xstrtoll.c: Likewise.
13632         * lib/xstrtoull.c: Likewise.
13633
13634 2010-03-13  Bruno Haible  <bruno@clisp.org>
13635
13636         Allow the user to disable C++ code and tests.
13637         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
13638         (gl_PROG_ANSI_CXX): Require it.
13639
13640 2010-03-13  Bruno Haible  <bruno@clisp.org>
13641
13642         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
13643         cases.
13644
13645 2010-03-13  Bruno Haible  <bruno@clisp.org>
13646
13647         Test that gnulib does not break the standard C++ headers.
13648         * tests/test-locale-c++2.cc: New file.
13649         * modules/locale-tests (Files): Add it.
13650         (Makefile.am): Compile it for test-locale-c++.
13651         * tests/test-math-c++2.cc: New file.
13652         * modules/math-tests (Files): Add it.
13653         (Makefile.am): Compile it for test-math-c++.
13654         * tests/test-signal-c++2.cc: New file.
13655         * modules/signal-tests (Files): Add it.
13656         (Makefile.am): Compile it for test-signal-c++.
13657         * tests/test-stdio-c++2.cc: New file.
13658         * modules/stdio-tests (Files): Add it.
13659         (Makefile.am): Compile it for test-stdio-c++.
13660         * tests/test-stdlib-c++2.cc: New file.
13661         * modules/stdlib-tests (Files): Add it.
13662         (Makefile.am): Compile it for test-stdlib-c++.
13663         * tests/test-string-c++2.cc: New file.
13664         * modules/string-tests (Files): Add it.
13665         (Makefile.am): Compile it for test-string-c++.
13666         * tests/test-time-c++2.cc: New file.
13667         * modules/time-tests (Files): Add it.
13668         (Makefile.am): Compile it for test-time-c++.
13669         Reported by John W. Eaton <jwe@gnu.org>.
13670
13671 2010-03-13  Bruno Haible  <bruno@clisp.org>
13672
13673         * gnulib-tool (func_usage): Clarify which options are available for
13674         --create-testdir and --create-megatestdir.
13675
13676 2010-03-13  Bruno Haible  <bruno@clisp.org>
13677
13678         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
13679         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
13680         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
13681         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
13682         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
13683         when appropriate.
13684         Reported by Jim Meyering.
13685
13686 2010-03-12  Simon Josefsson  <simon@josefsson.org>
13687
13688         * gnulib-tool (func_import): Explain origin of code.
13689
13690 2010-03-12  Bruno Haible  <bruno@clisp.org>
13691
13692         Fix problem with automake's definition of CXXLINK.
13693         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
13694         Reported by Simon Josefsson and Ludovic Courtès.
13695
13696 2010-03-12  Bruno Haible  <bruno@clisp.org>
13697
13698         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
13699         stable releases.
13700
13701 2010-03-11  Bruno Haible  <bruno@clisp.org>
13702
13703         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
13704         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
13705         whether the system provides one variant or multiple variants of the
13706         function.
13707         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
13708         C++ compilers.
13709         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
13710         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
13711         Reported by Jim Meyering.
13712
13713 2010-03-09  Simon Josefsson  <simon@josefsson.org>
13714
13715         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
13716
13717 2010-03-08  Bruno Haible  <bruno@clisp.org>
13718
13719         gnulib-tool: Add support for --libtool in --create-testdir.
13720         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
13721         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
13722
13723 2010-03-08  Eric Blake  <eblake@redhat.com>
13724
13725         gnulib-tool.texi: mention possibility of git submodule
13726         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
13727         submodules.
13728         * doc/.gitignore: Ignore another generated file.
13729
13730 2010-03-08  Karl Berry  <karl@gnu.org>
13731
13732         * doc/gnulib-tool.texi (VCS Issues): Mention third option
13733         of committing gnulib files while skipping others.
13734
13735 2010-03-07  Bruno Haible  <bruno@clisp.org>
13736
13737         Tests of module 'wctype' in C++ mode.
13738         * tests/test-wctype-c++.cc: New file.
13739         * modules/wctype-tests (Files): Add it and tests/signature.h.
13740         (Depends-on): Add ansi-c++-opt.
13741         (Makefile.am): Arrange to compile and run test-wctype-c++.
13742
13743         Tests of module 'wchar' in C++ mode.
13744         * tests/test-wchar-c++.cc: New file.
13745         * modules/wchar-tests (Files): Add it and tests/signature.h.
13746         (Depends-on): Add ansi-c++-opt.
13747         (Makefile.am): Arrange to compile and run test-wchar-c++.
13748         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
13749         gl_MODULE_INDICATOR.
13750
13751         Tests of module 'unistd' in C++ mode.
13752         * tests/test-unistd-c++.cc: New file.
13753         * modules/unistd-tests (Files): Add it and tests/signature.h.
13754         (Depends-on): Add ansi-c++-opt.
13755         (Makefile.am): Arrange to compile and run test-unistd-c++.
13756         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
13757         gl_MODULE_INDICATOR.
13758
13759         Tests of module 'time' in C++ mode.
13760         * tests/test-time-c++.cc: New file.
13761         * modules/time-tests (Files): Add it and tests/signature.h.
13762         (Depends-on): Add ansi-c++-opt.
13763         (Makefile.am): Arrange to compile and run test-time-c++.
13764         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
13765
13766         Tests of module 'sys_time' in C++ mode.
13767         * tests/test-sys_time-c++.cc: New file.
13768         * modules/sys_time-tests (Files): Add it and tests/signature.h.
13769         (Depends-on): Add ansi-c++-opt.
13770         (Makefile.am): Arrange to compile and run test-sys_time-c++.
13771         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
13772         gl_MODULE_INDICATOR.
13773
13774         Tests of module 'sys_stat' in C++ mode.
13775         * tests/test-sys_stat-c++.cc: New file.
13776         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
13777         (Depends-on): Add ansi-c++-opt.
13778         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
13779         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
13780         gl_MODULE_INDICATOR.
13781
13782         Tests of module 'sys_socket' in C++ mode.
13783         * tests/test-sys_socket-c++.cc: New file.
13784         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
13785         (Depends-on): Add ansi-c++-opt.
13786         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
13787         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
13788         gl_MODULE_INDICATOR.
13789
13790         Tests of module 'sys_select' in C++ mode.
13791         * tests/test-sys_select-c++.cc: New file.
13792         * modules/sys_select-tests (Files): Add it and tests/signature.h.
13793         (Depends-on): Add ansi-c++-opt.
13794         (Makefile.am): Arrange to compile and run test-sys_select-c++.
13795         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
13796         gl_MODULE_INDICATOR.
13797
13798         Tests of module 'sys_ioctl' in C++ mode.
13799         * tests/test-sys_ioctl-c++.cc: New file.
13800         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
13801         (Depends-on): Add ansi-c++-opt.
13802         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
13803         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
13804         gl_MODULE_INDICATOR.
13805
13806         Tests of module 'string' in C++ mode.
13807         * tests/test-string-c++.cc: New file.
13808         * modules/string-tests (Files): Add it and tests/signature.h.
13809         (Depends-on): Add ansi-c++-opt.
13810         (Makefile.am): Arrange to compile and run test-string-c++.
13811         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
13812         gl_MODULE_INDICATOR.
13813
13814         Tests of module 'stdlib' in C++ mode.
13815         * tests/test-stdlib-c++.cc: New file.
13816         * modules/stdlib-tests (Files): Add it and tests/signature.h.
13817         (Depends-on): Add ansi-c++-opt.
13818         (Makefile.am): Arrange to compile and run test-stdlib-c++.
13819         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
13820         gl_MODULE_INDICATOR.
13821
13822         Tests of module 'stdio' in C++ mode.
13823         * tests/test-stdio-c++.cc: New file.
13824         * modules/stdio-tests (Files): Add it and tests/signature.h.
13825         (Depends-on): Add ansi-c++-opt.
13826         (Makefile.am): Arrange to compile and run test-stdio-c++.
13827         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
13828         gl_MODULE_INDICATOR.
13829
13830         Tests of module 'spawn' in C++ mode.
13831         * tests/test-spawn-c++.cc: New file.
13832         * modules/spawn-tests (Files): Add it and tests/signature.h.
13833         (Depends-on): Add ansi-c++-opt.
13834         (Makefile.am): Arrange to compile and run test-spawn-c++.
13835         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
13836         gl_MODULE_INDICATOR.
13837
13838         Tests of module 'signal' in C++ mode.
13839         * tests/test-signal-c++.cc: New file.
13840         * modules/signal-tests (Files): Add it and tests/signature.h.
13841         (Depends-on): Add ansi-c++-opt.
13842         (Makefile.am): Arrange to compile and run test-signal-c++.
13843         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
13844         gl_MODULE_INDICATOR.
13845
13846         Tests of module 'search' in C++ mode.
13847         * tests/test-search-c++.cc: New file.
13848         * modules/search-tests (Files): Add it and tests/signature.h.
13849         (Depends-on): Add ansi-c++-opt.
13850         (Makefile.am): Arrange to compile and run test-search-c++.
13851         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
13852         gl_MODULE_INDICATOR.
13853
13854         Tests of module 'math' in C++ mode.
13855         * tests/test-math-c++.cc: New file.
13856         * modules/math-tests (Files): Add it and tests/signature.h.
13857         (Depends-on): Add ansi-c++-opt.
13858         (Makefile.am): Arrange to compile and run test-math-c++.
13859         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
13860
13861         Tests of module 'locale' in C++ mode.
13862         * tests/test-locale-c++.cc: New file.
13863         * modules/locale-tests (Files): Add it and tests/signature.h.
13864         (Depends-on): Add ansi-c++-opt.
13865         (Makefile.am): Arrange to compile and run test-locale-c++.
13866         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
13867         gl_MODULE_INDICATOR.
13868
13869         Tests of module 'langinfo' in C++ mode.
13870         * tests/test-langinfo-c++.cc: New file.
13871         * modules/langinfo-tests (Files): Add it and tests/signature.h.
13872         (Depends-on): Add ansi-c++-opt.
13873         (Makefile.am): Arrange to compile and run test-langinfo-c++.
13874         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
13875         gl_MODULE_INDICATOR.
13876
13877         Tests of module 'iconv-h' in C++ mode.
13878         * tests/test-iconv-h-c++.cc: New file.
13879         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
13880         (Depends-on): Add ansi-c++-opt.
13881         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
13882
13883         Tests of module 'glob' in C++ mode.
13884         * tests/test-glob-c++.cc: New file.
13885         * modules/glob-tests (Files): Add it.
13886         (Depends-on): Add ansi-c++-opt.
13887         (Makefile.am): Arrange to compile and run test-glob-c++.
13888
13889         Tests of module 'fcntl-h' in C++ mode.
13890         * tests/test-fcntl-h-c++.cc: New file.
13891         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
13892         (Depends-on): Add ansi-c++-opt.
13893         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
13894         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
13895         gl_MODULE_INDICATOR.
13896
13897         Tests of module 'dirent' in C++ mode.
13898         * tests/test-dirent-c++.cc: New file.
13899         * modules/dirent-tests (Files): Add it and tests/signature.h.
13900         (Depends-on): Add ansi-c++-opt.
13901         (Makefile.am): Arrange to compile and run test-dirent-c++.
13902         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
13903         gl_MODULE_INDICATOR.
13904
13905         New module 'ansi-c++-opt'.
13906         * modules/ansi-c++-opt: New file.
13907         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
13908
13909         Document C++ namespace mode.
13910         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
13911
13912         wctype: Avoid #define replacements in C++ mode.
13913         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
13914         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
13915         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
13916         In C++, define a namespaced alias symbol.
13917         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
13918         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
13919         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
13920         rule.
13921
13922         wchar: Avoid #define replacements in C++ mode.
13923         * lib/wchar.in.h: Include c++defs.h.
13924         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
13925         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
13926         symbol.
13927         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
13928         * modules/wchar (Depends-on): Add c++defs.
13929         (Makefile.am): Update wchar.h rule.
13930
13931         unistd: Avoid #define replacements in C++ mode.
13932         * lib/unistd.in.h: Include c++defs.h.
13933         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
13934         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
13935         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
13936         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
13937         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
13938         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
13939         symbol.
13940         (environ): Update.
13941         * modules/unistd (Depends-on): Add c++defs.
13942         (Makefile.am): Update unistd.h rule.
13943
13944         time: Avoid #define replacements in C++ mode.
13945         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
13946         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
13947         define a namespaced alias symbol.
13948         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
13949         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
13950         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
13951         * modules/time (Depends-on): Add c++defs, warn-on-use.
13952         (Makefile.am): Update time.h rule.
13953         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
13954         * modules/nanosleep (configure.ac): Likewise.
13955         * modules/strptime (configure.ac): Likewise.
13956         * modules/timegm (configure.ac): Likewise.
13957
13958         sys_time: Avoid #define replacements in C++ mode.
13959         * lib/sys_time.in.h: Include c++defs.h.
13960         (gettimeofday): In C++, define a namespaced alias symbol.
13961         * modules/sys_time (Depends-on): Add c++defs.
13962         (Makefile.am): Update sys/time.h rule.
13963
13964         sys_stat: Avoid #define replacements in C++ mode.
13965         * lib/sys_stat.in.h: Include c++defs.h.
13966         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
13967         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
13968         namespaced alias symbol.
13969         In C++, define a namespaced alias symbol.
13970         * modules/sys_stat (Depends-on): Add c++defs.
13971         (Makefile.am): Update sys/stat.h rule.
13972
13973         sys_socket: Avoid #define replacements in C++ mode.
13974         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
13975         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
13976         definitions also when the system has a <sys/socket.h>.
13977         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
13978         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
13979         In C++, define a namespaced alias symbol.
13980         * modules/sys_socket (Depends-on): Add c++defs.
13981         (Makefile.am): Update sys/socket.h rule.
13982
13983         sys_select: Avoid #define replacements in C++ mode.
13984         * lib/sys_select.in.h: Include c++defs.h. Enable the function
13985         definitions also when the system has a <sys/select.h>.
13986         (select): In C++, define a namespaced alias symbol.
13987         * modules/sys_select (Depends-on): Add c++defs.
13988         (Makefile.am): Update sys/select.h rule.
13989
13990         sys_ioctl: Avoid #define replacements in C++ mode.
13991         * lib/sys_ioctl.in.h: Include c++defs.h.
13992         (ioctl): In C++, define a namespaced alias symbol.
13993         * modules/sys_ioctl (Depends-on): Add c++defs.
13994         (Makefile.am): Update sys/ioctl.h rule.
13995
13996         string: Avoid #define replacements in C++ mode.
13997         * lib/string.in.h: Include c++defs.h.
13998         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
13999         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
14000         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
14001         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
14002         strsignal, strverscmp): In C++, define a namespaced alias symbol.
14003         * modules/string (Depends-on): Add c++defs.
14004         (Makefile.am): Update string.h rule.
14005
14006         stdlib: Avoid #define replacements in C++ mode.
14007         * lib/stdlib.in.h: Include c++defs.h.
14008         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
14009         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
14010         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
14011         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
14012         symbol.
14013         * modules/stdlib (Depends-on): Add c++defs.
14014         (Makefile.am): Update stdlib.h rule.
14015
14016         stdio: Avoid #define replacements in C++ mode.
14017         * lib/stdio.in.h: Include c++defs.h.
14018         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
14019         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
14020         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
14021         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
14022         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
14023         namespaced alias symbol.
14024         * modules/stdio (Depends-on): Add c++defs.
14025         (Makefile.am): Update stdio.h rule.
14026
14027         spawn: Avoid #define replacements in C++ mode.
14028         * lib/spawn.in.h: Include c++defs.h.
14029         (posix_spawn, posix_spawnp, posix_spawnattr_init,
14030         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
14031         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
14032         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
14033         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
14034         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
14035         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
14036         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
14037         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
14038         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
14039         In C++, define a namespaced alias symbol.
14040         * modules/spawn (Depends-on): Add c++defs.
14041         (Makefile.am): Update spawn.h rule.
14042
14043         signal: Avoid #define replacements in C++ mode.
14044         * lib/signal.in.h: Include c++defs.h.
14045         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
14046         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
14047         namespaced alias symbol.
14048         * modules/signal (Depends-on): Add c++defs.
14049         (Makefile.am): Update signal.h rule.
14050
14051         search: Avoid #define replacements in C++ mode.
14052         * lib/search.in.h: Include c++defs.h.
14053         (_gl_search_compar_fn, _gl_search_action_fn): New types.
14054         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
14055         symbol.
14056         * modules/search (Depends-on): Add c++defs.
14057         (Makefile.am): Update search.h rule.
14058
14059         math: Avoid #define replacements in C++ mode.
14060         * lib/math.in.h: Include c++defs.h.
14061         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
14062         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
14063         trunc, truncl): In C++, define a namespaced alias symbol.
14064         * modules/math (Depends-on): Add c++defs.
14065         (Makefile.am): Update math.h rule.
14066
14067         locale: Avoid #define replacements in C++ mode.
14068         * lib/locale.in.h: Include c++defs.h.
14069         (duplocale): In C++, define a namespaced alias symbol.
14070         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
14071         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
14072         * modules/locale (Depends-on): Add c++defs.
14073         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
14074
14075         langinfo: Avoid #define replacements in C++ mode.
14076         * lib/langinfo.in.h: Include c++defs.h.
14077         (nl_langinfo): In C++, define a namespaced alias symbol.
14078         * modules/langinfo (Depends-on): Add c++defs.
14079         (Makefile.am): Update langinfo.h rule.
14080
14081         iconv-h: Avoid #define replacements in C++ mode.
14082         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
14083         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
14084         symbol.
14085         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
14086         whenever iconv is present.
14087         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
14088         (Makefile.am): Update iconv.h rule.
14089
14090         glob: Avoid #define replacements in C++ mode.
14091         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
14092         (_gl_glob_errfunc_fn): New type.
14093         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
14094         symbol.
14095         * modules/glob (Depends-on): Add c++defs, warn-on-use.
14096         (Makefile.am): Update glob.h rule.
14097
14098         fcntl-h: Avoid #define replacements in C++ mode.
14099         * lib/fcntl.in.h: Include c++defs.h.
14100         (fcntl, open, openat): In C++, define a namespaced alias symbol.
14101         * modules/fcntl-h (Depends-on): Add c++defs.
14102         (Makefile.am): Update fcntl.h rule.
14103
14104         dirent: Avoid #define replacements in C++ mode.
14105         * lib/dirent.in.h: Include c++defs.h.
14106         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
14107         namespaced alias symbol.
14108         (dirfd): Update declaration.
14109         * modules/dirent (Depends-on): Add c++defs.
14110         (Makefile.am): Update dirent.h rule.
14111
14112         ctype: Make it usable in C++ code.
14113         * lib/ctype.in.h: Include c++defs.h.
14114         (isblank): Declare as extern "C".
14115         * modules/ctype (Depends-on): Add c++defs.
14116         (Makefile.am): Update ctype.h rule.
14117
14118         New module 'c++defs'.
14119         * modules/c++defs: New file.
14120         * build-aux/c++defs.h: New file.
14121         Reported by John W. Eaton <jwe@gnu.org>.
14122
14123 2010-03-07  Bruno Haible  <bruno@clisp.org>
14124
14125         logb: Provide missing declaration for Cygwin.
14126         * lib/math.in.h (logb): New declaration.
14127         * m4/logb.m4: New file.
14128         * modules/logb (Files): Add m4/logb.m4.
14129         (Depends-on): Add math.
14130         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
14131         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
14132         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
14133         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
14134         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
14135
14136 2010-03-07  Bruno Haible  <bruno@clisp.org>
14137
14138         Fix test-cond link error.
14139         * tests/test-cond.c: Include <stdio.h>.
14140
14141 2010-03-07  Bruno Haible  <bruno@clisp.org>
14142
14143         Fix test-dirent-safer link error.
14144         * modules/dirent-safer-tests (Makefile.am): Define
14145         test_dirent_safer_LDADD.
14146
14147 2010-03-07  Bruno Haible  <bruno@clisp.org>
14148
14149         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
14150         among default module list.
14151
14152 2010-03-07  Bruno Haible  <bruno@clisp.org>
14153
14154         Fix link error on platforms with GNU libiconv.
14155         * modules/unistr/u8-strcoll-tests (Makefile): Define
14156         test_u8_strcoll_LDADD.
14157         * modules/unistr/u16-strcoll-tests (Makefile): Define
14158         test_u16_strcoll_LDADD.
14159         * modules/unistr/u32-strcoll-tests (Makefile): Define
14160         test_u32_strcoll_LDADD.
14161
14162 2010-03-07  Bruno Haible  <bruno@clisp.org>
14163
14164         Use POSIX declarations for socket functions.
14165         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
14166         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
14167         rpl_sendto): Change declaration to match POSIX.
14168         * lib/connect.c (rpl_connect): Likewise.
14169         * lib/accept.c (rpl_accept): Likewise.
14170         * lib/bind.c (rpl_bind): Likewise.
14171         * lib/getpeername.c (rpl_getpeername): Likewise.
14172         * lib/getsockname.c (rpl_getsockname): Likewise.
14173         * lib/recv.c (rpl_recv): Likewise.
14174         * lib/send.c (rpl_send): Likewise.
14175         * lib/recvfrom.c (rpl_recvfrom): Likewise.
14176         * lib/sendto.c (rpl_sendto): Likewise.
14177
14178 2010-03-06  Bruno Haible  <bruno@clisp.org>
14179
14180         Clarify access, euidaccess, faccessat.
14181         * doc/posix-functions/faccessat.texi: Mention security problem under
14182         "Other problems", not "Portability problems".
14183         * doc/posix-functions/access.texi: Likewise. Mention a related security
14184         problem.
14185         * doc/glibc-functions/euidaccess.texi: Mention security problems.
14186         * lib/euidaccess.c: Add comments about platforms.
14187         * lib/unistd.in.h (access, euidaccess): Add warnings.
14188
14189 2010-03-07  Bruno Haible  <bruno@clisp.org>
14190
14191         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
14192         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
14193         (POSIX_SPAWN_SETSCHEDULER): Likewise.
14194         (POSIX_SPAWN_USEVFORK): Define in a way that works when
14195         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
14196         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
14197         declare when POSIX_SPAWN_SETSCHEDULER is zero.
14198         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
14199         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
14200         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
14201         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
14202         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
14203         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
14204         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
14205         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
14206         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
14207         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
14208         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
14209         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
14210         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
14211         Likewise.
14212         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
14213         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
14214         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
14215         Likewise.
14216         * tests/test-spawn.c (main): Make it work when
14217         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
14218
14219 2010-03-07  Bruno Haible  <bruno@clisp.org>
14220
14221         Fix incorrect Makefile.am generation in German locale.
14222         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
14223         Execute sed command with character range in C locale.
14224
14225 2010-03-06  Bruno Haible  <bruno@clisp.org>
14226
14227         Tests for module 'iconv-h'.
14228         * modules/iconv-h-tests: New file.
14229         * tests/test-iconv-h.c: New file.
14230
14231         New module 'iconv-h'.
14232         * modules/iconv-h: New file.
14233         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
14234         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
14235         (configure.ac): Remove gl_ICONV_H.
14236         (Makefile.am): Remove rule for iconv.h.
14237
14238 2010-03-06  Bruno Haible  <bruno@clisp.org>
14239
14240         More consistent naming of *.m4 files.
14241         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
14242         * modules/wctype (Files): Update.
14243
14244         More consistent naming of *.m4 files.
14245         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
14246         * modules/wchar (Files): Update.
14247
14248 2010-03-06  Jim Meyering  <meyering@redhat.com>
14249
14250         euidaccess: relax license to LGPLv2+
14251         * modules/euidaccess (License): Relax to LGPLv2+.
14252
14253 2010-03-06  Bruno Haible  <bruno@clisp.org>
14254
14255         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
14256         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
14257         (Makefile.am): Augment lib_SOURCES instead.
14258
14259 2010-03-04  Jim Meyering  <meyering@redhat.com>
14260
14261         utime: remove obsolete module
14262         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
14263         unnecessary for years, and has been marked as obsolete for 10 months.
14264         * modules/utime: Remove file.
14265         * lib/utime.c: Remove file.
14266         * m4/utime.m4: Remove file.
14267         * m4/utimes-null.m4: Remove file.
14268         * doc/posix-functions/utime.texi (utime): Remove reference to
14269         the module.  Move the sole "fixed by gnulib" item into the
14270         "problems not fixed by Gnulib" list.
14271         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
14272
14273 2010-03-05  Simon Josefsson  <simon@josefsson.org>
14274
14275         * modules/exit (License): Relax license to LGPLv2+.
14276         (Status): Mark as obsolete.
14277         * NEWS: Mention deprecated 'exit' module.
14278         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
14279         of now obsolete 'exit'.
14280
14281 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14282
14283         fts-lgpl: remove unused module
14284         * modules/fts-lgpl: Remove.
14285         * MODULES.html.sh (func_all_modules): Adjust.
14286         * check-module (find_included_lib_files): Adjust.
14287         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
14288
14289 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
14290
14291         copy-acl: enhance Solaris ACL error handling
14292         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
14293         * lib/set-mode-acl.c (qset_acl): Likewise.
14294
14295 2010-03-02  Bruno Haible  <bruno@clisp.org>
14296
14297         spawn: Don't override the system defined values on FreeBSD 8.
14298         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
14299         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
14300         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
14301         if HAVE_POSIX_SPAWN is 1.
14302         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
14303
14304 2010-03-01  Bruno Haible  <bruno@clisp.org>
14305
14306         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
14307         regarding Automake.
14308
14309 2010-02-25  Bruno Haible  <bruno@clisp.org>
14310
14311         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
14312         * gnulib-tool: Define 'echo' as a function only before the ksh alias
14313         setting, not afterwards.
14314         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
14315
14316 2010-02-24  Eric Blake  <eblake@redhat.com>
14317
14318         bootstrap, git-version-gen: use timestamp
14319         * build-aux/git-version-gen (scriptversion): Force UTC.
14320         * build-aux/bootstrap (scriptversion): New variable.
14321
14322         bootstrap: allow older git
14323         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
14324         older than 1.6.4.  Requested by the libvirt project.
14325
14326 2010-02-23  Eric Blake  <eblake@redhat.com>
14327
14328         warn-on-use: work with old autoconf
14329         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
14330         AS_VAR semantics of autoconf 2.60.
14331         Reported by Bruno Haible.
14332
14333         bootstrap: improve some comments
14334         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
14335         clarification comments.
14336
14337         gettimeofday: provide correct function
14338         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
14339         when replacement is declared, otherwise provide gettimeofday.
14340         Reported by Michael Goffioul.
14341
14342 2010-02-23  Jim Meyering  <meyering@redhat.com>
14343
14344         lib-ignore: relax license to "unlimited", not LGPLv2+
14345         * modules/lib-ignore (License): Relax to "unlimited".
14346
14347 2010-02-23  Jim Meyering  <meyering@redhat.com>
14348
14349         lib-ignore: relax license to LGPLv2+
14350         * modules/lib-ignore (License): Relax to LGPLv2+.
14351
14352 2010-02-22  Eric Blake  <eblake@redhat.com>
14353
14354         lseek: avoid bash 3.2 broken pipe bug
14355         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
14356         warning from bash 3.2.
14357         Reported by Ben Pfaff, with analysis from Bruno Haible.
14358
14359         bootstrap: support non-FSF copyright holder
14360         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
14361         bootstrap.conf override of COPYRIGHT_HOLDER.
14362         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
14363
14364         bootstrap: interoperate with gettext 0.14.1
14365         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
14366
14367         bootstrap: allow for alternate submodule location
14368         * build-aux/bootstrap (gnulib_path): New variable; use instead of
14369         hardcoding submodule location.
14370         (gnulib_mk): Allow direct use of Makefile.am.
14371
14372         bootstrap: use GNULIB_SRCDIR to reduce disk usage
14373         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
14374         rather than reconfiguring where the submodule points.
14375
14376         gettimeofday: restore support for platforms that lack function
14377         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
14378         replacement if function is missing.
14379         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
14380         * modules/sys_time (Makefile.am): Substitute it.
14381         * lib/sys_time.in.h (gettimeofday): Check it.
14382         Reported by Michael Goffioul.
14383
14384 2010-02-21  Bruno Haible  <bruno@clisp.org>
14385
14386         * lib/stdio.in.h (obstack_printf): Fix typo.
14387
14388 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
14389
14390         vc-list-files: use bzr ls's -R option
14391         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
14392         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
14393
14394 2010-02-21  Jim Meyering  <meyering@redhat.com>
14395
14396         init.sh: fix EXEEXT shims to work also for names like test-prog
14397         * tests/init.sh: Re-exec a better shell, when needed.
14398         If the current shell lacks support for posix $(...), an init.sh-using
14399         test will now try to find a shell that supports that.  If EXEEXT is
14400         nonempty, we also require support for hyphen-in-alias-name and shell
14401         substitutions like ${var#glob}.  Failure to find such a shell results
14402         in a skipped test.
14403
14404 2010-02-21  Bruno Haible  <bruno@clisp.org>
14405
14406         Really work around around "broken pipe" error message from bash 3.2.
14407         * gnulib-tool (func_reset_sigpipe): Remove function.
14408         (echo): In bash 3.2, define to a function that uses printf.
14409         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
14410
14411 2010-02-20  Bruno Haible  <bruno@clisp.org>
14412
14413         Restore support for automake 1.9.6 with autoconf 2.61.
14414         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
14415         Reported by James Youngman <jay@gnu.org>.
14416
14417 2010-02-20  Bruno Haible  <bruno@clisp.org>
14418
14419         Improve *printf warning condition.
14420         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
14421         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
14422         and the function is overridden due to SIGPIPE emulation.
14423
14424 2010-02-20  Bruno Haible  <bruno@clisp.org>
14425
14426         * lib/stdio.in.h: Tweak comments.
14427
14428 2010-02-19  Bruno Haible  <bruno@clisp.org>
14429
14430         Make it easier to find modules. New gnulib-tool option '--find'.
14431         * gnulib-tool: New option --find.
14432         (func_usage): Document it.
14433         (func_sanitize_modulelist): New function, extracted from
14434         func_all_modules.
14435         (func_all_modules): Invoke it.
14436         * doc/gnulib-tool.texi (Which modules?): New node.
14437
14438 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
14439
14440         * lib/sys_select.in.h: Provide select replacement even if
14441         sys/select.h exists on a system, for Interix.
14442
14443 2010-02-18  Jim Meyering  <meyering@redhat.com>
14444
14445         init.sh: don't use $(...) just yet
14446         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
14447         to accommodate e.g., Solaris' /bin/sh.
14448
14449 2010-02-17  Bruno Haible  <bruno@clisp.org>
14450
14451         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
14452         Reported by Ludovic Courtès <ludo@gnu.org>.
14453
14454 2010-02-16  Simon Josefsson  <simon@josefsson.org>
14455
14456         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
14457         linking with -lintl.
14458
14459 2010-02-17  Simon Josefsson  <simon@josefsson.org>
14460
14461         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
14462         if not provided by the system's netdb.h.  Reported by
14463         ludo@gnu.org (Ludovic Courtès).
14464
14465 2010-02-15  Jim Meyering  <meyering@redhat.com>
14466
14467         init.sh: improve portability and efficiency
14468         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
14469         "dummy" in a for loop.
14470         Use '!', not '^' to select the complement of a character set used
14471         in a "case" statement.
14472         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
14473         Suggestions from Eric Blake.
14474
14475         init.sh: automatically accommodate programs with the .exe suffix
14476         Automatically arrange for an invocation of "prog" to execute the
14477         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
14478         may use the simpler "prog", yet still work when built on a system
14479         that requires specifying the added suffix.
14480         Do this by constructing a function named "prog" that invokes
14481         "prog.exe" for each .exe file in selected directories.
14482         * tests/init.sh (find_exe_basenames_): New function.
14483         (create_exe_shim_functions_): New function.
14484         (path_prepend_): Use it.
14485
14486         maint.mk: mark syntax-check sc_*.m rules as .PHONY
14487         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
14488         "make -t syntax-check" doesn't create a ton of sc_*.m files.
14489
14490 2010-02-14  Jim Meyering  <meyering@redhat.com>
14491
14492         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
14493         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
14494         (sc_prohibit_hash_pjw_without_use): New rule.
14495
14496         maint.mk: allow the default upload destination dir to be overridden
14497         * top/maint.mk (upload_dest_dir_): Define with a default that
14498         preserves the status quo.
14499         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
14500         Reported by Peter Simons.
14501
14502         maint.mk: prohibit inclusion of "hash.h" without_use
14503         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
14504
14505 2010-02-10  Jim Meyering  <meyering@redhat.com>
14506
14507         maint.mk: prohibit inclusion of "ignore-value.h" without_use
14508         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
14509
14510 2010-02-09  Eric Blake  <ebb9@byu.net>
14511         and Bruno Haible  <bruno@clisp.org>
14512
14513         obstack-printf-posix: ensure declaration
14514         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
14515         extracted from gl_FUNC_OBSTACK_PRINTF.
14516         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
14517         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
14518         Likewise.
14519         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
14520         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
14521         0.
14522
14523 2010-02-08  Bruno Haible  <bruno@clisp.org>
14524
14525         gnulib-tool: Fix typo in 2010-02-07 commit.
14526         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
14527         Reported by Eric Blake.
14528
14529 2010-02-07  Bruno Haible  <bruno@clisp.org>
14530
14531         gnulib-tool: Fix up caching patches.
14532         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
14533         option --no-cache. Use associative arrays when supported by the shell.
14534         (sed_comments): New variable.
14535         (modcache): Renamed from do_cache.
14536         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
14537         abbreviate unnecessarily.
14538         (have_associative): New variable.
14539         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
14540         way also for ksh and zsh.
14541         (func_init_sed_convert_to_cache_statements): New function, extracted
14542         from func_cache_lookup_module. Add support for associative arrays.
14543         Don't set the c_MODULE_cached variable here. Ignore all lines before
14544         the first field header. Remove only the final newline, not all trailing
14545         newlines. Support empty fields correctly. Limit the use of 'eval' to
14546         assignments.
14547         (func_get_description, func_get_status, func_get_notice,
14548         func_get_applicability, func_get_filelist, func_get_dependencies,
14549         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
14550         func_get_automake_snippet, func_get_include_directive,
14551         func_get_link_directive, func_get_license, func_get_maintainer):
14552         Update documentation. List the unoptimized code first. Add support for
14553         associative arrays. Limit the use of 'eval' to assignments.
14554         (func_get_applicability): Undo stylistic pessimisations.
14555         (func_get_automake_snippet, func_get_include_directive): Reduce code
14556         duplication.
14557         (func_modules_transitive_closure, func_modules_add_dummy,
14558         func_modules_notice, func_modules_to_filelist, func_add_file,
14559         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
14560         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
14561         func_create_testdir, func_create_megatestdir): Update documentation.
14562
14563 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14564
14565         * gnulib-tool (func_cache_lookup_module): Store the module name
14566         belonging to the cache variable; error out if two different
14567         module names map to the same cache variable name.
14568
14569 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14570
14571         gnulib-tool: Make caching optional.
14572         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
14573         Update matching short versions of --no-changelog.
14574         (func_usage): Update.
14575         (sed_extract_cache_prog): Renamed from ...
14576         (sed_extract_prog): ... this; revert to old extraction script.
14577         (func_get_description, func_get_status)
14578         (func_get_notice, func_get_applicability, func_get_filelist)
14579         (func_get_dependencies, func_get_autoconf_early_snippet)
14580         (func_get_autoconf_snippet, func_get_automake_snippet)
14581         (func_get_include_directive, func_get_link_directive)
14582         (func_get_license, func_get_maintainer): If $do_cache is false,
14583         use old, non-caching extraction scripts.
14584         Suggestion by Bruno Haible.
14585
14586 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14587
14588         gnulib-tool: cache module metainformation.
14589         * gnulib-tool (sed_extract_prog): Match newline before each
14590         header, and rewrite header to a shell variable suffix.
14591         (func_cache_var, func_cache_lookup_module): New functions,
14592         to turn a module name into a cache variable prefix, and to
14593         look up and cache module metainformation.
14594         (func_get_description, func_get_status)
14595         (func_get_notice, func_get_applicability, func_get_filelist)
14596         (func_get_dependencies, func_get_autoconf_early_snippet)
14597         (func_get_autoconf_snippet, func_get_automake_snippet)
14598         (func_get_include_directive, func_get_link_directive)
14599         (func_get_license, func_get_maintainer): Use
14600         func_cache_lookup_module.
14601
14602 2010-02-07  Bruno Haible  <bruno@clisp.org>
14603
14604         fnctl: Fix missing dependency.
14605         * modules/fcntl (Depends-on): Add getdtablesize.
14606         Reported by John W. Eaton <jwe@gnu.org>.
14607
14608 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
14609
14610         Argp: fix recognition of short alias options.
14611
14612         * lib/argp-parse.c (convert_options): Fix improper use of
14613         `|' between character values.
14614         * tests/test-argp.c (group1_option): New alias option
14615         --read (-r).
14616         (group1_parser): Special handling for 'r'.
14617         (test15): New test case.
14618         (test_fun): Add test15.
14619         * tests/test-argp-2.sh: Update expected --help and --usage
14620         outputs.
14621
14622 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
14623
14624         * tests/test-argp.c: Fix indentation.
14625
14626 2010-02-04  Eric Blake  <ebb9@byu.net>
14627
14628         gettimeofday: expose type of second argument
14629         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
14630         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
14631         * tests/test-gettimeofday.c: Use it to silence warning.
14632         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
14633         the issue.
14634
14635 2010-02-03  Jim Meyering  <meyering@redhat.com>
14636
14637         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
14638         * lib/regcomp.c (TYPE_SIGNED): Define.
14639         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
14640
14641         regcomp.c: avoid a new -Wshadow warning
14642         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
14643
14644 2010-02-01  Jim Meyering  <meyering@redhat.com>
14645
14646         removing useless parentheses in cpp #define directives
14647         For motivation, see commit c0221df4, "define STREQ(a,b)
14648         consistently, removing useless parentheses"
14649         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
14650         * lib/mountlist.c (MNT_IGNORE): Likewise.
14651         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
14652
14653 2010-02-01  Eric Blake  <ebb9@byu.net>
14654
14655         sys_time: use link-warning
14656         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
14657         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
14658         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
14659         * modules/sys_time (Depends-on): Add warn-on-use.
14660         (Makefile.am): Always build replacement.
14661         (configure.ac): Update substitutions.
14662         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
14663         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
14664         bother with SYS_TIME_H.
14665         * modules/gettimeofday (configure.ac): Declare indicator.
14666         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
14667         in use.
14668
14669         closein-tests: silence compiler warning
14670         * tests/test-closein.c (main): Ignore fread result.
14671         * modules/closein-tests (Depends-on): Add ignore-value.
14672
14673         tests: silence warning about system return
14674         * tests/test-areadlink-with-size.c (main): Ignore system result.
14675         * tests/test-areadlink.c (main): Likewise.
14676         * tests/test-areadlinkat-with-size.c (main): Likewise.
14677         * tests/test-areadlinkat.c (main): Likewise.
14678         * tests/test-canonicalize-lgpl.c (main): Likewise.
14679         * tests/test-canonicalize.c (main): Likewise.
14680         * tests/test-chown.c (main): Likewise.
14681         * tests/test-fchownat.c (main): Likewise.
14682         * tests/test-fdutimensat.c (main): Likewise.
14683         * tests/test-fstatat.c (main): Likewise.
14684         * tests/test-futimens.c (main): Likewise.
14685         * tests/test-lchown.c (main): Likewise.
14686         * tests/test-link.c (main): Likewise.
14687         * tests/test-linkat.c (main): Likewise.
14688         * tests/test-lstat.c (main): Likewise.
14689         * tests/test-mkdir.c (main): Likewise.
14690         * tests/test-mkdirat.c (main): Likewise.
14691         * tests/test-mkfifo.c (main): Likewise.
14692         * tests/test-mkfifoat.c (main): Likewise.
14693         * tests/test-mknod.c (main): Likewise.
14694         * tests/test-readlink.c (main): Likewise.
14695         * tests/test-remove.c (main): Likewise.
14696         * tests/test-rename.c (main): Likewise.
14697         * tests/test-renameat.c (main): Likewise.
14698         * tests/test-rmdir.c (main): Likewise.
14699         * tests/test-symlink.c (main): Likewise.
14700         * tests/test-symlinkat.c (main): Likewise.
14701         * tests/test-unlink.c (main): Likewise.
14702         * tests/test-unlinkat.c (main): Likewise.
14703         * tests/test-utimens.c (main): Likewise.
14704         * tests/test-utimensat.c (main): Likewise.
14705         * modules/areadlink-tests (Depends-on): Add ignore-value.
14706         * modules/areadlink-with-size-tests (Depends-on): Likewise.
14707         * modules/areadlinkat-tests (Depends-on): Likewise.
14708         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
14709         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
14710         * modules/canonicalize-tests (Depends-on): Likewise.
14711         * modules/chown-tests (Depends-on): Likewise.
14712         * modules/fdutimensat-tests (Depends-on): Likewise.
14713         * modules/futimens-tests (Depends-on): Likewise.
14714         * modules/lchown-tests (Depends-on): Likewise.
14715         * modules/link-tests (Depends-on): Likewise.
14716         * modules/linkat-tests (Depends-on): Likewise.
14717         * modules/lstat-tests (Depends-on): Likewise.
14718         * modules/mkdir-tests (Depends-on): Likewise.
14719         * modules/mkfifo-tests (Depends-on): Likewise.
14720         * modules/mkfifoat-tests (Depends-on): Likewise.
14721         * modules/mknod-tests (Depends-on): Likewise.
14722         * modules/openat-tests (Depends-on): Likewise.
14723         * modules/readlink-tests (Depends-on): Likewise.
14724         * modules/remove-tests (Depends-on): Likewise.
14725         * modules/rename-tests (Depends-on): Likewise.
14726         * modules/renameat-tests (Depends-on): Likewise.
14727         * modules/rmdir-tests (Depends-on): Likewise.
14728         * modules/symlink-tests (Depends-on): Likewise.
14729         * modules/symlinkat-tests (Depends-on): Likewise.
14730         * modules/unlink-tests (Depends-on): Likewise.
14731         * modules/utimens-tests (Depends-on): Likewise.
14732         * modules/utimensat-tests (Depends-on): Likewise.
14733
14734 2010-01-31  Bruno Haible  <bruno@clisp.org>
14735
14736         Perform the same test for many <math.h> functions.
14737         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
14738         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
14739         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
14740         of gl_MATHFUNC.
14741         * modules/acos (configure.ac): Likewise.
14742         * modules/asin (configure.ac): Likewise.
14743         * modules/atan (configure.ac): Likewise.
14744         * modules/atan2 (configure.ac): Likewise.
14745         * modules/cbrt (configure.ac): Likewise.
14746         * modules/copysign (configure.ac): Likewise.
14747         * modules/cos (configure.ac): Likewise.
14748         * modules/cosh (configure.ac): Likewise.
14749         * modules/erf (configure.ac): Likewise.
14750         * modules/erfc (configure.ac): Likewise.
14751         * modules/exp (configure.ac): Likewise.
14752         * modules/fmod (configure.ac): Likewise.
14753         * modules/hypot (configure.ac): Likewise.
14754         * modules/j0 (configure.ac): Likewise.
14755         * modules/j1 (configure.ac): Likewise.
14756         * modules/jn (configure.ac): Likewise.
14757         * modules/lgamma (configure.ac): Likewise.
14758         * modules/log (configure.ac): Likewise.
14759         * modules/log10 (configure.ac): Likewise.
14760         * modules/log1p (configure.ac): Likewise.
14761         * modules/pow (configure.ac): Likewise.
14762         * modules/remainder (configure.ac): Likewise.
14763         * modules/sin (configure.ac): Likewise.
14764         * modules/sinh (configure.ac): Likewise.
14765         * modules/tan (configure.ac): Likewise.
14766         * modules/tanh (configure.ac): Likewise.
14767         * modules/y0 (configure.ac): Likewise.
14768         * modules/y1 (configure.ac): Likewise.
14769         * modules/yn (configure.ac): Likewise.
14770         Suggested by Paolo Bonzini.
14771
14772 2010-01-31  Bruno Haible  <bruno@clisp.org>
14773
14774         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
14775
14776 2010-01-31  Bruno Haible  <bruno@clisp.org>
14777
14778         Work around getdelim() bug on FreeBSD 8.0.
14779         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
14780         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
14781         not work.
14782         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
14783         is 1.
14784         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
14785         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
14786         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
14787         a non-zero size.
14788         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
14789
14790 2010-01-31  Bruno Haible  <bruno@clisp.org>
14791
14792         Work around getline() bug on FreeBSD 8.0.
14793         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
14794         and a non-zero size.
14795         * tests/test-getline.c (main): Likewise.
14796         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
14797         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
14798
14799 2010-01-28  Eric Blake  <ebb9@byu.net>
14800
14801         regex: fix build failure
14802         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
14803         platforms.
14804
14805 2010-01-28  Jim Meyering  <meyering@redhat.com>
14806
14807         regex: do not ignore memory allocation failure
14808         * lib/regex_internal.c (create_cd_newstate): Detect
14809         re_node_set_init_copy failure.   Extracted from glibc commit
14810         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
14811
14812         regex: sync more white-space changes from libc
14813         * lib/regex_internal.c: White-space only changes.
14814         * lib/regexec.c: Likewise.
14815
14816         regex: add many uses of __attribute_warn_unused_result__
14817         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
14818         * lib/regexec.c: Likewise.
14819         Extracted from a messy glibc commit.
14820
14821         regcomp.c: spelling and merge-artifact from glibc
14822         * lib/regcomp.c: Merge remainder of glibc's
14823         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
14824
14825         regcomp.c: sync white-space changes from glibc
14826         * lib/regcomp.c: Merge to accommodate white space
14827         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
14828
14829         regcomp.c: do not ignore internal return values
14830         * lib/regcomp.c: Do not ignore internal return values.
14831         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
14832         but without its white-space changes and spelling fixes.
14833
14834         regex_internal.h: define __attribute_warn_unused_result__
14835         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
14836
14837         maint: add a syntax-check rule to check for vulnerable Makefile.in
14838         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
14839
14840 2010-01-27  Jim Meyering  <meyering@redhat.com>
14841
14842         ncftpput-ftp: clean up spaces
14843         * build-aux/ncftpput-ftp: Make Copyright line consistent.
14844         Remove trailing blanks.
14845
14846 2010-01-27  Simon Josefsson  <simon@josefsson.org>
14847
14848         * build-aux/git-version-gen: Fix copyright statement.
14849         * build-aux/gnupload: Likewise.
14850         * tests/test-arcfour.c: Likewise.
14851         * tests/test-arctwo.c: Likewise.
14852         * tests/test-count-one-bits.c: Likewise.
14853         * tests/test-crc.c: Likewise.
14854         * tests/test-des.c: Likewise.
14855         * tests/test-gc-arcfour.c: Likewise.
14856         * tests/test-gc-arctwo.c: Likewise.
14857         * tests/test-gc-des.c: Likewise.
14858         * tests/test-gc-hmac-md5.c: Likewise.
14859         * tests/test-gc-hmac-sha1.c: Likewise.
14860         * tests/test-gc-md2.c: Likewise.
14861         * tests/test-gc-md4.c: Likewise.
14862         * tests/test-gc-md5.c: Likewise.
14863         * tests/test-gc-pbkdf2-sha1.c: Likewise.
14864         * tests/test-gc-rijndael.c: Likewise.
14865         * tests/test-gc-sha1.c: Likewise.
14866         * tests/test-gc.c: Likewise.
14867         * tests/test-gethostname.c: Likewise.
14868         * tests/test-gettimeofday.c: Likewise.
14869         * tests/test-hash.c: Likewise.
14870         * tests/test-hmac-md5.c: Likewise.
14871         * tests/test-hmac-sha1.c: Likewise.
14872         * tests/test-md2.c: Likewise.
14873         * tests/test-md4.c: Likewise.
14874         * tests/test-md5.c: Likewise.
14875         * tests/test-memchr.c: Likewise.
14876         * tests/test-memchr2.c: Likewise.
14877         * tests/test-memcmp.c: Likewise.
14878         * tests/test-memmem.c: Likewise.
14879         * tests/test-memrchr.c: Likewise.
14880         * tests/test-rawmemchr.c: Likewise.
14881         * tests/test-read-file.c: Likewise.
14882         * tests/test-rijndael.c: Likewise.
14883         * tests/test-sockets.c: Likewise.
14884         * tests/test-strchrnul.c: Likewise.
14885         * tests/test-strstr.c: Likewise.
14886         * tests/test-strtod.c: Likewise.
14887         * build-aux/ncftpput-ftp: Likewise.
14888
14889 2010-01-26  Eric Blake  <ebb9@byu.net>
14890
14891         ignore-value: update recommended header name
14892         * modules/ignore-value (Include): Only use <> for headers that
14893         exist in glibc.
14894
14895 2010-01-26  Jim Meyering  <meyering@redhat.com>
14896
14897         test-userspec.c: avoid compiler warnings
14898         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
14899         and "initialization discards qualifiers..." warnings.
14900         Put the first "uid" in its own scope, and make char* members "const".
14901
14902 2010-01-25  Bruno Haible  <bruno@clisp.org>
14903
14904         gnulib-tool: Make warning diagnostics consistent.
14905         * gnulib-tool (func_warning): New function.
14906         Use it everywhere where gnulib-tool produces output to stderr and it is
14907         not a fatal error.
14908
14909 2010-01-25  Bruno Haible  <bruno@clisp.org>
14910
14911         Fix test dependencies.
14912         * modules/xstrtol-tests (Depends-on): Add inttypes.
14913         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
14914
14915 2010-01-25 Pádraig Brady <P@draigBrady.com>
14916
14917         syntax-check: detect incorrect boolean macro values in config.h
14918         * modules/maintainer-makefile (configure.ac): Parameterize the location
14919         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
14920         The logic is from Eric Blake and the location indicated by Jim Meyering.
14921         Note the more natural CONFIG_HEADER name is prohibited by automake
14922         for backwards compatibility reasons.
14923         * top/maint.mk (sc_Wundef_boolean): New rule.
14924
14925 2010-01-25  Jim Meyering  <meyering@redhat.com>
14926
14927         bootstrap: detect MacOS 10.6's shasum, too
14928         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
14929         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
14930
14931 2010-01-23  Jim Meyering  <meyering@redhat.com>
14932
14933         xstrtoll: new module
14934         * modules/xstrtoll: New file.
14935         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
14936         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
14937         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
14938         ./configure fails if you use this module and lack "long long".
14939         * modules/xstrtoll-tests: New module.
14940         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
14941         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
14942         new init.sh-based test framework.
14943
14944 2010-01-24  Bruno Haible  <bruno@clisp.org>
14945
14946         Tests for module 'yn'.
14947         * modules/yn-tests: New file.
14948         * tests/test-yn.c: New file.
14949
14950         Tests for module 'y1'.
14951         * modules/y1-tests: New file.
14952         * tests/test-y1.c: New file.
14953
14954         Tests for module 'y0'.
14955         * modules/y0-tests: New file.
14956         * tests/test-y0.c: New file.
14957
14958         Tests for module 'tanh'.
14959         * modules/tanh-tests: New file.
14960         * tests/test-tanh.c: New file.
14961
14962         Tests for module 'tan'.
14963         * modules/tan-tests: New file.
14964         * tests/test-tan.c: New file.
14965
14966         Tests for module 'sqrt'.
14967         * modules/sqrt-tests: New file.
14968         * tests/test-sqrt.c: New file.
14969
14970         Tests for module 'sinh'.
14971         * modules/sinh-tests: New file.
14972         * tests/test-sinh.c: New file.
14973
14974         Tests for module 'sin'.
14975         * modules/sin-tests: New file.
14976         * tests/test-sin.c: New file.
14977
14978         Tests for module 'rint'.
14979         * modules/rint-tests: New file.
14980         * tests/test-rint.c: New file.
14981
14982         Tests for module 'remainder'.
14983         * modules/remainder-tests: New file.
14984         * tests/test-remainder.c: New file.
14985
14986         Tests for module 'pow'.
14987         * modules/pow-tests: New file.
14988         * tests/test-pow.c: New file.
14989
14990         Tests for module 'nextafter'.
14991         * modules/nextafter-tests: New file.
14992         * tests/test-nextafter.c: New file.
14993
14994         Tests for module 'modf'.
14995         * modules/modf-tests: New file.
14996         * tests/test-modf.c: New file.
14997
14998         Tests for module 'logb'.
14999         * modules/logb-tests: New file.
15000         * tests/test-logb.c: New file.
15001
15002         Tests for module 'log1p'.
15003         * modules/log1p-tests: New file.
15004         * tests/test-log1p.c: New file.
15005
15006         Tests for module 'log10'.
15007         * modules/log10-tests: New file.
15008         * tests/test-log10.c: New file.
15009
15010         Tests for module 'log'.
15011         * modules/log-tests: New file.
15012         * tests/test-log.c: New file.
15013
15014         Tests for module 'lgamma'.
15015         * modules/lgamma-tests: New file.
15016         * tests/test-lgamma.c: New file.
15017
15018         Tests for module 'ldexp'.
15019         * modules/ldexp-tests: New file.
15020         * tests/test-ldexp.c: New file.
15021
15022         Tests for module 'jn'.
15023         * modules/jn-tests: New file.
15024         * tests/test-jn.c: New file.
15025
15026         Tests for module 'j1'.
15027         * modules/j1-tests: New file.
15028         * tests/test-j1.c: New file.
15029
15030         Tests for module 'j0'.
15031         * modules/j0-tests: New file.
15032         * tests/test-j0.c: New file.
15033
15034         Tests for module 'hypot'.
15035         * modules/hypot-tests: New file.
15036         * tests/test-hypot.c: New file.
15037
15038         Tests for module 'fmod'.
15039         * modules/fmod-tests: New file.
15040         * tests/test-fmod.c: New file.
15041
15042         Tests for module 'fabs'.
15043         * modules/fabs-tests: New file.
15044         * tests/test-fabs.c: New file.
15045
15046         Tests for module 'exp'.
15047         * modules/exp-tests: New file.
15048         * tests/test-exp.c: New file.
15049
15050         Tests for module 'erfc'.
15051         * modules/erfc-tests: New file.
15052         * tests/test-erfc.c: New file.
15053
15054         Tests for module 'erf'.
15055         * modules/erf-tests: New file.
15056         * tests/test-erf.c: New file.
15057
15058         Tests for module 'cosh'.
15059         * modules/cosh-tests: New file.
15060         * tests/test-cosh.c: New file.
15061
15062         Tests for module 'cos'.
15063         * modules/cos-tests: New file.
15064         * tests/test-cos.c: New file.
15065
15066         Tests for module 'copysign'.
15067         * modules/copysign-tests: New file.
15068         * tests/test-copysign.c: New file.
15069
15070         Tests for module 'cbrt'.
15071         * modules/cbrt-tests: New file.
15072         * tests/test-cbrt.c: New file.
15073
15074         Tests for module 'atan2'.
15075         * modules/atan2-tests: New file.
15076         * tests/test-atan2.c: New file.
15077
15078         Tests for module 'atan'.
15079         * modules/atan-tests: New file.
15080         * tests/test-atan.c: New file.
15081
15082         Tests for module 'asin'.
15083         * modules/asin-tests: New file.
15084         * tests/test-asin.c: New file.
15085
15086         Tests for module 'acos'.
15087         * modules/acos-tests: New file.
15088         * tests/test-acos.c: New file.
15089
15090 2010-01-24  Bruno Haible  <bruno@clisp.org>
15091
15092         Fix tests for common <math.h> functions.
15093         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
15094         code snippet that references the function pointer, rather than merely
15095         calling the function. Substitute the FUNC_LIBM variable.
15096         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
15097         * modules/acos (configure.ac): Likewise.
15098         * modules/asin (configure.ac): Likewise.
15099         * modules/atan (configure.ac): Likewise.
15100         * modules/atan2 (configure.ac): Likewise.
15101         * modules/cbrt (configure.ac): Likewise.
15102         * modules/copysign (configure.ac): Likewise.
15103         * modules/cos (configure.ac): Likewise.
15104         * modules/cosh (configure.ac): Likewise.
15105         * modules/erf (configure.ac): Likewise.
15106         * modules/erfc (configure.ac): Likewise.
15107         * modules/exp (configure.ac): Likewise.
15108         * modules/fabs (configure.ac): Likewise.
15109         * modules/fmod (configure.ac): Likewise.
15110         * modules/hypot (configure.ac): Likewise.
15111         * modules/j0 (configure.ac): Likewise.
15112         * modules/j1 (configure.ac): Likewise.
15113         * modules/jn (configure.ac): Likewise.
15114         * modules/ldexp (configure.ac): Likewise.
15115         * modules/lgamma (configure.ac): Likewise.
15116         * modules/log (configure.ac): Likewise.
15117         * modules/log10 (configure.ac): Likewise.
15118         * modules/log1p (configure.ac): Likewise.
15119         * modules/logb (configure.ac): Likewise.
15120         * modules/modf (configure.ac): Likewise.
15121         * modules/nextafter (configure.ac): Likewise.
15122         * modules/pow (configure.ac): Likewise.
15123         * modules/remainder (configure.ac): Likewise.
15124         * modules/rint (configure.ac): Likewise.
15125         * modules/sin (configure.ac): Likewise.
15126         * modules/sinh (configure.ac): Likewise.
15127         * modules/tan (configure.ac): Likewise.
15128         * modules/tanh (configure.ac): Likewise.
15129         * modules/y0 (configure.ac): Likewise.
15130         * modules/y1 (configure.ac): Likewise.
15131         * modules/yn (configure.ac): Likewise.
15132
15133 2010-01-24  Bruno Haible  <bruno@clisp.org>
15134
15135         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
15136         * tests/test-acosl.c (x): New variable.
15137         (main): Store argument in x and fetch it from x.
15138         * tests/test-asinl.c (x): New variable.
15139         (main): Store argument in x and fetch it from x.
15140         * tests/test-atanl.c (x): New variable.
15141         (main): Store argument in x and fetch it from x.
15142         * tests/test-cosl.c (x): New variable.
15143         (main): Store argument in x and fetch it from x.
15144         * tests/test-expl.c (x): New variable.
15145         (main): Store argument in x and fetch it from x.
15146         * tests/test-logl.c (x): New variable.
15147         (main): Store argument in x and fetch it from x.
15148         * tests/test-sinl.c (x): New variable.
15149         (main): Store argument in x and fetch it from x.
15150         * tests/test-sqrtl.c (x): New variable.
15151         (main): Store argument in x and fetch it from x.
15152         * tests/test-tanl.c (x): New variable.
15153         (main): Store argument in x and fetch it from x.
15154
15155 2010-01-24  Bruno Haible  <bruno@clisp.org>
15156
15157         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
15158         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
15159         assignments to the initial TESTS_ENVIRONMENT.
15160         * doc/gnulib.texi (Unit test modules): Document it.
15161         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
15162         TESTS_ENVIRONMENT.
15163         * modules/btowc-tests (Makefile.am): Likewise.
15164         * modules/c-stack-tests (Makefile.am): Likewise.
15165         * modules/c-strcase-tests (Makefile.am): Likewise.
15166         * modules/copy-file-tests (Makefile.am): Likewise.
15167         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
15168         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
15169         * modules/mbrtowc-tests (Makefile.am): Likewise.
15170         * modules/mbscasecmp-tests (Makefile.am): Likewise.
15171         * modules/mbscasestr-tests (Makefile.am): Likewise.
15172         * modules/mbschr-tests (Makefile.am): Likewise.
15173         * modules/mbscspn-tests (Makefile.am): Likewise.
15174         * modules/mbsinit-tests (Makefile.am): Likewise.
15175         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
15176         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
15177         * modules/mbspbrk-tests (Makefile.am): Likewise.
15178         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
15179         * modules/mbsrchr-tests (Makefile.am): Likewise.
15180         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
15181         * modules/mbsspn-tests (Makefile.am): Likewise.
15182         * modules/mbsstr-tests (Makefile.am): Likewise.
15183         * modules/nl_langinfo-tests (Makefile.am): Likewise.
15184         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
15185         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
15186         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
15187         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
15188         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
15189         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
15190         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
15191         * modules/wcrtomb-tests (Makefile.am): Likewise.
15192         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
15193         * modules/wcsrtombs-tests (Makefile.am): Likewise.
15194         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
15195         assignments from TESTS_ENVIRONMENT.
15196         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
15197         augmentation.
15198         * modules/argp-version-etc-tests (Makefile.am): Likewise.
15199         * modules/atexit-tests (Makefile.am): Likewise.
15200         * modules/binary-io-tests (Makefile.am): Likewise.
15201         * modules/closein-tests (Makefile.am): Likewise.
15202         * modules/dprintf-posix-tests (Makefile.am): Likewise.
15203         * modules/exclude-tests (Makefile.am): Likewise.
15204         * modules/fflush-tests (Makefile.am): Likewise.
15205         * modules/fpending-tests (Makefile.am): Likewise.
15206         * modules/fprintf-posix-tests (Makefile.am): Likewise.
15207         * modules/freadahead-tests (Makefile.am): Likewise.
15208         * modules/freadptr-tests (Makefile.am): Likewise.
15209         * modules/freadseek-tests (Makefile.am): Likewise.
15210         * modules/fseek-tests (Makefile.am): Likewise.
15211         * modules/fseeko-tests (Makefile.am): Likewise.
15212         * modules/ftell-tests (Makefile.am): Likewise.
15213         * modules/ftello-tests (Makefile.am): Likewise.
15214         * modules/idpriv-drop-tests (Makefile.am): Likewise.
15215         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
15216         * modules/lseek-tests (Makefile.am): Likewise.
15217         * modules/parse-duration-tests (Makefile.am): Likewise.
15218         * modules/perror-tests (Makefile.am): Likewise.
15219         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
15220         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
15221         * modules/pipe-tests (Makefile.am): Likewise.
15222         * modules/pread-tests (Makefile.am): Likewise.
15223         * modules/printf-posix-tests (Makefile.am): Likewise.
15224         * modules/select-tests (Makefile.am): Likewise.
15225         * modules/sigpipe-tests (Makefile.am): Likewise.
15226         * modules/tsearch-tests (Makefile.am): Likewise.
15227         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
15228         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
15229         * modules/uniname/uniname-tests (Makefile.am): Likewise.
15230         * modules/uniwidth/width-tests (Makefile.am): Likewise.
15231         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
15232         * modules/version-etc-tests (Makefile.am): Likewise.
15233         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
15234         * modules/vprintf-posix-tests (Makefile.am): Likewise.
15235         * modules/xalloc-die-tests (Makefile.am): Likewise.
15236         * modules/xprintf-posix-tests (Makefile.am): Likewise.
15237         * modules/xstrtoimax-tests (Makefile.am): Likewise.
15238         * modules/xstrtol-tests (Makefile.am): Likewise.
15239         * modules/xstrtoumax-tests (Makefile.am): Likewise.
15240         * modules/yesno-tests (Makefile.am): Likewise.
15241         Suggested by Jim Meyering.
15242
15243 2010-01-24  Bruno Haible  <bruno@clisp.org>
15244
15245         More documentation.
15246         * doc/gnulib.texi (Writing modules): New chapter.
15247         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
15248         the new chapter.
15249
15250 2010-01-24  Jim Meyering  <meyering@redhat.com>
15251
15252         maint.mk: do not prepend "./" after filtering
15253         * top/maint.mk (_prepend_srcdir_prefix): New variable
15254         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
15255         "./" when $(srcdir) is ".".
15256
15257         define STREQ(a,b) consistently, removing useless parentheses
15258         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
15259         since the only risk is that "a" or "b" contains an unparenthesized
15260         comma, but if either did that, STREQ would have 3 or more arguments.
15261         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
15262         * lib/fts.c (STREQ): Remove unnecessary parentheses.
15263         * lib/hash-triple.c (STREQ): Likewise.
15264         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
15265         * lib/getugroups.c (STREQ): Likewise.
15266
15267 2010-01-23  Jim Meyering  <meyering@redhat.com>
15268
15269         maint.mk: fix syntax-check in a non-srcdir build directory
15270         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
15271         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
15272
15273 2010-01-22  Jim Meyering  <meyering@redhat.com>
15274
15275         userspec: add unit tests
15276         * tests/test-userspec.c: New file.
15277         * modules/userspec-tests: Likewise.
15278
15279 2010-01-21  Jim Meyering  <meyering@redhat.com>
15280
15281         maint.mk: handle source file names containing "." robustly
15282         * top/maint.mk (_dot_escaped_srcdir): Define.
15283         (VC_LIST): Use it in LHS of sed substitution.
15284
15285 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
15286
15287         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
15288         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
15289         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
15290         from a non-srcdir build.
15291
15292 2010-01-20  Eric Blake  <ebb9@byu.net>
15293
15294         warn-on-use: use instead of link-warning
15295         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
15296         * modules/unistd (Depends-on, Makefile.am): Likewise.
15297         * modules/arpa_inet (Depends-on): Replace link-warning with
15298         warn-on-use.
15299         (Makefile.am): Update rules accordingly.
15300         * modules/ctype (Depends-on, Makefile.am): Likewise.
15301         * modules/dirent (Depends-on, Makefile.am): Likewise.
15302         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
15303         * modules/inttypes (Depends-on, Makefile.am): Likewise.
15304         * modules/langinfo (Depends-on, Makefile.am): Likewise.
15305         * modules/locale (Depends-on, Makefile.am): Likewise.
15306         * modules/math (Depends-on, Makefile.am): Likewise.
15307         * modules/search (Depends-on, Makefile.am): Likewise.
15308         * modules/signal (Depends-on, Makefile.am): Likewise.
15309         * modules/spawn (Depends-on, Makefile.am): Likewise.
15310         * modules/stdlib (Depends-on, Makefile.am): Likewise.
15311         * modules/string (Depends-on, Makefile.am): Likewise.
15312         * modules/strings (Depends-on, Makefile.am): Likewise.
15313         * modules/sys_file (Depends-on, Makefile.am): Likewise.
15314         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
15315         * modules/sys_select (Depends-on, Makefile.am): Likewise.
15316         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
15317         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
15318         * modules/sys_times (Depends-on, Makefile.am): Likewise.
15319         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
15320         * modules/wchar (Depends-on, Makefile.am): Likewise.
15321         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
15322         should be poisoned.
15323         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
15324         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
15325         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
15326         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
15327         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
15328         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
15329         * m4/math_h.m4 (gl_MATH_H): Likewise.
15330         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
15331         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
15332         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
15333         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
15334         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
15335         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
15336         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
15337         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
15338         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
15339         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
15340         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
15341         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
15342         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
15343         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
15344         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
15345         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
15346         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
15347         GL_LINK_WARNING.
15348         * lib/ctype.in.h: Likewise.
15349         * lib/dirent.in.h: Likewise.
15350         * lib/fcntl.in.h: Likewise.
15351         * lib/inttypes.in.h: Likewise.
15352         * lib/langinfo.in.h: Likewise.
15353         * lib/locale.in.h: Likewise.
15354         * lib/math.in.h: Likewise.
15355         * lib/search.in.h: Likewise.
15356         * lib/signal.in.h: Likewise.
15357         * lib/spawn.in.h: Likewise.
15358         * lib/stdio.in.h: Likewise.
15359         * lib/stdlib.in.h: Likewise.
15360         * lib/string.in.h: Likewise.
15361         * lib/strings.in.h: Likewise.
15362         * lib/sys_file.in.h: Likewise.
15363         * lib/sys_ioctl.in.h: Likewise.
15364         * lib/sys_select.in.h: Likewise.
15365         * lib/sys_socket.in.h: Likewise.
15366         * lib/sys_stat.in.h: Likewise.
15367         * lib/sys_times.in.h: Likewise.
15368         * lib/sys_utsname.in.h: Likewise.
15369         * lib/unistd.in.h: Likewise.
15370         * lib/wchar.in.h: Likewise.
15371
15372 2010-01-20  Bruno Haible  <bruno@clisp.org>
15373
15374         Avoid duplicate -lm.
15375         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
15376         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
15377         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
15378         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
15379         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
15380         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
15381         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
15382         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
15383         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
15384         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
15385         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
15386         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
15387         Reported by Paolo Bonzini.
15388
15389 2010-01-19  Bruno Haible  <bruno@clisp.org>
15390
15391         langinfo, nl_langinfo: Relicense under LGPLv2+.
15392         * modules/langinfo (License): Change to LGPLv2+.
15393         * modules/nl_langinfo (License): Likewise.
15394         Patch by David Lutterkort <lutter@redhat.com>.
15395
15396 2010-01-19  Bruno Haible  <bruno@clisp.org>
15397
15398         Avoid compilation error with cc on OSF/1 5.1.
15399         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
15400         statement, not before.
15401         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15402
15403 2010-01-18  Bruno Haible  <bruno@clisp.org>
15404
15405         Avoid a link error due to the __printf__ symbol.
15406         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
15407         and 2.6.x.
15408         (__format__, __printf__): Remove definitions.
15409         * lib/argp-fmtstream.h: Likewise.
15410         * lib/argp.h: Likewise.
15411         * lib/error.h: Likewise.
15412         * lib/vasnprintf.h: Likewise.
15413         * lib/xprintf.h: Likewise.
15414         * lib/xvasprintf.h: Likewise.
15415         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15416
15417 2010-01-18  Bruno Haible  <bruno@clisp.org>
15418
15419         Tests for module 'tanl'.
15420         * modules/tanl-tests: New file.
15421         * tests/test-tanl.c: New file.
15422
15423         Tests for module 'sqrtl'.
15424         * modules/sqrtl-tests: New file.
15425         * tests/test-sqrtl.c: New file.
15426
15427         Tests for module 'sinl'.
15428         * modules/sinl-tests: New file.
15429         * tests/test-sinl.c: New file.
15430
15431         Tests for module 'logl'.
15432         * modules/logl-tests: New file.
15433         * tests/test-logl.c: New file.
15434
15435         Tests for module 'expl'.
15436         * modules/expl-tests: New file.
15437         * tests/test-expl.c: New file.
15438
15439         Tests for module 'cosl'.
15440         * modules/cosl-tests: New file.
15441         * tests/test-cosl.c: New file.
15442
15443         Tests for module 'atanl'.
15444         * modules/atanl-tests: New file.
15445         * tests/test-atanl.c: New file.
15446
15447         Tests for module 'asinl'.
15448         * modules/asinl-tests: New file.
15449         * tests/test-asinl.c: New file.
15450
15451         Tests for module 'acosl'.
15452         * modules/acosl-tests: New file.
15453         * tests/test-acosl.c: New file.
15454
15455         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
15456         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
15457         tanl): Use the standard gnulib idiom.
15458         * lib/cosl.c: Don't include trigl.c and sincosl.c.
15459         * lib/sinl.c: Likewise.
15460         * lib/tanl.c: Don't include trigl.c.
15461         (kernel_tanl): Make static.
15462         * lib/sincosl.c: Include trigl.h first.
15463         * lib/trigl.c: Likewise.
15464         * m4/acosl.m4: New file.
15465         * m4/asinl.m4: New file.
15466         * m4/atanl.m4: New file.
15467         * m4/cosl.m4: New file.
15468         * m4/expl.m4: New file.
15469         * m4/logl.m4: New file.
15470         * m4/sinl.m4: New file.
15471         * m4/sqrtl.m4: New file.
15472         * m4/tanl.m4: New file.
15473         * m4/mathl.m4: Remove file.
15474         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
15475         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
15476         Don't initialize GNULIB_MATHL.
15477         * modules/acosl: New file.
15478         * modules/asinl: New file.
15479         * modules/atanl: New file.
15480         * modules/cosl: New file.
15481         * modules/expl: New file.
15482         * modules/logl: New file.
15483         * modules/sinl: New file.
15484         * modules/sqrtl: New file.
15485         * modules/tanl: New file.
15486         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
15487         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
15488         substitute GNULIB_MATHL.
15489         * modules/mathl: Rewritten.
15490         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
15491         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
15492         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
15493         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
15494         * doc/posix-functions/expl.texi: Mention the 'expl' module.
15495         * doc/posix-functions/logl.texi: Mention the 'logl' module.
15496         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
15497         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
15498         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
15499
15500 2010-01-18  Bruno Haible  <bruno@clisp.org>
15501
15502         sqrt: Make gl_FUNC_SQRT requirable.
15503         * m4/sqrt.m4: New file.
15504         * modules/sqrt (Files): Add it.
15505         (configure.ac): Invoke gl_FUNC_SQRT.
15506
15507 2010-01-18  Bruno Haible  <bruno@clisp.org>
15508
15509         New modules for common <math.h> functions.
15510         * m4/mathfunc.m4: New file.
15511         * modules/acos: New file.
15512         * modules/asin: New file.
15513         * modules/atan: New file.
15514         * modules/atan2: New file.
15515         * modules/cbrt: New file.
15516         * modules/copysign: New file.
15517         * modules/cos: New file.
15518         * modules/cosh: New file.
15519         * modules/erf: New file.
15520         * modules/erfc: New file.
15521         * modules/exp: New file.
15522         * modules/fabs: New file.
15523         * modules/fmod: New file.
15524         * modules/hypot: New file.
15525         * modules/j0: New file.
15526         * modules/j1: New file.
15527         * modules/jn: New file.
15528         * modules/ldexp: New file.
15529         * modules/lgamma: New file.
15530         * modules/log: New file.
15531         * modules/log10: New file.
15532         * modules/log1p: New file.
15533         * modules/logb: New file.
15534         * modules/modf: New file.
15535         * modules/nextafter: New file.
15536         * modules/pow: New file.
15537         * modules/remainder: New file.
15538         * modules/rint: New file.
15539         * modules/sin: New file.
15540         * modules/sinh: New file.
15541         * modules/sqrt: New file.
15542         * modules/tan: New file.
15543         * modules/tanh: New file.
15544         * modules/y0: New file.
15545         * modules/y1: New file.
15546         * modules/yn: New file.
15547         * doc/posix-functions/acos.texi: Mention the 'acos' module.
15548         * doc/posix-functions/asin.texi: Mention the 'asin' module.
15549         * doc/posix-functions/atan.texi: Mention the 'atan' module.
15550         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
15551         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
15552         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
15553         * doc/posix-functions/cos.texi: Mention the 'cos' module.
15554         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
15555         * doc/posix-functions/erf.texi: Mention the 'erf' module.
15556         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
15557         * doc/posix-functions/exp.texi: Mention the 'exp' module.
15558         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
15559         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
15560         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
15561         * doc/posix-functions/j0.texi: Mention the 'j0' module.
15562         * doc/posix-functions/j1.texi: Mention the 'j1' module.
15563         * doc/posix-functions/jn.texi: Mention the 'jn' module.
15564         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
15565         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
15566         * doc/posix-functions/log.texi: Mention the 'log' module.
15567         * doc/posix-functions/log10.texi: Mention the 'log10' module.
15568         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
15569         * doc/posix-functions/logb.texi: Mention the 'logb' module.
15570         * doc/posix-functions/modf.texi: Mention the 'modf' module.
15571         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
15572         * doc/posix-functions/pow.texi: Mention the 'pow' module.
15573         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
15574         * doc/posix-functions/rint.texi: Mention the 'rint' module.
15575         * doc/posix-functions/sin.texi: Mention the 'sin' module.
15576         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
15577         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
15578         * doc/posix-functions/tan.texi: Mention the 'tan' module.
15579         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
15580         * doc/posix-functions/y0.texi: Mention the 'y0' module.
15581         * doc/posix-functions/y1.texi: Mention the 'y1' module.
15582         * doc/posix-functions/yn.texi: Mention the 'yn' module.
15583
15584 2010-01-18  Jim Meyering  <meyering@redhat.com>
15585
15586         ignore-value: relax license to LGPLv2+
15587         * modules/ignore-value (License): Relax to LGPLv2+.
15588
15589         getdate: don't leak when TZ contains two or more '"'s
15590         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
15591         double quote in TZ after the first one.
15592
15593         readtokens: do not leak internal token_lengths buffer
15594         * lib/readtokens.c (readtokens): Free the local, lengths,
15595         when the supplied "token_lengths" parameter is NULL.
15596
15597 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15598
15599         Fix a couple of missing LIBTHREAD link failures on AIX.
15600         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
15601         $(LIBTHREAD).
15602         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
15603
15604         Link test-poll against INET_PTON_LIB.
15605         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
15606         for inet_pton on Solaris 10.
15607
15608 2010-01-17  Bruno Haible  <bruno@clisp.org>
15609
15610         unistdio/*-sprintf: Fix typo in module description.
15611         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
15612         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
15613         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
15614         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
15615         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
15616         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
15617         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
15618         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15619
15620 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15621
15622         gnulib-tool: fix filelist for AIX, HP-UX ksh.
15623         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
15624         variables in shell case patterns, for AIX and HP-UX ksh.
15625
15626         Split large sed scripts, for HP-UX sed.
15627         * modules/stdio: Split sed scripts around 50 sed commands,
15628         to avoid HP-UX limit of 99 commands, in the near future.
15629         * modules/string: Likewise.
15630         * modules/unistd: Likewise.
15631
15632         gnulib-tool: avoid writing in the current directory.
15633         * gnulib-tool (func_emit_lib_Makefile_am)
15634         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
15635         not in the current directory, so concurrent gnulib-tool
15636         instances do not interfere.
15637
15638 2010-01-16  Jim Meyering  <meyering@redhat.com>
15639
15640         doc: update users.txt
15641         * users.txt: Add grep.
15642         (diffutils, gzip): Update URLs.
15643
15644 2010-01-12  Bruno Haible  <bruno@clisp.org>
15645
15646         posix_spawn: Avoid test failure on Cygwin.
15647         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
15648         characters.
15649         Reported by Simon Josefsson.
15650
15651 2010-01-12  Bruno Haible  <bruno@clisp.org>
15652
15653         * tests/test-cond.c (main): When skipping the test, show the reason.
15654
15655 2010-01-12  Simon Josefsson  <simon@josefsson.org>
15656
15657         * lib/striconv.c (str_cd_iconv): Avoid if before free.
15658
15659 2010-01-12  Simon Josefsson  <simon@josefsson.org>
15660
15661         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
15662         VC_LIST_ALWAYS_EXCLUDE_REGEX.
15663
15664 2010-01-12  Eric Blake  <ebb9@byu.net>
15665
15666         build: guarantee AS_VAR_IF
15667         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
15668         (gl_AS_VAR_IF): Move...
15669         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
15670         Reported by Simon Josefsson.
15671
15672 2010-01-12  Simon Josefsson  <simon@josefsson.org>
15673
15674         * lib/stdio.in.h: Fix typo.
15675
15676 2010-01-12  Simon Josefsson  <simon@josefsson.org>
15677
15678         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
15679         libgpg-error.
15680
15681 2010-01-12  Simon Josefsson  <simon@josefsson.org>
15682
15683         * tests/test-xalloc-die.sh: Use $EXEEXT.
15684
15685 2010-01-12  Simon Josefsson  <simon@josefsson.org>
15686             Bruno Haible  <bruno@clisp.org>
15687
15688         getlogin, getlogin_r: Avoid test failure.
15689         * tests/test-getlogin.c: Include <stdio.h>.
15690         (main): Skip the test when the function fails because stdin is not a
15691         tty.
15692         * tests/test-getlogin_r.c: Include <stdio.h>.
15693         (main): Skip the test when the function fails because stdin is not a
15694         tty.
15695
15696 2010-01-11  Eric Blake  <ebb9@byu.net>
15697
15698         tests: avoid more large file warnings
15699         * tests/test-fflush.c: Avoid warning about ftell use.
15700         * tests/test-fseek.c: Avoid warning about fseek use.
15701
15702 2010-01-10  Bruno Haible  <bruno@clisp.org>
15703
15704         nproc: Work better on Linux when /proc and /sys are not mounted.
15705         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
15706         as lower bound when, on glibc/Linux systems,
15707         sysconf (_SC_NPROCESSORS_CONF) returns 1.
15708         Suggested by Pádraig Brady <P@draigbrady.com>.
15709         Reported by Dmitry V. Levin <ldv@altlinux.org>.
15710
15711         nproc: Refactor.
15712         * lib/nproc.c (num_processors_via_affinity_mask): New function,
15713         extracted from num_processors.
15714         (num_processors): Call it.
15715
15716 2010-01-11  Jim Meyering  <meyering@redhat.com>
15717
15718         utimecmp: avoid new warning from upcoming gcc-4.5.0
15719         * lib/utimecmp.c (BILLION): Define using #define rather than an
15720         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
15721
15722 2010-01-11  Eric Blake  <ebb9@byu.net>
15723
15724         math: add portability warnings for classification macros
15725         * modules/math (Depends-on): Add warn-on-use.
15726         (Makefile.am): Provide new substitutions.
15727         * m4/math_h.m4 (gl_MATH_H): Require inline.
15728         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
15729         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
15730         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
15731         implement warnings.
15732
15733         unistd: warn on use of environ without module
15734         * modules/unistd (Depends-on): Add warn-on-use.
15735         (Makefile.am): Provide new substitutions.
15736         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
15737         * lib/unistd.in.h (environ): Wrap with a warning helper function.
15738
15739         stdio: warn on suspicious uses
15740         * modules/stdio (Depends-on): Add warn-on-use.
15741         (Makefile.am): Provide new substitutions.
15742         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
15743         fseeko.
15744         * lib/stdio.in.h (gets): Always warn on use.
15745         (fseek, ftell): Adjust when warnings are issued, and honor
15746         _GL_NO_LARGE_FILES as a way to silence the warning.
15747         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
15748         any warning about large file offsets.
15749         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
15750         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
15751         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
15752         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
15753         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
15754         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
15755         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
15756         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
15757
15758         warn-on-use: new module
15759         * modules/warn-on-use: New file.
15760         * build-aux/warn-on-use.h: Likewise.
15761         * m4/warn-on-use.m4: Likewise.
15762         * MODULES.html.sh (Support for building): Mention it.
15763
15764 2010-01-10  Bruno Haible  <bruno@clisp.org>
15765
15766         Tests for module 'unistr/u32-strdup'.
15767         * modules/unistr/u32-strdup-tests: New file.
15768         * tests/unistr/test-u32-strdup.c: New file.
15769
15770         Tests for module 'unistr/u16-strdup'.
15771         * modules/unistr/u16-strdup-tests: New file.
15772         * tests/unistr/test-u16-strdup.c: New file.
15773
15774         Tests for module 'unistr/u8-strdup'.
15775         * modules/unistr/u8-strdup-tests: New file.
15776         * tests/unistr/test-u8-strdup.c: New file.
15777         * tests/unistr/test-strdup.h: New file.
15778
15779         Tests for module 'unistr/u32-strncmp'.
15780         * modules/unistr/u32-strncmp-tests: New file.
15781         * tests/unistr/test-u32-strncmp.c: New file.
15782
15783         Tests for module 'unistr/u16-strncmp'.
15784         * modules/unistr/u16-strncmp-tests: New file.
15785         * tests/unistr/test-u16-strncmp.c: New file.
15786
15787         Tests for module 'unistr/u8-strncmp'.
15788         * modules/unistr/u8-strncmp-tests: New file.
15789         * tests/unistr/test-u8-strncmp.c: New file.
15790         * tests/unistr/test-strncmp.h: New file.
15791
15792         Tests for module 'unistr/u32-strcoll'.
15793         * modules/unistr/u32-strcoll-tests: New file.
15794         * tests/unistr/test-u32-strcoll.c: New file.
15795
15796         Tests for module 'unistr/u16-strcoll'.
15797         * modules/unistr/u16-strcoll-tests: New file.
15798         * tests/unistr/test-u16-strcoll.c: New file.
15799
15800         Tests for module 'unistr/u8-strcoll'.
15801         * modules/unistr/u8-strcoll-tests: New file.
15802         * tests/unistr/test-u8-strcoll.c: New file.
15803
15804         Tests for module 'unistr/u32-strcmp'.
15805         * modules/unistr/u32-strcmp-tests: New file.
15806         * tests/unistr/test-u32-strcmp.c: New file.
15807         * tests/unistr/test-u32-strcmp.h: New file.
15808
15809         Tests for module 'unistr/u16-strcmp'.
15810         * modules/unistr/u16-strcmp-tests: New file.
15811         * tests/unistr/test-u16-strcmp.c: New file.
15812         * tests/unistr/test-u16-strcmp.h: New file.
15813
15814         Tests for module 'unistr/u8-strcmp'.
15815         * modules/unistr/u8-strcmp-tests: New file.
15816         * tests/unistr/test-u8-strcmp.c: New file.
15817         * tests/unistr/test-u8-strcmp.h: New file.
15818         * tests/unistr/test-strcmp.h: New file.
15819
15820         Tests for module 'unistr/u32-strncat'.
15821         * modules/unistr/u32-strncat-tests: New file.
15822         * tests/unistr/test-u32-strncat.c: New file.
15823
15824         Tests for module 'unistr/u16-strncat'.
15825         * modules/unistr/u16-strncat-tests: New file.
15826         * tests/unistr/test-u16-strncat.c: New file.
15827
15828         Tests for module 'unistr/u8-strncat'.
15829         * modules/unistr/u8-strncat-tests: New file.
15830         * tests/unistr/test-u8-strncat.c: New file.
15831         * tests/unistr/test-strncat.h: New file.
15832
15833         Tests for module 'unistr/u32-strcat'.
15834         * modules/unistr/u32-strcat-tests: New file.
15835         * tests/unistr/test-u32-strcat.c: New file.
15836
15837         Tests for module 'unistr/u16-strcat'.
15838         * modules/unistr/u16-strcat-tests: New file.
15839         * tests/unistr/test-u16-strcat.c: New file.
15840
15841         Tests for module 'unistr/u8-strcat'.
15842         * modules/unistr/u8-strcat-tests: New file.
15843         * tests/unistr/test-u8-strcat.c: New file.
15844         * tests/unistr/test-strcat.h: New file.
15845
15846         Tests for module 'unistr/u32-stpncpy'.
15847         * modules/unistr/u32-stpncpy-tests: New file.
15848         * tests/unistr/test-u32-stpncpy.c: New file.
15849
15850         Tests for module 'unistr/u16-stpncpy'.
15851         * modules/unistr/u16-stpncpy-tests: New file.
15852         * tests/unistr/test-u16-stpncpy.c: New file.
15853
15854         Tests for module 'unistr/u8-stpncpy'.
15855         * modules/unistr/u8-stpncpy-tests: New file.
15856         * tests/unistr/test-u8-stpncpy.c: New file.
15857         * tests/unistr/test-stpncpy.h: New file.
15858
15859         Tests for module 'unistr/u32-strncpy'.
15860         * modules/unistr/u32-strncpy-tests: New file.
15861         * tests/unistr/test-u32-strncpy.c: New file.
15862
15863         Tests for module 'unistr/u16-strncpy'.
15864         * modules/unistr/u16-strncpy-tests: New file.
15865         * tests/unistr/test-u16-strncpy.c: New file.
15866
15867         Tests for module 'unistr/u8-strncpy'.
15868         * modules/unistr/u8-strncpy-tests: New file.
15869         * tests/unistr/test-u8-strncpy.c: New file.
15870         * tests/unistr/test-strncpy.h: New file.
15871
15872         Tests for module 'unistr/u32-stpcpy'.
15873         * modules/unistr/u32-stpcpy-tests: New file.
15874         * tests/unistr/test-u32-stpcpy.c: New file.
15875
15876         Tests for module 'unistr/u16-stpcpy'.
15877         * modules/unistr/u16-stpcpy-tests: New file.
15878         * tests/unistr/test-u16-stpcpy.c: New file.
15879
15880         Tests for module 'unistr/u8-stpcpy'.
15881         * modules/unistr/u8-stpcpy-tests: New file.
15882         * tests/unistr/test-u8-stpcpy.c: New file.
15883         * tests/unistr/test-stpcpy.h: New file.
15884
15885         Tests for module 'unistr/u32-strcpy'.
15886         * modules/unistr/u32-strcpy-tests: New file.
15887         * tests/unistr/test-u32-strcpy.c: New file.
15888
15889         Tests for module 'unistr/u16-strcpy'.
15890         * modules/unistr/u16-strcpy-tests: New file.
15891         * tests/unistr/test-u16-strcpy.c: New file.
15892
15893         Tests for module 'unistr/u8-strcpy'.
15894         * modules/unistr/u8-strcpy-tests: New file.
15895         * tests/unistr/test-u8-strcpy.c: New file.
15896         * tests/unistr/test-strcpy.h: New file.
15897
15898         Tests for module 'unistr/u32-strnlen'.
15899         * modules/unistr/u32-strnlen-tests: New file.
15900         * tests/unistr/test-u32-strnlen.c: New file.
15901
15902         Tests for module 'unistr/u16-strnlen'.
15903         * modules/unistr/u16-strnlen-tests: New file.
15904         * tests/unistr/test-u16-strnlen.c: New file.
15905
15906         Tests for module 'unistr/u8-strnlen'.
15907         * modules/unistr/u8-strnlen-tests: New file.
15908         * tests/unistr/test-u8-strnlen.c: New file.
15909         * tests/unistr/test-strnlen.h: New file.
15910
15911         Tests for module 'unistr/u32-strlen'.
15912         * modules/unistr/u32-strlen-tests: New file.
15913         * tests/unistr/test-u32-strlen.c: New file.
15914
15915         Tests for module 'unistr/u16-strlen'.
15916         * modules/unistr/u16-strlen-tests: New file.
15917         * tests/unistr/test-u16-strlen.c: New file.
15918
15919         Tests for module 'unistr/u8-strlen'.
15920         * modules/unistr/u8-strlen-tests: New file.
15921         * tests/unistr/test-u8-strlen.c: New file.
15922
15923         Tests for module 'unistr/u32-prev'.
15924         * modules/unistr/u32-prev-tests: New file.
15925         * tests/unistr/test-u32-prev.c: New file.
15926
15927         Tests for module 'unistr/u16-prev'.
15928         * modules/unistr/u16-prev-tests: New file.
15929         * tests/unistr/test-u16-prev.c: New file.
15930
15931         Tests for module 'unistr/u8-prev'.
15932         * modules/unistr/u8-prev-tests: New file.
15933         * tests/unistr/test-u8-prev.c: New file.
15934
15935         Tests for module 'unistr/u32-next'.
15936         * modules/unistr/u32-next-tests: New file.
15937         * tests/unistr/test-u32-next.c: New file.
15938
15939         Tests for module 'unistr/u16-next'.
15940         * modules/unistr/u16-next-tests: New file.
15941         * tests/unistr/test-u16-next.c: New file.
15942
15943         Tests for module 'unistr/u8-next'.
15944         * modules/unistr/u8-next-tests: New file.
15945         * tests/unistr/test-u8-next.c: New file.
15946
15947         Tests for module 'unistr/u32-strmbtouc'.
15948         * modules/unistr/u32-strmbtouc-tests: New file.
15949         * tests/unistr/test-u32-strmbtouc.c: New file.
15950
15951         Tests for module 'unistr/u16-strmbtouc'.
15952         * modules/unistr/u16-strmbtouc-tests: New file.
15953         * tests/unistr/test-u16-strmbtouc.c: New file.
15954
15955         Tests for module 'unistr/u8-strmbtouc'.
15956         * modules/unistr/u8-strmbtouc-tests: New file.
15957         * tests/unistr/test-u8-strmbtouc.c: New file.
15958
15959         Tests for module 'unistr/u32-strmblen'.
15960         * modules/unistr/u32-strmblen-tests: New file.
15961         * tests/unistr/test-u32-strmblen.c: New file.
15962
15963         Tests for module 'unistr/u16-strmblen'.
15964         * modules/unistr/u16-strmblen-tests: New file.
15965         * tests/unistr/test-u16-strmblen.c: New file.
15966
15967         Tests for module 'unistr/u8-strmblen'.
15968         * modules/unistr/u8-strmblen-tests: New file.
15969         * tests/unistr/test-u8-strmblen.c: New file.
15970
15971         Tests for module 'unistr/u32-cpy-alloc'.
15972         * modules/unistr/u32-cpy-alloc-tests: New file.
15973         * tests/unistr/test-u32-cpy-alloc.c: New file.
15974
15975         Tests for module 'unistr/u16-cpy-alloc'.
15976         * modules/unistr/u16-cpy-alloc-tests: New file.
15977         * tests/unistr/test-u16-cpy-alloc.c: New file.
15978
15979         Tests for module 'unistr/u8-cpy-alloc'.
15980         * modules/unistr/u8-cpy-alloc-tests: New file.
15981         * tests/unistr/test-u8-cpy-alloc.c: New file.
15982         * tests/unistr/test-cpy-alloc.h: New file.
15983
15984         Tests for module 'unistr/u32-mbsnlen'.
15985         * modules/unistr/u32-mbsnlen-tests: New file.
15986         * tests/unistr/test-u32-mbsnlen.c: New file.
15987
15988         Tests for module 'unistr/u16-mbsnlen'.
15989         * modules/unistr/u16-mbsnlen-tests: New file.
15990         * tests/unistr/test-u16-mbsnlen.c: New file.
15991
15992         Tests for module 'unistr/u8-mbsnlen'.
15993         * modules/unistr/u8-mbsnlen-tests: New file.
15994         * tests/unistr/test-u8-mbsnlen.c: New file.
15995
15996         Tests for module 'unistr/u32-chr'.
15997         * modules/unistr/u32-chr-tests: New file.
15998         * tests/unistr/test-u32-chr.c: New file.
15999
16000         Tests for module 'unistr/u16-chr'.
16001         * modules/unistr/u16-chr-tests: New file.
16002         * tests/unistr/test-u16-chr.c: New file.
16003
16004         Tests for module 'unistr/u8-chr'.
16005         * modules/unistr/u8-chr-tests: New file.
16006         * tests/unistr/test-u8-chr.c: New file.
16007         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
16008
16009         Tests for module 'unistr/u32-cmp2'.
16010         * modules/unistr/u32-cmp2-tests: New file.
16011         * tests/unistr/test-u32-cmp2.c: New file.
16012
16013         Tests for module 'unistr/u16-cmp2'.
16014         * modules/unistr/u16-cmp2-tests: New file.
16015         * tests/unistr/test-u16-cmp2.c: New file.
16016
16017         Tests for module 'unistr/u8-cmp2'.
16018         * modules/unistr/u8-cmp2-tests: New file.
16019         * tests/unistr/test-u8-cmp2.c: New file.
16020         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
16021
16022         Tests for module 'unistr/u32-cmp'.
16023         * modules/unistr/u32-cmp-tests: New file.
16024         * tests/unistr/test-u32-cmp.c: New file.
16025
16026         Tests for module 'unistr/u16-cmp'.
16027         * modules/unistr/u16-cmp-tests: New file.
16028         * tests/unistr/test-u16-cmp.c: New file.
16029
16030         Tests for module 'unistr/u8-cmp'.
16031         * modules/unistr/u8-cmp-tests: New file.
16032         * tests/unistr/test-u8-cmp.c: New file.
16033         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
16034
16035         Tests for module 'unistr/u32-set'.
16036         * modules/unistr/u32-set-tests: New file.
16037         * tests/unistr/test-u32-set.c: New file.
16038
16039         Tests for module 'unistr/u16-set'.
16040         * modules/unistr/u16-set-tests: New file.
16041         * tests/unistr/test-u16-set.c: New file.
16042
16043         Tests for module 'unistr/u8-set'.
16044         * modules/unistr/u8-set-tests: New file.
16045         * tests/unistr/test-u8-set.c: New file.
16046         * tests/unistr/test-set.h: New file.
16047
16048         Tests for module 'unistr/u32-move'.
16049         * modules/unistr/u32-move-tests: New file.
16050         * tests/unistr/test-u32-move.c: New file.
16051
16052         Tests for module 'unistr/u16-move'.
16053         * modules/unistr/u16-move-tests: New file.
16054         * tests/unistr/test-u16-move.c: New file.
16055
16056         Tests for module 'unistr/u8-move'.
16057         * modules/unistr/u8-move-tests: New file.
16058         * tests/unistr/test-u8-move.c: New file.
16059         * tests/unistr/test-move.h: New file.
16060
16061         Tests for module 'unistr/u32-cpy'.
16062         * modules/unistr/u32-cpy-tests: New file.
16063         * tests/unistr/test-u32-cpy.c: New file.
16064
16065         Tests for module 'unistr/u16-cpy'.
16066         * modules/unistr/u16-cpy-tests: New file.
16067         * tests/unistr/test-u16-cpy.c: New file.
16068
16069         Tests for module 'unistr/u8-cpy'.
16070         * modules/unistr/u8-cpy-tests: New file.
16071         * tests/unistr/test-u8-cpy.c: New file.
16072         * tests/unistr/test-cpy.h: New file.
16073
16074 2010-01-09  Bruno Haible  <bruno@clisp.org>
16075
16076         Tests for module 'unistr/u32-uctomb'.
16077         * modules/unistr/u32-uctomb-tests: New file.
16078         * tests/unistr/test-u32-uctomb.c: New file.
16079
16080         Tests for module 'unistr/u16-uctomb'.
16081         * modules/unistr/u16-uctomb-tests: New file.
16082         * tests/unistr/test-u16-uctomb.c: New file.
16083
16084         Tests for module 'unistr/u8-uctomb'.
16085         * modules/unistr/u8-uctomb-tests: New file.
16086         * tests/unistr/test-u8-uctomb.c: New file.
16087
16088         Tests for module 'unistr/u32-mbtoucr'.
16089         * modules/unistr/u32-mbtoucr-tests: New file.
16090         * tests/unistr/test-u32-mbtoucr.c: New file.
16091
16092         Tests for module 'unistr/u16-mbtoucr'.
16093         * modules/unistr/u16-mbtoucr-tests: New file.
16094         * tests/unistr/test-u16-mbtoucr.c: New file.
16095
16096         Tests for module 'unistr/u8-mbtoucr'.
16097         * modules/unistr/u8-mbtoucr-tests: New file.
16098         * tests/unistr/test-u8-mbtoucr.c: New file.
16099
16100         Tests for module 'unistr/u32-mbtouc'.
16101         * modules/unistr/u32-mbtouc-tests: New file.
16102         * tests/unistr/test-u32-mbtouc.c: New file.
16103
16104         Tests for module 'unistr/u16-mbtouc'.
16105         * modules/unistr/u16-mbtouc-tests: New file.
16106         * tests/unistr/test-u16-mbtouc.c: New file.
16107
16108         Tests for module 'unistr/u8-mbtouc'.
16109         * modules/unistr/u8-mbtouc-tests: New file.
16110         * tests/unistr/test-u8-mbtouc.c: New file.
16111
16112         Tests for module 'unistr/u32-mbtouc-unsafe'.
16113         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
16114         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
16115         * tests/unistr/test-u32-mbtouc.h: New file.
16116
16117         Tests for module 'unistr/u16-mbtouc-unsafe'.
16118         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
16119         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
16120         * tests/unistr/test-u16-mbtouc.h: New file.
16121
16122         Tests for module 'unistr/u8-mbtouc-unsafe'.
16123         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
16124         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
16125         * tests/unistr/test-u8-mbtouc.h: New file.
16126
16127         Tests for module 'unistr/u32-mblen'.
16128         * modules/unistr/u32-mblen-tests: New file.
16129         * tests/unistr/test-u32-mblen.c: New file.
16130
16131         Tests for module 'unistr/u16-mblen'.
16132         * modules/unistr/u16-mblen-tests: New file.
16133         * tests/unistr/test-u16-mblen.c: New file.
16134
16135         Tests for module 'unistr/u8-mblen'.
16136         * modules/unistr/u8-mblen-tests: New file.
16137         * tests/unistr/test-u8-mblen.c: New file.
16138
16139         Tests for module 'unistr/u32-to-u16'.
16140         * modules/unistr/u32-to-u16-tests: New file.
16141         * tests/unistr/test-u32-to-u16.c: New file.
16142
16143         Tests for module 'unistr/u32-to-u8'.
16144         * modules/unistr/u32-to-u8-tests: New file.
16145         * tests/unistr/test-u32-to-u8.c: New file.
16146
16147         Tests for module 'unistr/u16-to-u32'.
16148         * modules/unistr/u16-to-u32-tests: New file.
16149         * tests/unistr/test-u16-to-u32.c: New file.
16150
16151         Tests for module 'unistr/u16-to-u8'.
16152         * modules/unistr/u16-to-u8-tests: New file.
16153         * tests/unistr/test-u16-to-u8.c: New file.
16154
16155         Tests for module 'unistr/u8-to-u32'.
16156         * modules/unistr/u8-to-u32-tests: New file.
16157         * tests/unistr/test-u8-to-u32.c: New file.
16158
16159         Tests for module 'unistr/u8-to-u16'.
16160         * modules/unistr/u8-to-u16-tests: New file.
16161         * tests/unistr/test-u8-to-u16.c: New file.
16162
16163         Tests for module 'unistr/u32-check'.
16164         * modules/unistr/u32-check-tests: New file.
16165         * tests/unistr/test-u32-check.c: New file.
16166
16167         Tests for module 'unistr/u16-check'.
16168         * modules/unistr/u16-check-tests: New file.
16169         * tests/unistr/test-u16-check.c: New file.
16170
16171         Tests for module 'unistr/u8-check'.
16172         * modules/unistr/u8-check-tests: New file.
16173         * tests/unistr/test-u8-check.c: New file.
16174
16175         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
16176         (category_equals): New function.
16177         (main): Add more tests.
16178         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
16179
16180         * tests/unictype/test-bidi_byname.c (main): Add more tests.
16181
16182 2010-01-10  Bruno Haible  <bruno@clisp.org>
16183
16184         unistr/u*-strcoll: Try harder to distinguish different strings.
16185         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
16186         compare s1 and s2 to see if they are different.
16187
16188 2010-01-10  Bruno Haible  <bruno@clisp.org>
16189
16190         unistr/u*-stpncpy: Fix the return value.
16191         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
16192         description of the return value consistent with stpncpy in glibc.
16193         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
16194         written non-NUL unit.
16195
16196 2010-01-10  Bruno Haible  <bruno@clisp.org>
16197
16198         unistr/u*-next: Add missing dependencies.
16199         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
16200         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
16201         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
16202
16203 2010-01-10  Bruno Haible  <bruno@clisp.org>
16204
16205         unistr/u8-mbsnlen: Fix return value for incomplete character.
16206         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
16207         u8_mblen.
16208         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
16209         Remove unistr/u8-mblen.
16210         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
16211         u16_mblen.
16212         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
16213         Remove unistr/u16-mblen.
16214
16215 2010-01-10  Bruno Haible  <bruno@clisp.org>
16216
16217         wchar: Fix compilation error when <wchar.h> is used from coreutils.
16218         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
16219         Reported by Brian Gough <bjg@gnu.org> and
16220         Chris Clayton <chris2553@googlemail.com> via
16221         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
16222
16223 2010-01-09  Bruno Haible  <bruno@clisp.org>
16224
16225         unistr/u16-to-u32: Reject invalid input.
16226         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
16227         u16_mbtouc.
16228         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
16229         Remove unistr/u16-mbtouc.
16230
16231         unistr/u16-to-u8: Reject invalid input.
16232         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
16233         u16_mbtouc.
16234         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
16235         Remove unistr/u16-mbtouc.
16236
16237         unistr/u8-to-u32: Reject invalid input.
16238         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
16239         u8_mbtouc.
16240         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
16241         Remove unistr/u8-mbtouc.
16242
16243         unistr/u8-to-u16: Reject invalid input.
16244         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
16245         u8_mbtouc.
16246         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
16247         Remove unistr/u8-mbtouc.
16248
16249 2010-01-09  Bruno Haible  <bruno@clisp.org>
16250
16251         Tests for module 'getlogin'.
16252         * modules/getlogin-tests: New file.
16253         * tests/test-getlogin.c: New file.
16254
16255         New module 'getlogin'.
16256         * lib/unistd.in.h (getlogin): New declaration.
16257         * lib/getlogin.c: New file.
16258         * m4/getlogin.m4: New file.
16259         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
16260         HAVE_GETLOGIN.
16261         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
16262         HAVE_GETLOGIN.
16263         * modules/getlogin: New file.
16264         * doc/posix-functions/getlogin.texi: Mention the new module.
16265         Reported by John W. Eaton <jwe@gnu.org>.
16266
16267 2010-01-09  Bruno Haible  <bruno@clisp.org>
16268
16269         getlogin_r: Support for native Windows.
16270         * lib/getlogin_r.c: Include <windows.h>
16271         (getlogin_r): Implement for native Windows.
16272         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
16273         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
16274         via John W. Eaton <jwe@gnu.org>.
16275
16276 2010-01-09  Bruno Haible  <bruno@clisp.org>
16277
16278         getlogin_r: Small fixes.
16279         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
16280         succeeds.
16281         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
16282         before testing whether getlogin_r is declared. No need to set
16283         HAVE_DECL_GETLOGIN_R to 1.
16284         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
16285
16286 2010-01-09  Bruno Haible  <bruno@clisp.org>
16287
16288         * lib/unistd.in.h (getlogin_r): Add comment.
16289
16290 2010-01-09  Bruno Haible  <bruno@clisp.org>
16291
16292         Tests for module 'getlogin_r'.
16293         * modules/getlogin_r-tests: New file.
16294         * tests/test-getlogin_r.c: New file.
16295
16296 2010-01-09  Jim Meyering  <meyering@redhat.com>
16297
16298         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
16299         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
16300         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
16301
16302 2010-01-08  Simon Josefsson  <simon@josefsson.org>
16303
16304         * lib/dup2.c (rpl_dup2): Improve comment.
16305
16306 2010-01-08  Eric Blake  <ebb9@byu.net>
16307
16308         maint.mk: allow packages to add makefile @@ exceptions
16309         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
16310         (sc_makefile_check): Rename...
16311         (sc_makefile_at_at_check): ...to this, and use hook.
16312
16313         dup2: work around mingw bug
16314         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
16315         Reported by Simon Josefsson.
16316
16317 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
16318
16319         glob: Fix C++ compilation.
16320         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
16321         C++.
16322
16323 2010-01-07  Bruno Haible  <bruno@clisp.org>
16324
16325         Fix indentation of wctype.in.h, broken since 2007-01-06.
16326         * lib/wctype.in.h: Fix indentation of preprocessor directives.
16327
16328 2010-01-07  Bruno Haible  <bruno@clisp.org>
16329
16330         mbslen: Avoid collision with system function.
16331         * lib/string.in.h [MirBSD]: Include <wchar.h>.
16332         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
16333         * m4/mbslen.m4: New file.
16334         * modules/mbslen (Files): Add it.
16335         (configure.ac): Invoke gl_MBSLEN.
16336         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
16337         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
16338         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
16339         via Ian Beckwith <ianb@erislabs.net>.
16340
16341 2010-01-07  Bruno Haible  <bruno@clisp.org>
16342
16343         dirent: Document the last fix.
16344         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
16345
16346 2010-01-07  Bruno Haible  <bruno@clisp.org>
16347
16348         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
16349         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
16350         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
16351         va_list are defined.
16352         * doc/posix-headers/stdio.texi: Document the bug of missing types.
16353         Reported by Eric Blake.
16354
16355 2010-01-07  Bruno Haible  <bruno@clisp.org>
16356
16357         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
16358         * modules/xlist (Depends-on): Add 'list',
16359         * modules/xoset (Depends-on): Add 'oset'.
16360         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16361
16362 2010-01-07  Bruno Haible  <bruno@clisp.org>
16363
16364         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
16365         * doc/posix-functions/strncasecmp.texi: Likewise.
16366
16367 2010-01-07  Bruno Haible  <bruno@clisp.org>
16368
16369         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
16370
16371 2010-01-07  John W. Eaton  <jwe@octave.org>
16372
16373         wctype: allow C++ use
16374         * lib/wctype.in.h: Add extern "C" block for C++.
16375
16376 2010-01-06  Eric Blake  <ebb9@byu.net>
16377
16378         maint.mk: detect incorrect GFDL usage
16379         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
16380
16381 2010-01-06  Jim Meyering  <meyering@redhat.com>
16382         and Eric Blake  <ebb9@byu.net>
16383
16384         maint.mk: ignore multi-line copyright in NEWS
16385         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
16386
16387 2010-01-06  Eric Blake  <ebb9@byu.net>
16388
16389         select: add missing dependency
16390         * modules/select-tests (Depends-on): Move sockets dependency...
16391         * modules/select (Depends-on): ...here.
16392         Reported by Ian Beckwith.
16393
16394         doc: regenerate INSTALL
16395         * doc/INSTALL: Reflect recent autoconf update.
16396         * doc/INSTALL.ISO: Likewise.
16397         * doc/INSTALL.UTF-8: Likewise.
16398
16399         pread: fix compilation on glibc
16400         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
16401         Reported by Ralf Wildenhues.
16402
16403         dirent: fix test failure
16404         * lib/dirent.in.h (includes): Guarantee ino_t.
16405         Reported by Ralf Wildenhues.
16406
16407 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
16408
16409         linkat, renameat: avoid bad free
16410         * lib/at-func2.c (at_func2): Fix typo.
16411         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
16412
16413 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16414
16415         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
16416         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
16417         to avoid failure of symlink test later.
16418
16419 2010-01-06  Eric Blake  <ebb9@byu.net>
16420
16421         stdio, unistd: guarantee ssize_t
16422         * lib/unistd.in.h (includes): Ensure that types required by POSIX
16423         2008 are exposed when needed.
16424         * lib/stdio.in.h (includes): Likewise.
16425         Reported by Ralf Wildenhues.
16426
16427 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
16428
16429         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
16430         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
16431         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
16432
16433 2010-01-06  Jim Meyering  <meyering@redhat.com>
16434
16435         readtokens: this module *does* require xalloc.h
16436         It uses only functions that were omitted by the old syntax-check rule.
16437         * lib/readtokens.c: Include "xalloc.h" once again.
16438         * modules/readtokens (Depends-on): Add xalloc.
16439         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
16440
16441 2010-01-05  Eric Blake  <ebb9@byu.net>
16442
16443         maint: support 'make announcement' from a VPATH build
16444         * top/maint.mk (announcement): Look for correct NEWS file.
16445
16446 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
16447
16448         utimens (fdutimens): ignore a negative FD, per contract
16449         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
16450         when we have a valid file descriptor.  Otherwise, using a brand
16451         new glibc (with just-patched futimens that now fails with EBADF)
16452         would cause this function to fail with ENOSYS.
16453         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
16454         See also http://bugzilla.redhat.com/552320.
16455
16456 2010-01-05  Eric Blake  <ebb9@byu.net>
16457
16458         strcase: document what it provides
16459         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
16460         gnulib module.
16461         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
16462         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
16463
16464 2010-01-05  Jim Meyering  <meyering@redhat.com>
16465
16466         maint: remove useless inclusions of "xalloc.h"
16467         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
16468         * lib/readtokens.c: Likewise.
16469         * lib/same.c: Likewise.
16470         * modules/getloadavg (Depends-on): Remove xalloc.
16471         * modules/readtokens: Likewise.
16472         * modules/same: Likewise.
16473
16474         maint.mk: include 4 more function names in alloca.h-checking regexp
16475         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
16476         regexp.  Before, we would give a false-positive (saying alloca.h
16477         is included unnecessarily) when the only uses involved omitted symbols.
16478
16479         xalloc.h: use consistent formatting
16480         * lib/xalloc.h: Move declarations to start in the first column.
16481
16482 2010-01-05  Eric Blake  <ebb9@byu.net>
16483
16484         mkdir: avoid xalloc
16485         * lib/mkdir.c (includes): Drop unused header.
16486         Reported by John W. Eaton.
16487
16488 2010-01-04  Jim Meyering  <meyering@redhat.com>
16489
16490         nl_langinfo: avoid configure-time syntax error
16491         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
16492         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
16493         the empty string.  Don't let that provoke a shell syntax error.
16494
16495         regcomp, regexec, fnmatch: avoid array bounds read error
16496         * lib/regcomp.c (build_equiv_class): From glibc:
16497         Use only the low 24 bits of a findidx return value as an index
16498         into the weights array.  Patch by Ulrich Drepper:
16499         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
16500         * lib/regexec.c (check_node_accept_bytes): Likewise.
16501         * lib/fnmatch_loop.c (FCT): Likewise.
16502
16503         regcomp: skip collseq lookup when there are no rules
16504         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
16505         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
16506
16507         regcomp: recognize ill-formed { } expressions
16508         * lib/regcomp.c (parse_dup_op): From glibc:
16509         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
16510
16511         regcomp: fix typo in comment
16512         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
16513         s/satisfy/satisfies/.
16514
16515         regcomp: sync from glibc: remove dead store
16516         * lib/regcomp.c (duplicate_node_closure): Remove useless
16517         search_duplicated_node call and dead store.
16518
16519         regcomp: sync from glibc; always use nl_langinfo
16520         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
16521         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
16522         * modules/regex (Depends-on): Add nl_langinfo.
16523
16524 2010-01-04  Eric Blake  <ebb9@byu.net>
16525
16526         fdopendir: fix configure test
16527         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
16528
16529 2010-01-01  Bruno Haible  <bruno@clisp.org>
16530
16531         wchar: Remove unused configure check.
16532         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
16533
16534 2010-01-01  Eric Blake  <ebb9@byu.net>
16535
16536         headers: make check of system header explicit
16537         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
16538         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
16539         ourselves.
16540         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
16541         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
16542         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
16543         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
16544         internals.
16545         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
16546         missing.
16547         Suggested by Bruno Haible.
16548
16549 2010-01-01  Jim Meyering  <meyering@redhat.com>
16550
16551         ChangeLog: tweak to eliminate unnecessary copyright line
16552         * ChangeLog: Remove a copyright line that was mistakenly updated
16553         by today's update-copyright run.  Reported by Eric Blake.
16554
16555         test-update-copyright: don't let envvar setting cause test failure
16556         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
16557
16558 2010-01-01  Bruno Haible  <bruno@clisp.org>
16559
16560         localename: Avoid gcc warning.
16561         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
16562         function if it is not used.
16563
16564 2010-01-01  Jim Meyering  <meyering@redhat.com>
16565
16566         update nearly all FSF copyright year lists to include 2010
16567         Use the same procedure as for 2009, outlined in
16568         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
16569
16570         version-etc: set COPYRIGHT_YEAR to 2010
16571         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
16572
16573 2009-12-31  Eric Blake  <ebb9@byu.net>
16574
16575         doc: correct availability of cygwin 1.5.x getopt
16576         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
16577         variables.
16578         * doc/posix-functions/opterr.texi (opterr): Likewise.
16579         * doc/posix-functions/optind.texi (optind): Likewise.
16580         * doc/posix-functions/optopt.texi (optopt): Likewise.
16581         * doc/posix-functions/tzname.texi (tzname): Likewise.
16582
16583         openat: update maintainer
16584         * modules/openat (Maintainer): Add myself.
16585
16586         utimens: avoid shadowing warning
16587         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
16588         buffers into one, to avoid shadowing, as well as avoiding a
16589         redundant stat.
16590         Reported by Jim Meyering.
16591
16592         test-dup2: avoid compiler warning
16593         * tests/test-dup2.c (is_inheritable): Only define if used.
16594
16595 2010-01-01  Bruno Haible  <bruno@clisp.org>
16596
16597         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
16598         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
16599         defined, use wctomb instead of wcrtomb.
16600
16601 2010-01-01  Bruno Haible  <bruno@clisp.org>
16602
16603         iconv: Reject native Solaris iconv.
16604         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
16605         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
16606
16607 2009-12-31  Bruno Haible  <bruno@clisp.org>
16608
16609         * tests/test-signal.c (main): Remove test of 'SIG'.
16610
16611 2009-12-31  Bruno Haible  <bruno@clisp.org>
16612
16613         spawn: Fix incomplete fix.
16614         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
16615         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
16616         warnings for GNULIB_POSIXCHECK again.
16617         Reported by Eric Blake.
16618
16619 2009-12-31  Bruno Haible  <bruno@clisp.org>
16620
16621         Avoid namespace pollution on glibc systems.
16622         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
16623         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
16624         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
16625         glibc systems.
16626
16627 2009-12-31  Bruno Haible  <bruno@clisp.org>
16628
16629         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
16630         (gl_REPLACE_WCHAR_H): Turn into a no-op.
16631         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
16632         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
16633         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
16634         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
16635         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
16636
16637 2009-12-31  Bruno Haible  <bruno@clisp.org>
16638
16639         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
16640         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
16641         afterwards.
16642
16643 2009-12-31  Bruno Haible  <bruno@clisp.org>
16644
16645         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
16646         SYS_UTSNAME_H.
16647
16648 2009-12-31  Bruno Haible  <bruno@clisp.org>
16649
16650         spawn: Fix misapplied patch.
16651         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
16652         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
16653         warnings for GNULIB_POSIXCHECK.
16654
16655 2009-12-31  Bruno Haible  <bruno@clisp.org>
16656
16657         times: Update after sys_times changed.
16658         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
16659         * modules/times (Files): Add it.
16660         (configure.ac): Invoke gl_FUNC_TIMES.
16661
16662 2009-12-31  Bruno Haible  <bruno@clisp.org>
16663
16664         Use AC_C_INLINE where necessary.
16665         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
16666         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
16667         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
16668         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
16669         * m4/mbfile.m4 (gl_MBFILE): Likewise.
16670         * m4/mbiter.m4 (gl_MBITER): Likewise.
16671         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
16672         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
16673         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
16674         * modules/u64 (configure.ac): Likewise.
16675
16676 2009-12-31  Bruno Haible  <bruno@clisp.org>
16677
16678         Use AC_C_INLINE instead of module 'inline' where possible.
16679         * modules/inline (Description): Clarify purpose.
16680         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
16681         * modules/count-one-bits (Depends-on): Remove inline.
16682         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
16683         * modules/openat (Depends-on): Remove inline.
16684         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
16685         instead of depending on module 'inline'.
16686         * modules/filevercmp (Depends-on, configure.ac): Likewise.
16687         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
16688         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
16689         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
16690         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
16691         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
16692         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
16693         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
16694         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
16695         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
16696         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
16697         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
16698         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
16699         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
16700         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
16701         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
16702         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
16703         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
16704         Likewise.
16705         * modules/unictype/property-ascii-hex-digit (Depends-on,
16706         configure.ac): Likewise.
16707         * modules/unictype/property-bidi-arabic-digit (Depends-on,
16708         configure.ac): Likewise.
16709         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
16710         configure.ac): Likewise.
16711         * modules/unictype/property-bidi-block-separator (Depends-on,
16712         configure.ac): Likewise.
16713         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
16714         configure.ac): Likewise.
16715         * modules/unictype/property-bidi-common-separator (Depends-on,
16716         configure.ac): Likewise.
16717         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
16718         Likewise.
16719         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
16720         configure.ac): Likewise.
16721         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
16722         configure.ac): Likewise.
16723         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
16724         configure.ac): Likewise.
16725         * modules/unictype/property-bidi-european-digit (Depends-on,
16726         configure.ac): Likewise.
16727         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
16728         configure.ac): Likewise.
16729         * modules/unictype/property-bidi-left-to-right (Depends-on,
16730         configure.ac): Likewise.
16731         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
16732         configure.ac): Likewise.
16733         * modules/unictype/property-bidi-other-neutral (Depends-on,
16734         configure.ac): Likewise.
16735         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
16736         Likewise.
16737         * modules/unictype/property-bidi-segment-separator (Depends-on,
16738         configure.ac): Likewise.
16739         * modules/unictype/property-bidi-whitespace (Depends-on,
16740         configure.ac): Likewise.
16741         * modules/unictype/property-combining (Depends-on, configure.ac):
16742         Likewise.
16743         * modules/unictype/property-composite (Depends-on, configure.ac):
16744         Likewise.
16745         * modules/unictype/property-currency-symbol (Depends-on,
16746         configure.ac): Likewise.
16747         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
16748         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
16749         Likewise.
16750         * modules/unictype/property-default-ignorable-code-point (Depends-on,
16751         configure.ac): Likewise.
16752         * modules/unictype/property-deprecated (Depends-on, configure.ac):
16753         Likewise.
16754         * modules/unictype/property-diacritic (Depends-on, configure.ac):
16755         Likewise.
16756         * modules/unictype/property-extender (Depends-on, configure.ac):
16757         Likewise.
16758         * modules/unictype/property-format-control (Depends-on, configure.ac):
16759         Likewise.
16760         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
16761         Likewise.
16762         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
16763         Likewise.
16764         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
16765         Likewise.
16766         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
16767         Likewise.
16768         * modules/unictype/property-hyphen (Depends-on, configure.ac):
16769         Likewise.
16770         * modules/unictype/property-id-continue (Depends-on, configure.ac):
16771         Likewise.
16772         * modules/unictype/property-id-start (Depends-on, configure.ac):
16773         Likewise.
16774         * modules/unictype/property-ideographic (Depends-on, configure.ac):
16775         Likewise.
16776         * modules/unictype/property-ids-binary-operator (Depends-on,
16777         configure.ac): Likewise.
16778         * modules/unictype/property-ids-trinary-operator (Depends-on,
16779         configure.ac): Likewise.
16780         * modules/unictype/property-ignorable-control (Depends-on,
16781         configure.ac): Likewise.
16782         * modules/unictype/property-iso-control (Depends-on, configure.ac):
16783         Likewise.
16784         * modules/unictype/property-join-control (Depends-on, configure.ac):
16785         Likewise.
16786         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
16787         Likewise.
16788         * modules/unictype/property-line-separator (Depends-on, configure.ac):
16789         Likewise.
16790         * modules/unictype/property-logical-order-exception (Depends-on,
16791         configure.ac): Likewise.
16792         * modules/unictype/property-lowercase (Depends-on, configure.ac):
16793         Likewise.
16794         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
16795         * modules/unictype/property-non-break (Depends-on, configure.ac):
16796         Likewise.
16797         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
16798         Likewise.
16799         * modules/unictype/property-numeric (Depends-on, configure.ac):
16800         Likewise.
16801         * modules/unictype/property-other-alphabetic (Depends-on,
16802         configure.ac): Likewise.
16803         * modules/unictype/property-other-default-ignorable-code-point
16804         (Depends-on, configure.ac): Likewise.
16805         * modules/unictype/property-other-grapheme-extend (Depends-on,
16806         configure.ac): Likewise.
16807         * modules/unictype/property-other-id-continue (Depends-on,
16808         configure.ac): Likewise.
16809         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
16810         Likewise.
16811         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
16812         Likewise.
16813         * modules/unictype/property-other-math (Depends-on, configure.ac):
16814         Likewise.
16815         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
16816         Likewise.
16817         * modules/unictype/property-paired-punctuation (Depends-on,
16818         configure.ac): Likewise.
16819         * modules/unictype/property-paragraph-separator (Depends-on,
16820         configure.ac): Likewise.
16821         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
16822         Likewise.
16823         * modules/unictype/property-pattern-white-space (Depends-on,
16824         configure.ac): Likewise.
16825         * modules/unictype/property-private-use (Depends-on, configure.ac):
16826         Likewise.
16827         * modules/unictype/property-punctuation (Depends-on, configure.ac):
16828         Likewise.
16829         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
16830         Likewise.
16831         * modules/unictype/property-radical (Depends-on, configure.ac):
16832         Likewise.
16833         * modules/unictype/property-sentence-terminal (Depends-on,
16834         configure.ac): Likewise.
16835         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
16836         Likewise.
16837         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
16838         * modules/unictype/property-terminal-punctuation (Depends-on,
16839         configure.ac): Likewise.
16840         * modules/unictype/property-titlecase (Depends-on, configure.ac):
16841         Likewise.
16842         * modules/unictype/property-unassigned-code-value (Depends-on,
16843         configure.ac): Likewise.
16844         * modules/unictype/property-unified-ideograph (Depends-on,
16845         configure.ac): Likewise.
16846         * modules/unictype/property-uppercase (Depends-on, configure.ac):
16847         Likewise.
16848         * modules/unictype/property-variation-selector (Depends-on,
16849         configure.ac): Likewise.
16850         * modules/unictype/property-white-space (Depends-on, configure.ac):
16851         Likewise.
16852         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
16853         Likewise.
16854         * modules/unictype/property-xid-start (Depends-on, configure.ac):
16855         Likewise.
16856         * modules/unictype/property-zero-width (Depends-on, configure.ac):
16857         Likewise.
16858         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
16859         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
16860         Likewise.
16861
16862 2009-12-31  Bruno Haible  <bruno@clisp.org>
16863
16864         Remove unnecessary AC_C_INLINE invocation.
16865         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
16866         since 2009-08-21.
16867
16868 2009-12-31  Jim Meyering  <meyering@redhat.com>
16869
16870         maint.mk: don't require explicit gpg_key_ID in cfg.mk
16871         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
16872         With this change, we can all remove the gpg_key_ID = ... definition
16873         from our respective cfg.mk files.
16874
16875         maint.mk: create announcement template in ~/, not in /tmp
16876         * top/maint.mk (emit_upload_commands): Adjust.
16877         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
16878         Remove temporary file, .ci-msg.
16879
16880 2009-12-31  Eric Blake  <ebb9@byu.net>
16881
16882         link-warning: always build headers with link warnings
16883         * modules/arpa_inet (Makefile.am): Always build replacement
16884         header.
16885         * modules/ctype (Makefile.am): Likewise.
16886         * modules/dirent (Makefile.am): Likewise.
16887         * modules/inttypes (Makefile.am): Likewise.
16888         * modules/langinfo (Makefile.am): Likewise.
16889         * modules/locale (Makefile.am): Likewise.
16890         * modules/spawn (Makefile.am): Likewise.
16891         * modules/sys_file (Makefile.am): Likewise.
16892         * modules/sys_ioctl (Makefile.am): Likewise.
16893         * modules/sys_select (Makefile.am): Likewise.
16894         * modules/sys_socket (Makefile.am): Likewise.
16895         * modules/sys_times (Makefile.am): Likewise.
16896         * modules/sys_utsname (Makefile.am): Likewise.
16897         * modules/sys_wait (Makefile.am): Likewise.
16898         * modules/wchar (Makefile.am): Likewise.
16899         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
16900         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
16901         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
16902         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
16903         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
16904         Likewise.
16905         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
16906         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
16907         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
16908         Likewise.
16909         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
16910         Likewise.
16911         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
16912         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
16913         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
16914         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
16915         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
16916         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
16917         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
16918         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
16919         (gl_WCHAR_H_DEFAULTS): Likewise.
16920
16921 2009-12-31  Eric Blake  <ebb9@byu.net>
16922
16923         signal, spawn: use link warnings
16924         * lib/signal.in.h (sigset_t): Make unconditional.
16925         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
16926         (sigpending, sigprocmask, sigaction): Add link warnings.
16927         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
16928         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
16929         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
16930         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
16931         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
16932         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
16933         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
16934         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
16935         (posix_spawn_file_actions_destroy)
16936         (posix_spawn_file_actions_addopen)
16937         (posix_spawn_file_actions_addclose)
16938         (posix_spawn_file_actions_adddup2): Likewise.
16939         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
16940         * tests/test-signal.c (main): Enhance test.
16941
16942         spawn: improve wrapper support
16943         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
16944         (gl_SPAWN_H_DEFAULTS): New defaults.
16945         * modules/spawn (Makefile.am): Substitute them.
16946         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
16947         Only declare if missing or broken.
16948
16949         sys_times, sys_utsname: use include_next
16950         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
16951         header.
16952         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
16953         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
16954         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
16955         * modules/sys_times (Depends-on): Add include_next.
16956         (Makefile.am): Substitute additional values.
16957         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
16958         * lib/sys_times.in.h (includes): Include native header, if
16959         available.
16960         * lib/sys_utsname.in.h (includes): Likewise.
16961         * tests/test-sys_times.c (main): Enhance test.
16962
16963         fdutimensat: revert prior patch
16964         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
16965         utimens.h.
16966         Reported by Bruno Haible.
16967
16968 2009-12-30  Eric Blake  <ebb9@byu.net>
16969
16970         sys_wait: drop link-warning dependency
16971         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
16972         link-warning efforts.
16973         * lib/sys_wait.in.h: Likewise.
16974
16975         fdutimensat: remove bogus dependency
16976         * modules/fdutimensat (Depends-on): Drop inline.
16977
16978         unistd: fix typo
16979         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
16980
16981 2009-12-30  Bruno Haible  <bruno@clisp.org>
16982
16983         Fix compilation error with Solaris cc.
16984         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
16985         * lib/unicase/u16-is-invariant.c: Likewise.
16986         * lib/unicase/u32-is-invariant.c: Likewise.
16987         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
16988
16989 2009-12-30  Bruno Haible  <bruno@clisp.org>
16990
16991         Fix test crash.
16992         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
16993         locales.
16994         Reported by Simon Josefsson <simon@josefsson.org>.
16995
16996 2009-12-30  Bruno Haible  <bruno@clisp.org>
16997
16998         Fix compilation error on most platforms.
16999         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
17000         Reported by Simon Josefsson <simon@josefsson.org>
17001         and Nelson H. F. Beebe <beebe@math.utah.edu>.
17002
17003 2009-12-30  Eric Blake  <ebb9@byu.net>
17004
17005         futimens, utimensat: work around ntfs-3g bug
17006         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
17007         a ctime bug is present, and expand workaround to cover ntfs-3g.
17008         * lib/utimens.c (fdutimens, lutimens): Likewise.
17009         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
17010         (validate_timespec): Adjust return value.
17011         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
17012         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
17013         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
17014
17015 2009-12-29  Eric Blake  <ebb9@byu.net>
17016
17017         link-warning: make usage consistent
17018         * modules/ctype (Depends-on): Add link-warning.
17019         (Makefile.am): Update rules accordingly.
17020         * modules/langinfo (Depends-on, Makefile.am): Likewise.
17021         * modules/locale (Depends-on, Makefile.am): Likewise.
17022         * modules/sys_file (Makefile.am): Likewise.
17023         * modules/getopt-posix (Makefile.am): Delete unused link warning
17024         efforts.
17025         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
17026         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
17027         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
17028         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
17029
17030         stdio: remove unused variables
17031         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
17032         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
17033         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
17034
17035         tests: test more substitute headers
17036         * modules/ctype-tests: New file.
17037         * modules/dirent-tests: Likewise.
17038         * modules/spawn-tests: Likewise.
17039         * modules/sys_file-tests: Likewise.
17040         * modules/sys_ioctl-tests: Likewise.
17041         * modules/sys_wait-tests: Likewise.
17042         * tests/test-ctype.c: Likewise.
17043         * tests/test-dirent.c: Likewise.
17044         * tests/test-spawn.c: Likewise.
17045         * tests/test-sys_file.c: Likewise.
17046         * tests/test-sys_ioctl.c: Likewise.
17047         * tests/test-sys_wait.c: Likewise.
17048         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
17049         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
17050         whether or not flock is in use.
17051
17052         tests: remove License section from module
17053         * modules/arpa_inet-tests: Remove unneeded section.
17054         * modules/byteswap-tests: Likewise.
17055         * modules/ceilf-tests: Likewise.
17056         * modules/ceill-tests: Likewise.
17057         * modules/crypto/des-tests: Likewise.
17058         * modules/crypto/gc-arcfour-tests: Likewise.
17059         * modules/crypto/gc-arctwo-tests: Likewise.
17060         * modules/crypto/gc-des-tests: Likewise.
17061         * modules/crypto/gc-hmac-md5-tests: Likewise.
17062         * modules/crypto/gc-hmac-sha1-tests: Likewise.
17063         * modules/crypto/gc-md2-tests: Likewise.
17064         * modules/crypto/gc-md4-tests: Likewise.
17065         * modules/crypto/gc-md5-tests: Likewise.
17066         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
17067         * modules/crypto/gc-rijndael-tests: Likewise.
17068         * modules/crypto/gc-sha1-tests: Likewise.
17069         * modules/crypto/gc-tests: Likewise.
17070         * modules/crypto/md2-tests: Likewise.
17071         * modules/crypto/md4-tests: Likewise.
17072         * modules/fcntl-h-tests: Likewise.
17073         * modules/floorf-tests: Likewise.
17074         * modules/floorl-tests: Likewise.
17075         * modules/frexp-nolibm-tests: Likewise.
17076         * modules/frexp-tests: Likewise.
17077         * modules/frexpl-nolibm-tests: Likewise.
17078         * modules/frexpl-tests: Likewise.
17079         * modules/getaddrinfo-tests: Likewise.
17080         * modules/inttypes-tests: Likewise.
17081         * modules/isfinite-tests: Likewise.
17082         * modules/isinf-tests: Likewise.
17083         * modules/ldexpl-tests: Likewise.
17084         * modules/locale-tests: Likewise.
17085         * modules/math-tests: Likewise.
17086         * modules/netdb-tests: Likewise.
17087         * modules/netinet_in-tests: Likewise.
17088         * modules/printf-frexp-tests: Likewise.
17089         * modules/printf-frexpl-tests: Likewise.
17090         * modules/priv-set-tests: Likewise.
17091         * modules/random_r-tests: Likewise.
17092         * modules/round-tests: Likewise.
17093         * modules/roundf-tests: Likewise.
17094         * modules/roundl-tests: Likewise.
17095         * modules/search-tests: Likewise.
17096         * modules/select-tests: Likewise.
17097         * modules/signal-tests: Likewise.
17098         * modules/stdbool-tests: Likewise.
17099         * modules/stddef-tests: Likewise.
17100         * modules/stdint-tests: Likewise.
17101         * modules/stdio-tests: Likewise.
17102         * modules/stdlib-tests: Likewise.
17103         * modules/string-tests: Likewise.
17104         * modules/strings-tests: Likewise.
17105         * modules/sys_select-tests: Likewise.
17106         * modules/sys_socket-tests: Likewise.
17107         * modules/sys_stat-tests: Likewise.
17108         * modules/sys_time-tests: Likewise.
17109         * modules/sys_utsname-tests: Likewise.
17110         * modules/sysexits-tests: Likewise.
17111         * modules/time-tests: Likewise.
17112         * modules/trunc-tests: Likewise.
17113         * modules/truncf-tests: Likewise.
17114         * modules/truncl-tests: Likewise.
17115         * modules/tsearch-tests: Likewise.
17116         * modules/unistd-tests: Likewise.
17117         * modules/wchar-tests: Likewise.
17118         * modules/wctype-tests: Likewise.
17119
17120         tests: fix license on several tests
17121         * tests/test-des.c: Update to GPLv3+.
17122         * tests/test-flock.c: Likewise.
17123         * tests/test-fsync.c: Likewise.
17124         * tests/test-futimens.h: Likewise.
17125         * tests/test-gc-arcfour.c: Likewise.
17126         * tests/test-gc-arctwo.c: Likewise.
17127         * tests/test-gc-des.c: Likewise.
17128         * tests/test-gc-hmac-md5.c: Likewise.
17129         * tests/test-gc-hmac-sha1.c: Likewise.
17130         * tests/test-gc-md2.c: Likewise.
17131         * tests/test-gc-md4.c: Likewise.
17132         * tests/test-gc-md5.c: Likewise.
17133         * tests/test-gc-pbkdf2-sha1.c: Likewise.
17134         * tests/test-gc-rijndael.c: Likewise.
17135         * tests/test-gc-sha1.c: Likewise.
17136         * tests/test-gc.c: Likewise.
17137         * tests/test-getcwd.c: Likewise.
17138         * tests/test-link.c: Likewise.
17139         * tests/test-link.h: Likewise.
17140         * tests/test-lutimens.h: Likewise.
17141         * tests/test-md2.c: Likewise.
17142         * tests/test-md4.c: Likewise.
17143         * tests/test-mkdir.h: Likewise.
17144         * tests/test-rename.c: Likewise.
17145         * tests/test-rename.h: Likewise.
17146         * tests/test-safe-alloc.c: Likewise.
17147         * tests/test-utimens-common.h: Likewise.
17148         * tests/test-utimens.h: Likewise.
17149
17150         maint: sync license texts
17151         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
17152         * doc/gpl-3.0.texi: Revert copyright year update.
17153         * doc/lgpl-3.0.texi: Likewise.
17154
17155 2009-12-29  Jim Meyering  <meyering@redhat.com>
17156
17157         update nearly all FSF copyright year lists to include 2009
17158         The files named by the following are exempted:
17159             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
17160               test -f "$dst" && { echo "$dst"; continue; }
17161               test -d "$dst" || continue
17162               echo "$dst"/$(basename "$src")
17163             done > exempt
17164             git ls-files tests/unictype >> exempt
17165         In the remaining files, convert to all-interval notation if
17166         - there is already at least one year interval like 2000-2003
17167         - the file is maintained by me
17168         - the file is in lib/uni*/, where that style already prevails
17169         Otherwise, use update-copyright's default.
17170
17171 2009-12-29  Simon Josefsson  <simon@josefsson.org>
17172         and Eric Blake  <ebb9@byu.net>
17173
17174         tests: don't require debug system() to pass
17175         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
17176         * tests/test-rmdir.h (test_rmdir_func): Likewise.
17177         * tests/test-unlink.h (test_unlink_func): Likewise.
17178         * tests/test-fstatat.c (main): ...into callers.
17179         * tests/test-lstat.c (main): Likewise.
17180         * tests/test-rmdir.c (main): Likewise.
17181         * tests/test-unlink.c (main): Likewise.
17182         * tests/test-unlinkat.c (main): Likewise.
17183         * tests/test-areadlink-with-size.c (main): Don't require a
17184         debug-only system call to pass, aiding cross-testing to mingw.
17185         * tests/test-areadlink.c (main): Likewise.
17186         * tests/test-areadlinkat-with-size.c (main): Likewise.
17187         * tests/test-areadlinkat.c (main): Likewise.
17188         * tests/test-canonicalize-lgpl.c (main): Likewise.
17189         * tests/test-canonicalize.c (main): Likewise.
17190         * tests/test-chown.c (main): Likewise.
17191         * tests/test-fchownat.c (main): Likewise.
17192         * tests/test-lchown.c (main): Likewise.
17193         * tests/test-fdutimensat.c (main): Likewise.
17194         * tests/test-futimens.c (main): Likewise.
17195         * tests/test-link.c (main): Likewise.
17196         * tests/test-linkat.c (main): Likewise.
17197         * tests/test-mkdir.c (main): Likewise.
17198         * tests/test-mkdirat.c (main): Likewise.
17199         * tests/test-mkfifo.c (main): Likewise.
17200         * tests/test-mkfifoat.c (main): Likewise.
17201         * tests/test-mknod.c (main): Likewise.
17202         * tests/test-readlink.c (main): Likewise.
17203         * tests/test-remove.c (main): Likewise.
17204         * tests/test-rename.c (main): Likewise.
17205         * tests/test-renameat.c (main): Likewise.
17206         * tests/test-symlink.c (main): Likewise.
17207         * tests/test-symlinkat.c (main): Likewise.
17208         * tests/test-utimens.c (main): Likewise.
17209         * tests/test-utimensat.c (main): Likewise.
17210
17211 2009-12-29  Simon Josefsson  <simon@josefsson.org>
17212
17213         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
17214         on $(UNUSED_PARAMETER_H) to avoid build failure.
17215
17216 2009-12-28  Jim Meyering  <meyering@redhat.com>
17217
17218         update-copyright: you may specify a max. line length other than 72
17219         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
17220
17221         maint: use consistent FSF copyright line syntax
17222         * lib/posixtm.c: Add missing comma in FSF copyright line.
17223         * lib/posixtm.h: Likewise.
17224         * lib/getugroups.c: Add missing ", Inc.".
17225
17226         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
17227         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
17228         FSF copyright line.  Remove trailing blanks.
17229
17230 2009-12-28  Eric Blake  <ebb9@byu.net>
17231
17232         test-dup2: reduce dependencies
17233         * modules/cloexec (Configure.ac): Set witness.
17234         * modules/dup2-tests (Depends-on): Drop cloexec.
17235         * tests/test-dup2.c (main): Skip portion of test if cloexec module
17236         not present.
17237         Suggested by Bruno Haible.
17238
17239 2009-12-26  Bruno Haible  <bruno@clisp.org>
17240
17241         Remove an unneeded dependency.
17242         * modules/fseterr (Depends-on): Remove dup2.
17243
17244 2009-12-26  Eric Blake  <ebb9@byu.net>
17245
17246         tests: use macros.h in more places
17247         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
17248         (ASSERT_STREAM): Provide default of stderr.
17249         * tests/test-dirent-safer.c: Include macros.h, using alternate
17250         stream for assertions.
17251         * tests/test-dup-safer.c: Likewise.
17252         * tests/test-freopen-safer.c: Likewise.
17253         * tests/test-getopt.c: Likewise.
17254         * tests/test-openat-safer.c: Likewise.
17255         * tests/test-pipe.c: Likewise.
17256         * tests/test-popen-safer.c: Likewise.
17257         * modules/dirent-safer-tests (Files): Include macros.h.
17258         * modules/unistd-safer-tests (Files): Likewise.
17259         * modules/freopen-safer-tests (Files): Likewise.
17260         * modules/getopt-posix-tests (Files): Likewise.
17261         * modules/openat-safer-tests (Files): Likewise.
17262         * modules/pipe-tests (Files): Likewise.
17263
17264 2009-12-26  Bruno Haible  <bruno@clisp.org>
17265
17266         javacomp: Portability fix.
17267         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
17268         that it also works on Solaris.
17269
17270 2009-12-26  Bruno Haible  <bruno@clisp.org>
17271
17272         localename: Fix storage allocation of gl_locale_name_thread's result.
17273         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
17274         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
17275         all platforms that have 'uselocale'.
17276         (gl_locale_name_thread_unsafe): New function, extracted from
17277         gl_locale_name_thread.
17278         (gl_locale_name_thread): Call struniq on all platforms that have
17279         'uselocale'.
17280         * tests/test-localename.c (test_locale_name_thread): Check that the
17281         resulting strings are permanently allocated.
17282         * modules/localename-tests (Depends-on): Add strdup.
17283
17284 2009-12-26  Bruno Haible  <bruno@clisp.org>
17285
17286         * tests/test-localename.c (categories): Fill in the strings.
17287
17288 2009-12-26  Jim Meyering  <meyering@redhat.com>
17289
17290         isdir: complete the removal of m4/isdir.m4
17291         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
17292
17293         isdir: clean up, since at least grep still uses it
17294         * lib/isdir.c: Include "isdir.h".
17295         (S_ISDIR): Remove now-unneeded definition.
17296         * modules/isdir (Files): Add lib/isdir.h.
17297         * lib/isdir.h: New file, with declaration.
17298         * m4/isdir.m4: Remove file -- unneeded.
17299
17300 2009-12-25  Bruno Haible  <bruno@clisp.org>
17301
17302         selinux-h: Make generated .h files standalone.
17303         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
17304         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
17305         * lib/se-selinux.in.h: Likewise.
17306         * modules/selinux-h (Depends-on): Add unused-parameter.
17307         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
17308         selinux/selinux.h and selinux/context.h.
17309         Suggested by Eric Blake.
17310
17311 2009-12-25  Bruno Haible  <bruno@clisp.org>
17312
17313         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
17314         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
17315         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
17316         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
17317         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
17318
17319 2009-12-24  Bruno Haible  <bruno@clisp.org>
17320
17321         openat: Fix warning.
17322         * lib/openat-proc.c: Include <unistd.h>.
17323
17324 2009-12-24  Bruno Haible  <bruno@clisp.org>
17325
17326         New module 'unused-parameter'.
17327         * build-aux/unused-parameter.h: New file, extracted from earlier
17328         gnulib-common.m4.
17329         * modules/unused-parameter: New file.
17330         * lib/unistr.h: Include unused-parameter.h.
17331         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
17332         _GL_UNUSED.
17333         * modules/unistr/base (Depends-on): Add unused-parameter.
17334
17335 2009-12-24  Bruno Haible  <bruno@clisp.org>
17336
17337         Add missing dependencies to 'extensions' module.
17338         * m4/extensions.m4: Add comment.
17339         * modules/accept4 (Depends-on): Add extensions.
17340         * modules/dup3 (Depends-on): Likewise.
17341         * modules/fcntl (Depends-on): Likewise.
17342         * modules/futimens (Depends-on): Likewise.
17343         * modules/mknod (Depends-on): Likewise.
17344         * modules/pipe2 (Depends-on): Likewise.
17345         * modules/stat-time (Depends-on): Likewise.
17346         * modules/strcasestr-simple (Depends-on): Likewise.
17347         * modules/strsignal (Depends-on): Likewise.
17348         * modules/utimensat (Depends-on): Likewise.
17349         * modules/localcharset (Depends-on): Likewise. Needed because of
17350         gl_FCNTL_O_FLAGS.
17351         * modules/wcrtomb (Depends-on): Likewise. Needed because of
17352         AC_TYPE_MBSTATE_T.
17353         * modules/wcsnrtombs (Depends-on): Likewise.
17354         * modules/wcsrtombs (Depends-on): Likewise.
17355
17356 2009-12-24  Bruno Haible  <bruno@clisp.org>
17357
17358         binary-io: Avoid gcc warning due to SET_BINARY.
17359         * lib/binary-io.h (SET_BINARY): Cast the result to void.
17360         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
17361
17362 2009-12-24  Bruno Haible  <bruno@clisp.org>
17363
17364         Avoid future namespace pollution on glibc systems.
17365         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
17366         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
17367         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
17368         glibc systems.
17369
17370 2009-12-24  Bruno Haible  <bruno@clisp.org>
17371
17372         Refactor common macros used in tests.
17373         * tests/macros.h: New file.
17374         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
17375         and/or <stdlib.h>, if appropriate.
17376         (ASSERT, SIZEOF): Remove macros.
17377         * tests/test-areadlink-with-size.c: Likewise.
17378         * tests/test-areadlinkat.c: Likewise.
17379         * tests/test-areadlinkat-with-size.c: Likewise.
17380         * tests/test-argmatch.c: Likewise.
17381         * tests/test-argv-iter.c: Likewise.
17382         * tests/test-array-mergesort.c: Likewise.
17383         * tests/test-array_list.c: Likewise.
17384         * tests/test-array_oset.c: Likewise.
17385         * tests/test-avltree_list.c: Likewise.
17386         * tests/test-avltree_oset.c: Likewise.
17387         * tests/test-avltreehash_list.c: Likewise.
17388         * tests/test-base64.c: Likewise.
17389         * tests/test-binary-io.c: Likewise.
17390         * tests/test-bitrotate.c: Likewise.
17391         * tests/test-btowc.c: Likewise.
17392         * tests/test-byteswap.c: Likewise.
17393         * tests/test-c-ctype.c: Likewise.
17394         * tests/test-c-stack.c: Likewise.
17395         * tests/test-c-strcasecmp.c: Likewise.
17396         * tests/test-c-strcasestr.c: Likewise.
17397         * tests/test-c-strncasecmp.c: Likewise.
17398         * tests/test-c-strstr.c: Likewise.
17399         * tests/test-canonicalize-lgpl.c: Likewise.
17400         * tests/test-canonicalize.c: Likewise.
17401         * tests/test-carray_list.c: Likewise.
17402         * tests/test-ceilf1.c: Likewise.
17403         * tests/test-ceilf2.c: Likewise.
17404         * tests/test-ceill.c: Likewise.
17405         * tests/test-chown.c: Likewise.
17406         * tests/test-cloexec.c: Likewise.
17407         * tests/test-copy-acl.c: Likewise.
17408         * tests/test-copy-file.c: Likewise.
17409         * tests/test-count-one-bits.c: Likewise.
17410         * tests/test-dprintf-posix.c: Likewise.
17411         * tests/test-dup2.c: Likewise.
17412         * tests/test-dup3.c: Likewise.
17413         * tests/test-duplocale.c: Likewise.
17414         * tests/test-fbufmode.c: Likewise.
17415         * tests/test-fchdir.c: Likewise.
17416         * tests/test-fchownat.c: Likewise.
17417         * tests/test-fcntl-safer.c: Likewise.
17418         * tests/test-fcntl.c: Likewise.
17419         * tests/test-fdopendir.c: Likewise.
17420         * tests/test-fdutimensat.c: Likewise.
17421         * tests/test-fflush2.c: Likewise.
17422         * tests/test-file-has-acl.c: Likewise.
17423         * tests/test-filevercmp.c: Likewise.
17424         * tests/test-flock.c: Likewise.
17425         * tests/test-floorf1.c: Likewise.
17426         * tests/test-floorf2.c: Likewise.
17427         * tests/test-floorl.c: Likewise.
17428         * tests/test-fnmatch.c: Likewise.
17429         * tests/test-fopen.h: Likewise.
17430         * tests/test-fpending.c: Likewise.
17431         * tests/test-fprintf-posix.c: Likewise.
17432         * tests/test-fpurge.c: Likewise.
17433         * tests/test-freadable.c: Likewise.
17434         * tests/test-freadahead.c: Likewise.
17435         * tests/test-freading.c: Likewise.
17436         * tests/test-freadptr.c: Likewise.
17437         * tests/test-freadptr2.c: Likewise.
17438         * tests/test-freadseek.c: Likewise.
17439         * tests/test-freopen.c: Likewise.
17440         * tests/test-frexp.c: Likewise.
17441         * tests/test-frexpl.c: Likewise.
17442         * tests/test-fseek.c: Likewise.
17443         * tests/test-fseeko.c: Likewise.
17444         * tests/test-fstatat.c: Likewise.
17445         * tests/test-fstrcmp.c: Likewise.
17446         * tests/test-fsync.c: Likewise.
17447         * tests/test-ftell.c: Likewise.
17448         * tests/test-ftello.c: Likewise.
17449         * tests/test-func.c: Likewise.
17450         * tests/test-futimens.c: Likewise.
17451         * tests/test-fwritable.c: Likewise.
17452         * tests/test-fwriting.c: Likewise.
17453         * tests/test-getcwd.c: Likewise.
17454         * tests/test-getdate.c: Likewise.
17455         * tests/test-getdelim.c: Likewise.
17456         * tests/test-getdtablesize.c: Likewise.
17457         * tests/test-getgroups.c: Likewise.
17458         * tests/test-getline.c: Likewise.
17459         * tests/test-getndelim2.c: Likewise.
17460         * tests/test-glob.c: Likewise.
17461         * tests/test-hash.c: Likewise.
17462         * tests/test-i-ring.c: Likewise.
17463         * tests/test-iconv-utf.c: Likewise.
17464         * tests/test-iconv.c: Likewise.
17465         * tests/test-idpriv-drop.c: Likewise.
17466         * tests/test-idpriv-droptemp.c: Likewise.
17467         * tests/test-inet_ntop.c: Likewise.
17468         * tests/test-inet_pton.c: Likewise.
17469         * tests/test-isblank.c: Likewise.
17470         * tests/test-isfinite.c: Likewise.
17471         * tests/test-isinf.c: Likewise.
17472         * tests/test-isnan.c: Likewise.
17473         * tests/test-isnand.h: Likewise.
17474         * tests/test-isnanf.h: Likewise.
17475         * tests/test-isnanl.h: Likewise.
17476         * tests/test-lchown.c: Likewise.
17477         * tests/test-ldexpl.c: Likewise.
17478         * tests/test-link.c: Likewise.
17479         * tests/test-linkat.c: Likewise.
17480         * tests/test-linked_list.c: Likewise.
17481         * tests/test-linkedhash_list.c: Likewise.
17482         * tests/test-localename.c: Likewise.
17483         * tests/test-lseek.c: Likewise.
17484         * tests/test-lstat.c: Likewise.
17485         * tests/test-mbmemcasecmp.c: Likewise.
17486         * tests/test-mbmemcasecoll.c: Likewise.
17487         * tests/test-mbrtowc.c: Likewise.
17488         * tests/test-mbscasecmp.c: Likewise.
17489         * tests/test-mbscasestr1.c: Likewise.
17490         * tests/test-mbscasestr2.c: Likewise.
17491         * tests/test-mbscasestr3.c: Likewise.
17492         * tests/test-mbscasestr4.c: Likewise.
17493         * tests/test-mbschr.c: Likewise.
17494         * tests/test-mbscspn.c: Likewise.
17495         * tests/test-mbsinit.c: Likewise.
17496         * tests/test-mbsncasecmp.c: Likewise.
17497         * tests/test-mbsnrtowcs.c: Likewise.
17498         * tests/test-mbspbrk.c: Likewise.
17499         * tests/test-mbspcasecmp.c: Likewise.
17500         * tests/test-mbsrchr.c: Likewise.
17501         * tests/test-mbsrtowcs.c: Likewise.
17502         * tests/test-mbsspn.c: Likewise.
17503         * tests/test-mbsstr1.c: Likewise.
17504         * tests/test-mbsstr2.c: Likewise.
17505         * tests/test-mbsstr3.c: Likewise.
17506         * tests/test-memchr.c: Likewise.
17507         * tests/test-memchr2.c: Likewise.
17508         * tests/test-memcmp.c: Likewise.
17509         * tests/test-memmem.c: Likewise.
17510         * tests/test-memrchr.c: Likewise.
17511         * tests/test-mkdir.c: Likewise.
17512         * tests/test-mkdirat.c: Likewise.
17513         * tests/test-mkfifo.c: Likewise.
17514         * tests/test-mkfifoat.c: Likewise.
17515         * tests/test-mknod.c: Likewise.
17516         * tests/test-nanosleep.c: Likewise.
17517         * tests/test-nl_langinfo.c: Likewise.
17518         * tests/test-obstack-printf.c: Likewise.
17519         * tests/test-open.c: Likewise.
17520         * tests/test-openat.c: Likewise.
17521         * tests/test-pipe-filter-gi1.c: Likewise.
17522         * tests/test-pipe-filter-gi2-main.c: Likewise.
17523         * tests/test-pipe-filter-ii1.c: Likewise.
17524         * tests/test-pipe-filter-ii2-main.c: Likewise.
17525         * tests/test-pipe2.c: Likewise.
17526         * tests/test-popen.h: Likewise.
17527         * tests/test-posixtm.c: Likewise.
17528         * tests/test-pread.c: Likewise.
17529         * tests/test-printf-frexp.c: Likewise.
17530         * tests/test-printf-frexpl.c: Likewise.
17531         * tests/test-printf-posix.c: Likewise.
17532         * tests/test-priv-set.c: Likewise.
17533         * tests/test-quotearg.c: Likewise.
17534         * tests/test-random_r.c: Likewise.
17535         * tests/test-rawmemchr.c: Likewise.
17536         * tests/test-rbtree_list.c: Likewise.
17537         * tests/test-rbtree_oset.c: Likewise.
17538         * tests/test-rbtreehash_list.c: Likewise.
17539         * tests/test-readlink.c: Likewise.
17540         * tests/test-remove.c: Likewise.
17541         * tests/test-rename.c: Likewise.
17542         * tests/test-renameat.c: Likewise.
17543         * tests/test-rmdir.c: Likewise.
17544         * tests/test-round1.c: Likewise.
17545         * tests/test-roundf1.c: Likewise.
17546         * tests/test-roundl.c: Likewise.
17547         * tests/test-safe-alloc.c: Likewise.
17548         * tests/test-sameacls.c: Likewise.
17549         * tests/test-set-mode-acl.c: Likewise.
17550         * tests/test-setenv.c: Likewise.
17551         * tests/test-sigaction.c: Likewise.
17552         * tests/test-signbit.c: Likewise.
17553         * tests/test-sleep.c: Likewise.
17554         * tests/test-snprintf-posix.c: Likewise.
17555         * tests/test-snprintf.c: Likewise.
17556         * tests/test-sprintf-posix.c: Likewise.
17557         * tests/test-stat-time.c: Likewise.
17558         * tests/test-stat.c: Likewise.
17559         * tests/test-strcasestr.c: Likewise.
17560         * tests/test-strchrnul.c: Likewise.
17561         * tests/test-strerror.c: Likewise.
17562         * tests/test-striconv.c: Likewise.
17563         * tests/test-striconveh.c: Likewise.
17564         * tests/test-striconveha.c: Likewise.
17565         * tests/test-strsignal.c: Likewise.
17566         * tests/test-strstr.c: Likewise.
17567         * tests/test-strtod.c: Likewise.
17568         * tests/test-strverscmp.c: Likewise.
17569         * tests/test-symlink.c: Likewise.
17570         * tests/test-symlinkat.c: Likewise.
17571         * tests/test-trunc1.c: Likewise.
17572         * tests/test-trunc2.c: Likewise.
17573         * tests/test-truncf1.c: Likewise.
17574         * tests/test-truncf2.c: Likewise.
17575         * tests/test-truncl.c: Likewise.
17576         * tests/test-uname.c: Likewise.
17577         * tests/test-unlink.c: Likewise.
17578         * tests/test-unlinkat.c: Likewise.
17579         * tests/test-unsetenv.c: Likewise.
17580         * tests/test-usleep.c: Likewise.
17581         * tests/test-utimens.c: Likewise.
17582         * tests/test-utimensat.c: Likewise.
17583         * tests/test-vasnprintf-posix.c: Likewise.
17584         * tests/test-vasnprintf-posix2.c: Likewise.
17585         * tests/test-vasnprintf.c: Likewise.
17586         * tests/test-vasprintf-posix.c: Likewise.
17587         * tests/test-vasprintf.c: Likewise.
17588         * tests/test-vdprintf-posix.c: Likewise.
17589         * tests/test-vfprintf-posix.c: Likewise.
17590         * tests/test-vprintf-posix.c: Likewise.
17591         * tests/test-vsnprintf-posix.c: Likewise.
17592         * tests/test-vsnprintf.c: Likewise.
17593         * tests/test-vsprintf-posix.c: Likewise.
17594         * tests/test-wcrtomb.c: Likewise.
17595         * tests/test-wcsnrtombs.c: Likewise.
17596         * tests/test-wcsrtombs.c: Likewise.
17597         * tests/test-wctype.c: Likewise.
17598         * tests/test-wcwidth.c: Likewise.
17599         * tests/test-xfprintf-posix.c: Likewise.
17600         * tests/test-xmemdup0.c: Likewise.
17601         * tests/test-xprintf-posix.c: Likewise.
17602         * tests/test-xvasprintf.c: Likewise.
17603         * tests/unicase/test-locale-language.c: Likewise.
17604         * tests/unicase/test-mapping-part1.h: Likewise.
17605         * tests/unicase/test-predicate-part1.h: Likewise.
17606         * tests/unicase/test-u8-casecmp.c: Likewise.
17607         * tests/unicase/test-u8-casecoll.c: Likewise.
17608         * tests/unicase/test-u8-casefold.c: Likewise.
17609         * tests/unicase/test-u8-is-cased.c: Likewise.
17610         * tests/unicase/test-u8-is-casefolded.c: Likewise.
17611         * tests/unicase/test-u8-is-lowercase.c: Likewise.
17612         * tests/unicase/test-u8-is-titlecase.c: Likewise.
17613         * tests/unicase/test-u8-is-uppercase.c: Likewise.
17614         * tests/unicase/test-u8-tolower.c: Likewise.
17615         * tests/unicase/test-u8-totitle.c: Likewise.
17616         * tests/unicase/test-u8-toupper.c: Likewise.
17617         * tests/unicase/test-u16-casecmp.c: Likewise.
17618         * tests/unicase/test-u16-casecoll.c: Likewise.
17619         * tests/unicase/test-u16-casefold.c: Likewise.
17620         * tests/unicase/test-u16-is-cased.c: Likewise.
17621         * tests/unicase/test-u16-is-casefolded.c: Likewise.
17622         * tests/unicase/test-u16-is-lowercase.c: Likewise.
17623         * tests/unicase/test-u16-is-titlecase.c: Likewise.
17624         * tests/unicase/test-u16-is-uppercase.c: Likewise.
17625         * tests/unicase/test-u16-tolower.c: Likewise.
17626         * tests/unicase/test-u16-totitle.c: Likewise.
17627         * tests/unicase/test-u16-toupper.c: Likewise.
17628         * tests/unicase/test-u32-casecmp.c: Likewise.
17629         * tests/unicase/test-u32-casecoll.c: Likewise.
17630         * tests/unicase/test-u32-casefold.c: Likewise.
17631         * tests/unicase/test-u32-is-cased.c: Likewise.
17632         * tests/unicase/test-u32-is-casefolded.c: Likewise.
17633         * tests/unicase/test-u32-is-lowercase.c: Likewise.
17634         * tests/unicase/test-u32-is-titlecase.c: Likewise.
17635         * tests/unicase/test-u32-is-uppercase.c: Likewise.
17636         * tests/unicase/test-u32-tolower.c: Likewise.
17637         * tests/unicase/test-u32-totitle.c: Likewise.
17638         * tests/unicase/test-u32-toupper.c: Likewise.
17639         * tests/unicase/test-ulc-casecmp.c: Likewise.
17640         * tests/unicase/test-ulc-casecoll.c: Likewise.
17641         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
17642         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
17643         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
17644         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
17645         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
17646         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
17647         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
17648         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
17649         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
17650         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
17651         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
17652         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
17653         * tests/unictype/test-bidi_byname.c: Likewise.
17654         * tests/unictype/test-bidi_name.c: Likewise.
17655         * tests/unictype/test-bidi_of.c: Likewise.
17656         * tests/unictype/test-bidi_test.c: Likewise.
17657         * tests/unictype/test-block_list.c: Likewise.
17658         * tests/unictype/test-block_of.c: Likewise.
17659         * tests/unictype/test-block_test.c: Likewise.
17660         * tests/unictype/test-categ_and.c: Likewise.
17661         * tests/unictype/test-categ_and_not.c: Likewise.
17662         * tests/unictype/test-categ_byname.c: Likewise.
17663         * tests/unictype/test-categ_name.c: Likewise.
17664         * tests/unictype/test-categ_none.c: Likewise.
17665         * tests/unictype/test-categ_of.c: Likewise.
17666         * tests/unictype/test-categ_or.c: Likewise.
17667         * tests/unictype/test-categ_test_withtable.c: Likewise.
17668         * tests/unictype/test-combining.c: Likewise.
17669         * tests/unictype/test-decdigit.c: Likewise.
17670         * tests/unictype/test-digit.c: Likewise.
17671         * tests/unictype/test-mirror.c: Likewise.
17672         * tests/unictype/test-numeric.c: Likewise.
17673         * tests/unictype/test-pr_byname.c: Likewise.
17674         * tests/unictype/test-pr_test.c: Likewise.
17675         * tests/unictype/test-predicate-part1.h: Likewise.
17676         * tests/unictype/test-scripts.c: Likewise.
17677         * tests/unictype/test-sy_c_ident.c: Likewise.
17678         * tests/unictype/test-sy_java_ident.c: Likewise.
17679         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
17680         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
17681         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
17682         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
17683         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
17684         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
17685         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
17686         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
17687         * tests/uninorm/test-canonical-decomposition.c: Likewise.
17688         * tests/uninorm/test-compat-decomposition.c: Likewise.
17689         * tests/uninorm/test-composition.c: Likewise.
17690         * tests/uninorm/test-decomposing-form.c: Likewise.
17691         * tests/uninorm/test-decomposition.c: Likewise.
17692         * tests/uninorm/test-u8-nfc.c: Likewise.
17693         * tests/uninorm/test-u8-nfd.c: Likewise.
17694         * tests/uninorm/test-u8-nfkc.c: Likewise.
17695         * tests/uninorm/test-u8-nfkd.c: Likewise.
17696         * tests/uninorm/test-u8-normcmp.c: Likewise.
17697         * tests/uninorm/test-u8-normcoll.c: Likewise.
17698         * tests/uninorm/test-u16-nfc.c: Likewise.
17699         * tests/uninorm/test-u16-nfd.c: Likewise.
17700         * tests/uninorm/test-u16-nfkc.c: Likewise.
17701         * tests/uninorm/test-u16-nfkd.c: Likewise.
17702         * tests/uninorm/test-u16-normcmp.c: Likewise.
17703         * tests/uninorm/test-u16-normcoll.c: Likewise.
17704         * tests/uninorm/test-u32-nfc.c: Likewise.
17705         * tests/uninorm/test-u32-nfd.c: Likewise.
17706         * tests/uninorm/test-u32-nfkc.c: Likewise.
17707         * tests/uninorm/test-u32-nfkd.c: Likewise.
17708         * tests/uninorm/test-u32-normalize-big.c: Likewise.
17709         * tests/uninorm/test-u32-normcmp.c: Likewise.
17710         * tests/uninorm/test-u32-normcoll.c: Likewise.
17711         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
17712         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
17713         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
17714         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
17715         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
17716         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
17717         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
17718         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
17719         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
17720         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
17721         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
17722         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
17723         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
17724         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
17725         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
17726         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
17727         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
17728         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
17729         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
17730         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
17731         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
17732         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
17733         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
17734         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
17735         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
17736         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
17737         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
17738         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
17739         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
17740         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
17741         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
17742         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
17743         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
17744         * tests/uniwidth/test-u8-strwidth.c: Likewise.
17745         * tests/uniwidth/test-u8-width.c: Likewise.
17746         * tests/uniwidth/test-u16-strwidth.c: Likewise.
17747         * tests/uniwidth/test-u16-width.c: Likewise.
17748         * tests/uniwidth/test-u32-strwidth.c: Likewise.
17749         * tests/uniwidth/test-u32-width.c: Likewise.
17750         * tests/uniwidth/test-uc_width.c: Likewise.
17751         * tests/uniwidth/test-uc_width2.c: Likewise.
17752         * modules/acl-tests (Files): Add tests/macros.h.
17753         * modules/areadlink-tests (Files): Likewise.
17754         * modules/areadlink-with-size-tests (Files): Likewise.
17755         * modules/areadlinkat-tests (Files): Likewise.
17756         * modules/areadlinkat-with-size-tests (Files): Likewise.
17757         * modules/argmatch-tests (Files): Likewise.
17758         * modules/argv-iter-tests (Files): Likewise.
17759         * modules/array-list-tests (Files): Likewise.
17760         * modules/array-mergesort-tests (Files): Likewise.
17761         * modules/array-oset-tests (Files): Likewise.
17762         * modules/avltree-list-tests (Files): Likewise.
17763         * modules/avltree-oset-tests (Files): Likewise.
17764         * modules/avltreehash-list-tests (Files): Likewise.
17765         * modules/base64-tests (Files): Likewise.
17766         * modules/binary-io-tests (Files): Likewise.
17767         * modules/bitrotate-tests (Files): Likewise.
17768         * modules/btowc-tests (Files): Likewise.
17769         * modules/byteswap-tests (Files): Likewise.
17770         * modules/c-ctype-tests (Files): Likewise.
17771         * modules/c-stack-tests (Files): Likewise.
17772         * modules/c-strcase-tests (Files): Likewise.
17773         * modules/c-strcasestr-tests (Files): Likewise.
17774         * modules/c-strstr-tests (Files): Likewise.
17775         * modules/canonicalize-lgpl-tests (Files): Likewise.
17776         * modules/canonicalize-tests (Files): Likewise.
17777         * modules/carray-list-tests (Files): Likewise.
17778         * modules/ceilf-tests (Files): Likewise.
17779         * modules/ceill-tests (Files): Likewise.
17780         * modules/chown-tests (Files): Likewise.
17781         * modules/cloexec-tests (Files): Likewise.
17782         * modules/copy-file-tests (Files): Likewise.
17783         * modules/count-one-bits-tests (Files): Likewise.
17784         * modules/dprintf-posix-tests (Files): Likewise.
17785         * modules/dup2-tests (Files): Likewise.
17786         * modules/dup3-tests (Files): Likewise.
17787         * modules/duplocale-tests (Files): Likewise.
17788         * modules/fbufmode-tests (Files): Likewise.
17789         * modules/fchdir-tests (Files): Likewise.
17790         * modules/fcntl-safer-tests (Files): Likewise.
17791         * modules/fcntl-tests (Files): Likewise.
17792         * modules/fdopendir-tests (Files): Likewise.
17793         * modules/fdutimensat-tests (Files): Likewise.
17794         * modules/fflush-tests (Files): Likewise.
17795         * modules/filevercmp-tests (Files): Likewise.
17796         * modules/flock-tests (Files): Likewise.
17797         * modules/floorf-tests (Files): Likewise.
17798         * modules/floorl-tests (Files): Likewise.
17799         * modules/fnmatch-tests (Files): Likewise.
17800         * modules/fopen-safer-tests (Files): Likewise.
17801         * modules/fopen-tests (Files): Likewise.
17802         * modules/fpending-tests (Files): Likewise.
17803         * modules/fprintf-posix-tests (Files): Likewise.
17804         * modules/fpurge-tests (Files): Likewise.
17805         * modules/freadable-tests (Files): Likewise.
17806         * modules/freadahead-tests (Files): Likewise.
17807         * modules/freading-tests (Files): Likewise.
17808         * modules/freadptr-tests (Files): Likewise.
17809         * modules/freadseek-tests (Files): Likewise.
17810         * modules/freopen-tests (Files): Likewise.
17811         * modules/frexp-nolibm-tests (Files): Likewise.
17812         * modules/frexp-tests (Files): Likewise.
17813         * modules/frexpl-nolibm-tests (Files): Likewise.
17814         * modules/frexpl-tests (Files): Likewise.
17815         * modules/fseek-tests (Files): Likewise.
17816         * modules/fseeko-tests (Files): Likewise.
17817         * modules/fstrcmp-tests (Files): Likewise.
17818         * modules/fsync-tests (Files): Likewise.
17819         * modules/ftell-tests (Files): Likewise.
17820         * modules/ftello-tests (Files): Likewise.
17821         * modules/func-tests (Files): Likewise.
17822         * modules/futimens-tests (Files): Likewise.
17823         * modules/fwritable-tests (Files): Likewise.
17824         * modules/fwriting-tests (Files): Likewise.
17825         * modules/getcwd-tests (Files): Likewise.
17826         * modules/getdate-tests (Files): Likewise.
17827         * modules/getdelim-tests (Files): Likewise.
17828         * modules/getdtablesize-tests (Files): Likewise.
17829         * modules/getgroups-tests (Files): Likewise.
17830         * modules/getline-tests (Files): Likewise.
17831         * modules/getndelim2-tests (Files): Likewise.
17832         * modules/glob-tests (Files): Likewise.
17833         * modules/hash-tests (Files): Likewise.
17834         * modules/i-ring-tests (Files): Likewise.
17835         * modules/iconv-tests (Files): Likewise.
17836         * modules/iconv_open-utf-tests (Files): Likewise.
17837         * modules/idpriv-drop-tests (Files): Likewise.
17838         * modules/idpriv-droptemp-tests (Files): Likewise.
17839         * modules/inet_ntop-tests (Files): Likewise.
17840         * modules/inet_pton-tests (Files): Likewise.
17841         * modules/isblank-tests (Files): Likewise.
17842         * modules/isfinite-tests (Files): Likewise.
17843         * modules/isinf-tests (Files): Likewise.
17844         * modules/isnan-tests (Files): Likewise.
17845         * modules/isnand-nolibm-tests (Files): Likewise.
17846         * modules/isnand-tests (Files): Likewise.
17847         * modules/isnanf-nolibm-tests (Files): Likewise.
17848         * modules/isnanf-tests (Files): Likewise.
17849         * modules/isnanl-nolibm-tests (Files): Likewise.
17850         * modules/isnanl-tests (Files): Likewise.
17851         * modules/lchown-tests (Files): Likewise.
17852         * modules/ldexpl-tests (Files): Likewise.
17853         * modules/link-tests (Files): Likewise.
17854         * modules/linkat-tests (Files): Likewise.
17855         * modules/linked-list-tests (Files): Likewise.
17856         * modules/linkedhash-list-tests (Files): Likewise.
17857         * modules/localename-tests (Files): Likewise.
17858         * modules/lseek-tests (Files): Likewise.
17859         * modules/lstat-tests (Files): Likewise.
17860         * modules/mbmemcasecmp-tests (Files): Likewise.
17861         * modules/mbmemcasecoll-tests (Files): Likewise.
17862         * modules/mbrtowc-tests (Files): Likewise.
17863         * modules/mbscasecmp-tests (Files): Likewise.
17864         * modules/mbscasestr-tests (Files): Likewise.
17865         * modules/mbschr-tests (Files): Likewise.
17866         * modules/mbscspn-tests (Files): Likewise.
17867         * modules/mbsinit-tests (Files): Likewise.
17868         * modules/mbsncasecmp-tests (Files): Likewise.
17869         * modules/mbsnrtowcs-tests (Files): Likewise.
17870         * modules/mbspbrk-tests (Files): Likewise.
17871         * modules/mbspcasecmp-tests (Files): Likewise.
17872         * modules/mbsrchr-tests (Files): Likewise.
17873         * modules/mbsrtowcs-tests (Files): Likewise.
17874         * modules/mbsspn-tests (Files): Likewise.
17875         * modules/mbsstr-tests (Files): Likewise.
17876         * modules/memchr-tests (Files): Likewise.
17877         * modules/memchr2-tests (Files): Likewise.
17878         * modules/memcmp-tests (Files): Likewise.
17879         * modules/memmem-tests (Files): Likewise.
17880         * modules/memrchr-tests (Files): Likewise.
17881         * modules/mkdir-tests (Files): Likewise.
17882         * modules/mkfifo-tests (Files): Likewise.
17883         * modules/mkfifoat-tests (Files): Likewise.
17884         * modules/mknod-tests (Files): Likewise.
17885         * modules/nanosleep-tests (Files): Likewise.
17886         * modules/nl_langinfo-tests (Files): Likewise.
17887         * modules/obstack-printf-tests (Files): Likewise.
17888         * modules/open-tests (Files): Likewise.
17889         * modules/openat-tests (Files): Likewise.
17890         * modules/pipe-filter-gi-tests (Files): Likewise.
17891         * modules/pipe-filter-ii-tests (Files): Likewise.
17892         * modules/pipe2-tests (Files): Likewise.
17893         * modules/popen-safer-tests (Files): Likewise.
17894         * modules/popen-tests (Files): Likewise.
17895         * modules/posixtm-tests (Files): Likewise.
17896         * modules/pread-tests (Files): Likewise.
17897         * modules/printf-frexp-tests (Files): Likewise.
17898         * modules/printf-frexpl-tests (Files): Likewise.
17899         * modules/printf-posix-tests (Files): Likewise.
17900         * modules/priv-set-tests (Files): Likewise.
17901         * modules/quotearg-tests (Files): Likewise.
17902         * modules/random_r-tests (Files): Likewise.
17903         * modules/rawmemchr-tests (Files): Likewise.
17904         * modules/rbtree-list-tests (Files): Likewise.
17905         * modules/rbtree-oset-tests (Files): Likewise.
17906         * modules/rbtreehash-list-tests (Files): Likewise.
17907         * modules/readlink-tests (Files): Likewise.
17908         * modules/remove-tests (Files): Likewise.
17909         * modules/rename-tests (Files): Likewise.
17910         * modules/renameat-tests (Files): Likewise.
17911         * modules/rmdir-tests (Files): Likewise.
17912         * modules/round-tests (Files): Likewise.
17913         * modules/roundf-tests (Files): Likewise.
17914         * modules/roundl-tests (Files): Likewise.
17915         * modules/safe-alloc-tests (Files): Likewise.
17916         * modules/setenv-tests (Files): Likewise.
17917         * modules/sigaction-tests (Files): Likewise.
17918         * modules/signbit-tests (Files): Likewise.
17919         * modules/sleep-tests (Files): Likewise.
17920         * modules/snprintf-posix-tests (Files): Likewise.
17921         * modules/snprintf-tests (Files): Likewise.
17922         * modules/sprintf-posix-tests (Files): Likewise.
17923         * modules/stat-tests (Files): Likewise.
17924         * modules/stat-time-tests (Files): Likewise.
17925         * modules/strcasestr-tests (Files): Likewise.
17926         * modules/strchrnul-tests (Files): Likewise.
17927         * modules/strerror-tests (Files): Likewise.
17928         * modules/striconv-tests (Files): Likewise.
17929         * modules/striconveh-tests (Files): Likewise.
17930         * modules/striconveha-tests (Files): Likewise.
17931         * modules/strsignal-tests (Files): Likewise.
17932         * modules/strstr-tests (Files): Likewise.
17933         * modules/strtod-tests (Files): Likewise.
17934         * modules/strverscmp-tests (Files): Likewise.
17935         * modules/symlink-tests (Files): Likewise.
17936         * modules/symlinkat-tests (Files): Likewise.
17937         * modules/trunc-tests (Files): Likewise.
17938         * modules/truncf-tests (Files): Likewise.
17939         * modules/truncl-tests (Files): Likewise.
17940         * modules/uname-tests (Files): Likewise.
17941         * modules/unicase/cased-tests (Files): Likewise.
17942         * modules/unicase/ignorable-tests (Files): Likewise.
17943         * modules/unicase/locale-language-tests (Files): Likewise.
17944         * modules/unicase/tolower-tests (Files): Likewise.
17945         * modules/unicase/totitle-tests (Files): Likewise.
17946         * modules/unicase/toupper-tests (Files): Likewise.
17947         * modules/unicase/u8-casecmp-tests (Files): Likewise.
17948         * modules/unicase/u8-casecoll-tests (Files): Likewise.
17949         * modules/unicase/u8-casefold-tests (Files): Likewise.
17950         * modules/unicase/u8-is-cased-tests (Files): Likewise.
17951         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
17952         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
17953         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
17954         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
17955         * modules/unicase/u8-tolower-tests (Files): Likewise.
17956         * modules/unicase/u8-totitle-tests (Files): Likewise.
17957         * modules/unicase/u8-toupper-tests (Files): Likewise.
17958         * modules/unicase/u16-casecmp-tests (Files): Likewise.
17959         * modules/unicase/u16-casecoll-tests (Files): Likewise.
17960         * modules/unicase/u16-casefold-tests (Files): Likewise.
17961         * modules/unicase/u16-is-cased-tests (Files): Likewise.
17962         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
17963         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
17964         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
17965         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
17966         * modules/unicase/u16-tolower-tests (Files): Likewise.
17967         * modules/unicase/u16-totitle-tests (Files): Likewise.
17968         * modules/unicase/u16-toupper-tests (Files): Likewise.
17969         * modules/unicase/u32-casecmp-tests (Files): Likewise.
17970         * modules/unicase/u32-casecoll-tests (Files): Likewise.
17971         * modules/unicase/u32-casefold-tests (Files): Likewise.
17972         * modules/unicase/u32-is-cased-tests (Files): Likewise.
17973         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
17974         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
17975         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
17976         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
17977         * modules/unicase/u32-tolower-tests (Files): Likewise.
17978         * modules/unicase/u32-totitle-tests (Files): Likewise.
17979         * modules/unicase/u32-toupper-tests (Files): Likewise.
17980         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
17981         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
17982         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
17983         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
17984         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
17985         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
17986         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
17987         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
17988         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
17989         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
17990         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
17991         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
17992         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
17993         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
17994         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
17995         * modules/unictype/bidicategory-name-tests (Files): Likewise.
17996         * modules/unictype/bidicategory-of-tests (Files): Likewise.
17997         * modules/unictype/bidicategory-test-tests (Files): Likewise.
17998         * modules/unictype/block-list-tests (Files): Likewise.
17999         * modules/unictype/block-of-tests (Files): Likewise.
18000         * modules/unictype/block-test-tests (Files): Likewise.
18001         * modules/unictype/category-C-tests (Files): Likewise.
18002         * modules/unictype/category-Cc-tests (Files): Likewise.
18003         * modules/unictype/category-Cf-tests (Files): Likewise.
18004         * modules/unictype/category-Cn-tests (Files): Likewise.
18005         * modules/unictype/category-Co-tests (Files): Likewise.
18006         * modules/unictype/category-Cs-tests (Files): Likewise.
18007         * modules/unictype/category-L-tests (Files): Likewise.
18008         * modules/unictype/category-Ll-tests (Files): Likewise.
18009         * modules/unictype/category-Lm-tests (Files): Likewise.
18010         * modules/unictype/category-Lo-tests (Files): Likewise.
18011         * modules/unictype/category-Lt-tests (Files): Likewise.
18012         * modules/unictype/category-Lu-tests (Files): Likewise.
18013         * modules/unictype/category-M-tests (Files): Likewise.
18014         * modules/unictype/category-Mc-tests (Files): Likewise.
18015         * modules/unictype/category-Me-tests (Files): Likewise.
18016         * modules/unictype/category-Mn-tests (Files): Likewise.
18017         * modules/unictype/category-N-tests (Files): Likewise.
18018         * modules/unictype/category-Nd-tests (Files): Likewise.
18019         * modules/unictype/category-Nl-tests (Files): Likewise.
18020         * modules/unictype/category-No-tests (Files): Likewise.
18021         * modules/unictype/category-P-tests (Files): Likewise.
18022         * modules/unictype/category-Pc-tests (Files): Likewise.
18023         * modules/unictype/category-Pd-tests (Files): Likewise.
18024         * modules/unictype/category-Pe-tests (Files): Likewise.
18025         * modules/unictype/category-Pf-tests (Files): Likewise.
18026         * modules/unictype/category-Pi-tests (Files): Likewise.
18027         * modules/unictype/category-Po-tests (Files): Likewise.
18028         * modules/unictype/category-Ps-tests (Files): Likewise.
18029         * modules/unictype/category-S-tests (Files): Likewise.
18030         * modules/unictype/category-Sc-tests (Files): Likewise.
18031         * modules/unictype/category-Sk-tests (Files): Likewise.
18032         * modules/unictype/category-Sm-tests (Files): Likewise.
18033         * modules/unictype/category-So-tests (Files): Likewise.
18034         * modules/unictype/category-Z-tests (Files): Likewise.
18035         * modules/unictype/category-Zl-tests (Files): Likewise.
18036         * modules/unictype/category-Zp-tests (Files): Likewise.
18037         * modules/unictype/category-Zs-tests (Files): Likewise.
18038         * modules/unictype/category-and-not-tests (Files): Likewise.
18039         * modules/unictype/category-and-tests (Files): Likewise.
18040         * modules/unictype/category-byname-tests (Files): Likewise.
18041         * modules/unictype/category-name-tests (Files): Likewise.
18042         * modules/unictype/category-none-tests (Files): Likewise.
18043         * modules/unictype/category-of-tests (Files): Likewise.
18044         * modules/unictype/category-or-tests (Files): Likewise.
18045         * modules/unictype/category-test-withtable-tests (Files): Likewise.
18046         * modules/unictype/combining-class-tests (Files): Likewise.
18047         * modules/unictype/ctype-alnum-tests (Files): Likewise.
18048         * modules/unictype/ctype-alpha-tests (Files): Likewise.
18049         * modules/unictype/ctype-blank-tests (Files): Likewise.
18050         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
18051         * modules/unictype/ctype-digit-tests (Files): Likewise.
18052         * modules/unictype/ctype-graph-tests (Files): Likewise.
18053         * modules/unictype/ctype-lower-tests (Files): Likewise.
18054         * modules/unictype/ctype-print-tests (Files): Likewise.
18055         * modules/unictype/ctype-punct-tests (Files): Likewise.
18056         * modules/unictype/ctype-space-tests (Files): Likewise.
18057         * modules/unictype/ctype-upper-tests (Files): Likewise.
18058         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
18059         * modules/unictype/decimal-digit-tests (Files): Likewise.
18060         * modules/unictype/digit-tests (Files): Likewise.
18061         * modules/unictype/mirror-tests (Files): Likewise.
18062         * modules/unictype/numeric-tests (Files): Likewise.
18063         * modules/unictype/property-alphabetic-tests (Files): Likewise.
18064         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
18065         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
18066         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
18067         Likewise.
18068         * modules/unictype/property-bidi-block-separator-tests (Files):
18069         Likewise.
18070         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
18071         Likewise.
18072         * modules/unictype/property-bidi-common-separator-tests (Files):
18073         Likewise.
18074         * modules/unictype/property-bidi-control-tests (Files): Likewise.
18075         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
18076         Likewise.
18077         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
18078         Likewise.
18079         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
18080         Likewise.
18081         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
18082         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
18083         Likewise.
18084         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
18085         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
18086         Likewise.
18087         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
18088         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
18089         * modules/unictype/property-bidi-segment-separator-tests (Files):
18090         Likewise.
18091         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
18092         * modules/unictype/property-byname-tests (Files): Likewise.
18093         * modules/unictype/property-combining-tests (Files): Likewise.
18094         * modules/unictype/property-composite-tests (Files): Likewise.
18095         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
18096         * modules/unictype/property-dash-tests (Files): Likewise.
18097         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
18098         * modules/unictype/property-default-ignorable-code-point-tests (Files):
18099         Likewise.
18100         * modules/unictype/property-deprecated-tests (Files): Likewise.
18101         * modules/unictype/property-diacritic-tests (Files): Likewise.
18102         * modules/unictype/property-extender-tests (Files): Likewise.
18103         * modules/unictype/property-format-control-tests (Files): Likewise.
18104         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
18105         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
18106         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
18107         * modules/unictype/property-hex-digit-tests (Files): Likewise.
18108         * modules/unictype/property-hyphen-tests (Files): Likewise.
18109         * modules/unictype/property-id-continue-tests (Files): Likewise.
18110         * modules/unictype/property-id-start-tests (Files): Likewise.
18111         * modules/unictype/property-ideographic-tests (Files): Likewise.
18112         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
18113         * modules/unictype/property-ids-trinary-operator-tests (Files):
18114         Likewise.
18115         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
18116         * modules/unictype/property-iso-control-tests (Files): Likewise.
18117         * modules/unictype/property-join-control-tests (Files): Likewise.
18118         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
18119         * modules/unictype/property-line-separator-tests (Files): Likewise.
18120         * modules/unictype/property-logical-order-exception-tests (Files):
18121         Likewise.
18122         * modules/unictype/property-lowercase-tests (Files): Likewise.
18123         * modules/unictype/property-math-tests (Files): Likewise.
18124         * modules/unictype/property-non-break-tests (Files): Likewise.
18125         * modules/unictype/property-not-a-character-tests (Files): Likewise.
18126         * modules/unictype/property-numeric-tests (Files): Likewise.
18127         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
18128         * modules/unictype/property-other-default-ignorable-code-point-tests
18129         (Files): Likewise.
18130         * modules/unictype/property-other-grapheme-extend-tests (Files):
18131         Likewise.
18132         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
18133         * modules/unictype/property-other-id-start-tests (Files): Likewise.
18134         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
18135         * modules/unictype/property-other-math-tests (Files): Likewise.
18136         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
18137         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
18138         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
18139         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
18140         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
18141         * modules/unictype/property-private-use-tests (Files): Likewise.
18142         * modules/unictype/property-punctuation-tests (Files): Likewise.
18143         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
18144         * modules/unictype/property-radical-tests (Files): Likewise.
18145         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
18146         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
18147         * modules/unictype/property-space-tests (Files): Likewise.
18148         * modules/unictype/property-terminal-punctuation-tests (Files):
18149         Likewise.
18150         * modules/unictype/property-test-tests (Files): Likewise.
18151         * modules/unictype/property-titlecase-tests (Files): Likewise.
18152         * modules/unictype/property-unassigned-code-value-tests (Files):
18153         Likewise.
18154         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
18155         * modules/unictype/property-uppercase-tests (Files): Likewise.
18156         * modules/unictype/property-variation-selector-tests (Files): Likewise.
18157         * modules/unictype/property-white-space-tests (Files): Likewise.
18158         * modules/unictype/property-xid-continue-tests (Files): Likewise.
18159         * modules/unictype/property-xid-start-tests (Files): Likewise.
18160         * modules/unictype/property-zero-width-tests (Files): Likewise.
18161         * modules/unictype/scripts-tests (Files): Likewise.
18162         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
18163         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
18164         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
18165         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
18166         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
18167         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
18168         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
18169         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
18170         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
18171         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
18172         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
18173         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
18174         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
18175         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
18176         * modules/uninorm/composition-tests (Files): Likewise.
18177         * modules/uninorm/decomposing-form-tests (Files): Likewise.
18178         * modules/uninorm/decomposition-tests (Files): Likewise.
18179         * modules/uninorm/filter-tests (Files): Likewise.
18180         * modules/uninorm/nfc-tests (Files): Likewise.
18181         * modules/uninorm/nfd-tests (Files): Likewise.
18182         * modules/uninorm/nfkc-tests (Files): Likewise.
18183         * modules/uninorm/nfkd-tests (Files): Likewise.
18184         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
18185         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
18186         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
18187         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
18188         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
18189         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
18190         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
18191         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
18192         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
18193         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
18194         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
18195         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
18196         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
18197         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
18198         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
18199         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
18200         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
18201         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
18202         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
18203         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
18204         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
18205         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
18206         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
18207         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
18208         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
18209         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
18210         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
18211         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
18212         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
18213         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
18214         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
18215         * modules/uniwidth/u8-width-tests (Files): Likewise.
18216         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
18217         * modules/uniwidth/u16-width-tests (Files): Likewise.
18218         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
18219         * modules/uniwidth/u32-width-tests (Files): Likewise.
18220         * modules/uniwidth/width-tests (Files): Likewise.
18221         * modules/unlink-tests (Files): Likewise.
18222         * modules/unsetenv-tests (Files): Likewise.
18223         * modules/usleep-tests (Files): Likewise.
18224         * modules/utimens-tests (Files): Likewise.
18225         * modules/utimensat-tests (Files): Likewise.
18226         * modules/vasnprintf-posix-tests (Files): Likewise.
18227         * modules/vasnprintf-tests (Files): Likewise.
18228         * modules/vasprintf-posix-tests (Files): Likewise.
18229         * modules/vasprintf-tests (Files): Likewise.
18230         * modules/vdprintf-posix-tests (Files): Likewise.
18231         * modules/vfprintf-posix-tests (Files): Likewise.
18232         * modules/vprintf-posix-tests (Files): Likewise.
18233         * modules/vsnprintf-posix-tests (Files): Likewise.
18234         * modules/vsnprintf-tests (Files): Likewise.
18235         * modules/vsprintf-posix-tests (Files): Likewise.
18236         * modules/wcrtomb-tests (Files): Likewise.
18237         * modules/wcsnrtombs-tests (Files): Likewise.
18238         * modules/wcsrtombs-tests (Files): Likewise.
18239         * modules/wctype-tests (Files): Likewise.
18240         * modules/wcwidth-tests (Files): Likewise.
18241         * modules/xmemdup0-tests (Files): Likewise.
18242         * modules/xprintf-posix-tests (Files): Likewise.
18243         * modules/xvasprintf-tests (Files): Likewise.
18244
18245 2009-12-24  Eric Blake  <ebb9@byu.net>
18246
18247         test-nanosleep: fix typo
18248         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
18249         patch.
18250         Reported by Bruno Haible.
18251
18252 2009-12-24  Bruno Haible  <bruno@clisp.org>
18253
18254         Reduce namespace pollution on glibc systems.
18255         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
18256         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
18257         systems.
18258         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
18259         <getopt.h> on glibc systems.
18260         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
18261         systems.
18262         * lib/fcntl.c: Include <unistd.h> here instead.
18263
18264 2009-12-24  Bruno Haible  <bruno@clisp.org>
18265
18266         * lib/stdlib.in.h (includes): Fix typo in today's commit.
18267
18268 2009-12-24  Eric Blake  <ebb9@byu.net>
18269
18270         tests: add signature checks
18271         * tests/signature.h (SIGNATURE_CHECK): New file.
18272         * modules/atexit-tests (Files): Use it.
18273         * modules/btowc-tests (Files): Likewise.
18274         * modules/canonicalize-lgpl-tests (Files): Likewise.
18275         * modules/ceilf-tests (Files): Likewise.
18276         * modules/ceill-tests (Files): Likewise.
18277         * modules/chown-tests (Files): Likewise.
18278         * modules/dprintf-posix-tests (Files): Likewise.
18279         * modules/dup2-tests (Files): Likewise.
18280         * modules/dup3-tests (Files): Likewise.
18281         * modules/duplocale-tests (Files): Likewise.
18282         * modules/fchdir-tests (Files): Likewise.
18283         * modules/fcntl-tests (Files): Likewise.
18284         * modules/fdopendir-tests (Files): Likewise.
18285         * modules/fflush-tests (Files): Likewise.
18286         * modules/flock-tests (Files): Likewise.
18287         * modules/floorf-tests (Files): Likewise.
18288         * modules/floorl-tests (Files): Likewise.
18289         * modules/fnmatch-tests (Files): Likewise.
18290         * modules/fopen-tests (Files): Likewise.
18291         * modules/fprintf-posix-tests (Files): Likewise.
18292         * modules/freopen-tests (Files): Likewise.
18293         * modules/frexp-nolibm-tests (Files): Likewise.
18294         * modules/frexp-tests (Files): Likewise.
18295         * modules/frexpl-nolibm-tests (Files): Likewise.
18296         * modules/frexpl-tests (Files): Likewise.
18297         * modules/fseek-tests (Files): Likewise.
18298         * modules/fseeko-tests (Files): Likewise.
18299         * modules/fsync-tests (Files): Likewise.
18300         * modules/ftell-tests (Files): Likewise.
18301         * modules/ftello-tests (Files): Likewise.
18302         * modules/futimens-tests (Files): Likewise.
18303         * modules/getaddrinfo-tests (Files): Likewise.
18304         * modules/getcwd-tests (Files): Likewise.
18305         * modules/getdelim-tests (Files): Likewise.
18306         * modules/getdtablesize-tests (Files): Likewise.
18307         * modules/getgroups-tests (Files): Likewise.
18308         * modules/gethostname-tests (Files): Likewise.
18309         * modules/getline-tests (Files): Likewise.
18310         * modules/getopt-posix-tests (Files): Likewise.
18311         * modules/gettimeofday-tests (Files): Likewise.
18312         * modules/glob-tests (Files): Likewise.
18313         * modules/iconv-tests (Files): Likewise.
18314         * modules/inet_ntop-tests (Files): Likewise.
18315         * modules/inet_pton-tests (Files): Likewise.
18316         * modules/isblank-tests (Files): Likewise.
18317         * modules/lchown-tests (Files): Likewise.
18318         * modules/ldexpl-tests (Files): Likewise.
18319         * modules/link-tests (Files): Likewise.
18320         * modules/linkat-tests (Files): Likewise.
18321         * modules/lseek-tests (Files): Likewise.
18322         * modules/lstat-tests (Files): Likewise.
18323         * modules/mbrtowc-tests (Files): Likewise.
18324         * modules/mbsinit-tests (Files): Likewise.
18325         * modules/mbsnrtowcs-tests (Files): Likewise.
18326         * modules/mbsrtowcs-tests (Files): Likewise.
18327         * modules/memchr-tests (Files): Likewise.
18328         * modules/memcmp-tests (Files): Likewise.
18329         * modules/memmem-tests (Files): Likewise.
18330         * modules/memrchr-tests (Files): Likewise.
18331         * modules/mkdir-tests (Files): Likewise.
18332         * modules/mkfifo-tests (Files): Likewise.
18333         * modules/mkfifoat-tests (Files): Likewise.
18334         * modules/mknod-tests (Files): Likewise.
18335         * modules/nanosleep-tests (Files): Likewise.
18336         * modules/nl_langinfo-tests (Files): Likewise.
18337         * modules/obstack-printf-tests (Files): Likewise.
18338         * modules/open-tests (Files): Likewise.
18339         * modules/openat-tests (Files): Likewise.
18340         * modules/perror-tests (Files): Likewise.
18341         * modules/pipe2-tests (Files): Likewise.
18342         * modules/poll-tests (Files): Likewise.
18343         * modules/popen-tests (Files): Likewise.
18344         * modules/posix_spawn-tests (Files): Likewise.
18345         * modules/posix_spawnp-tests (Files): Likewise.
18346         * modules/pread-tests (Files): Likewise.
18347         * modules/printf-posix-tests (Files): Likewise.
18348         * modules/pty-tests (Files): Likewise.
18349         * modules/random_r-tests (Files): Likewise.
18350         * modules/rawmemchr-tests (Files): Likewise.
18351         * modules/readlink-tests (Files): Likewise.
18352         * modules/remove-tests (Files): Likewise.
18353         * modules/rename-tests (Files): Likewise.
18354         * modules/renameat-tests (Files): Likewise.
18355         * modules/rmdir-tests (Files): Likewise.
18356         * modules/round-tests (Files): Likewise.
18357         * modules/roundf-tests (Files): Likewise.
18358         * modules/roundl-tests (Files): Likewise.
18359         * modules/select-tests (Files): Likewise.
18360         * modules/setenv-tests (Files): Likewise.
18361         * modules/sigaction-tests (Files): Likewise.
18362         * modules/sleep-tests (Files): Likewise.
18363         * modules/snprintf-posix-tests (Files): Likewise.
18364         * modules/snprintf-tests (Files): Likewise.
18365         * modules/sprintf-posix-tests (Files): Likewise.
18366         * modules/stat-tests (Files): Likewise.
18367         * modules/strcasestr-tests (Files): Likewise.
18368         * modules/strchrnul-tests (Files): Likewise.
18369         * modules/strerror-tests (Files): Likewise.
18370         * modules/strsignal-tests (Files): Likewise.
18371         * modules/strstr-tests (Files): Likewise.
18372         * modules/strtod-tests (Files): Likewise.
18373         * modules/strverscmp-tests (Files): Likewise.
18374         * modules/symlink-tests (Files): Likewise.
18375         * modules/symlinkat-tests (Files): Likewise.
18376         * modules/times-tests (Files): Likewise.
18377         * modules/trunc-tests (Files): Likewise.
18378         * modules/truncf-tests (Files): Likewise.
18379         * modules/truncl-tests (Files): Likewise.
18380         * modules/tsearch-tests (Files): Likewise.
18381         * modules/uname-tests (Files): Likewise.
18382         * modules/unlink-tests (Files): Likewise.
18383         * modules/unsetenv-tests (Files): Likewise.
18384         * modules/usleep-tests (Files): Likewise.
18385         * modules/utimensat-tests (Files): Likewise.
18386         * modules/vasprintf-tests (Files): Likewise.
18387         * modules/vdprintf-posix-tests (Files): Likewise.
18388         * modules/vfprintf-posix-tests (Files): Likewise.
18389         * modules/vprintf-posix-tests (Files): Likewise.
18390         * modules/vsnprintf-posix-tests (Files): Likewise.
18391         * modules/vsnprintf-tests (Files): Likewise.
18392         * modules/vsprintf-posix-tests (Files): Likewise.
18393         * modules/wcrtomb-tests (Files): Likewise.
18394         * modules/wcsnrtombs-tests (Files): Likewise.
18395         * modules/wcsrtombs-tests (Files): Likewise.
18396         * modules/wcwidth-tests (Files): Likewise.
18397         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
18398         * tests/test-isinf.c (isinf): Likewise.
18399         * tests/test-isnan.c (isnan): Likewise.
18400         * tests/test-signbit.c (signbit): Likewise.
18401         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
18402         declaration, either as macro or with correct signature.
18403         (select): Ensure function under test is declared with correct
18404         signature in correct header.
18405         * tests/test-atexit.c (atexit): Likewise.
18406         * tests/test-btowc.c (btowc): Likewise.
18407         * tests/test-canonicalize-lgpl.c (realpath)
18408         (canonicalize_file_name): Likewise.
18409         * tests/test-ceilf1.c (ceilf): Likewise.
18410         * tests/test-ceill.c (ceill): Likewise.
18411         * tests/test-chown.c (chown): Likewise.
18412         * tests/test-dprintf-posix.c (dprintf): Likewise.
18413         * tests/test-dup2.c (dup2): Likewise.
18414         * tests/test-dup3.c (dup3): Likewise.
18415         * tests/test-duplocale.c (duplocale): Likewise.
18416         * tests/test-fchdir.c (fchdir): Likewise.
18417         * tests/test-fchownat.c (fchownat): Likewise.
18418         * tests/test-fcntl.c (fcntl): Likewise.
18419         * tests/test-fdopendir.c (fdopendir): Likewise.
18420         * tests/test-fflush.c (fflush): Likewise.
18421         * tests/test-flock.c (flock): Likewise.
18422         * tests/test-floorf1.c (floorf): Likewise.
18423         * tests/test-floorl.c (floorl): Likewise.
18424         * tests/test-fnmatch.c (fnmatch): Likewise.
18425         * tests/test-fopen.c (fopen): Likewise.
18426         * tests/test-fprintf-posix.c (fprintf): Likewise.
18427         * tests/test-freopen.c (freopen): Likewise.
18428         * tests/test-frexp.c (frexp): Likewise.
18429         * tests/test-frexpl.c (frexpl): Likewise.
18430         * tests/test-fseek.c (fseek): Likewise.
18431         * tests/test-fseeko.c (fseeko): Likewise.
18432         * tests/test-fstatat.c (fstatat): Likewise.
18433         * tests/test-fsync.c (fsync): Likewise.
18434         * tests/test-ftell.c (ftell): Likewise.
18435         * tests/test-ftello.c (ftello): Likewise.
18436         * tests/test-futimens.c (futimens): Likewise.
18437         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
18438         (gai_strerror): Likewise.
18439         * tests/test-getcwd.c (getcwd): Likewise.
18440         * tests/test-getdelim.c (getdelim): Likewise.
18441         * tests/test-getdtablesize.c (getdtablesize): Likewise.
18442         * tests/test-getgroups.c (getgroups): Likewise.
18443         * tests/test-gethostname.c (gethostname): Likewise.
18444         * tests/test-getline.c (getline): Likewise.
18445         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
18446         Likewise.
18447         * tests/test-gettimeofday.c (gettimeofday): Likewise.
18448         * tests/test-glob.c (glob, globfree): Likewise.
18449         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
18450         * tests/test-inet_ntop.c (inet_ntop): Likewise.
18451         * tests/test-inet_pton.c (inet_pton): Likewise.
18452         * tests/test-isblank.c (isblank): Likewise.
18453         * tests/test-lchown.c (lchown): Likewise.
18454         * tests/test-ldexpl.c (ldexpl): Likewise.
18455         * tests/test-link.c (link): Likewise.
18456         * tests/test-linkat.c (linkat): Likewise.
18457         * tests/test-lseek.c (lseek): Likewise.
18458         * tests/test-lstat.c (lstat): Likewise.
18459         * tests/test-mbrtowc.c (mbrtowc): Likewise.
18460         * tests/test-mbsinit.c (mbsinit): Likewise.
18461         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
18462         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
18463         * tests/test-memchr.c (memchr): Likewise.
18464         * tests/test-memcmp.c (memcmp): Likewise.
18465         * tests/test-memmem.c (memmem): Likewise.
18466         * tests/test-memrchr.c (memrchr): Likewise.
18467         * tests/test-mkdir.c (mkdir): Likewise.
18468         * tests/test-mkdirat.c (mkdirat): Likewise.
18469         * tests/test-mkfifo.c (mkfifo): Likewise.
18470         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
18471         * tests/test-mknod.c (mknod): Likewise.
18472         * tests/test-nanosleep.c (nanosleep): Likewise.
18473         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
18474         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
18475         Likewise.
18476         * tests/test-open.c (open): Likewise.
18477         * tests/test-openat.c (openat): Likewise.
18478         * tests/test-perror.c (perror): Likewise.
18479         * tests/test-pipe2.c (pipe2): Likewise.
18480         * tests/test-poll.c (poll): Likewise.
18481         * tests/test-popen.c (popen, pclose): Likewise.
18482         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
18483         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
18484         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
18485         (posix_spawn_file_actions_destroy)
18486         (posix_spawn_file_actions_addclose)
18487         (posix_spawn_file_actions_addopen)
18488         (posix_spawn_file_actions_adddup2): Likewise.
18489         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
18490         * tests/test-pread.c (pread): Likewise.
18491         * tests/test-printf-posix.c (printf): Likewise.
18492         * tests/test-pty.c (openpty, forkpty): Likewise.
18493         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
18494         (random_r): Likewise.
18495         * tests/test-rawmemchr.c (rawmemchr): Likewise.
18496         * tests/test-readlink.c (readlink): Likewise.
18497         * tests/test-remove.c (remove): Likewise.
18498         * tests/test-rename.c (rename): Likewise.
18499         * tests/test-renameat.c (renameat): Likewise.
18500         * tests/test-rmdir.c (rmdir): Likewise.
18501         * tests/test-round1.c (round): Likewise.
18502         * tests/test-roundf1.c (roundf): Likewise.
18503         * tests/test-roundl.c (roundl): Likewise.
18504         * tests/test-setenv.c (setenv): Likewise.
18505         * tests/test-sigaction.c (sigaction): Likewise.
18506         * tests/test-sleep.c (sleep): Likewise.
18507         * tests/test-snprintf.c (snprintf): Likewise.
18508         * tests/test-sprintf-posix.c (sprintf): Likewise.
18509         * tests/test-stat.c (stat): Likewise.
18510         * tests/test-stpncpy.c (stpncpy): Likewise.
18511         * tests/test-strcasestr.c (strcasestr): Likewise.
18512         * tests/test-strchrnul.c (strchrnul): Likewise.
18513         * tests/test-strerror.c (strerror): Likewise.
18514         * tests/test-strsignal.c (strsignal): Likewise.
18515         * tests/test-strstr.c (strstr): Likewise.
18516         * tests/test-strtod.c (strtod): Likewise.
18517         * tests/test-strverscmp.c (strverscmp): Likewise.
18518         * tests/test-symlink.c (symlink): Likewise.
18519         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
18520         * tests/test-times.c (times): Likewise.
18521         * tests/test-trunc1.c (trunc): Likewise.
18522         * tests/test-truncf1.c (truncf): Likewise.
18523         * tests/test-truncl.c (truncl): Likewise.
18524         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
18525         Likewise.
18526         * tests/test-uname.c (uname): Likewise.
18527         * tests/test-unlink.c (unlink): Likewise.
18528         * tests/test-unlinkat.c (unlinkat): Likewise.
18529         * tests/test-unsetenv.c (unsetenv): Likewise.
18530         * tests/test-usleep.c (usleep): Likewise.
18531         * tests/test-utimensat.c (utimensat): Likewise.
18532         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
18533         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
18534         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
18535         * tests/test-vprintf-posix.c (vprintf): Likewise.
18536         * tests/test-vsnprintf.c (vsnprintf): Likewise.
18537         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
18538         * tests/test-wcrtomb.c (wcrtomb): Likewise.
18539         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
18540         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
18541         * tests/test-wcwidth.c (wcwidth): Likewise.
18542
18543         build: pull in conditional headers during GNULIB_POSIXCHECK
18544         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
18545         definitions from any conditionally-included headers.
18546         * lib/stdlib.in.h (includes): Likewise.
18547         * lib/unistd.in.h (includes): Likewise.
18548
18549 2009-12-24  Bruno Haible  <bruno@clisp.org>
18550
18551         * tests/test-argv-iter.c: Include header file being tested immediately
18552         after config.h.
18553         * tests/test-base64.c: Likewise.
18554         * tests/test-flock.c: Likewise.
18555         * tests/test-fsync.c: Likewise.
18556         * tests/test-getdate.c: Likewise.
18557         * tests/test-getndelim2.c: Likewise.
18558         * tests/test-isfinite.c: Likewise.
18559         * tests/test-isinf.c: Likewise.
18560         * tests/test-strerror.c: Likewise.
18561         * tests/test-strsignal.c: Likewise.
18562
18563 2009-12-23  Eric Blake  <ebb9@byu.net>
18564
18565         unistd: work around cygwin bug
18566         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
18567         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
18568         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
18569
18570 2009-12-23  Bruno Haible  <bruno@clisp.org>
18571
18572         localename: More tests.
18573         * tests/test-localename.c (SIZEOF): New macro.
18574         (categories): New variable.
18575         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
18576         test_locale_name_default): Add test w.r.t. thread locale.
18577         (test_locale_name_thread): New function.
18578         (main): Invoke it.
18579
18580         localename: Make aware of thread locale.
18581         * lib/localename.h (gl_locale_name_thread): New declaration.
18582         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
18583         behaviour with respect to thread locale.
18584         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
18585         <langinfo.h>, glthread/lock.h.
18586         (SIZE_BITS): New macro.
18587         (string_hash): New function.
18588         (struct hash_node): New type.
18589         (HASH_TABLE_SIZE): New macro.
18590         (struniq_hash_table, struniq_lock): New variables.
18591         (struniq): New function.
18592         (gl_locale_name_thread): New function.
18593         (gl_locale_name): Invoke it.
18594         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
18595         * modules/localename (Depends-on): Add lock.
18596         Reported by Mike Gran <spk121@yahoo.com>.
18597
18598 2009-12-23  Eric Blake  <ebb9@byu.net>
18599
18600         va-args: new module
18601         * modules/va-args: New file.
18602         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
18603         * MODULES.html.sh (Core language properties): Mention it.
18604
18605         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
18606         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
18607         named alias for __attribute__((__unused__)).
18608         * lib/chown.c: Update client.
18609         * lib/fchmodat.c: Likewise.
18610         * lib/fts.c: Likewise.
18611         * lib/getdate.y: Likewise.
18612         * lib/getgroups.c: Likewise.
18613         * lib/getopt.c: Likewise.
18614         * lib/getugroups.c: Likewise.
18615         * lib/mkdir.c: Likewise.
18616         * lib/mkfifo.c: Likewise.
18617         * lib/mkfifoat.c: Likewise.
18618         * lib/mknod.c: Likewise.
18619         * lib/mknodat.c: Likewise.
18620         * lib/readlink.c: Likewise.
18621         * lib/se-context.in.h: Likewise.
18622         * lib/se-selinux.in.h: Likewise.
18623         * lib/sockets.c: Likewise.
18624         * lib/symlink.c: Likewise.
18625         * lib/symlinkat.c: Likewise.
18626         * lib/unicodeio.c: Likewise.
18627         * lib/unistr.h: Likewise.
18628         * tests/test-areadlink.c: Likewise.
18629         * tests/test-areadlinkat.c: Likewise.
18630         * tests/test-filenamecat.c: Likewise.
18631         * tests/test-fseeko.c: Likewise.
18632         * tests/test-ftello.c: Likewise.
18633         * tests/test-getdate.c: Likewise.
18634         * tests/test-getgroups.c: Likewise.
18635         * tests/test-gethostname.c: Likewise.
18636         * tests/test-quotearg.c: Likewise.
18637         * tests/test-version-etc.c: Likewise.
18638         * tests/test-xalloc-die.c: Likewise.
18639         * tests/test-xfprintf-posix.c: Likewise.
18640         * tests/test-xprintf-posix.c: Likewise.
18641         * tests/test-xvasprintf.c: Likewise.
18642
18643         tests: avoid compiler warnings
18644         * tests/test-fcntl.c (main): Delete unused parameters.
18645         * tests/test-freopen-safer.c (main): Likewise.
18646         * tests/test-xalloc-die.c (main): Mark unused parameters.
18647         * tests/test-fseeko.c (main): Likewise.
18648         * tests/test-ftello.c (main): Likewise.
18649         * tests/test-nanosleep.c (main): Avoid declaration warning.
18650         * tests/test-sleep.c (main): Likewise.
18651         * tests/test-unsetenv.c (main): Silence warning about string
18652         literal.
18653         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
18654
18655 2009-12-23  Bruno Haible  <bruno@clisp.org>
18656
18657         * tests/test-localename.c (test_locale_name): New function, extracted
18658         from main. Also test mixed situations.
18659         (test_locale_name_posix, test_locale_name_environ,
18660         test_locale_name_default): New functions.
18661         (main): Invoke them all.
18662         * modules/localename-tests (configure.ac): Test for newlocale.
18663
18664 2009-12-23  Bruno Haible  <bruno@clisp.org>
18665
18666         unistd: Ensure getcwd gets declared before being overridden.
18667         * lib/unistd.in.h: Conditionally include <io.h>.
18668
18669 2009-12-22  Bruno Haible  <bruno@clisp.org>
18670
18671         wchar: Diagnose broken combination of glibc and gcc versions and flags.
18672         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
18673         (gl_WCHAR_H): Invoke it.
18674         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
18675         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
18676         Reported by Karl Berry <karl@freefriends.org>.
18677
18678 2009-12-22  Eric Blake  <ebb9@byu.net>
18679
18680         math, unistd: avoid redundant includes
18681         * lib/math.in.h (isnan): No need to re-include <math.h>.
18682         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
18683
18684         getsubopt: work around cygwin bug
18685         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
18686         avoid conflicting with system getsubopt.
18687         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
18688         bug.
18689
18690         getopt: synchronize from glibc
18691         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
18692         parameter order.  Adjust all callers.
18693         (_getopt_internal_r, main): Adjust quoting in error messages.
18694         Drop considerations for outdated POSIX 1003.2 error message.
18695         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
18696         callers.
18697         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
18698
18699         test-getopt: test stderr behavior
18700         * modules/getopt-posix-tests (Depends-on): Add dup2.
18701         * tests/test-getopt.c (ASSERT): Avoid stderr.
18702         (main): Move stderr to a temporary file.
18703         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
18704         Instead, add parameter to inform caller if output occurred.
18705         (test_getopt): Adjust all existing tests to expect silence, and
18706         add new tests of leading ":".
18707         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
18708         glibc shortcomings with leading "-:" or "+:" in optstring.
18709         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
18710         Likewise.
18711         * doc/posix-functions/getopt.texi (getopt): Likewise.
18712
18713         test-getopt: enhance test
18714         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
18715         supports optind=0.
18716         * tests/test-getopt.c (OPTIND_MIN): Move...
18717         * tests/test-getopt.h (OPTIND_MIN): ...here.
18718         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
18719         Require that optind=0 works, since modern BSD supports it in
18720         addition to optreset, and since coreutils expects it.
18721         (test_getopt_long_only): New test.
18722         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
18723         glibc shortcomings with 'W;', and enforcement of optind=0.
18724         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
18725         Likewise.
18726
18727 2009-12-21  Bruno Haible  <bruno@clisp.org>
18728
18729         localename: Improvements for MacOS X and Cygwin.
18730         * lib/localename.h (gl_locale_name_environ): New declaration.
18731         * lib/localename.c (gl_locale_name_environ): New function, extracted from
18732         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
18733         (gl_locale_name_posix): Invoke it.
18734         (gl_locale_name_default): Add comments. Use Windows native API also on
18735         Cygwin.
18736
18737 2009-12-21  Bruno Haible  <bruno@clisp.org>
18738
18739         Update list of Win32 locale ids.
18740         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
18741         (LANG_SAMI): Renamed from LANG_SAAMI.
18742         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
18743         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
18744         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
18745         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
18746         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
18747         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
18748         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
18749         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
18750         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
18751         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
18752         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
18753         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
18754         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
18755         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
18756         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
18757         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
18758         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
18759         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
18760         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
18761         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
18762         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
18763         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
18764         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
18765         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
18766         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
18767         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
18768         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
18769         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
18770         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
18771         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
18772         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
18773         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
18774         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
18775         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
18776         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
18777         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
18778         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
18779         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
18780         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
18781         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
18782         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
18783         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
18784         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
18785         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
18786         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
18787         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
18788         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
18789         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
18790         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
18791         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
18792         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
18793         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
18794         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
18795         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
18796         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
18797         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
18798         Add more languages and countries for Sami, Sorbian. Add more countries
18799         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
18800         for Pashto. Change country for Syriac, Tswana.
18801
18802 2009-12-21  Eric Blake  <ebb9@byu.net>
18803
18804         test-utimens: avoid spurious failure
18805         * tests/test-chown.h (nap): Factor...
18806         * tests/nap.h: ...into new file.
18807         * tests/test-lchown.h (nap): Avoid duplication.
18808         * tests/test-utimens-common.h (nap): Use shared implementation,
18809         necessary on file systems with 1-second resolution.
18810         * modules/chown-tests (Files): Include new file.
18811         * modules/fdutimensat-tests (Files): Likewise.
18812         * modules/futimens-tests (Files): Likewise.
18813         * modules/lchown-tests (Files): Likewise.
18814         * modules/openat-tests (Files): Likewise.
18815         * modules/utimens-tests (Files): Likewise.
18816         * modules/utimensat-tests (Files): Likewise.
18817
18818 2009-12-19  Eric Blake  <ebb9@byu.net>
18819
18820         futimens, utimensat: work around Linux bug
18821         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
18822         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
18823         * lib/utimensat.c (rpl_utimensat): Work around it.
18824         * lib/futimens.c (rpl_futimens): Adjust comment.
18825
18826         utimens: work around Linux ctime bug
18827         * lib/utimens.c (detect_ctime_bug): New helper function.
18828         (update_timespec): Differentiate between workaround needed for
18829         this bug vs. what is needed for systems that lack utimensat.
18830         (fdutimens, lutimens): Work around bug.
18831
18832         utimens: check for ctime update
18833         * tests/test-utimens-common.h (check_ctime): Define.
18834         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
18835         * tests/test-futimens.h (test_futimens): Likewise.
18836         * tests/test-lutimens.h (test_lutimens): Likewise.
18837         * doc/posix-functions/futimens.texi (futimens): Document the bug.
18838         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
18839
18840 2009-12-19  Bruno Haible  <bruno@clisp.org>
18841
18842         dprintf-posix: Check against memory leak fixed on 2009-12-15.
18843         * tests/test-dprintf-posix2.sh: New file.
18844         * tests/test-dprintf-posix2.c: New file.
18845         * modules/dprintf-posix-tests (Files): Add them.
18846         (configure.ac): Check for getrlimit and setrlimit.
18847         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
18848
18849 2009-12-19  Bruno Haible  <bruno@clisp.org>
18850
18851         fprintf-posix: Check against memory leak fixed on 2009-12-15.
18852         * tests/test-fprintf-posix3.sh: New file.
18853         * tests/test-fprintf-posix3.c: New file.
18854         * modules/fprintf-posix-tests (Files): Add them.
18855         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
18856
18857 2009-12-19  Eric Blake  <ebb9@byu.net>
18858
18859         dirfd: fix prototype
18860         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
18861         * lib/dirfd.c (dirfd): Likewise.
18862
18863         canonicalize: reduce memory usage
18864         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
18865         allocation to size.
18866         Reported by Solar Designer <solar@openwall.com>.
18867
18868 2009-12-19  Bruno Haible  <bruno@clisp.org>
18869
18870         New module attribute 'Applicability'.
18871         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
18872         * gnulib-tool: New option --extract-applicability.
18873         (func_usage): Document it.
18874         (sed_extract_prog): Recognize it.
18875         (func_get_applicability): New function.
18876         (func_import): Generalize handling of 'link-warning' module.
18877         * modules/link-warning (Applicability): New section.
18878         * modules/arg-nonnull (Applicability): New section.
18879         Repoted by Simon Josefsson <simon@josefsson.org>.
18880
18881 2009-12-19  Bruno Haible  <bruno@clisp.org>
18882
18883         fflush: tweak
18884         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
18885         * lib/fseeko.c (rpl_fseeko): Likewise.
18886
18887 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
18888
18889         * lib/gl_list.h: Fix typo in comment.
18890
18891 2009-12-16  Eric Blake  <ebb9@byu.net>
18892
18893         fcntl: use to simplify other modules
18894         * modules/cloexec (Depends-on): Add fcntl.
18895         * modules/fchdir (Depends-on): Likewise.
18896         * modules/fd-safer-flag (Depends-on): Likewise.
18897         * modules/unistd-safer (Depends-on): Likewise.
18898         * modules/dup3 (configure.ac): Set module indicator.
18899         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
18900         missing.
18901         * lib/fchdir.c (_gl_register_dup): Fix comment.
18902         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
18903         * lib/dup-safer.c (dup_safer): Likewise.
18904         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
18905         * lib/dup3.c (dup3): Likewise.
18906         * tests/test-fchdir.c (main): Enhance test.
18907         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
18908
18909         fcntl: port portions of fcntl to mingw
18910         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
18911         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
18912         replacement for mingw.
18913         * modules/fcntl (Description): Update.
18914         (Depends-on): Add dup2.
18915         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
18916         * modules/fcntl-h (Makefile.am): Substitute it.
18917         * lib/fcntl.in.h (fcntl): Update declaration.
18918         (F_DUPFD, F_GETFD): New macros, when needed.
18919         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
18920         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
18921         * tests/test-fcntl.c (check_flags, main): Enhance test for items
18922         we now guarantee.
18923
18924         fcntl: work around cygwin bug in F_DUPFD
18925         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
18926         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
18927         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
18928         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
18929         * doc/posix-functions/fcntl.texi (fcntl): Document it.
18930
18931         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
18932         * modules/fcntl (Files): List new files.
18933         (configure.ac): Run a test.
18934         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
18935         * lib/fcntl.c (rpl_fcntl): Likewise.
18936         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
18937         (gl_FCNTL_H): Always replace fcntl.h.
18938         * modules/fcntl-h (Makefile.am): Substitute witnesses.
18939         * lib/fcntl.in.h (fcntl): Declare replacement.
18940         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
18941         needed, plus a witness.
18942         * doc/posix-functions/fcntl.texi (fcntl): Document this.
18943         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
18944         * tests/test-fcntl.c: New file.
18945         * modules/fcntl-tests: Likewise.
18946
18947         binary-io: avoid potential compilation warning
18948         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
18949         directives.
18950
18951         fflush: avoid compilation error on NetBSD
18952         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
18953         between off_t and fpos_t, since the latter is sometimes a struct.
18954         * lib/fseeko.c (rpl_fseeko): Likewise.
18955         Reported by Alexander Nasonov <alnsn@yandex.ru>.
18956
18957 2009-12-15  Eric Blake  <ebb9@byu.net>
18958
18959         fcntl-h, stdio, sys_ioctl: fix declarations
18960         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
18961         function must not take arguments.
18962         * lib/sys_ioctl.in.h (ioctl): Likewise.
18963         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
18964         (open): Add a link warning.
18965
18966 2009-12-15  Jim Meyering  <meyering@redhat.com>
18967
18968         areadlink, areadlink-with-size: relax license to LGPLv2+
18969         * modules/areadlink (License): Relax to LGPLv2+.
18970         * modules/areadlink-with-size (License): Likewise.
18971
18972 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
18973             Bruno Haible  <bruno@clisp.org>
18974
18975         *printf: Fix memory leak.
18976         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
18977         * lib/vfprintf.c (vfprintf): Likewise.
18978         * lib/dprintf.c (dprintf): Likewise.
18979         * lib/vdprintf.c (vdprintf): Likewise.
18980
18981 2009-12-14  Eric Blake  <ebb9@byu.net>
18982
18983         accept4: adjust module dependencies
18984         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
18985
18986         utimens: one more try at avoiding compiler warning
18987         * lib/utimens.c (lutimens): Lower scope of result.
18988
18989 2009-12-13  Bruno Haible  <bruno@clisp.org>
18990
18991         Move the malloc checking from module 'list' to new module 'xlist'.
18992         * modules/xlist: New file.
18993         * lib/gl_xlist.h: New file.
18994         * lib/gl_xlist.c: New file.
18995         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
18996         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
18997         gl_list_add_last, gl_list_add_before, gl_list_add_after,
18998         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
18999         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
19000         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
19001         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
19002         gl_sortedlist_nx_add): New declarations.
19003         (struct gl_list_implementation): Rename and change methods accordingly.
19004         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
19005         (gl_list_nx_create): Renamed from gl_list_create.
19006         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
19007         (gl_list_nx_set_at): Renamed from gl_list_set_at.
19008         (gl_list_nx_add_first): Renamed from gl_list_add_first.
19009         (gl_list_nx_add_last): Renamed from gl_list_add_last.
19010         (gl_list_nx_add_before): Renamed from gl_list_add_before.
19011         (gl_list_nx_add_after): Renamed from gl_list_add_after.
19012         (gl_list_nx_add_at): Renamed from gl_list_add_at.
19013         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
19014         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
19015         gl_list_create_empty.
19016         (gl_list_nx_create): Renamed from gl_list_create.
19017         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
19018         (gl_list_nx_set_at): Renamed from gl_list_set_at.
19019         (gl_list_nx_add_first): Renamed from gl_list_add_first.
19020         (gl_list_nx_add_last): Renamed from gl_list_add_last.
19021         (gl_list_nx_add_before): Renamed from gl_list_add_before.
19022         (gl_list_nx_add_after): Renamed from gl_list_add_after.
19023         (gl_list_nx_add_at): Renamed from gl_list_add_at.
19024         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
19025         * lib/gl_array_list.c: Don't include xalloc.h.
19026         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
19027         NULL upon out-of-memory.
19028         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
19029         out-of-memory.
19030         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
19031         Change return type to 'int'.
19032         (gl_array_nx_set_at): Renamed from gl_array_set_at.
19033         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
19034         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
19035         upon out-of-memory.
19036         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
19037         upon out-of-memory.
19038         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
19039         upon out-of-memory.
19040         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
19041         upon out-of-memory.
19042         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
19043         out-of-memory.
19044         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
19045         Update.
19046         (gl_array_list_implementation): Update.
19047         * lib/gl_carray_list.c: Don't include xalloc.h.
19048         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
19049         Return NULL upon out-of-memory.
19050         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
19051         out-of-memory.
19052         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
19053         Change return type to 'int'.
19054         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
19055         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
19056         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
19057         upon out-of-memory.
19058         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
19059         upon out-of-memory.
19060         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
19061         out-of-memory.
19062         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
19063         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
19064         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
19065         Update.
19066         (gl_carray_list_implementation): Update.
19067         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
19068         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
19069         gl_linked_create_empty. Return NULL upon out-of-memory.
19070         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
19071         out-of-memory.
19072         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
19073         Change return type to 'int'. Return -1 upon out-of-memory.
19074         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
19075         out-of-memory.
19076         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
19077         upon out-of-memory.
19078         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
19079         upon out-of-memory.
19080         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
19081         NULL upon out-of-memory.
19082         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
19083         upon out-of-memory.
19084         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
19085         out-of-memory.
19086         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
19087         Update.
19088         * lib/gl_linked_list.c: Don't include xalloc.h.
19089         (gl_linked_list_implementation): Update.
19090         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
19091         (add_to_bucket): Change return type to 'int'.
19092         (gl_linkedhash_list_implementation): Update.
19093         * lib/gl_anytree_list1.h (free_subtree): New function.
19094         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
19095         gl_tree_create_empty. Return NULL upon out-of-memory.
19096         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
19097         Change return type to 'int'. Return -1 upon out-of-memory.
19098         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
19099         out-of-memory.
19100         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
19101         (gl_tree_remove_node): New function, moved here from
19102         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
19103         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
19104         Update.
19105         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
19106         malloc, not xmalloc. Return NULL upon out-of-memory.
19107         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
19108         out-of-memory.
19109         (gl_tree_remove_node_from_tree): New function, extracted from
19110         gl_tree_remove_node.
19111         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
19112         upon out-of-memory.
19113         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
19114         out-of-memory.
19115         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
19116         upon out-of-memory.
19117         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
19118         upon out-of-memory.
19119         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
19120         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
19121         not xmalloc. Return NULL upon out-of-memory.
19122         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
19123         out-of-memory.
19124         (gl_tree_remove_node_from_tree): New function, extracted from
19125         gl_tree_remove_node.
19126         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
19127         upon out-of-memory.
19128         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
19129         out-of-memory.
19130         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
19131         upon out-of-memory.
19132         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
19133         upon out-of-memory.
19134         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
19135         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
19136         gl_anytree_list1.h before gl_anyavltree_list2.h.
19137         (gl_avltree_list_implementation): Update.
19138         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
19139         gl_anytree_list1.h before gl_anyavltree_list2.h.
19140         (gl_rbtree_list_implementation): Update.
19141         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
19142         Change return type to 'int'. Return -1 upon out-of-memory. Use
19143         __builtin_expect.
19144         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
19145         (gl_avltreehash_list_implementation): Update.
19146         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
19147         (gl_rbtreehash_list_implementation): Update.
19148         * modules/array-list (Depends-on): Remove xalloc.
19149         * modules/carray-list (Depends-on): Likewise.
19150         * modules/linked-list (Depends-on): Likewise.
19151         * modules/linkedhash-list (Depends-on): Likewise.
19152         * modules/avltree-list (Depends-on): Likewise.
19153         * modules/rbtree-list (Depends-on): Likewise.
19154         * modules/avltreehash-list (Depends-on): Likewise.
19155         * modules/rbtreehash-list (Depends-on): Likewise.
19156
19157         * modules/xsublist: New file.
19158         * lib/gl_xsublist.h: New file.
19159         * lib/gl_xsublist.c: New file.
19160         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
19161         (gl_sublist_nx_create): New declaration.
19162         * lib/gl_sublist.c: Don't include xalloc.h.
19163         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
19164         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
19165         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
19166         Change return type to 'int'. Return -1 upon out-of-memory.
19167         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
19168         upon out-of-memory.
19169         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
19170         NULL upon out-of-memory.
19171         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
19172         upon out-of-memory.
19173         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
19174         NULL upon out-of-memory.
19175         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
19176         NULL upon out-of-memory.
19177         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
19178         upon out-of-memory.
19179         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
19180         (gl_sublist_list_implementation): Update.
19181         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
19182         upon out-of-memory.
19183         * modules/sublist (Depends-on): Remove xalloc.
19184
19185         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
19186         * tests/test-carray_list.c: Likewise.
19187         * tests/test-linked_list.c: Likewise.
19188         * tests/test-linkedhash_list.c: Likewise.
19189         * tests/test-avltree_list.c: Likewise.
19190         * tests/test-rbtree_list.c: Likewise.
19191         * tests/test-avltreehash_list.c: Likewise.
19192         * tests/test-rbtreehash_list.c: Likewise.
19193         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
19194         * modules/carray-list-tests (Makefile.am): Likewise.
19195         * modules/linked-list-tests (Makefile.am): Likewise.
19196         * modules/linkedhash-list-tests (Makefile.am): Likewise.
19197         * modules/avltree-list-tests (Makefile.am): Likewise.
19198         * modules/rbtree-list-tests (Makefile.am): Likewise.
19199         * modules/avltreehash-list-tests (Makefile.am): Likewise.
19200         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
19201
19202         * NEWS: Mention the changes.
19203
19204         * lib/clean-temp.c: Include gl_xlist.h.
19205         * modules/clean-temp (Depends-on): Add xlist.
19206
19207         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
19208         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
19209
19210         * tests/test-array_oset.c: Include gl_xlist.h.
19211         * modules/array-oset-tests (Depends-on): Add xlist.
19212
19213         Reported by José E. Marchesi <jemarch@gnu.org>.
19214
19215 2009-12-13  Bruno Haible  <bruno@clisp.org>
19216
19217         Move the malloc checking from module 'oset' to new module 'xoset'.
19218         * modules/xoset: New file.
19219         * lib/gl_xoset.h: New file.
19220         * lib/gl_xoset.c: New file.
19221         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
19222         declarations.
19223         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
19224         (struct gl_oset_implementation): Rename and change methods accordingly.
19225         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
19226         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
19227         'int'. Mark as __warn_unused_result__.
19228         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
19229         gl_oset_create_empty.
19230         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
19231         'int'.
19232         * lib/gl_array_oset.c: Don't include xalloc.h.
19233         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
19234         malloc, not xmalloc.
19235         (grow): Change return type to 'int'. Don't call xalloc_die.
19236         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
19237         to 'int'.
19238         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
19239         'int'.
19240         (gl_array_oset_implementation): Update.
19241         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
19242         gl_tree_create_empty.
19243         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
19244         'int'.
19245         * lib/gl_avltree_oset.c: Don't include xalloc.h.
19246         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
19247         xmalloc.
19248         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
19249         not xmalloc.
19250         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
19251         xmalloc.
19252         (gl_avltree_oset_implementation): Update.
19253         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
19254         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
19255         xmalloc.
19256         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
19257         not xmalloc.
19258         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
19259         xmalloc.
19260         (gl_rbtree_oset_implementation): Update.
19261         * modules/array-oset (Depends-on): Remove xalloc.
19262         * modules/avltree-oset (Depends-on): Likewise.
19263         * modules/rbtree-oset (Depends-on): Likewise.
19264         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
19265         * tests/test-avltree_oset.c: Likewise.
19266         * tests/test-rbtree_oset.c: Likewise.
19267         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
19268         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
19269         * modules/rbtree-oset-tests (Makefile.am): Likewise.
19270         * NEWS: Mention the change.
19271
19272 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
19273
19274         maint.mk: allow a project to override release-prep commands
19275         * top/maint.mk (alpha, beta, stable): Move release-preparatory
19276         commands into a new rule.
19277         (release-prep): New rule.
19278         (release-prep-hook): New overridable variable.
19279
19280 2009-12-13  Bruno Haible  <bruno@clisp.org>
19281
19282         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
19283
19284 2009-12-13  Jim Meyering  <meyering@redhat.com>
19285
19286         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
19287         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
19288
19289 2009-12-12  Bruno Haible  <bruno@clisp.org>
19290
19291         duplocale: Tweak.
19292         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
19293
19294 2009-12-12  Karl Berry  <karl@gnu.org>
19295
19296         * config/srclist.txt (strtoll.c): tab changes, no more sync.
19297
19298 2009-12-12  Bruno Haible  <bruno@clisp.org>
19299
19300         * m4/po.m4: Undo incorrect untabification.
19301
19302 2009-12-12  Bruno Haible  <bruno@clisp.org>
19303
19304         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
19305         * modules/c-strtod (Depends-on): Add locale.
19306         * modules/c-strtold (Depends-on): Likewise.
19307
19308 2009-12-12  Bruno Haible  <bruno@clisp.org>
19309
19310         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
19311
19312 2009-12-11  Eric Blake  <ebb9@byu.net>
19313
19314         setenv: relax requirement in light of POSIX ruling
19315         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
19316         not NULL.
19317         * tests/test-setenv.c (main): Relax test.
19318         * tests/test-unsetenv.c (main): Likewise.
19319         * doc/posix-functions/setenv.texi (setenv): Document this.
19320         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
19321
19322 2009-12-11  Bruno Haible  <bruno@clisp.org>
19323
19324         New module 'fd-safer-flag'.
19325         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
19326         * lib/dup-safer.c (dup_safer_flag): Remove function.
19327         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
19328         * lib/fd-safer.c (fd_safer_flag): Remove function.
19329         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
19330         * modules/cloexec (configure.ac): Drop indicator macro.
19331         * modules/fd-safer-flag: New file.
19332         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
19333         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
19334         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
19335
19336 2009-12-11  Bruno Haible  <bruno@clisp.org>
19337
19338         Tests for module 'nl_langinfo'.
19339         * modules/nl_langinfo-tests: New file.
19340         * tests/test-nl_langinfo.sh: New file.
19341         * tests/test-nl_langinfo.c: New file.
19342
19343         New module 'nl_langinfo'.
19344         * lib/nl_langinfo.c: New file.
19345         * m4/nl_langinfo.m4: New file.
19346         * modules/nl_langinfo: New file.
19347         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
19348
19349 2009-12-11  Bruno Haible  <bruno@clisp.org>
19350
19351         Tests for module 'langinfo'.
19352         * modules/langinfo-tests: New file.
19353         * tests/test-langinfo.c: New file.
19354
19355         New module 'langinfo'.
19356         * lib/langinfo.in.h: New file.
19357         * m4/langinfo_h.m4: New file.
19358         * modules/langinfo: New file.
19359         * doc/posix-headers/langinfo.texi: Mention the new module.
19360
19361 2009-12-11  Bruno Haible  <bruno@clisp.org>
19362
19363         * lib/config.charset: Untabify.
19364
19365 2009-12-11  Bruno Haible  <bruno@clisp.org>
19366
19367         * modules/unistd-safer (configure.ac): Drop indicator macro.
19368
19369 2009-12-11  Bruno Haible  <bruno@clisp.org>
19370
19371         Move pipe2-safer code to its own file.
19372         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
19373         * lib/pipe-safer.c (pipe2_safer): Remove function.
19374         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
19375         (Makefile.am): Add it to lib_SOURCES.
19376
19377 2009-12-10  Bruno Haible  <bruno@clisp.org>
19378
19379         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
19380
19381 2009-12-10  Bruno Haible  <bruno@clisp.org>
19382
19383         Declare which arguments expect non-NULL values, for GCC and clang.
19384         * build-aux/arg-nonnull.h: New file.
19385         * modules/arg-nonnull: New file.
19386         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
19387         (inet_ntop, inet_pton): Use it.
19388         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
19389         (closedir, dirfd, opendir, scandir, alphasort): Use it.
19390         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
19391         (open, openat): Use it.
19392         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
19393         (fnmatch): Use it.
19394         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
19395         (getopt, getopt_long, getopt_long_only): Use it.
19396         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
19397         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
19398         Use it.
19399         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
19400         (iconv_open): Use it.
19401         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
19402         (strtoimax, strtoumax): Use it.
19403         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
19404         (duplocale): Use it.
19405         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
19406         (frexp, frexpl): Use it.
19407         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
19408         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
19409         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
19410         (tsearch, tfind, tdelete, twalk): Use it.
19411         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
19412         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
19413         sigpending): Use it.
19414         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
19415         (posix_spawn, posix_spawnp, posix_spawnattr_init,
19416         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
19417         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
19418         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
19419         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
19420         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
19421         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
19422         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
19423         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
19424         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
19425         Use it.
19426         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
19427         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
19428         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
19429         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
19430         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
19431         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
19432         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
19433         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
19434         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
19435         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
19436         strtoull, unsetenv): Use it.
19437         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
19438         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
19439         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
19440         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
19441         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
19442         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
19443         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
19444         (strcasecmp, strncasecmp): Use it.
19445         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
19446         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
19447         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
19448         rpl_setsockopt): Use it.
19449         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
19450         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
19451         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
19452         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
19453         (gettimeofday): Use it.
19454         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
19455         (times): Use it.
19456         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
19457         (uname): Use it.
19458         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
19459         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
19460         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
19461         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
19462         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
19463         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
19464         unlinkat, write): Use it.
19465         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
19466         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
19467         * lib/argv-iter.h: Include arg-nonnull.h.
19468         (_ATTRIBUTE_NONNULL_): Remove macro.
19469         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
19470         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
19471         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
19472         optimization.
19473         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
19474         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
19475         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
19476         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
19477         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
19478         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
19479         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
19480         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
19481         * modules/arpa_inet (Depends-on): Add arg-nonnull.
19482         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
19483         * modules/dirent (Depends-on): Add arg-nonnull.
19484         (Makefile.am): Insert arg-nonnull.h into dirent.h.
19485         * modules/fcntl-h (Depends-on): Add arg-nonnull.
19486         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
19487         * modules/fnmatch (Depends-on): Add arg-nonnull.
19488         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
19489         * modules/getopt-posix (Depends-on): Add arg-nonnull.
19490         (Makefile.am): Insert arg-nonnull.h into getopt.h.
19491         * modules/glob (Depends-on): Add arg-nonnull.
19492         (Makefile.am): Insert arg-nonnull.h into glob.h.
19493         * modules/iconv_open (Depends-on): Add arg-nonnull.
19494         (Makefile.am): Insert arg-nonnull.h into iconv.h.
19495         * modules/inttypes (Depends-on): Add arg-nonnull.
19496         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
19497         * modules/locale (Depends-on): Add arg-nonnull.
19498         (Makefile.am): Insert arg-nonnull.h into locale.h.
19499         * modules/math (Depends-on): Add arg-nonnull.
19500         (Makefile.am): Insert arg-nonnull.h into math.h.
19501         * modules/netdb (Depends-on): Add arg-nonnull.
19502         (Makefile.am): Insert arg-nonnull.h into netdb.h.
19503         * modules/search (Depends-on): Add arg-nonnull.
19504         (Makefile.am): Insert arg-nonnull.h into search.h.
19505         * modules/signal (Depends-on): Add arg-nonnull.
19506         (Makefile.am): Insert arg-nonnull.h into signal.h.
19507         * modules/spawn (Depends-on): Add arg-nonnull.
19508         (Makefile.am): Insert arg-nonnull.h into spawn.h.
19509         * modules/stdio (Depends-on): Add arg-nonnull.
19510         (Makefile.am): Insert arg-nonnull.h into stdio.h.
19511         * modules/stdlib (Depends-on): Add arg-nonnull.
19512         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
19513         * modules/string (Depends-on): Add arg-nonnull.
19514         (Makefile.am): Insert arg-nonnull.h into string.h.
19515         * modules/strings (Depends-on): Add arg-nonnull.
19516         (Makefile.am): Insert arg-nonnull.h into strings.h.
19517         * modules/sys_socket (Depends-on): Add arg-nonnull.
19518         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
19519         * modules/sys_stat (Depends-on): Add arg-nonnull.
19520         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
19521         * modules/sys_time (Depends-on): Add arg-nonnull.
19522         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
19523         * modules/sys_times (Depends-on): Add arg-nonnull.
19524         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
19525         * modules/sys_utsname (Depends-on): Add arg-nonnull.
19526         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
19527         * modules/time (Depends-on): Add arg-nonnull.
19528         (Makefile.am): Insert arg-nonnull.h into time.h.
19529         * modules/unistd (Depends-on): Add arg-nonnull.
19530         (Makefile.am): Insert arg-nonnull.h into unistd.h.
19531         * modules/wchar (Depends-on): Add arg-nonnull.
19532         (Makefile.am): Insert arg-nonnull.h into wchar.h.
19533         * modules/argv-iter (Depends-on): Add arg-nonnull.
19534         * tests/test-canonicalize.c (null_ptr): New function.
19535         (main): Use it.
19536         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
19537         (main): Use it.
19538         * tests/test-memmem.c (null_ptr): New function.
19539         (main): Use it.
19540         Reported by Jim Meyering.
19541
19542 2009-12-10  Bruno Haible  <bruno@clisp.org>
19543
19544         Use spaces for indentation, not tabs.
19545         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
19546         * m4/*.m4: Untabify.
19547         * build-aux/*.h: Untabify.
19548         * tests/**/*.[hc]: Untabify.
19549         * README: New section "Indent with spaces, not TABs", based on
19550         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
19551         * NEWS: Mention the change.
19552
19553 2009-12-10  Bruno Haible  <bruno@clisp.org>
19554
19555         pty test: Fix link error.
19556         * modules/pty-tests (Makefile.am): Add the default LDADD value to
19557         test_pty_LDADD.
19558
19559 2009-12-07  Simon Josefsson  <simon@josefsson.org>
19560
19561         * modules/pty: New file.
19562         * modules/pty-tests: New file.
19563         * m4/pty.m4: New file.
19564         * tests/test-pty.c: New file.
19565         * doc/glibc-headers/pty.texi: Modified.
19566         * doc/glibc-functions/forkpty.texi: Modified.
19567         * doc/glibc-functions/openpty.texi: Modified.
19568
19569 2009-12-10  Bruno Haible  <bruno@clisp.org>
19570
19571         Avoid syntax error in C++ mode.
19572         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
19573
19574 2009-12-10  Bruno Haible  <bruno@clisp.org>
19575
19576         Use sed with option -e.
19577         * gnulib-tool (func_version, func_emit_copyright_notice,
19578         func_emit_initmacro_end, func_import, func_create_testdir): Pass
19579         option -e to sed.
19580         * modules/link-warning (Makefile.am): Likewise.
19581
19582 2009-12-10  Jim Meyering  <meyering@redhat.com>
19583
19584         mgetgroups: do not write bytes beyond end of malloc'd buffer
19585         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
19586         username, we call getgroups with a one-element-shorter buffer,
19587         but still told it the length was original, max_n_groups.
19588
19589 2009-12-09  Eric Blake  <ebb9@byu.net>
19590
19591         cloexec: relax license
19592         * modules/cloexec (Maintainer): Add myself.
19593         (License): Use LGPL, not GPL.
19594
19595         link-warning: optimize generation
19596         * modules/link-warning (Makefile.am): Reduce process usage.
19597
19598 2009-12-09  Bruno Haible  <bruno@clisp.org>
19599
19600         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
19601         workaround was added on 2009-11-17.
19602
19603 2009-12-09  Jim Meyering  <meyering@redhat.com>
19604             Bruno Haible  <bruno@clisp.org>
19605
19606         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
19607         * modules/link-warning (Makefile.am): Make the comment-removing sed
19608         command more robust in the face of bootstrap-prepended comment lines.
19609
19610 2009-12-09  Bruno Haible  <bruno@clisp.org>
19611
19612         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
19613         most one group.
19614
19615 2009-12-09  Simon Josefsson <simon@josefsson.org>
19616             Bruno Haible  <bruno@clisp.org>
19617
19618         * build-aux/link-warning.h: Add copyright notice.
19619         * modules/link-warning (Makefile.am): Generate link-warning.h from
19620         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
19621         * NEWS: Mention change in link-warning module.
19622         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
19623         * modules/dirent (Makefile.am): Add dependency to dirent.h.
19624         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
19625         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
19626         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
19627         * modules/math (Makefile.am): Add dependency to math.h.
19628         * modules/search (Makefile.am): Add dependency to search.h.
19629         * modules/signal (Makefile.am): Add dependency to signal.h.
19630         * modules/spawn (Makefile.am): Add dependency to spawn.h.
19631         * modules/stdio (Makefile.am): Add dependency to stdio.h.
19632         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
19633         * modules/string (Makefile.am): Add dependency to string.h.
19634         * modules/strings (Makefile.am): Add dependency to strings.h.
19635         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
19636         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
19637         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
19638         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
19639         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
19640         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
19641         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
19642         * modules/unistd (Makefile.am): Add dependency to unistd.h.
19643         * modules/wchar (Makefile.am): Add dependency to wchar.h.
19644
19645 2009-12-09  Bruno Haible  <bruno@clisp.org>
19646
19647         fchdir: Optimize away rpl_fstat when possible.
19648         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
19649         REPLACE_OPEN_DIRECTORY.
19650         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
19651
19652 2009-12-09  Bruno Haible  <bruno@clisp.org>
19653
19654         * lib/fchdir.c: Update comment.
19655
19656 2009-12-09  Bruno Haible  <bruno@clisp.org>
19657
19658         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
19659
19660 2009-12-08  Eric Blake  <ebb9@byu.net>
19661
19662         fchdir: avoid memory leak on re-registration.
19663         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
19664
19665 2009-12-08  Jim Meyering  <meyering@redhat.com>
19666
19667         init.sh: avoid Solaris 10 /bin/sh portability problem
19668         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
19669         sourced script:
19670           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
19671           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
19672           bar
19673         tests/init.sh relied on that, accepting a --set-path=DIR argument,
19674         and two tests used that idiom.
19675         * tests/init.sh: Update suggested usage comments.
19676         (path_prepend_): New function, to be used in place
19677         of the --src-path=DIR option.
19678         (setup_): Move PATH-prepending code into path_prepend_.
19679         * tests/test-pread.sh: Adapt to new usage.
19680         * tests/test-xalloc-die.sh: Likewise.
19681
19682 2009-12-08  Simon Josefsson  <simon@josefsson.org>
19683
19684         * doc/gnulib.texi (Glibc pty.h): Add.
19685         * doc/glibc-functions/forkpty.texi: Add.
19686         * doc/glibc-functions/openpty.texi: Add.
19687         Suggested by Bruno Haible.
19688
19689 2009-12-08  Eric Blake  <ebb9@byu.net>
19690
19691         fchdir: fix logic bugs
19692         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
19693         * tests/test-fchdir.c (main): Enhance test.
19694         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
19695         is in use.
19696
19697         dup2: fix logic bugs
19698         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
19699         REPLACE_DUP2 to decide when rpl_dup2 is needed.
19700         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
19701         exists.
19702         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
19703
19704 2009-12-07  Eric Blake  <ebb9@byu.net>
19705
19706         unlink: fix m4 detection
19707         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
19708
19709         unistd-safer: add unit test
19710         * modules/unistd-safer-tests: New file.
19711         * tests/test-dup-safer.c: Likewise.
19712         * tests/test-cloexec.c (setmode): Avoid compiler warning.
19713         * tests/test-dup2.c (setmode): Likewise.
19714         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
19715
19716         cloexec: preserve text vs. binary across dup_cloexec
19717         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
19718         mode.
19719         * modules/dup2-tests (Depends-on): Add binary-io.
19720         * modules/cloexec-tests (Depends-on): Likewise.
19721         * tests/test-dup2.c (setmode, is_mode): New helpers.
19722         (main): Add tests that translation mode is preserved.
19723         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
19724         Reported by Bruno Haible.
19725
19726         mgetgroups: reduce duplicate listings
19727         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
19728         resulting array.
19729         * tests/test-chown.h (test_chown): Simplify client.
19730         * tests/test-lchown.h (test_lchown): Likewise.
19731
19732 2009-12-06  Bruno Haible  <bruno@clisp.org>
19733
19734         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
19735         value.
19736
19737 2009-12-06  Bruno Haible  <bruno@clisp.org>
19738
19739         * lib/progname.c: Include stdio.h, stdlib.h.
19740         (set_program_name): Reject a NULL argument.
19741
19742 2009-12-05  Eric Blake  <ebb9@byu.net>
19743
19744         pipe2-safer: new module
19745         * modules/pipe2-safer: New file.
19746         * lib/unistd-safer.h (pipe2_safer): New prototype.
19747         * lib/unistd--.h (pipe2): New wrapper.
19748         * lib/pipe-safer.c (pipe2_safer): New function.
19749         * modules/pipe (Depends-on): Add pipe2-safer.
19750         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
19751
19752         stdlib-safer: preserve cloexec flag for mkostemp[s]
19753         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
19754         fd_safer_flag.
19755
19756         unistd-safer: allow preservation of cloexec status via flag
19757         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
19758         prototypes.
19759         * lib/dup-safer.c (dup_safer_flag): New function.
19760         * lib/fd-safer.c (fd_safer_flag): Likewise.
19761         * modules/cloexec (configure.ac): Set witness.
19762
19763         test-dup2: enhance test
19764         * modules/dup2-tests (Depends-on): Add cloexec.
19765         * tests/test-dup2.c (main): Enhance test.
19766
19767         cloexec: add dup_cloexec
19768         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
19769         header and comments.
19770         * lib/cloexec.c (set_cloexec_flag): Add comments.
19771         (dup_cloexec): New function, with mingw implementation borrowed
19772         from...
19773         * lib/w32spawn.h (dup_noinherit): ...here.
19774         * modules/execute (Depends-on): Add cloexec.
19775         * modules/pipe (Depends-on): Likewise.
19776         * modules/cloexec (Depends-on): Add dup2.
19777         * modules/cloexec-tests (Files): New file.
19778         * tests/test-cloexec.c: Likewise.
19779
19780         test-xalloc-die: fix test for mingw
19781         * modules/xalloc-die-tests (Files): Add tests/init.sh.
19782         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
19783         directory and .exe suffix off argv[0] output.
19784
19785         test-fseeko: fix test for mingw
19786         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
19787         than undefining fseek, so test will pass on mingw.
19788
19789 2009-12-05  Bruno Haible  <bruno@clisp.org>
19790
19791         * lib/progname.h (set_program_name): Clarify specification.
19792         * lib/progname.c (set_program_name): Likewise.
19793         Reported by Jim Meyering.
19794
19795 2009-12-05  Jim Meyering  <meyering@redhat.com>
19796
19797         maint.mk: backslash-escape parens in default regexp
19798         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
19799         backslash-escape the literal parentheses.
19800
19801         maint.mk: news-date-check: use grep -E
19802         * top/maint.mk (today): Define a Make variable, not a...
19803         (news-date-check): ...shell variable.
19804         (news-date-regexp): Use the Make variable.
19805         Use grep's -E option.  Change the failing diagnostic to mention
19806         the variable, $(news-date-regexp).
19807
19808 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
19809
19810         maintainer-makefile: allow customization of NEWS entry format
19811         * top/maint.mk (news-date-regexp): New overridable variable.
19812         (news-date-check): Use it.
19813
19814 2009-12-04  Eric Blake  <ebb9@byu.net>
19815
19816         mgetgroups: add xgetgroups, and avoid ENOSYS failures
19817         * lib/mgetgroups.h (xgetgroups): New prototype.
19818         * lib/mgetgroups.c (xgetgroups): New wrapper.
19819         (mgetgroups): Handle ENOSYS.
19820         * modules/mgetgroups (Depends-on): Add realloc.
19821         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
19822
19823         mgetgroups: avoid argument promotion issues with -1
19824         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
19825         for invalid gid_t.
19826         * tests/test-chown.h (getegid, test_chown): Likewise.
19827         * tests/test-lchown.h (getegid, test_lchown): Likewise.
19828
19829 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
19830
19831         exclude: Fix header file problems.
19832         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
19833
19834 2009-12-01  Jim Meyering  <meyering@redhat.com>
19835
19836         fts: fts_open: do not let an empty string cause immediate failure
19837         This is required in support of GNU rm, for which the command
19838         "rm A '' B" must process and remove both A and B, in spite of
19839         the empty string argument.
19840         * lib/fts.c (fts_open): Do not let the presence of an empty string
19841         cause fts_open to fail immediately.  Most fts-using tools must be
19842         able to process all arguments, in order, and can be expected to
19843         diagnose such arguments themselves.
19844
19845 2009-11-30  Eric Blake  <ebb9@byu.net>
19846
19847         utimens: fix compilation error
19848         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
19849         Declare variable at right scope.
19850
19851 2009-11-29  Jim Meyering  <meyering@redhat.com>
19852
19853         bootstrap: handle perl-5.11's changed --version output
19854         * build-aux/bootstrap (get_version): Handle perl separately,
19855         since perl-5.11's --version output is different.
19856
19857 2009-11-28  Jim Meyering  <meyering@redhat.com>
19858
19859         userspec: depend on the inttostr module, too
19860         * modules/userspec (Depends-on): Add inttostr.
19861
19862         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
19863         * lib/userspec.c (parse_with_separator): Do not accept a user ID
19864         number of MAXUID when it evaluates to (uid_t) -1.
19865         Likewise for group ID.  Reported by Matt McCutchen in
19866         <http://savannah.gnu.org/bugs/?28113>
19867
19868         userspec: reformat to use spaces, not TABs
19869         * lib/userspec.c: Expand TABs to spaces.
19870         Add Emacs' "indent-tabs-mode: nil" hint.
19871
19872 2009-11-27  Eric Blake  <ebb9@byu.net>
19873
19874         getopt-gnu: flush out another BSD bug
19875         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
19876         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
19877         flush out BSD bug.
19878         * tests/test-getopt.h (test_getopt): End lists with NULL.
19879         * tests/test-getopt_long.h (test_getopt_long): Likewise.
19880         (test_getopt_long_posix): Enhance test.
19881         * modules/getopt-posix-tests (Depends-on): Add stdbool.
19882         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
19883         getopt-gnu.
19884         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
19885         Likewise.
19886
19887 2009-11-27  Simon Josefsson  <simon@josefsson.org>
19888
19889         * modules/idpriv-droptemp-tests (Notice): Fix text.
19890
19891 2009-11-27  Jim Meyering  <meyering@redhat.com>
19892
19893         test-xalloc-die: avoid spurious failure due to libtool argv difference
19894         In a libtool-enabled project, this test would fail due to a difference
19895         in the emitted program name, e.g.,
19896         -test-xalloc-die: memory exhausted
19897         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
19898         Use program to avoid that.
19899         * modules/xalloc-die-tests (Depends-on): Add progname.
19900         * tests/test-xalloc-die.c: Include progname.h".
19901         (program_name): Remove decl.
19902         (main): Call set_program_name.
19903         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
19904
19905 2009-11-26  Richard Jones  <rjones@redhat.com>
19906
19907         w32sock: leave win32 error in place.
19908         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
19909
19910 2009-11-26  Eric Blake  <ebb9@byu.net>
19911
19912         init.sh: suggest to use skip_ and fail_ functions in comments
19913         * tests/init.sh: Add a sentence.
19914
19915 2009-11-25  Bruno Haible  <bruno@clisp.org>
19916
19917         init.sh: add documentation in comments
19918         * tests/init.sh: Add some developer and user documentation.
19919
19920 2009-11-26  Jim Meyering  <meyering@redhat.com>
19921
19922         init.sh: accommodate even those who specify bogus srcdir manually
19923         * tests/init.sh: Normally, srcdir is guaranteed by automake and
19924         configure-time tests to be sanitized, so that there is no need to
19925         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
19926         (with no double quotes) suffices.  However, since tests may be
19927         invoked manually, and since you may explicitly set srcdir to the
19928         name of a directory containing spaces, do quote its uses here.
19929         * tests/test-pread.sh: Likewise.
19930         Suggested by Bruno Haible.
19931
19932         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
19933         * tests/test-pread.sh: Write no data into the pipe, because
19934         test-pread actually reads none.  This avoids a diagnostic,
19935         "bash: echo: write error: Broken pipe", that arises in the unusual
19936         event something is ignoring SIGPIPE, and might be interpreted
19937         as some sort of failure.  Reported by Bruno Haible.
19938
19939 2009-11-25  Jim Meyering  <meyering@redhat.com>
19940
19941         test-pread: cover failure with ESPIPE and EINVAL
19942         * tests/test-pread.c (main): Test for failure, too.
19943         * tests/test-pread.sh: Invoke with stdin on a pipe.
19944         Suggested by Eric Blake.
19945
19946         pread: improvement and fix
19947         * modules/pread (Depends-on): Depend on lseek, for portability to
19948         e.g., mingw.  Suggested by Eric Blake.
19949         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
19950
19951         unistd.in.h: correct declaration of pread
19952         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
19953         Reported by Richard W.M. Jones.
19954
19955         test-pread.sh: distribute the test script
19956         * modules/pread-tests (Files): Include test-pread.sh.
19957
19958         test-pread.sh: clean up
19959         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
19960         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
19961         That is unnecessary, since it's always ".".
19962         Suggestion from Eric Blake.
19963
19964         test-pread.sh: make executable
19965         * tests/test-pread.sh: Set executable bit.
19966         Reported by Eric Blake.
19967
19968         correct typo in test-pread.sh
19969         * tests/test-pread.sh: Add #! line.
19970
19971         test pread
19972         * tests/test-pread.c: New file.
19973         * tests/test-pread.sh: Likewise.
19974         * modules/pread-tests: Likewise.
19975
19976         pread: new module
19977         * modules/pread: New file.
19978         * lib/unistd.in.h (pread): Define/declare.
19979         * lib/pread.c (pread): New file.
19980         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
19981         * modules/unistd (Makefile.am): Substitute witnesses.
19982         * doc/posix-functions/pread.texi (pread): Update.
19983         * MODULES.html.sh: Add pread.
19984
19985 2009-11-25  Jim Meyering  <meyering@redhat.com>
19986
19987         tests/init.sh: new file to be used via most *.sh tests
19988         * tests/init.sh: New file.
19989
19990 2009-11-25  Eric Blake  <ebb9@byu.net>
19991
19992         utimens: work around older Linux failure with symlinks
19993         * lib/utimens.c (lutimensat_works_really): New variable.
19994         (fdutimens, lutimens): Use it to manage kernels that support
19995         nanosecond times on files, but not on symlinks.
19996         Reported by OndÅ™ej Vašík.
19997
19998         utimes: fix configure grammar
19999         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
20000
20001 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
20002
20003         regex: Fix fastmap for multibyte character ranges.
20004         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
20005         characters when a multibyte character range is included.
20006
20007 2009-11-22  Andy Wingo  <wingo@pobox.com>
20008
20009         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
20010         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
20011
20012 2009-11-24  Bruno Haible  <bruno@clisp.org>
20013
20014         doc: Most *_l functions exist in MacOS X 10.5.
20015         * doc/posix-functions/duplocale.texi: Update platforms list.
20016         * doc/posix-functions/freelocale.texi: Likewise.
20017         * doc/posix-functions/newlocale.texi: Likewise.
20018         * doc/posix-functions/uselocale.texi: Likewise.
20019         * doc/posix-functions/isalnum_l.texi: Likewise.
20020         * doc/posix-functions/isalpha_l.texi: Likewise.
20021         * doc/posix-functions/isblank_l.texi: Likewise.
20022         * doc/posix-functions/iscntrl_l.texi: Likewise.
20023         * doc/posix-functions/isdigit_l.texi: Likewise.
20024         * doc/posix-functions/isgraph_l.texi: Likewise.
20025         * doc/posix-functions/islower_l.texi: Likewise.
20026         * doc/posix-functions/isprint_l.texi: Likewise.
20027         * doc/posix-functions/ispunct_l.texi: Likewise.
20028         * doc/posix-functions/isspace_l.texi: Likewise.
20029         * doc/posix-functions/isupper_l.texi: Likewise.
20030         * doc/posix-functions/iswalnum_l.texi: Likewise.
20031         * doc/posix-functions/iswalpha_l.texi: Likewise.
20032         * doc/posix-functions/iswblank_l.texi: Likewise.
20033         * doc/posix-functions/iswcntrl_l.texi: Likewise.
20034         * doc/posix-functions/iswctype_l.texi: Likewise.
20035         * doc/posix-functions/iswdigit_l.texi: Likewise.
20036         * doc/posix-functions/iswgraph_l.texi: Likewise.
20037         * doc/posix-functions/iswlower_l.texi: Likewise.
20038         * doc/posix-functions/iswprint_l.texi: Likewise.
20039         * doc/posix-functions/iswpunct_l.texi: Likewise.
20040         * doc/posix-functions/iswspace_l.texi: Likewise.
20041         * doc/posix-functions/iswupper_l.texi: Likewise.
20042         * doc/posix-functions/iswxdigit_l.texi: Likewise.
20043         * doc/posix-functions/isxdigit_l.texi: Likewise.
20044         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
20045         * doc/posix-functions/strcasecmp_l.texi: Likewise.
20046         * doc/posix-functions/strcoll_l.texi: Likewise.
20047         * doc/posix-functions/strfmon_l.texi: Likewise.
20048         * doc/posix-functions/strftime_l.texi: Likewise.
20049         * doc/posix-functions/strncasecmp_l.texi: Likewise.
20050         * doc/posix-functions/strxfrm_l.texi: Likewise.
20051         * doc/posix-functions/tolower_l.texi: Likewise.
20052         * doc/posix-functions/toupper_l.texi: Likewise.
20053         * doc/posix-functions/towctrans_l.texi: Likewise.
20054         * doc/posix-functions/towlower_l.texi: Likewise.
20055         * doc/posix-functions/towupper_l.texi: Likewise.
20056         * doc/posix-functions/wcscoll_l.texi: Likewise.
20057         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
20058         * doc/posix-functions/wctrans_l.texi: Likewise.
20059         * doc/posix-functions/wctype_l.texi: Likewise.
20060         * doc/glibc-functions/strptime_l.texi: Likewise.
20061         * doc/glibc-functions/strtod_l.texi: Likewise.
20062         * doc/glibc-functions/strtof_l.texi: Likewise.
20063         * doc/glibc-functions/strtol_l.texi: Likewise.
20064         * doc/glibc-functions/strtold_l.texi: Likewise.
20065         * doc/glibc-functions/strtoll_l.texi: Likewise.
20066         * doc/glibc-functions/strtoul_l.texi: Likewise.
20067         * doc/glibc-functions/strtoull_l.texi: Likewise.
20068         * doc/glibc-functions/wcsftime_l.texi: Likewise.
20069         * doc/glibc-functions/wcstod_l.texi: Likewise.
20070         * doc/glibc-functions/wcstof_l.texi: Likewise.
20071         * doc/glibc-functions/wcstol_l.texi: Likewise.
20072         * doc/glibc-functions/wcstold_l.texi: Likewise.
20073         * doc/glibc-functions/wcstoll_l.texi: Likewise.
20074         * doc/glibc-functions/wcstoul_l.texi: Likewise.
20075         * doc/glibc-functions/wcstoull_l.texi: Likewise.
20076
20077 2009-11-24  Bruno Haible  <bruno@clisp.org>
20078
20079         duplocale: Fix logic bug.
20080         * lib/duplocale.c: Don't include <langinfo.h>.
20081         (_NL_LOCALE_NAME): Remove macro.
20082         (rpl_duplocale): Use setlocale instead of nl_langinfo.
20083         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
20084
20085 2009-11-23  Jim Meyering  <meyering@redhat.com>
20086
20087         test-update-copyright: don't hard-code /usr/bin/perl
20088         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
20089         perl to print the current year.  Gilles Espinasse reported that
20090         the replaced use of perl was hard-coded as /usr/bin/perl.
20091
20092 2009-11-23  Bruno Haible  <bruno@clisp.org>
20093
20094         duplocale: Add support for glibc 2.3.x.
20095         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
20096
20097 2009-11-22  Bruno Haible  <bruno@clisp.org>
20098
20099         vasnprintf: Tiny optimization.
20100         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
20101         MacOS X.
20102
20103 2009-11-22  Bruno Haible  <bruno@clisp.org>
20104
20105         Tests for module 'duplocale'.
20106         * modules/duplocale-tests: New file.
20107         * tests/test-duplocale.c: New file.
20108
20109         New module 'duplocale'.
20110         * m4/duplocale.m4: New file.
20111         * lib/locale.in.h (duplocale): New declaration.
20112         * lib/duplocale.c: New file.
20113         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
20114         gl_LOCALE_H_DEFAULTS): New macros.
20115         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
20116         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
20117         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
20118         REPLACE_DUPLOCALE.
20119         * modules/duplocale: New file.
20120         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
20121
20122 2009-11-22  Bruno Haible  <bruno@clisp.org>
20123
20124         * modules/locale-tests (configure.ac): Test for newlocale function.
20125         * tests/test-locale.c: When the system has extended locale functions,
20126         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
20127
20128         locale: Make locale_t available when possible.
20129         * lib/locale.in.h: Include <xlocale.h> when it exists.
20130         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
20131         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
20132         * modules/locale (Depends-on): Add extensions.
20133         (Makefile.am): Also substitute HAVE_XLOCALE_H.
20134         * doc/posix-headers/locale.texi: Document the problem with locale_t.
20135
20136 2009-11-22  Bruno Haible  <bruno@clisp.org>
20137
20138         Add comments.
20139         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
20140         invocation.
20141         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
20142         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
20143         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
20144
20145 2009-11-22  Bruno Haible  <bruno@clisp.org>
20146
20147         error: account for the possibility of freopen (stdout).
20148         * lib/error.c: Include <unistd.h>.
20149         (flush_stdout): New function, extracted from error and error_at_line.
20150         Determine stdout's fd dynamically.
20151         (error, error_at_line): Invoke flush_stdout.
20152         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
20153         * modules/error (Depends-on): Add unistd.
20154
20155 2009-11-22  Bruno Haible  <bruno@clisp.org>
20156
20157         diffseq: Add comment.
20158         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
20159
20160 2009-11-22  Jim Meyering  <meyering@redhat.com>
20161
20162         c-stack: avoid defining an unused static function
20163         * lib/c-stack.c (find_stack_direction): Do not define this function
20164         when it will not be used.
20165
20166         diffseq: avoid spurious gcc warnings
20167         * lib/diffseq.h (IF_LINT2): Define.
20168         (compareseq): Use it to initialize two members of "part".
20169         This avoids two used-uninitialized warnings.
20170
20171 2009-11-21  Jim Meyering  <meyering@redhat.com>
20172
20173         c-stack: avoid "ignoring return value of `write'" warning
20174         * lib/c-stack.c: Include "ignore-value.h".
20175         (die): Explicitly ignore each write return value.
20176         * modules/c-stack (Depends-on): Add ignore-value.
20177
20178 2009-11-21  Bruno Haible  <bruno@clisp.org>
20179
20180         diffseq: reduce scope of variable 'best'.
20181         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
20182         variable, earlier used for two different purposes.
20183
20184 2009-11-21  Jim Meyering  <meyering@redhat.com>
20185
20186         diffseq: remove useless assignment to "best"
20187         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
20188         assignment.  At that point "best" is already guaranteed to be zero.
20189
20190 2009-11-20  Eric Blake  <ebb9@byu.net>
20191
20192         build: mention ftp redirector in release announcements
20193         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
20194         values that used to come from cfg.mk; mention FTP redirect URL.
20195         * build-aux/announce-gen: Mention the mirror list.
20196         Suggested by Karl Berry.
20197
20198         nanosleep: improve port to mingw
20199         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
20200         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
20201         LIB_NANOSLEEP, but only when needed.
20202         * modules/select (Link): Document LIBSOCKET.
20203         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
20204         enough.
20205
20206         nanosleep: work around cygwin bug
20207         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
20208         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
20209         bug.
20210         (getnow): Delete, not needed.
20211         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
20212         LIB_CLOCK_GETTIME.
20213         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
20214         clock-time, gettime.
20215         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
20216         bug.
20217         * modules/nanosleep-tests: New test.
20218         * tests/test-nanosleep.c: New file.
20219
20220         sleep: work around cygwin bug
20221         * lib/sleep.c (rpl_sleep): Work around the bug.
20222         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
20223         (gl_PREREQ_SLEEP): Delete unused macro.
20224         * modules/sleep (Depends-on): Add verify.
20225         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
20226         * modules/unistd (Makefile.am): Substitute witness.
20227         * lib/unistd.in.h (sleep): Update prototype.
20228         * doc/posix-functions/sleep.texi (sleep): Document the bug.
20229         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
20230         * modules/sleep-tests (Depends-on): Check for alarm.
20231
20232 2009-11-20  Jim Meyering  <meyering@redhat.com>
20233
20234         maint.mk: improve sc_prohibit_magic_number_exit
20235         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
20236         so it does not match uses like System.exit(1).
20237         Add comments showing how to correct all offenders.
20238
20239 2009-11-19  Eric Blake  <ebb9@byu.net>
20240
20241         xalloc-die-tests: add missing library
20242         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
20243
20244         test-xvasprintf: silence compiler warnings
20245         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
20246         empty string from gcc.
20247
20248 2009-11-19  Jim Meyering  <meyering@redhat.com>
20249
20250         xfreopen: new module, from coreutils
20251         * modules/xfreopen: New module.
20252         * lib/xfreopen.c: New file.
20253         * lib/xfreopen.h: New file.
20254         * MODULES.html.sh (File stream based Input/Output"): Add it.
20255
20256 2009-11-19  Eric Blake  <ebb9@byu.net>
20257
20258         manywarnings: depend on warnings
20259         * modules/manywarnings (Depends-on): Add warnings.
20260
20261         build: avoid compiler warnings
20262         * lib/select.c (rpl_select): Delete unused variable.
20263         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
20264
20265 2009-11-18  Eric Blake  <ebb9@byu.net>
20266
20267         tests: avoid false negative with --with-packager
20268         * tests/test-version-etc.sh: Discard packager information.
20269         * tests/test-argp-version-etc-1.sh: Likewise.
20270         Reported by Mike Frysinger.
20271
20272         utimens: fix regression on Solaris
20273         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
20274         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
20275         can only change fd timestamps via futimesat.  Instead, use an
20276         additional witness macro to avoid BSD bug.
20277         Reported by Jim Meyering.
20278
20279 2009-11-17  Eric Blake  <ebb9@byu.net>
20280
20281         usleep: use it to simplify tests
20282         * modules/stat-time-tests (Depends-on): Add usleep.
20283         (configure.ac): Drop usleep check.
20284         * modules/chown-tests (Depends-on, configure.ac): Likewise.
20285         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
20286         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
20287         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
20288         * modules/openat-tests (Depends-on, configure.ac): Likewise.
20289         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
20290         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
20291         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
20292         Likewise.
20293         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
20294         * tests/test-lchown.h (nap): Likewise.
20295         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
20296         * tests/test-stat-time.c (nap): Likewise.
20297         * tests/test-utimens-common.h (nap): Update comments.
20298
20299         usleep: new module
20300         * modules/usleep: New file.
20301         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
20302         * lib/usleep.c (usleep): Likewise.
20303         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
20304         * modules/unistd (Makefile.am): Substitute witnesses.
20305         * lib/unistd.in.h (usleep): Add declaration.
20306         * doc/pastposix-functions/usleep.texi (usleep): Document this.
20307         * MODULES.html.sh (Date and time): Likewise.
20308         * modules/usleep-tests (Depends-on): New test.
20309         * tests/test-usleep.c: New file.
20310
20311         chown: work around OpenBSD bug
20312         * lib/chown.c (rpl_chown): Work around the bug.
20313         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
20314         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
20315         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
20316         * modules/chown (Depends-on): Add stdbool.
20317         * modules/lchown (Depends-on): Likewise.
20318         * doc/posix-functions/chown.texi (chown): Document the bug.
20319         * doc/posix-functions/lchown.texi (lchown): Likewise.
20320         * tests/test-lchown.h (test_chown): Relax test.
20321
20322         mkstemp: avoid conflict with C++ keyword template
20323         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
20324         * lib/mkostemp.c (mkostemp): Likewise.
20325         * lib/mkostemps.c (mkostemps): Likewise.
20326         * lib/mkstemp.c (mkstemp): Likewise.
20327         * lib/mkstemps.c (mkstemps): Likewise.
20328
20329         xalloc-die-tests: optimize
20330         * tests/test-xalloc-die.sh: Reduce number of processes.
20331
20332 2009-11-17  Simon Josefsson  <simon@josefsson.org>
20333
20334         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
20335         patch from ludo@gnu.org (Ludovic Courtès).
20336
20337 2009-11-17  Jim Meyering  <meyering@redhat.com>
20338
20339         version-etc: use proper license string
20340         * modules/version-etc (License): Use LGPL, not LGPLv3+.
20341         * modules/version-etc-fsf: Likewise.
20342
20343 2009-11-17  Simon Josefsson  <simon@josefsson.org>
20344
20345         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
20346         printed to stdout.  Deal with EOL differences.
20347
20348 2009-11-17  Eric Blake  <ebb9@byu.net>
20349
20350         unsetenv: work around Solaris bug
20351         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
20352         * lib/unsetenv.c (rpl_unsetenv): Work around it.
20353         Reported by Jim Meyering.
20354
20355         vasnprintf: avoid compiler warnings
20356         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
20357         variables.
20358         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
20359
20360 2009-11-17  Simon Josefsson  <simon@josefsson.org>
20361
20362         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
20363         settings since xalloc-die is no longer the self test,
20364         xalloc-die.sh is.
20365
20366 2009-11-17  Jim Meyering  <meyering@redhat.com>
20367
20368         test-xalloc-die.sh: make the code agree with the commit log
20369         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
20370         at the end, just in case you happen to have a test-xalloc-die
20371         program in some other PATH directory.
20372
20373         test-xalloc-die.sh: fix a portability bug
20374         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
20375         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
20376         Otherwise, argv[0] (as often seen in diagnostics) would be too
20377         system-dependent, sometimes with, and sometimes without the leading "./".
20378
20379         version-etc-fsf: relax license to LGPLv3+
20380         * modules/version-etc-fsf (License): Relax license.
20381
20382 2009-11-16  Eric Blake  <ebb9@byu.net>
20383
20384         xalloc-die-tests: avoid printing null pointer
20385         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
20386         shell script.
20387         * tests/test-xalloc-die.c (program_name): Declare.
20388         * tests/test-xalloc-die.sh (tmpfiles): New file.
20389
20390         setenv, unsetenv: work around various bugs
20391         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
20392         (setenv) [HAVE_SETENV]: Work around bugs.
20393         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
20394         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
20395         for bugs.
20396         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
20397         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
20398         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
20399         * modules/stdlib (Makefile.am): Update substitutions.
20400         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
20401         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
20402         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
20403         * modules/setenv-tests: New test.
20404         * modules/unsetenv-tests: Likewise.
20405         * tests/test-setenv.c: New file.
20406         * tests/test-unsetenv.c: Likewise.
20407
20408 2009-11-16  Jim Meyering  <meyering@redhat.com>
20409
20410         version-etc: relax license to LGPLv3+
20411         * modules/version-etc (License): Relax license.
20412
20413         better AC_REQUIRE expanded-before-required-warning avoidance
20414         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
20415         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
20416         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
20417         which is no longer needed.
20418
20419 2009-11-16  Eric Blake  <ebb9@byu.net>
20420
20421         test-freading: clean up temporary file
20422         * tests/test-freading.c (main): Remove file on success, and use
20423         ASSERT more liberally.
20424         Reported by Jim Meyering.
20425
20426 2009-11-16  Jim Meyering  <meyering@redhat.com>
20427
20428         avoid new AC_REQUIRE expanded-before-required warnings
20429         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
20430         merely using it.
20431         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
20432         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
20433
20434 2009-11-15  Simon Josefsson  <simon@josefsson.org>
20435
20436         * tests/test-xalloc-die.c: New file.
20437         * modules/xalloc-die-tests: New file.
20438         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
20439         XFAIL_TESTS so it can be appended by modules.
20440
20441 2009-11-15  Simon Josefsson  <simon@josefsson.org>
20442
20443         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
20444         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
20445
20446 2009-11-14  Eric Blake  <ebb9@byu.net>
20447
20448         fnmatch: avoid compiler warning
20449         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
20450         to silence compiler warning about mismatch signedness in ?:.
20451         Reported by Robert Millan.
20452
20453         intprops: add double-inclusion guard
20454         * lib/intprops.h: Allow idempotent includes.
20455         Suggested by Bruce Korb.
20456
20457         openat: detect Solaris fchownat bug
20458         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
20459         penalizing glibc chownat when only lchownat is broken.
20460         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
20461         trailing slash bugs.
20462         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
20463         * modules/openat-tests (Files): Include more files.
20464         (Depends-on): Add mgetgroups, sleep, stat-time.
20465         (configure.ac): Add additional checks.
20466         (Makefile.am): Build new test.
20467         * tests/test-fchownat.c: New file.
20468
20469         lchown: detect Solaris and FreeBSD bug
20470         * lib/lchown.c (rpl_lchown): Work around bug.
20471         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
20472         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
20473         * modules/unistd (Makefile.am): Populate it.
20474         * lib/unistd.in.h (lchown): Update declaration.
20475         * doc/posix-functions/lchown.texi (lchown): Document the bug.
20476         * modules/lchown-tests: New file.
20477         * tests/test-lchown.h (test_lchown): Likewise.
20478         * tests/test-lchown.c (main): Likewise.
20479
20480         chown: detect Solaris and FreeBSD bug
20481         * lib/chown.c (rpl_chown): Work around bug.
20482         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
20483         (gl_PREREQ_CHOWN): Delete.
20484         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
20485         * modules/unistd (Makefile.am): Populate it.
20486         * lib/unistd.in.h (chown): Update declaration.
20487         * lib/lchown.c (chown): Update client.
20488         * modules/lchown (Depends-on): Add lstat.
20489         * doc/posix-functions/chown.texi (chown): Document the bug.
20490         * doc/posix-functions/getgroups.texi (getgroups): Document
20491         getgroups pitfall.
20492         * modules/chown-tests: New file.
20493         * tests/test-chown.h (test_chown): Likewise.
20494         * tests/test-chown.c (main): Likewise.
20495
20496 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
20497
20498         gnulib-tool: correctly detect absence of m4 directories
20499         * gnulib-tool: Avoid extra newline on data passed to wc -l.
20500
20501 2009-11-14  Jim Meyering  <meyering@redhat.com>
20502
20503         maint.mk: Prohibit inclusion of "xalloc.h" without use.
20504         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
20505
20506 2009-11-14  John W. Eaton  <jwe@gnu.org>
20507
20508         strftime.h: wrap funtion declaration in extern "C" block
20509         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
20510
20511 2009-11-13  Eric Blake  <ebb9@byu.net>
20512
20513         getgroups: avoid compiler warning
20514         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
20515
20516         getgroups: work around FreeBSD bug
20517         * lib/getgroups.c (rpl_getgroups): Work around the bug.
20518         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
20519         * doc/posix-functions/getgroups.texi (getgroups): Document it.
20520         * tests/test-getgroups.c (main): Fix buffer overrun.
20521
20522         getgroups: avoid compilation failure
20523         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
20524         * modules/getgroups (Depends-on): Add stdint.
20525
20526 2009-11-13  Jim Meyering  <meyering@redhat.com>
20527
20528         test-getgroups: avoid compilation failure
20529         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
20530
20531 2009-11-13  Eric Blake  <ebb9@byu.net>
20532
20533         mgetgroups: new module, taken from coreutils
20534         * modules/mgetgroups: New file.
20535         * lib/mgetgroups.h: Likewise.
20536         * lib/mgetgroups.c (mgetgroups): Likewise.
20537         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
20538         * MODULES.html.sh (Users and groups): Mention it.
20539
20540         getgroups: don't expose GETGROUPS_T to user
20541         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
20542         an element at a time if GETGROUPS_T is wrong size.
20543         * lib/getugroups.h (getugroups): Change signature.
20544         * lib/unistd.in.h (getgroups): Likewise.
20545         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
20546         signature needs fixing.
20547         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
20548         AC_TYPE_GETGROUPS.
20549         * modules/group-member (Depends-on): Add getgroups.
20550         * lib/group-member.c (group_info, get_group_info): Use gid_t.
20551         (group_member): Rely on getgroups replacement.
20552         * lib/getugroups.c (getugroups): Use gid_t.
20553         * tests/test-getgroups.c (main): Likewise.
20554         * NEWS: Mention the signature change.
20555         * doc/posix-functions/getgroups.texi (getgroups): Mention the
20556         problem with signature.
20557         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
20558         GETGROUPS_T is still useful for setgroups.
20559
20560         getgroups, getugroups: provide stubs for mingw
20561         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
20562         * lib/getugroups.c (getugroups): Likewise.
20563         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
20564         function.  Modernize replacement scheme.
20565         (gl_PREREQ_GETGROUPS): Delete.
20566         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
20567         * modules/getgroups (configure.ac): Declare witness.
20568         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
20569         * modules/unistd (Depends-on): Substitute witness.
20570         * lib/unistd.in.h (getgroups): Declare replacement.
20571
20572         getgroups: avoid calling exit
20573         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
20574         drop xalloc.
20575         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
20576         dependencies.
20577         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
20578         exiting, in the rare case of malloc failure.
20579
20580         getgroups: fix logic error
20581         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
20582         has more than 20 groups.
20583         * modules/getgroups-tests: New test.
20584         * tests/test-getgroups.c: New file.
20585
20586 2009-11-13  Simon Josefsson  <simon@josefsson.org>
20587
20588         * tests/test-base64.c: Improve.
20589
20590 2009-11-13  Simon Josefsson  <simon@josefsson.org>
20591
20592         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
20593         Blake <ebb9@byu.net>.
20594
20595 2009-11-13  Simon Josefsson  <simon@josefsson.org>
20596
20597         * tests/test-xvasprintf.c: Add %s%s related checks.
20598
20599 2009-11-12  Eric Blake  <ebb9@byu.net>
20600
20601         version-etc: match standards.texi style
20602         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
20603         and use <> only for URLs.
20604
20605 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
20606
20607         fts: do not fail on a submount during traversal
20608         * lib/fts.c (fts_build): Read the stat info again after opening
20609         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
20610         Original report at http://bugzilla.redhat.com/501848.
20611
20612 2009-11-12  Jim Meyering  <meyering@redhat.com>
20613
20614         bootstrap: sync from coreutils
20615         * build-aux/bootstrap (bootstrap_epilogue): New function.
20616         Use git_modules_config in one more place.  This make bootstrap's
20617         --gnulib-srcdir option more useful for testing.
20618
20619         bootstrap: generalize autoheader check
20620         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
20621         AC_CONFIG_HEADERS.
20622
20623 2009-11-11  Eric Blake  <ebb9@byu.net>
20624
20625         mkfifoat: use new modules for Solaris and BSD bugs
20626         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
20627         * lib/mkfifoat.c (mknodat): Split...
20628         * lib/mknodat.c (mknodat): ...into new file.
20629         * modules/mkfifoat (Files): Ship new file.
20630         (Depends-on): Add mkfifo, mknod.
20631         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
20632         (Depends-on): Add symlink.
20633         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
20634         redundant with test_mkfifo.h.
20635         (do_mkfifoat, do_mknodat): New helpers.
20636
20637         mknod: new module
20638         * modules/mknod: New file.
20639         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
20640         * lib/mknod.c (mknod): Likewise.
20641         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
20642         defaults.
20643         * modules/sys_stat (Makefile.am): Substitute them.
20644         * lib/sys_stat.in.h (mknod): Declare replacement.
20645         * MODULES.html.sh (Support for systems lacking POSIX:2008):
20646         Document it.
20647         * doc/posix-functions/mknod.texi (mknod): Likewise.
20648         * modules/mknod-tests: New test.
20649         * tests/test-mknod.c: Likewise.
20650
20651         mkfifo: new module
20652         * modules/mkfifo: New file.
20653         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
20654         * lib/mkfifo.c (mkfifo): Likewise.
20655         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
20656         defaults.
20657         * modules/sys_stat (Makefile.am): Substitute them.
20658         * lib/sys_stat.in.h (mkfifo): Declare replacement.
20659         * MODULES.html.sh (Support for systems lacking POSIX:2008):
20660         Document it.
20661         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
20662         * modules/mkfifo-tests: New test.
20663         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
20664         from test-mkfifoat.c.
20665         * tests/test-mkfifo.c: New file.
20666
20667         readlink: detect FreeBSD bug
20668         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
20669         slash on symlink.
20670         * doc/posix-functions/readlink.texi (readlink): Document the bug.
20671         * tests/test-readlink.h (test_readlink): Enhance test.
20672
20673         symlink: detect FreeBSD bug
20674         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
20675         slash on symlink.
20676         * doc/posix-functions/symlink.texi (symlink): Document the bug.
20677         * tests/test-symlink.h (test_symlink): Enhance test.
20678
20679 2009-11-10  Eric Blake  <ebb9@byu.net>
20680
20681         link: detect FreeBSD bug
20682         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
20683         symlink.
20684         * doc/posix-functions/link.texi (link): Document the bug.
20685         * tests/test-link.h (test_link): Enhance test.
20686         * tests/test-linkat.c (main): Update caller.
20687
20688         unlink, remove: detect FreeBSD bug
20689         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
20690         slash on symlink.
20691         * doc/posix-functions/unlink.texi (unlink): Document the bug.
20692         * doc/posix-functions/remove.texi (remove): Likewise.
20693         * tests/test-unlink.h (test_unlink): Enhance test.
20694         * tests/test-remove.c (main): Likewise.
20695
20696 2009-11-09  Eric Blake  <ebb9@byu.net>
20697
20698         rename: detect FreeBSD bug
20699         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
20700         slash on symlink.
20701         * modules/renameat-tests (Depends-on): Add filenamecat.
20702         * tests/test-rename.h (test_rename): Allow one more errno.
20703         * tests/test-renameat.c (main): Likewise.
20704         * doc/posix-functions/rename.texi (rename): Document the bug.
20705
20706         open: detect FreeBSD bug
20707         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
20708         symlink.
20709         * doc/posix-functions/open.texi (open): Document the bug.
20710         * doc/posix-functions/utimes.texi (utimes): Likewise.
20711         * tests/test-open.h (test_open): Add parameters, and test symlink
20712         handling.
20713         * tests/test-open.c (main): Adjust caller.
20714         * tests/test-fcntl-safer.c (main): Likewise.
20715         * modules/open-tests (Depends-on): Add stdbool, symlink.
20716         * modules/fcntl-safer-tests (Depends-on): Likewise.
20717         * tests/test-openat.c (main): Add test-open tests.
20718
20719         stat: detect FreeBSD bug
20720         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
20721         symlink.
20722         * doc/posix-functions/stat.texi (stat): Document the bug.
20723         * tests/test-stat.h (test_stat_func): Add argument.
20724         * tests/test-stat.c (main): Adjust caller.
20725         * tests/test-fstatat.c (main): Likewise.
20726         * modules/stat-tests (Depends-on): Add stdbool, symlink.
20727         Reported by Jim Meyering.
20728
20729 2009-11-09  James Youngman  <jay@gnu.org>
20730
20731         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
20732         * lib/strftime.c: Correct placement of #include "ignore-value.h".
20733
20734 2009-11-08  Jim Meyering  <meyering@redhat.com>
20735
20736         utimens: remove invalid futimesat call
20737         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
20738         It used the file descriptor of the target file as the DIR_FD
20739         parameter and NULL as the file name.  That caused failure with
20740         errno == EFAULT on FreeBSD-8.0-rc2
20741
20742 2009-11-07  Eric Blake  <ebb9@byu.net>
20743
20744         fflush, freadseek: use fseeko, not fseek
20745         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
20746         (clear_ungetc_buffer): Avoid potential problems on large files.
20747         * lib/freadseek.c (freadseek): Likewise.
20748         * modules/freadseek (Depends-on): Add fseeko.
20749         * modules/fseek (configure.ac): Set a witness.
20750         * tests/test-fflush.c (main): Use fseeko.
20751         * tests/test-fpurge.c (fseek): Disable link warning.
20752         * tests/test-freadable.c (fseek): Likewise.
20753         * tests/test-freading.c (fseek): Likewise.
20754         * tests/test-fseeko.c (fseek): Likewise.
20755         * tests/test-ftell.c (fseek): Likewise.
20756         * tests/test-ftello.c (fseek): Likewise.
20757         * tests/test-fwritable.c (fseek): Likewise.
20758         * tests/test-fwriting.c (fseek): Likewise.
20759
20760 2009-11-06  Simon Josefsson  <simon@josefsson.org>
20761
20762         * modules/memchr (Depends-on): Drop getpagesize dependency.
20763
20764 2009-11-06  Simon Josefsson  <simon@josefsson.org>
20765
20766         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
20767         Reported by Ludovic Courtès.
20768         * build-aux/pmccabe2html: Improve example usage.
20769         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
20770
20771 2009-11-06  Jim Meyering  <meyering@redhat.com>
20772
20773         do-release-commit-and-tag: New module.
20774         Automate the release-commit and tag process.
20775         * build-aux/do-release-commit-and-tag: New script, from coreutils.
20776         * modules/do-release-commit-and-tag: New file.
20777         * MODULES.html.sh (Support for maintaining and releasing): Add it.
20778
20779 2009-11-06  Simon Josefsson  <simon@josefsson.org>
20780
20781         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
20782         because test-select.c uses inet_pton.
20783
20784 2009-11-06  Simon Josefsson  <simon@josefsson.org>
20785
20786         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
20787         GETADDRINFO_LIB.  Bump serial number.
20788         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
20789         Suggested by Eric Blake <ebb9@byu.net>.
20790
20791 2009-11-05  Eric Blake  <ebb9@byu.net>
20792
20793         strtod: detect darwin bug
20794         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
20795         Reported by Leo Davis.
20796
20797         freopen-safer: new module
20798         * modules/freopen-safer: New module.
20799         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
20800         * lib/freopen-safer.c (freopen_safer): New file.
20801         * lib/stdio-safer.h (freopen_safer): New declaration.
20802         * lib/stdio--.h (freopen): New override.
20803         * MODULES.html.sh (File stream based Input/Output): Mention it.
20804         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
20805         freopen-safer module.
20806         * doc/posix-functions/stderr.texi (stderr): Likewise.
20807         * doc/posix-functions/stdin.texi (stdin): Likewise.
20808         * doc/posix-functions/stdout.texi (stdout): Likewise.
20809         * modules/freopen-safer-tests: New test.
20810         * tests/test-reopen-safer.c: New file.
20811
20812 2009-11-05  Jim Meyering  <meyering@redhat.com>
20813
20814         maint.mk: Prohibit inclusion of "close-stream.h" without use.
20815         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
20816
20817 2009-11-05  Simon Josefsson  <simon@josefsson.org>
20818
20819         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
20820
20821 2009-11-05  Simon Josefsson  <simon@josefsson.org>
20822
20823         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
20824
20825 2009-11-05  Simon Josefsson  <simon@josefsson.org>
20826
20827         Fix link error.
20828         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
20829         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
20830
20831 2009-11-05  Simon Josefsson  <simon@josefsson.org>
20832
20833         * tests/test-func.c: Also test value of __func__.
20834
20835 2009-11-05  Simon Josefsson  <simon@josefsson.org>
20836
20837         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
20838         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
20839
20840 2009-11-05  Bruno Haible  <bruno@clisp.org>
20841
20842         Fix link error.
20843         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
20844         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
20845         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
20846
20847 2009-11-05  Bruno Haible  <bruno@clisp.org>
20848
20849         Tests for module 'inet_pton'.
20850         * modules/inet_pton-tests: New file.
20851         * tests/test-inet_pton.c: New file.
20852
20853 2009-11-05  Bruno Haible  <bruno@clisp.org>
20854
20855         Tests for module 'inet_ntop'.
20856         * modules/inet_ntop-tests: New file.
20857         * tests/test-inet_ntop.c: New file.
20858
20859 2009-11-04  Eric Blake  <ebb9@byu.net>
20860
20861         stdlib-safer: wrap all mkstemp variants
20862         * modules/mkostemp (configure.ac): Set witness.
20863         * modules/mkostemps (configure.ac): Likewise.
20864         * modules/mkstemps (configure.ac): Likewise.
20865         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
20866         (mkstemps_safer): Wrap more functions.
20867         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
20868         wrapping.
20869         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
20870         (mkstemps_safer): Implement the wrappers.
20871
20872         mkstemps, mkostemps: new modules
20873         * modules/mkostemps: New module.
20874         * modules/mkstemps: Likewise.
20875         * lib/mkostemps.c (mkostemps): New file.
20876         * lib/mkstemps.c (mkstemps): Likewise.
20877         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
20878         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
20879         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
20880         * modules/stdlib (Makefile.am): Substitute them.
20881         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
20882         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
20883         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
20884         * doc/gnulib.texi (Glibc stdlib.h): Include them.
20885         * MODULES.html.sh (File system functions): Mention them.
20886
20887         tempname: resync from glibc
20888         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
20889         same values for __GT_FILE as glibc.  Abort even when assertions
20890         are disabled.
20891         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
20892         match its value otherwise.  Allow idempotent inclusion.
20893         * lib/mkdtemp.c (mkdtemp): Adjust caller.
20894         * lib/mkostemp.c (mkostemp): Likewise.
20895         * lib/mkstemp.c (mkstemp): Likewise.
20896         * lib/tmpfile.c (tmpfile): Likewise.
20897         * NEWS: Document this.
20898
20899         utimens: fix use of futimens on older Linux
20900         * lib/utimens.c (fdutimens): Use updated, rather than original,
20901         timespec to avoid bug in older Linux kernel.
20902         Reported by Simon Josefsson.
20903
20904 2009-11-04  Bruno Haible  <bruno@clisp.org>
20905
20906         Make num_processors more flexible and consistent.
20907         * lib/nproc.h (enum nproc_query): New type.
20908         (num_processors): Add a 'query' argument.
20909         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
20910         (num_processors): Add a 'query' argument. Test the value of the
20911         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
20912         mingw, count the number of CPUs available for the current process.
20913         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
20914         Check for sched_getaffinity and sched_getaffinity_np.
20915         * modules/nproc (Depends-on): Add c-ctype, extensions.
20916         * NEWS: Mention the change.
20917
20918 2009-11-03  Bruno Haible  <bruno@clisp.org>
20919
20920         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
20921
20922 2009-11-03  Jim Meyering  <meyering@redhat.com>
20923
20924         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
20925         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
20926         if it is defined.
20927
20928 2009-11-02  Eric Blake  <ebb9@byu.net>
20929
20930         mktime, timegm: share common declaration
20931         * lib/mktime-internal.h: New file.
20932         * lib/mktime.c: Use it rather than open-coding a declaration.
20933         * lib/timegm.c: Likewise.
20934         * modules/mktime (Files): Ship it.
20935         * modules/timegm (Files): Likewise.
20936         Suggested by Bruno Haible.
20937
20938         test-update-copyright: update test to match script changes
20939         * tests/test-update-copyright.sh: Avoid hard-coding perl
20940         location.  Don't update *.bak created by earlier runs.
20941
20942 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
20943             Simon Josefsson  <simon@josefsson.org>
20944             Bruno Haible  <bruno@clisp.org>
20945
20946         Fix link error on Solaris 8.
20947         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
20948         also in libnsl. Define also INET_PTON_LIB.
20949         * modules/inet_pton (Link): New section.
20950
20951 2009-11-02  Simon Josefsson  <simon@josefsson.org>
20952             Bruno Haible  <bruno@clisp.org>
20953
20954         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
20955         * modules/inet_ntop (Link): New section.
20956         Reported by Boyan Kasarov <bkasarov@gmail.com>.
20957
20958 2009-11-02  Eric Blake  <ebb9@byu.net>
20959
20960         maint: avoid compiler warnings in m4 macros
20961         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
20962         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
20963
20964 2009-11-02  Simon Josefsson  <simon@josefsson.org>
20965
20966         * m4/pmccabe2html.m4: Remove file.
20967         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
20968         function.  Change maintainer.
20969         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
20970         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
20971         Courtès).
20972
20973 2009-10-31  Eric Blake  <ebb9@byu.net>
20974
20975         fseeko: fix m4 regression
20976         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
20977         regression from 2009-10-27.
20978         Reported by Ralf Wildenhues.
20979
20980 2009-10-31  Jim Meyering  <meyering@redhat.com>
20981
20982         inttostr: aesthetics and improved (compile-time) safety
20983         Define inttype_is_signed rather than inttype_is_unsigned,
20984         since the sole use is via "#if inttype_is_signed".
20985         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
20986         inttype_is_unsigned.
20987         * lib/offtostr.c (inttype_is_signed): Likewise.
20988         * lib/uinttostr.c (inttype_is_signed): Likewise.
20989         * lib/umaxtostr.c (inttype_is_signed): Likewise.
20990         * lib/inttostr.c (inttostr): Use verify to cross-check the
20991         inttype_is_signed value and the signedness of the actual type.
20992         * modules/inttostr (Depends-on): Add verify.
20993
20994 2009-10-30  Eric Blake  <ebb9@byu.net>
20995
20996         build: avoid compiler warnings
20997         * lib/fchmodat.c (lchmod): Mark unused variables.
20998         * lib/getopt.c (_getopt_initialize): Likewise.
20999         * lib/mktime.c (__mktime_internal): Provide prototype.
21000         * lib/inttostr.c (inttostr): Avoid compiler warning even with
21001         older gcc that do not understand #pragma GCC diagnostic.
21002         * lib/uinttostr.c (inttype_is_unsigned): Define.
21003         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
21004
21005 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
21006
21007         stat: fix compilation on AIX
21008         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
21009         only see struct stat64.
21010
21011 2009-10-30  Eric Blake  <ebb9@byu.net>
21012
21013         exclude: make more robust
21014         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
21015         rather than masking a coding bug.
21016         Suggested by Bruno Haible.
21017
21018 2009-10-30  Jim Meyering  <meyering@redhat.com>
21019
21020         perl scripts: remove #!/usr/bin/perl in favor of more portable...
21021         Rather than putting #!/usr/bin/perl on the first line,
21022         start with a variant of what's recommended by "man perlrun" that
21023         invokes the first "perl" program from your shell's search path.
21024         * build-aux/gitlog-to-changelog: Replace #!... as above.
21025         Add a "Local Variables" perl mode setting.
21026         Prompted by a patch from Ludovic Courtès.
21027         Improved by Eric Blake.
21028         * build-aux/useless-if-before-free: Likewise.
21029         * build-aux/announce-gen: Likewise.
21030         * build-aux/update-copyright: Likewise.
21031
21032 2009-10-29  Eric Blake  <ebb9@byu.net>
21033
21034         filenamecat-lgpl: adjust clients
21035         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
21036         filenamecat.
21037         * modules/renameat (Depends-on): Likewise.
21038
21039         filenamecat: split into filenamecat-lgpl
21040         * modules/filenamecat-lgpl: New module.
21041         * modules/filenamecat (Files): Move library-safe files into
21042         filenamecat-lgpl.
21043         (Depends-on): Add filenamecat-lgpl.
21044         (configure.ac): Declare witness.
21045         * lib/filenamecat.h (file_name_concat): Only declare when using
21046         GPL module.
21047         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
21048         Move...
21049         * lib/filenamecat-lgpl.c: ...into new file.
21050         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
21051         (gl_FILE_NAME_CONCAT): Use it.
21052         * MODULES.html.sh (File system functions): Mention new module.
21053
21054         argp: avoid memory leak
21055         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
21056         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
21057         base_name, since the latter malloc()s and can call exit().
21058         Leak introduced 2006-07-03.
21059
21060         dirname-lgpl: adjust clients that don't need full dirname
21061         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
21062         * modules/filenamecat (Depends-on): Likewise.
21063         * modules/linkat (Depends-on): Likewise.
21064         * modules/mkancesdirs (Depends-on): Likewise.
21065         * modules/mkdir (Depends-on): Likewise.
21066         * modules/openat (Depends-on): Likewise.
21067         * modules/savewd (Depends-on): Likewise.
21068         * modules/rename (Depends-on): Likewise.
21069         (License): Relax license.
21070         * modules/mkdir-tests (Depends-on): Drop progname.
21071         (Makefile.am): Delete unneeded LDADD.
21072         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
21073
21074         dirname: split into dirname-lgpl
21075         * modules/dirname-lgpl: New module.
21076         * modules/dirname (Files): Move library-safe files into
21077         dirname-lgpl.
21078         (Depends-on): Add dirname-lgpl.
21079         (configure.ac): Declare witness.
21080         * modules/double-slash-root (License): Relax license.
21081         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
21082         module.
21083         * lib/dirname.c (dir_len, mdir_name): Move...
21084         * lib/dirname-lgpl.c: ...into new file.
21085         * lib/basename.c (last_component, base_len): Move...
21086         * lib/basename-lgpl.c: ...into new file.
21087         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
21088         (gl_DIRNAME): Use it.
21089         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
21090         Mention new module.
21091         * modules/dirname-tests (Depends-on): Add progname.
21092         * tests/test-dirname.c (program_name): Delete.
21093
21094         mkdir: make safe for libraries
21095         * modules/mkdir (Depends-on): Drop xalloc.
21096         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
21097         exit.
21098
21099         tests: avoid some compiler warnings
21100         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
21101         literals.
21102         * tests/test-memchr.c (main): Avoid type mismatch.
21103         * tests/test-arpa_inet.c (main): Avoid unused parameters.
21104         * tests/test-base64.c (main): Likewise.
21105         * tests/test-getdelim.c (main): Likewise.
21106         * tests/test-gethostname.c (main): Likewise.
21107         * tests/test-getline.c (main): Likewise.
21108         * tests/test-netinet_in.c (main): Likewise.
21109         * tests/test-select.c (open_server_socket, main): Likewise.
21110         * tests/test-select-stdin.c (main): Likewise.
21111         * tests/test-sockets.c (main): Likewise.
21112         * tests/test-strsignal.c (main): Likewise.
21113         * tests/test-sys_select.c (main): Likewise.
21114         * tests/test-sys_socket.c (main): Likewise.
21115         * tests/test-u64.c (main): Likewise.
21116         * tests/test-xfprintf-posix.c (main): Likewise.
21117         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
21118
21119         sockets: avoid compiler warning
21120         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
21121
21122         maint: detect usage(1) and other suspicious exits
21123         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
21124
21125 2009-10-29  Jim Meyering  <meyering@redhat.com>
21126
21127         timespec: long-to-int truncation could make timespec_cmp malfunction
21128         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
21129         a multiple of 2^32 nanoseconds as no difference.
21130
21131 2009-10-28  Jim Meyering  <meyering@redhat.com>
21132
21133         fprintftime: wrap macro code argument in "do {...} while(0)"
21134         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
21135         cpy macro must be a statement that can be followed by a semicolon.
21136         Now that the else clause contains a comment and is hence longer
21137         than one line, I require curly braces.  That in turn requires
21138         that we wrap this code block in the standard do...while(0).
21139
21140         fprintftime: remove stray semicolon from previous change
21141         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
21142
21143         fprintftime: avoid a warning about ignored fwrite return value
21144         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
21145         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
21146         that is unsafe.
21147         * modules/fprintftime (Depends-on): Add ignore-value.
21148
21149         exclude: avoid an unwarranted warning
21150         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
21151
21152 2009-10-27  Eric Blake  <ebb9@byu.net>
21153
21154         fseek: avoid compilation failure when fflush is replaced
21155         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
21156         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
21157         module is in use.
21158         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
21159         module is not in use; since REPLACE_FSEEK worked otherwise.
21160         (GNULIB_FTELLO): Likewise for ftell.
21161         Reported by Ian Beckwith and others.
21162
21163 2009-10-27  Bruno Haible  <bruno@clisp.org>
21164
21165         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
21166         Reported by Jim Meyering.
21167
21168 2009-10-27  Jim Meyering  <jim@meyering.net>
21169             Bruno Haible  <bruno@clisp.org>
21170
21171         Avoid warning despite dropping the return value of fwrite.
21172         * lib/unicodeio.c: Include ignore-value.h.
21173         (fwrite_success_callback): Explicitly ignore fwrite's return value.
21174         * modules/unicodeio (Depends-on): Add ignore-value.
21175
21176 2009-10-26  Eric Blake  <ebb9@byu.net>
21177
21178         areadlinkat: fix fallback path
21179         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
21180         pointer and zero.
21181
21182 2009-10-22  Pádraig Brady  <P@draigBrady.com>
21183
21184         Use a better IO block size for modern systems
21185         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
21186         * lib/md2.c: Likewise.
21187         * lib/md4.c: Likewise.
21188         * lib/md5.c: Likewise.
21189         * lib/sha1.c: Likewise.
21190         * lib/sha256.c: Likewise.
21191         * lib/sha512.c: Likewise.
21192
21193 2009-10-22  Eric Blake  <ebb9@byu.net>
21194
21195         tests: avoid several compiler warnings
21196         * tests/test-getcwd.c (main): Avoid buffer underflow.
21197         * tests/test-getdate.c (main): String literals are not safe with
21198         putenv, so use setenv.  Declare unused argument.
21199         * modules/getdate-tests (Depends-on): Add setenv.
21200         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
21201         problems with string literals in char *.
21202         * tests/test-hash.c (main): Avoid shadowing declaration.
21203         (insert_new): Treat string literals as char const *.
21204         * tests/test-getopt.h (test_getopt): Likewise.
21205         (getopt_loop): Alter types to minimize casting elsewhere.
21206         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
21207         (test_getopt_long_posix): Likewise.
21208         (do_getopt_long): Add wrapper to minimize casting.
21209         * tests/test-atexit.c (clear_temp_file): Use void.
21210         * tests/test-areadlink-with-size.c (main): Declare unused
21211         arguments.
21212         * tests/test-areadlink.c (main): Likewise.
21213         * tests/test-areadlinkat-with-size.c (main): Likewise.
21214         * tests/test-areadlinkat.c (main): Likewise.
21215         * tests/test-canonicalize-lgpl.c (main): Likewise.
21216         * tests/test-canonicalize.c (main): Likewise.
21217         * tests/test-dirent-safer.c (main): Likewise.
21218         * tests/test-dirname.c (main): Likewise.
21219         * tests/test-dup2.c (main): Likewise.
21220         * tests/test-fchdir.c (main): Likewise.
21221         * tests/test-fcntl-h.c (main): Likewise.
21222         * tests/test-fcntl-safer.c (main): Likewise.
21223         * tests/test-fdopendir.c (main): Likewise.
21224         * tests/test-fdutimensat.c (main): Likewise.
21225         * tests/test-fflush.c (main): Likewise.
21226         * tests/test-filenamecat.c (main): Likewise.
21227         * tests/test-filevercmp.c (main): Likewise.
21228         * tests/test-fopen-safer.c (main): Likewise.
21229         * tests/test-fopen.c (main): Likewise.
21230         * tests/test-fpending.c (main): Likewise.
21231         * tests/test-fpurge.c (main): Likewise.
21232         * tests/test-freading.c (main): Likewise.
21233         * tests/test-fstatat.c (main): Likewise.
21234         * tests/test-fsync.c (main): Likewise.
21235         * tests/test-futimens.c (main): Likewise.
21236         * tests/test-getndelim2.c (main): Likewise.
21237         * tests/test-gettimeofday.c (main): Likewise.
21238         * tests/test-getopt.c (main): Likewise.
21239         * tests/test-i-ring.c (main): Likewise.
21240         * tests/test-inttypes.c (main): Likewise.
21241         * tests/test-link.c (main): Likewise.
21242         * tests/test-lstat.c (main): Likewise.
21243         * tests/test-math.c (main): Likewise.
21244         * tests/test-md5.c (main): Likewise.
21245         * tests/test-memchr2.c (main): Likewise.
21246         * tests/test-memrchr.c (main): Likewise.
21247         * tests/test-mkdir.c (main): Likewise.
21248         * tests/test-mkdirat.c (main): Likewise.
21249         * tests/test-mkfifoat.c (main): Likewise.
21250         * tests/test-open.c (main): Likewise.
21251         * tests/test-openat-safer.c (main): Likewise.
21252         * tests/test-openat.c (main): Likewise.
21253         * tests/test-quotearg.c (main): Likewise.
21254         * tests/test-rawmemchr.c (main): Likewise.
21255         * tests/test-readlink.c (main): Likewise.
21256         * tests/test-remove.c (main): Likewise.
21257         * tests/test-rename.c (main): Likewise.
21258         * tests/test-renameat.c (main): Likewise.
21259         * tests/test-rmdir.c (main): Likewise.
21260         * tests/test-sha1.c (main): Likewise.
21261         * tests/test-signal.c (main): Likewise.
21262         * tests/test-sigaction.c (main): Likewise.
21263         * tests/test-stat.c (main): Likewise.
21264         * tests/test-stat-time.c (main): Likewise.
21265         * tests/test-stddef.c (main): Likewise.
21266         * tests/test-stdint.c (main): Likewise.
21267         * tests/test-stdio.c (main): Likewise.
21268         * tests/test-stdlib.c (main): Likewise.
21269         * tests/test-strchrnul.c (main): Likewise.
21270         * tests/test-strerror.c (main): Likewise.
21271         * tests/test-string.c (main): Likewise.
21272         * tests/test-strtod.c (main): Likewise.
21273         * tests/test-strverscmp.c (main): Likewise.
21274         * tests/test-symlink.c (main): Likewise.
21275         * tests/test-symlinkat.c (main): Likewise.
21276         * tests/test-sys_stat.c (main): Likewise.
21277         * tests/test-sys_time.c (main): Likewise.
21278         * tests/test-time.c (main): Likewise.
21279         * tests/test-unistd.c (main): Likewise.
21280         * tests/test-unlink.c (main): Likewise.
21281         * tests/test-unlinkat.c (main): Likewise.
21282         * tests/test-utimens.c (main): Likewise.
21283         * tests/test-utimensat.c (main): Likewise.
21284         * tests/test-version-etc.c (main): Likewise.
21285         * tests/test-wchar.c (main): Likewise.
21286         * tests/test-wctype.c (main): Likewise.
21287         * tests/test-xprintf-posix.c (main): Likewise.
21288         * tests/test-posixtm.c (main): Likewise.
21289         (STREQ): Delete unused macro.
21290         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
21291         shadowed variables.
21292         * tests/test-memchr.c (main): Likewise.
21293
21294 2009-10-21  Eric Blake  <ebb9@byu.net>
21295
21296         areadlinkat: avoid failure on older glibc
21297         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
21298         rather than mis-comparing 0 against FUNC_RESULT of char*.
21299
21300 2009-10-21  Bruno Haible  <bruno@clisp.org>
21301
21302         * modules/stpncpy (License): Relicense under LGPLv2+.
21303         Reported by David Lutterkort <lutter@redhat.com>.
21304
21305 2009-10-20  Eric Blake  <ebb9@byu.net>
21306
21307         utimensat: work around Solaris 9 bug
21308         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
21309         has trailing slash bugs.
21310         * tests/test-lutimens.h (test_lutimens): Enhance test.
21311         * tests/test-utimens.h (test_utimens): Likewise.
21312         * doc/posix-functions/utime.texi (utime): Enhance documentation.
21313         * doc/posix-functions/utimes.texi (utimes): Likewise.
21314         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
21315         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
21316         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
21317         * doc/posix-functions/futimens.texi (futimens): Likewise.
21318
21319         fdutimensat: new module
21320         * modules/fdutimensat: New file.
21321         * lib/fdutimensat.c (fdutimensat): Likewise.
21322         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
21323         * MODULES.html.sh (File system functions): Mention module.
21324         * modules/fdutimensat-tests: New test.
21325         * tests/test-fdutimensat.c: Likewise.
21326
21327         doc: regenerate INSTALL
21328         * doc/INSTALL: Reflect recent autoconf update.
21329         * doc/INSTALL.ISO: Likewise.
21330         * doc/INSTALL.UTF-8: Likewise.
21331
21332 2009-10-20  Pádraig Brady  <P@draigBrady.com>
21333
21334         acl: warn if ACL support is not detected
21335         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
21336
21337 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
21338
21339         * lib/nproc.h: Add extern "C" block for C++.
21340
21341 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
21342             Bruno Haible  <bruno@clisp.org>
21343
21344         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
21345         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
21346         * doc/posix-functions/isalpha.texi: Likewise.
21347         * doc/posix-functions/isblank.texi: Likewise.
21348         * doc/posix-functions/iscntrl.texi: Likewise.
21349         * doc/posix-functions/isdigit.texi: Likewise.
21350         * doc/posix-functions/isgraph.texi: Likewise.
21351         * doc/posix-functions/islower.texi: Likewise.
21352         * doc/posix-functions/isprint.texi: Likewise.
21353         * doc/posix-functions/ispunct.texi: Likewise.
21354         * doc/posix-functions/isspace.texi: Likewise.
21355         * doc/posix-functions/isupper.texi: Likewise.
21356         * doc/posix-functions/isxdigit.texi: Likewise.
21357
21358 2009-10-18  Bruno Haible  <bruno@clisp.org>
21359
21360         Tests for module 'isblank'.
21361         * modules/isblank-tests: New file.
21362         * tests/test-isblank.c: New file.
21363
21364         New module 'isblank'.
21365         * lib/isblank.c: New file.
21366         * m4/isblank.m4: New file.
21367         * modules/isblank: New file.
21368         * doc/posix-functions/isblank.texi: Mention the new module.
21369
21370 2009-10-18  Bruno Haible  <bruno@clisp.org>
21371
21372         New module 'ctype'.
21373         * lib/ctype.in.h: New file.
21374         * m4/ctype.m4: New file.
21375         * modules/ctype: New file.
21376         * doc/posix-headers/ctype.texi: Mention the new module.
21377
21378 2009-10-18  Jim Meyering  <meyering@redhat.com>
21379
21380         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
21381         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
21382         right after its initialization, rather than farther down.
21383         Keeping these in close proximity makes it easier to ensure
21384         that each such variable is initialized.  E.g.,
21385
21386             LIB_CLOCK_GETTIME=
21387             AC_SUBST([LIB_CLOCK_GETTIME])
21388
21389         This change also increments these serial numbers.
21390         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
21391         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
21392         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
21393
21394 2009-10-18  Bruno Haible  <bruno@clisp.org>
21395
21396         Don't let environment variables perturb build.
21397         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
21398         (gl_PREREQ_GETHRXTIME): ... not here.
21399
21400 2009-10-18  Bruno Haible  <bruno@clisp.org>
21401
21402         Avoid symlink attack in localcharset module.
21403         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
21404         (O_NOFOLLOW): Define fallback.
21405         (get_charset_aliases): Don't open the file if it is a symbolic link.
21406         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
21407         gl_FCNTL_H.
21408         (gl_FCNTL_H): Require it.
21409         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
21410         * modules/localcharset (Files): Add m4/fcntl_h.m4.
21411         Reported by Fergal Glynn <fglynn@veracode.com>.
21412
21413 2009-10-18  Bruno Haible  <bruno@clisp.org>
21414
21415         Implement nproc for mingw.
21416         * lib/nproc.c: Include <windows.h>
21417         (num_processors): On native Windows platforms, try GetSystemInfo.
21418
21419 2009-10-18  Bruno Haible  <bruno@clisp.org>
21420
21421         Implement nproc for IRIX.
21422         * lib/nproc.c: Include <sys/sysmp.h>.
21423         (num_processors): On IRIX systems, try sysmp.
21424         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
21425
21426 2009-10-18  Bruno Haible  <bruno@clisp.org>
21427
21428         Implement nproc for HP-UX.
21429         * lib/nproc.c: Include <sys/pstat.h>
21430         (num_processors): On HP-UX systems, try pstat_getdynamic.
21431         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
21432         pstat_getdynamic.
21433
21434 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
21435             Bruno Haible  <bruno@clisp.org>
21436
21437         Implement nproc for NetBSD, OpenBSD.
21438         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
21439         (ARRAY_SIZE): New macro.
21440         (num_processors): On BSD systems, try sysctl of HW_NCPU.
21441         * m4/nproc.m4: New file.
21442         * modules/nproc (Files): Add m4/nproc.m4.
21443         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
21444         (Makefile.am): Instead, augment lib_SOURCES.
21445
21446 2009-10-18  Bruno Haible  <bruno@clisp.org>
21447
21448         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
21449         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
21450         sys/param.h.
21451
21452 2009-10-16  Eric Blake  <ebb9@byu.net>
21453
21454         utimensat: new module
21455         * modules/utimensat: New file.
21456         * lib/utimensat.c (utimensat): Likewise.
21457         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
21458         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
21459         so we can work around Linux bugs.
21460         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
21461         * modules/sys_stat (Makefile.am): Substitute them.
21462         * lib/sys_stat.in.h (utimensat): Declare it.
21463         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
21464         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
21465         * modules/utimensat-tests: New test.
21466         * tests/test-utimensat.c: Likewise.
21467
21468         utimens: let lutimens work on non-symlinks
21469         * lib/utimens.c (lutimens): Fall back to utimens rather than
21470         failing with ENOSYS, when file is not a symlink.
21471         (utimens): Reduce redirection.
21472         * tests/test-lutimens.h (test_lutimens): Update test to cover
21473         non-symlinks.
21474         * tests/test-utimens.h (test_utimens): Update test to cover
21475         symlinks.
21476         * tests/test-utimens.c (main): Update caller.
21477
21478         utimens: cache whether utimensat syscall works
21479         * lib/utimens.c (utimensat_works_really): New cache variable.
21480         (fdutimens, lutimens): Use it to avoid failing syscall.
21481
21482         test-stat-time, test-utimens: improve portability
21483         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
21484         ext4 on alpha, and for cygwin.
21485         * tests/test-utimens-common.h: New file.
21486         (nap): Factor delays into single function.
21487         * tests/test-lutimens.h (test_lutimens): Use new header.
21488         * tests/test-futimens.h (test_futimens): Likewise.
21489         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
21490         timestamps to occur from same machine, as was done previously for
21491         test_utimens.
21492         * modules/utimens-tests (Files): Ship new file.
21493         * modules/futimens-tests (Files): Likewise.
21494         Reported in part by Jim Meyering.
21495
21496         sys_stat: sort replacement declarations
21497         * lib/sys_stat.in.h: Sort declarations.
21498         * lib/futimens.c (futimens): Fix typo.
21499
21500 2009-10-15  Jim Meyering  <meyering@redhat.com>
21501
21502         don't let environment settings perturb build
21503         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
21504         could cause a configure-time and/or build-time malfunction.
21505         Typically, a configure-time function-in-library test is performed
21506         via code like this:
21507
21508           LIB_VAR=
21509           AC_SUBST([LIB_VAR])
21510           prefix_saved_LIBS=$LIBS
21511             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
21512                        [test "$ac_cv_search_FUNC" = "none required" ||
21513                         LIB_VAR=$ac_cv_search_FUNC])
21514           LIBS=$prefix_saved_LIBS
21515
21516         However, in each of the files affected by this change, the LIB_VAR=
21517         initialization was omitted.  Thus, when set in the environment, its
21518         value would propagate into generated Makefiles when FUNC is not found
21519         in LIB_NAME.
21520         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
21521         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
21522         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
21523
21524 2009-10-14  Eric Blake  <ebb9@byu.net>
21525
21526         fchdir: avoid infinite recursion in mingw
21527         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
21528         recursing.
21529
21530         test-stat-time: port to mingw
21531         * tests/test-stat-time.c (force_unlink): Return a value.
21532         (test_ctime) [W32]: Fix compilation error.
21533         (nap): Don't call usleep with too large an argument.  Use
21534         force_unlink.
21535         * doc/pastposix-functions/usleep.texi (usleep): Document the
21536         portability issue.
21537
21538 2009-10-13  Jim Meyering  <meyering@redhat.com>
21539
21540         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
21541         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
21542         * modules/pipe-filter-ii: Likewise.
21543         * modules/sys_socket-tests: Likewise.
21544         * modules/tsearch-tests: Likewise.
21545         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
21546         (check): Depend on it.
21547
21548 2009-10-12  Eric Blake  <ebb9@byu.net>
21549
21550         utimens-tests: port to NFS file systems
21551         * tests/test-utimens.h (test_utimens): Refactor utimecmp
21552         comparisons to avoid spurious failures from timestamp drift
21553         between NFS machines.
21554
21555 2009-10-12  Eric Blake  <ebb9@byu.net>
21556
21557         stat-time-tests: minor cleanups
21558         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
21559         * tests/test-stat-time.c (nap): Separate assignment from call.
21560         Suggested by Paolo Bonzini and Bruno Haible.
21561
21562         sys_stat: guarantee struct timespec
21563         * lib/sys_stat.in.h (includes): Always include <time.h>
21564         * modules/sys_stat (Depends-on): Add time.
21565         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
21566         mode_t permission values.
21567         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
21568         get at subsecond timestamps.
21569
21570 2009-10-10  Eric Blake  <ebb9@byu.net>
21571
21572         futimens: new module
21573         * modules/futimens: New file.
21574         * lib/futimens.c (futimens): Likewise.
21575         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
21576         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
21577         we can work around Linux bugs.
21578         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
21579         * modules/sys_stat (Makefile.am): Substitute them.
21580         * lib/sys_stat.in.h (futimens): Declare it.
21581         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
21582         * doc/posix-functions/futimens.texi (futimens): Likewise.
21583         * modules/futimens-tests: New test.
21584         * tests/test-futimens.c: Likewise.
21585
21586         utimens: introduce fdutimens
21587         * lib/utimens.h (fdutimens): New prototype.
21588         * lib/utimens.c (gl_futimens): Move guts...
21589         (fdutimens): ...to new interface.
21590         * tests/test-utimens.c (do_fdutimens): Use it.
21591
21592         utimens: add UTIME_NOW and UTIME_OMIT support
21593         * lib/utimens.c (validate_timespec, update_timespec): New helper
21594         functions.
21595         (gl_futimens, lutimens): Use them.
21596         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
21597         stdbool, sys_stat.
21598         (Link): Mention resulting library dependency.
21599         * modules/utimecmp (Link): Likewise.
21600         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
21601         (Makefile.am): Pick up library dependency.
21602         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
21603         definition.
21604         * tests/test-sys_stat.c: Test the definitions.
21605         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
21606         * NEWS: Document library dependency.
21607
21608         utimecmp: support symlink timestamps
21609         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
21610         hashing when possible.  Use pathconf when available.
21611         (SYSCALL_RESOLUTION): Recognize tighter resolution.
21612         * modules/utimecmp (Depends-on): Add lstat.
21613
21614         utimens: add lutimens interface
21615         * lib/utimens.c (lutimens): New function.
21616         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
21617         * lib/utimens.h (lutimens): Declare new interface.
21618         * tests/test-utimens.c (main): Enhance test.
21619         * tests/test-lutimens.h (test_lutimens): New file.
21620         * modules/utimens-tests (Files): Distribute it.
21621         (Depends-on): Add symlink.
21622         (configure.ac): Check for usleep.
21623
21624         utimens: validate futimens usage
21625         * lib/utimens.c (gl_futimens): Require valid fd up front, using
21626         fewer syscalls on failure later on.  Avoid compiler warning on
21627         mingw.
21628         * modules/utimens (Depends-on): Add dup2.
21629
21630         utimens: add test
21631         * modules/utimens-tests: New test.
21632         * tests/test-utimens.h: New file.
21633         * tests/test-futimens.h: Likewise.
21634         * tests/test-utimens.c: Likewise.
21635
21636         doc: mention timestamp portability issues
21637         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
21638         instead.
21639         * doc/posix-functions/utime.texi (utime): Likewise.
21640         * doc/posix-functions/utimes.texi (utimes): Likewise.
21641         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
21642         instead.
21643         * doc/posix-functions/futimens.texi (futimens): Mention utimens
21644         module.
21645         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
21646         Mention weakness with symlink timestamps.
21647         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
21648         to utimensat/futimens instead.
21649         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
21650
21651         test-dup2: enhance test
21652         * tests/test-dup2.c (main): Also check AT_FDCWD.
21653
21654         test-stat-time: avoid more spurious failures
21655         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
21656         xfs; and avoid race if the two timestamps cross quantization edge.
21657
21658         relocatable: prefer 'file system' over 'filesystem'
21659         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
21660         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
21661         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
21662         * doc/relocatable.texi (Enabling Relocatability): Likewise.
21663         * lib/relocatable.c (compute_curr_prefix): Likewise.
21664
21665 2009-10-10  Jim Meyering  <meyering@redhat.com>
21666
21667         stat-time-tests: check for the usleep function
21668         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
21669
21670 2009-10-10  Bruno Haible  <bruno@clisp.org>
21671
21672         * modules/xnanosleep: Put the Link section after the Include section.
21673
21674 2009-10-09  Eric Blake  <ebb9@byu.net>
21675
21676         dup2: work around FreeBSD 6.1 bug
21677         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
21678         * doc/posix-functions/dup2.texi (dup2): Document it.
21679         Reported by Nelson H. F. Beebe and Jim Meyering.
21680
21681         test-stat-time: port to buggy NFS clients
21682         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
21683         (test_ctime): Also skip test if mtime and ctime are skewed.
21684
21685         maint: prefer 'file system' over 'filesystem'
21686         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
21687         * doc/posix-functions/lstat.texi (lstat): Likewise.
21688         * lib/file-has-acl.c (file_has_acl): Likewise.
21689         * lib/fwriteerror.c [TEST]: Likewise.
21690         * tests/test-areadlink.h (test_areadlink): Likewise.
21691         * tests/test-areadlinkat-with-size.c (main): Likewise.
21692         * tests/test-areadlinkat.c (main): Likewise.
21693         * tests/test-canonicalize-lgpl.c (main): Likewise.
21694         * tests/test-canonicalize.c (main): Likewise.
21695         * tests/test-fstatat.c (main): Likewise.
21696         * tests/test-linkat.c (main): Likewise.
21697         * tests/test-lstat.h (test_lstat_func): Likewise.
21698         * tests/test-mkdir.h (test_mkdir): Likewise.
21699         * tests/test-readlink.h (test_readlink): Likewise.
21700         * tests/test-remove.c (main): Likewise.
21701         * tests/test-rename.h (test_rename): Likewise.
21702         * tests/test-renameat.c (main): Likewise.
21703         * tests/test-rmdir.h (test_rmdir_func): Likewise.
21704         * tests/test-symlink.h (test_symlink): Likewise.
21705         * tests/test-symlinkat.c (main): Likewise.
21706         * tests/test-unlink.h (test_unlink_func): Likewise.
21707         * tests/test-unlinkat.c (main): Likewise.
21708
21709         maint: make realtime library usage explicit
21710         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
21711         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
21712         * modules/settime (Link): Likewise.
21713         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
21714
21715         test-stat-time: speed up execution
21716         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
21717         warning on mingw.
21718         (nap): New helper function.
21719         (prepare_test): Use it to reduce sleep time.
21720         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
21721         execution.
21722         * modules/stat-time-tests (configure.ac): Check for usleep.
21723
21724 2009-10-09  Jim Meyering  <meyering@redhat.com>
21725
21726         selinux-h: always use getfilecon wrappers
21727         * lib/getfilecon.c: New file.
21728         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
21729         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
21730         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
21731         (fgetfilecon): Provide a stub.
21732         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
21733         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
21734         file unconditionally.
21735         When <selinux/selinux.h> is found, arrange to use wrappers.
21736         * modules/selinux-h (Files): Add getfilecon.c.
21737         (Makefile.am): Substitute include-next-related bits
21738         into the now-always-generated selinux/selinux.h file.
21739         * doc/glibc-functions/lgetfilecon.texi: New file.
21740         * doc/glibc-functions/fgetfilecon.texi: New file.
21741         * doc/glibc-functions/getfilecon.texi: New file.
21742         * doc/glibc-functions/getfilecon-desc.texi: New file.
21743         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
21744         which to pull in the new files.
21745         * MODULES.html.sh (Misc): Add selinux-h.
21746
21747 2009-10-08  Jim Meyering  <meyering@redhat.com>
21748
21749         unistd: fix comment typo
21750         * lib/unistd.in.h (euidaccess): Fix a comment typo.
21751
21752 2009-10-08  Eric Blake  <ebb9@byu.net>
21753
21754         areadlink: use SIZE_MAX consistently
21755         * modules/areadlink (Depends-on): Add stdint.
21756         * modules/areadlink-with-size (Depends-on): Likewise.
21757         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
21758         gives NULL; drop sys/types, since unistd gives size_t; and add
21759         stdint for SIZE_MAX.
21760         (SIZE_MAX): Rely on headers.
21761         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
21762         and add stdint.
21763         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
21764         (SIZE_MAX): Likewise.
21765         (INITIAL_BUF_SIZE): Turn into enum.
21766         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
21767
21768 2009-10-08  Jim Meyering  <meyering@redhat.com>
21769
21770         areadlinkat: avoid compilation failure
21771         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
21772         Fix typo in comment.
21773
21774 2009-10-07  Eric Blake  <ebb9@byu.net>
21775
21776         areadlinkat-with-size: new module
21777         * modules/areadlinkat-with-size: New module.
21778         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
21779         * lib/areadlink.h (areadlinkat): Declare it.
21780         * MODULES.html.sh (File system functions): Mention it.
21781         * modules/areadlinkat-with-size-tests: New test.
21782         * tests/test-areadlinkat-with-size.c: New file.
21783
21784         xreadlinkat: new module
21785         * modules/xreadlinkat: New module.
21786         * lib/xreadlinkat.c (xreadlinkat): New file.
21787         * lib/xreadlink.h (xreadlinkat): Declare it.
21788         * MODULES.html.sh (File system functions): Mention it.
21789
21790         areadlinkat: new module
21791         * lib/at-func.c (FUNC_FAIL): New define.
21792         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
21793         * modules/areadlinkat: New module.
21794         * lib/linkat.c (areadlinkat): Move...
21795         * lib/areadlinkat.c (areadlinkat): ...to new file.
21796         * lib/areadlink.h (areadlinkat): Declare it.
21797         * modules/linkat (Depends-on): Add areadlinkat.
21798         * MODULES.html.sh (File system functions): Mention it.
21799         * modules/areadlinkat-tests: New test.
21800         * tests/test-areadlinkat.c: New file.
21801
21802         areadlink, areadlink-with-size: add tests
21803         * modules/areadlink-tests: New test.
21804         * modules/areadlink-with-size-tests: Likewise.
21805         * tests/test-areadlink.h: New file.
21806         * tests/test-areadlink.c: Likewise.
21807         * tests/test-areadlink-with-size.c: Likewise.
21808
21809         maint: minor cleanups
21810         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
21811         _UNUSED_PARAMETER_ instead.
21812         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
21813         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
21814         * modules/linkat-tests (Files): Distribute test-link.h.
21815
21816         openat, utimens: whitespace cleanup
21817         * lib/openat.c: Prefer space throughout, rather than mix of 8
21818         spaces vs. tabs.
21819         * lib/at-func.c: Likewise.
21820         * lib/utimens.c: Likewise.
21821
21822         openat: avoid using wrong fd
21823         * lib/openat.c (openat_permissive): Reject user's fd if saving the
21824         working directory chooses same fd.
21825         * lib/at-func.c (AT_FUNC_NAME): Likewise.
21826
21827         mkdir, mkdirat: fix cygwin 1.5.x bug
21828         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
21829         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
21830         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
21831         bug.
21832         (gl_PREREQ_MKDIR): Delete unused macro.
21833         * modules/mkdir (Files): Track file rename.
21834         (configure.ac): Update macro name.
21835         * modules/openat (Depends-on): Add mkdir.
21836         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
21837
21838         mkdir, mkdirat: add tests
21839         * modules/mkdir-tests: New test.
21840         * tests/test-mkdir.h: New file.
21841         * tests/test-mkdir.c: Likewise.
21842         * tests/test-mkdirat.c: Likewise.
21843         * modules/openat-tests (Files): Add new files.
21844         (Makefile.am): Run new test.
21845
21846 2009-10-06  Eric Blake  <ebb9@byu.net>
21847
21848         doc: tweak *at function documentation
21849         * doc/posix-functions/faccessat.texi (faccessat): Mention
21850         known issue with replacement.
21851         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
21852         * doc/posix-functions/linkat.texi (linkat): Likewise.
21853         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
21854         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
21855         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
21856         * doc/posix-functions/renameat.texi (renameat): Likewise.
21857         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
21858
21859         openat: fix GNU/Hurd bug in unlinkat
21860         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
21861         broken.
21862         * doc/posix-functions/unlink.texi (unlink): Document this.
21863         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
21864
21865         fdopendir: fix GNU/Hurd bug
21866         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
21867         allowing non-directory fds.
21868         * lib/fdopendir.c (rpl_fdopendir): Work around it.
21869         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
21870         * modules/dirent (Makefile.am): Substitute it.
21871         * lib/dirent.in.h (fdopendir): Declare replacement.
21872         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
21873         * tests/test-fdopendir.c (main): Test something other than
21874         /dev/null, since on Hurd that behaves like a directory.
21875
21876         test-symlink: port to GNU/Hurd
21877         * tests/test-symlink.h (test_symlink): Relax expected errno.
21878
21879         doc: tweak more cygwin information
21880         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
21881         now compatible with glibc.
21882         * doc/posix-functions/getopt.texi (getopt): Likewise.
21883
21884         getopt-gnu: add another test
21885         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
21886         guarantee behavior relied on by m4.
21887         * tests/test-getopt.c (main): Use it.
21888         * modules/getopt-posix-tests (Depends-on): Add setenv.
21889         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
21890
21891         getopt: fix compilation on darwin
21892         * lib/getopt.in.h (includes): Leave breadcrumbs during system
21893         include.
21894         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
21895         Reported by Ludovic Courtès.
21896
21897 2009-10-06  Bruno Haible  <bruno@clisp.org>
21898
21899         * modules/size_max (Description): Discourage its use.
21900         Reported by Simon Josefsson.
21901
21902 2009-10-06  Jim Meyering  <meyering@redhat.com>
21903
21904         linkat: avoid compilation failure
21905         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
21906
21907 2009-10-05  Eric Blake  <ebb9@byu.net>
21908
21909         linkat: support Linux 2.6.17
21910         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
21911         linkat on Linux, but allow cache variable override.
21912         * lib/linkat.c (rpl_linkat): Define override.
21913         * modules/linkat (Depends-on): Add symlinkat.
21914         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
21915         * modules/unistd (Makefile.am): Substitute it.
21916         * lib/unistd.in.h (linkat): Declare replacement.
21917         Reported by Pádraig Brady.
21918
21919         quotearg: port test to systems with C.UTF-8 locale
21920         * tests/test-quotearg.c (struct result_strings): Add another
21921         member, differentiating between C.ASCII and C.UTF-8 handling.
21922         (compare_strings): Add parameter.
21923         (main): Adjust all callers.
21924
21925         getopt: avoid clash with FreeBSD _getopt_internal
21926         * lib/getopt.in.h (_getopt_internal): Override the name.
21927         * lib/getopt_int.h (includes): Pick up any overrides.
21928         Reported by Reuben Thomas.
21929
21930         hash: allow C89 compilation
21931         * lib/hash.c (check_tuning): Move declaration before statement.
21932         Reported by Reuben Thomas.
21933
21934 2009-10-05  Karl Berry  <karl@gnu.org>
21935
21936         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
21937
21938 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
21939             Bruno Haible  <bruno@clisp.org>
21940
21941         * lib/uname.c (uname): Use a table-driven algorithm to compute
21942         Windows NT versions.
21943
21944 2009-10-04  Bruno Haible  <bruno@clisp.org>
21945
21946         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
21947         program_invocation_short_name.
21948         * modules/progname (configure.ac): Test for presence of
21949         program_invocation_short_name.
21950         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
21951
21952 2009-10-04  Bruno Haible  <bruno@clisp.org>
21953
21954         * lib/progname.c (set_program_name): Fix comment.
21955         Reported by Jim Meyering.
21956
21957 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
21958             Bruno Haible  <bruno@clisp.org>
21959
21960         * lib/uname.c: Include <string.h>.
21961         (uname): Do only one call to GetVersionEx in the common case.
21962
21963 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
21964             Bruno Haible  <bruno@clisp.org>
21965
21966         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
21967         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
21968         (uname): Add support for Windows CE and various non-x86 CPU types.
21969
21970 2009-10-03  Bruno Haible  <bruno@clisp.org>
21971
21972         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
21973         invocation to tests/configure.ac.
21974         Reported by Ian Beckwith <ianb@erislabs.net>.
21975
21976 2009-10-02  Eric Blake  <ebb9@byu.net>
21977
21978         fchdir: avoid compiler warning
21979         * lib/fchdir.c (canonicalize_file_name)
21980         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
21981
21982         test-open: support mingw errno values
21983         * tests/test-open.h (test_open): Relax test.
21984         * tests/test-fopen.h (test_fopen): Likewise.
21985         * tests/test-openat-safer.c (main): Likewise.
21986
21987         open: fix opening directory on mingw
21988         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
21989
21990         test-open: on GNU/Hurd, /dev/null is a directory
21991         * tests/test-fopen.h (main): Rename...
21992         (test_fopen): ...to this.  Use a guaranteed non-directory when
21993         confirming open behavior on trailing slash.
21994         * tests/test-openat-safer.c (main): Likewise.
21995         * tests/test-open.h (main): Likewise....
21996         (test_open): ...to this.
21997         * tests/test-fopen.c (main): Adjust caller.
21998         * tests/test-fopen-safer.c (main): Likewise.
21999         * tests/test-open.c (main): Likewise.
22000         * tests/test-fcntl-safer.c (main): Likewise.
22001         Reported by Samuel Thibault.
22002
22003         rename, fchdir: don't ignore chdir failure
22004         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
22005         * lib/rename.c (rpl_rename) [W32]: Likewise.
22006         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
22007         an empty destination directory if source cannot be renamed,
22008         although there is still possibility for failure.
22009         * doc/posix-functions/rename.texi (rename): Document the race.
22010         Reported by Jim Meyering.
22011
22012         maint: cleanup whitespace in recent commits
22013         * lib/rename.c (rpl_rename): Remove tabs.
22014         * tests/test-link.h (test_link): Likewise.
22015         * lib/fchdir.c (get_name): Likewise.
22016         Reported by Jim Meyering.
22017
22018 2009-10-02  Ben Pfaff  <blp@gnu.org>
22019
22020         relocatable-prog-wrapper: Add missing dependency on
22021         double-slash-root.
22022         * modules/relocatable-prog-wrapper: Add dependency.
22023         Reported by Ian Beckwith <ianb@erislabs.net>.
22024
22025 2009-10-02  Eric Blake  <ebb9@byu.net>
22026
22027         renameat: fix Solaris bugs
22028         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
22029         needed fixing.
22030         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
22031         * modules/stdio (Makefile.am): Substitute it.
22032         * lib/stdio.in.h (renameat): Declare replacement.
22033         * lib/renameat.c (rpl_renameat): Implement fix.
22034
22035         renameat: new module
22036         * modules/renameat: New file.
22037         * lib/renameat.c (renameat): Likewise.
22038         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
22039         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
22040         * modules/stdio (Makefile.am): Substitute them.
22041         * lib/stdio.in.h (renameat): Declare it.
22042         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
22043         * doc/posix-functions/renameat.texi (renameat): Likewise.
22044         * modules/renameat-tests: New test.
22045         * tests/test-renameat.c: Likewise.
22046
22047         rename: fix mingw bugs
22048         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
22049         directory overwrite bugs.
22050
22051         rename: fix another cygwin 1.5 bug
22052         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
22053         checks.
22054         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
22055         unnecessary cygwin workarounds.  Also work around bug with moving
22056         full directory onto an empty one.
22057         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
22058
22059         rename-dest-slash: merge into rename module
22060         * modules/rename-dest-slash (Status): Mark obsolete.
22061         (Depends-on): Add rename.
22062         (Files): Let rename do it all.
22063         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
22064         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
22065         * m4/rename-dest-slash.m4: ...so this file can be deleted.
22066         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
22067         * lib/rename.c (rpl_rename): Update comments.
22068
22069         rename: fix cygwin 1.5.x bugs
22070         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
22071         * lib/rename.c (rpl_rename): Work around them.
22072         * modules/rename (Depends-on): Add same-inode.
22073
22074         rename: fix Solaris 10 bug
22075         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
22076         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
22077         was the only bug.
22078
22079         rename: fix Solaris 9 bug
22080         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
22081         on non-directory.  Avoid calling exit.
22082         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
22083         strdup.
22084         * modules/rename-tests (Depends-on): Drop lstat.
22085         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
22086         (gl_PREREQ_RENAME): Delete unused macro.
22087
22088         rename-dest-slash: fix NetBSD bug
22089         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
22090         links.
22091         * modules/rename-dest-slash (Depends-on): Add same-inode.
22092
22093         rename-tests: new test, exposes several platform bugs
22094         * modules/rename-tests: New file.
22095         * tests/test-rename.h: Likewise.
22096         * tests/test-rename.c: Likewise.
22097         * doc/posix-functions/rename.texi (rename): Improve documentation,
22098         including bugs that will eventually be fixed in gnulib.
22099
22100 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
22101
22102         * lib/uname.c: Include <stdlib.h>
22103         (uname): Assume version info is available.
22104
22105 2009-10-02  Jim Meyering  <meyering@redhat.com>
22106
22107         gnu-web-doc-update: correct --help output
22108         * build-aux/gnu-web-doc-update: Make --help output relevant.
22109
22110         gnu-web-doc-update: add standard options
22111         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
22112
22113         gnu-web-doc-update: New module.
22114         Use this script to automatically update the on-line web documentation
22115         for your GNU project at http://www.gnu.org/software/$pkg/manual/
22116         * modules/gnu-web-doc-update: New file, from coreutils.
22117         * build-aux/gnu-web-doc-update: New script.
22118
22119 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
22120
22121         link: LoadLibrary is not needed.
22122         * lib/link.c: Use GetModuleHandle.
22123
22124 2009-10-01  Eric Blake  <ebb9@byu.net>
22125
22126         getopt: bump serial number
22127         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
22128         change.
22129
22130         tests: tighten link, rmdir, and remove tests
22131         * tests/test-link.h (includes): No need to use <config.h> here.
22132         Clean up if directory hard link was created, otherwise test for
22133         trailing '.'.
22134         * tests/test-linkat.c (main): Simplify.
22135         * tests/test-remove.c (main): Enhance test for trailing '.'.
22136         * tests/test-rmdir.h (test_rmdir_func): Likewise.
22137
22138 2009-10-01  Jim Meyering  <meyering@redhat.com>
22139
22140         maint.mk: requiring "make major" was annoying, for a "minor" release.
22141         What is intended is "stable", to contrast with alpha and beta,
22142         so require "make stable", not "make major".
22143         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
22144         (get_tool_versions): Likewise.
22145         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
22146
22147 2009-09-30  Ben Pfaff  <blp@gnu.org>
22148
22149         Fix broken build of replacement for Windows tmpfile().
22150         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
22151         flags argument added along with the 'mkostemp' module.
22152
22153 2009-09-28  Bruno Haible  <bruno@clisp.org>
22154
22155         Avoid identifier clash with POSIX function 'remove' defined as a macro.
22156         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
22157         to 'remove_elt'.
22158         (gl_list_remove): Update.
22159         * lib/gl_list.c (gl_list_remove): Update.
22160         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
22161         to 'remove_elt'.
22162         (gl_oset_remove): Update.
22163         * lib/gl_list.c (gl_oset_remove): Update.
22164         Reported by Eric Blake.
22165
22166 2009-09-28  Eric Blake  <ebb9@byu.net>
22167
22168         doc: mention yet more cygwin 1.7 status
22169         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
22170         cygwin.
22171         * doc/glibc-functions/execvpe.texi (execvpe): New file.
22172         * doc/gnulib.texi (Glibc unistd.h): Mention it.
22173
22174         argp: fix test failure
22175         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
22176         that are not upper-case.  Pass correct range to tolower.
22177
22178 2009-09-27  Jim Meyering  <meyering@redhat.com>
22179
22180         test-yesno: work around sparc-dash here-document infelicity
22181         Without this change, the literal \177 byte in a here document
22182         would make dash 0.5.5.1-3 access uninitialized memory.
22183         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
22184         Instead, use a marker, "@", and filter through tr to create the desired
22185         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
22186
22187 2009-09-27  Bruno Haible  <bruno@clisp.org>
22188
22189         Disable untested support for new flavours of ACLs on AIX.
22190         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
22191         progress.
22192         * lib/set-mode-acl.c (qset_acl): Likewise.
22193
22194 2008-12-07  Bruno Haible  <bruno@clisp.org>
22195
22196         Add support for new flavours of ACLs on AIX. (Untested.)
22197         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
22198         (file_has_acl): Add support for newer AIX.
22199         * lib/set-mode-acl.c (qset_acl): Likewise.
22200         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
22201         Rainer Tammer <tammer@tammer.net>.
22202
22203 2009-09-26  Eric Blake  <ebb9@byu.net>
22204
22205         argp: fix compilation of getopt
22206         * lib/getopt.in.h (includes): Use different guard than glibc.
22207         Reported by Sergey Poznyakoff.
22208
22209         doc: mention more cygwin 1.7 status
22210         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
22211         bug.
22212         * doc/posix-functions/execl.texi (execl): Likewise.
22213         * doc/posix-functions/execle.texi (execle): Likewise.
22214         * doc/posix-functions/execlp.texi (execlp): Likewise.
22215         * doc/posix-functions/execv.texi (execv): Likewise.
22216         * doc/posix-functions/execve.texi (execve): Likewise.
22217         * doc/posix-functions/execvp.texi (execvp): Likewise.
22218         * doc/glibc-functions/canonicalize_file_name.texi
22219         (canonicalize_file_name): Cygwin 1.7 now provides this.
22220         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
22221         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
22222         on AT_SYMLINK_NOFOLLOW.
22223
22224 2009-09-24  Eric Blake  <ebb9@byu.net>
22225
22226         test-linkat: make test more robust
22227         * tests/test-linkat.c (main): Avoid collision with EEXIST.
22228
22229         getopt: fix inclusion guards for cygwin
22230         * modules/getopt-posix (Depends-on): Add include-next.
22231         (Makefile.am): Substitute more items in replacement header.
22232         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
22233         <getopt.h>.
22234         * lib/getopt.in.h (includes): Use split inclusion guard, and
22235         prefer <getopt.h> over include <unistd.h> when one is present.
22236         (option): Also override name of 'struct option'.
22237
22238         same-inode: revert prior change; it is not yet ready
22239         * NEWS: Undo mention of this change.
22240         * lib/same-inode.h (same-inode.h): Undo tri-state change.
22241         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
22242         * lib/cycle-check.c (cycle_check): Likewise.
22243         * lib/same.c (same_name): Likewise.
22244         * lib/at-func2.c (at_func2): Likewise.
22245
22246 2009-09-23  Eric Blake  <ebb9@byu.net>
22247
22248         linkat: new module
22249         * modules/linkat: New file.
22250         * lib/at-func2.c (at_func2): Likewise.
22251         * lib/linkat.c (linkat): Likewise.
22252         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
22253         * lib/openat-priv.h (at_func2): Add declaration.
22254         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
22255         * modules/unistd (Makefile.am): Substitute them.
22256         * lib/unistd.in.h (linkat): Declare it.
22257         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
22258         * doc/posix-functions/linkat.texi (linkat): Likewise.
22259         * doc/posix-functions/link.texi (link): Tweak wording.
22260         * tests/test-link.c (main): Move guts...
22261         * tests/test-link.h (test_link): ...into new file.
22262         * modules/linkat-tests: New test.
22263         * tests/test-linkat.c: Likewise.
22264         * modules/link-tests (Files): Ship new file.
22265         (Depends-on): Add stdbool.
22266
22267         dirname: add library-safe mdir_name
22268         * lib/dirname.h (mdir_name): New prototype.
22269         * lib/dirname.c (dir_name): Move guts...
22270         (mdir_name): ...to new function that avoids xalloc_die.
22271
22272         fchdir: another mingw fix
22273         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
22274         * lib/fchdir.c (get_name): New helper method; skips canonicalize
22275         on mingw (where it has not yet been ported), and make it optional
22276         elsewhere.
22277         (_gl_register_fd): Use it.
22278
22279         same-inode: make SAME_INODE tri-state, to port to mingw
22280         * NEWS: Mention this change.
22281         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
22282         st_ino always being 0.
22283         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
22284         * lib/cycle-check.c (cycle_check): Likewise.
22285         * lib/same.c (same_name): Likewise.
22286
22287         lstat: avoid mingw compilation error
22288         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
22289         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
22290         lstat ourselves.
22291         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
22292         was adequate.
22293         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
22294         the checks for lstat.
22295         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
22296
22297         link: fix test failure on Solaris 9
22298         * lib/link.c (rpl_link): Don't assume link will catch bogus
22299         trailing slash on source.
22300
22301         test-symlinkat: enhance test
22302         * tests/test-readlink.c (main): Move guts...
22303         * tests/test-readlink.h (test_readlink): ...into new file.
22304         * tests/test-symlink.c (main): Move guts...
22305         * tests/test-symlink.h (test_symlink): ...into new file.
22306         * tests/test-symlinkat.c (main): Use new files for further
22307         coverage.
22308         (do_symlink, do_readlink): New helper functions.
22309         * modules/symlink-tests (Files): Ship new file.
22310         (Depends-on): Add stdbool.
22311         * modules/readlink-tests (Files): Ship new file.
22312         (Depends-on): Add stdbool.
22313         * modules/symlinkat-tests (Files): Use new files.
22314
22315 2009-09-23  Eric Blake  <ebb9@byu.net>
22316
22317         readlink: document portability issue with symlink length
22318         * doc/posix-functions/lstat.texi (lstat): Mention that some file
22319         systems have bogus st_size on symlinks, and mention the
22320         areadlink-with-size module.
22321         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
22322         * doc/posix-functions/readlink.texi (readlink): Mention the
22323         areadlink module, and ERANGE failure.
22324         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
22325         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
22326
22327         readlink: fix Solaris 9 bug with trailing slash
22328         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
22329         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
22330         * doc/posix-functions/readlink.texi (readlink): Document this.
22331         * modules/readlink-tests: New test.
22332         * tests/test-readlink.c: Likewise.
22333
22334         readlink: fix cygwin 1.5.x bug with return type
22335         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
22336         * lib/unistd.in.h (readlink): Use ssize_t.
22337         * lib/readlink.c (readlink): Likewise.
22338         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
22339         * modules/unistd (Makefile.am): Substitute it.
22340         * lib/unistd.in.h (readlink): Declare replacement.
22341         * doc/posix-functions/readlink.texi (readlink): Document this.
22342
22343         symlink: use throughout gnulib
22344         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
22345         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
22346         symlink is not used.
22347         * modules/symlinkat (Depends-on): Add symlink.
22348         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
22349         * modules/canonicalize-tests (Depends-on): Likewise.
22350         * modules/lstat-tests (Depends-on): Likewise.
22351         * modules/openat-tests (Depends-on): Likewise.
22352         * modules/remove-tests (Depends-on): Likewise.
22353         * modules/rmdir-tests (Depends-on): Likewise.
22354         * modules/unlink-tests (Depends-on): Likewise.
22355         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
22356         * tests/test-canonicalize.c (symlink): Likewise.
22357         * tests/test-fstatat.c (symlink): Likewise.
22358         * tests/test-lstat.c (symlink): Likewise.
22359         * tests/test-remove.c (symlink): Likewise.
22360         * tests/test-rmdir.c (symlink): Likewise.
22361         * tests/test-unlink.c (symlink): Likewise.
22362         * tests/test-unlinkat.c (symlink): Likewise.
22363
22364         symlink: new module, for Solaris 9 bug
22365         * modules/symlink: New file.
22366         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
22367         * lib/symlink.c: Likewise.
22368         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
22369         * modules/unistd (Makefile.am): Substitute them.
22370         * lib/unistd.in.h (symlink): Declare replacement.
22371         * MODULES.html.sh (File system functions): Mention it.
22372         * doc/posix-functions/symlink.texi (symlink): Likewise.
22373         * modules/symlink-tests: New test.
22374         * tests/test-symlink.c: Likewise.
22375
22376 2009-09-23  Bruno Haible  <bruno@clisp.org>
22377
22378         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
22379         when needed.
22380         Test case: gnulib-tool --import --with-tests atexit inttypes.
22381         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
22382
22383 2009-09-23  Bruno Haible  <bruno@clisp.org>
22384
22385         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
22386         subcommand, not in a subshell.
22387
22388 2009-09-22  Eric Blake  <ebb9@byu.net>
22389
22390         unistd: sort replacement declarations
22391         * lib/unistd.in.h: Sort declarations.
22392
22393         open, openat: minor optimization
22394         * lib/open.c (open): If open succeeded, len is non-zero.
22395         * lib/openat.c (rpl_openat): Likewise.
22396
22397         link-follow: ensure correct result
22398         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
22399         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
22400         distinguish between possible failures.
22401
22402 2009-09-21  Eric Blake  <ebb9@byu.net>
22403
22404         fts: avoid compiler warning
22405         * lib/fts.c (dirent_inode_sort_may_be_useful)
22406         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
22407
22408 2009-09-19  Bruno Haible  <bruno@clisp.org>
22409
22410         * lib/progreloc.c (canonicalize_file_name): New declaration.
22411
22412 2009-09-19  Eric Blake  <ebb9@byu.net>
22413
22414         link: fix quoting
22415         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
22416
22417         openat: fix openat bugs on Solaris 9
22418         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
22419         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
22420         * modules/openat (Depends-on): Add open.
22421         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
22422         * modules/fcntl-h (Makefile.am): Substitute it.
22423         * lib/fcntl.in.h (openat): Declare replacement.
22424         * doc/posix-functions/openat.texi (openat): Document this.
22425
22426         openat: move fstatat and unlinkat into correct files
22427         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
22428         compiled.
22429         * lib/openat.c (fstatat, unlinkat): Move...
22430         * lib/fstatat.c (fstatat): ...into correct files.
22431         * lib/unlinkat.c (unlinkat): Likewise.
22432
22433         openat: fix unlinkat bugs on Solaris 9
22434         * lib/unlinkat.c (unlinkat): New file.
22435         * modules/openat (Depends-on): Add unlink.
22436         (Files): Distribute it.
22437         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
22438         trailing slash behavior is broken.
22439         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
22440         * modules/unistd (Makefile.am): Substitute it.
22441         * lib/unistd.in.h (unlinkat): Declare replacement.
22442         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
22443
22444         openat: fix fstatat bugs on Solaris 9
22445         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
22446         stat.
22447         * doc/posix-functions/fstatat.texi (fstatat): Document this.
22448
22449         test-unlinkat: enhance test, to expose Solaris 9 bug
22450         * tests/test-unlink.c (main): Factor guts...
22451         * tests/test-unlink.h (test_rmdir_func): ...into new file.
22452         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
22453         * tests/test-rmdir.c (main): Adjust caller.
22454         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
22455         (unlinker): New helper function.
22456         (rmdirat): Enhance check.
22457         * modules/rmdir-tests (Depends-on): Add stdbool.
22458         * modules/unlink-tests (Depends-on): Likewise.
22459         (Files): Add test-unlink.h.
22460         * modules/openat-tests (Files): Likewise.
22461         (Depends-on): Add unlinkdir.
22462
22463         test-fstatat: new test, to expose Solaris 9 bugs
22464         * tests/test-stat.c (main): Factor guts...
22465         * tests/test-stat.h (test_stat_func): ...into new file.
22466         * tests/test-lstat.c (main): Factor guts...
22467         * tests/test-lstat.h (test_lstat_func): ...into new file.
22468         * tests/test-fstatat.c: New file.
22469         * modules/stat-tests (Files): Add test-stat.h.
22470         * modules/lstat-tests (Files): Add test-lstat.h.
22471         (Depends-on): Add stdbool.
22472         * modules/openat-tests (Depends-on): Add pathmax.
22473         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
22474         (Makefile.am): Run new test.
22475
22476         remove: new module, for mingw and Solaris 9 bugs
22477         * modules/remove: New file.
22478         * lib/remove.c: Likewise.
22479         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
22480         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
22481         * modules/stdio (Makefile.am): Use them.
22482         * lib/stdio.in.h (remove): Declare replacement.
22483         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
22484         * doc/posix-functions/remove.texi (remove): Likewise.
22485         * modules/remove-tests: New test.
22486         * tests/test-remove.c: Likewise.
22487
22488         unlink: new module, for Solaris 9 bug
22489         * modules/unlink: New file.
22490         * lib/unlink.c: Likewise.
22491         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
22492         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
22493         * modules/unistd (Makefile.am): Use them.
22494         * lib/unistd.in.h (stat): Declare replacement.
22495         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
22496         * doc/posix-functions/unlink.texi (unlink): Likewise.
22497         * modules/unlink-tests: New test.
22498         * tests/test-unlink.c: Likewise.
22499
22500         lstat: fix Solaris 9 bug
22501         * lib/lstat.c (lstat): Also check for trailing slash on
22502         non-symlink, non-directories.  Use stat module to simplify logic.
22503         * doc/posix-functions/lstat.texi (lstat): Document it.
22504         * modules/lstat-tests (Depends-on): Add errno, same-inode.
22505         (configure.ac): Check for symlink.
22506         * tests/test-lstat.c (main): Add more tests.
22507
22508         stat: add as dependency to other modules
22509         * modules/chown (Depends-on): Add stat.
22510         * modules/euidaccess (Depends-on): Likewise.
22511         * modules/fchdir (Depends-on): Likewise.
22512         * modules/isdir (Depends-on): Likewise.
22513         * modules/link (Depends-on): Likewise.
22514         * modules/lstat (Depends-on): Likewise.
22515         * modules/mkdir-p (Depends-on): Likewise.
22516         * modules/modechange (Depends-on): Likewise.
22517         * modules/open (Depends-on): Likewise.
22518         * modules/readlink (Depends-on): Likewise.
22519         * modules/same (Depends-on): Likewise.
22520
22521         stat: fix Solaris 9 bug
22522         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
22523         slash.
22524         * lib/stat.c (rpl_stat): Work around it.
22525         * doc/posix-functions/stat.texi (stat): Update documentation.
22526
22527         stat: new module, for mingw bug
22528         * modules/stat: New file.
22529         * lib/stat.c: Likewise.
22530         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
22531         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
22532         * modules/sys_stat (Makefile.am): Use them.
22533         * lib/sys_stat.in.h (stat): Declare replacement.
22534         * lib/openat.c (fstatat): Deal with lstat and stat being function
22535         macros.
22536         * modules/openat (Depends-on): Add inline.
22537         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
22538         * doc/posix-functions/stat.texi (stat): Likewise.
22539         * modules/stat-tests: New test.
22540         * tests/test-stat.c: Likewise.
22541
22542 2009-09-19  Jim Meyering  <meyering@redhat.com>
22543
22544         syntax-check: detect unnecessary inclusion of canonicalize.h
22545         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
22546
22547 2009-09-19  Eric Blake  <ebb9@byu.net>
22548
22549         canonicalize-lgpl: adjust clients to use correct header
22550         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
22551         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
22552         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
22553         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
22554         * lib/progreloc.c (includes): Likewise.
22555
22556 2009-09-19  Jim Meyering  <meyering@redhat.com>
22557
22558         test-posixtm.c: correct a comment
22559         * tests/test-posixtm.c: Correct first-line comment.
22560         Spotted by Eric Blake.
22561
22562 2009-09-16  Jim Meyering  <meyering@redhat.com>
22563
22564         posixtm-tests: make T const-correct; add a test case
22565         * tests/test-posixtm.c (T): Declare const.
22566         Add a test for -(2^31+1).
22567         Remove useless can-succeed-only-in-2002 test.
22568
22569         posixtm-tests: adjust the sole failing test
22570         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
22571         expected output matches what mktime now produces.  Cross-checked via
22572         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
22573
22574         posixtm: move #ifdef'd tests into a new module
22575         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
22576         * tests/test-posixtm.c: ... this new file.
22577         * modules/posixtm-tests: New module.
22578
22579 2009-09-19  Eric Blake  <ebb9@byu.net>
22580
22581         openat: simplify use of at-func.c
22582         * lib/at-func.c (includes): Include prerequisites here, to
22583         simplify requirements on client files.
22584         * lib/openat-priv.h: Add double-inclusion guard.
22585         * lib/faccessat.c (includes): Simplify.
22586         * lib/fchmodat.c (includes): Likewise.
22587         * lib/fchownat.c (includes): Likewise.
22588         * lib/mkdirat.c (includes): Likewise.
22589         * lib/mkfifoat.c (includes): Likewise.
22590         * lib/symlinkat.c (includes): Likewise.
22591
22592         openat: allow return of fd 0
22593         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
22594         * modules/save-cwd (Depends-on): Replace fcntl-safer with
22595         unistd-safer.
22596         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
22597         <fcntl.h>; this module does not leak fds.
22598         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
22599         must be allowed to return 0, leaving openat_safer to add the
22600         safety.
22601         (openat_permissive): Avoid writing to just-opened fd 2 if
22602         restoring the current directory fails.
22603         * lib/openat-die.c (openat_restore_fail): Add comment.
22604         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
22605         (save_cwd): Guarantee safe fd, but without use of open_safer.
22606         * tests/test-openat.c: New test.
22607         * modules/openat-tests (Files, Makefile.am): Distribute and build
22608         new file.
22609
22610         relocatable-prog-wrapper: fix build
22611         * modules/relocatable-prog-wrapper (Files): Update name of
22612         canonicalize m4 file, broken on 2009-09-17.
22613         Reported by emad hajjar <aleppos@hotmail.com>.
22614
22615 2009-09-19  Bruno Haible  <bruno@clisp.org>
22616
22617         * lib/safe-alloc.h: Use the standard header with GPL copyright.
22618         * lib/safe-alloc.c: Likewise.
22619         Reported by Ian Beckwith <ianb@erislabs.net>.
22620
22621 2009-09-18  Bruno Haible  <bruno@clisp.org>
22622
22623         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
22624         Reported by <erobles@sensacd.com.mx>.
22625
22626 2009-09-17  Eric Blake  <ebb9@byu.net>
22627
22628         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
22629         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
22630         slashes when checking if last component is missing.
22631         * tests/test-canonicalize.c (main): Test this.
22632
22633         canonicalize, canonicalize-lgpl: honor // if distinct from /
22634         * modules/canonicalize (Files): Add double-slash-root.m4.
22635         * modules/canonicalize-lgpl (Files): Likewise.
22636         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
22637         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
22638         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
22639         fallback definition.
22640         (canonicalize_filename_mode): Use it to protect //.
22641         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
22642         (__realpath): Likewise.
22643         * tests/test-canonicalize.c (main): Test this.
22644         * tests/test-canonicalize-lgpl.c (main): Likewise.
22645         * modules/canonicalize-tests (Depends-on): Add same-inode.
22646         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
22647
22648         canonicalize-lgpl: fix glibc bug with trailing slash
22649         * m4/canonicalize-lgpl.m4: Move contents...
22650         * m4/canonicalize.m4: ...here.
22651         (gl_CANONICALIZE_LGPL): Factor realpath check...
22652         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
22653         glibc 2.3.5 bug, fixed 2005-04-27.
22654         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
22655         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
22656         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
22657         * modules/canonicalize-lgpl (Files): Manage file rename.
22658         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
22659         * modules/stdlib (Makefile.am): Substitute witness.
22660         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
22661         is needed.
22662         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
22663         replacement is required.
22664         * lib/canonicalize.c (canonicalize_file_name): Likewise.
22665         * doc/glibc-functions/canonicalize_file_name.texi
22666         (canonicalize_file_name): Document this.
22667         * doc/posix-functions/realpath.texi (realpath): Likewise.
22668
22669         canonicalize-lgpl: reject non-directory with trailing slash
22670         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
22671         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
22672         catches failures in glibc 2.3.5.
22673         * tests/test-canonicalize.c (main): Likewise.
22674
22675         canonicalize-lgpl: use native realpath if it works
22676         * lib/canonicalize-lgpl.c (realpath): Guard with
22677         FUNC_REALPATH_WORKS.
22678         * lib/stdlib.in.h (realpath): Make declaration optional based on
22679         HAVE_REALPATH.
22680         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
22681         native realpath works.
22682         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
22683         * modules/stdlib (Makefile.am): Substitute witness.
22684
22685         canonicalize, canonicalize-lgpl: use <stdlib.h>
22686         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
22687         (Include): Mention <stdlib.h>.
22688         (configure.ac): Mention functions we provide.
22689         * modules/canonicalize (configure.ac): Likewise.
22690         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
22691         realpath if canonicalize_file_name is missing.
22692         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
22693         * modules/stdlib (Makefile.am): Substitute witnesses.
22694         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
22695         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
22696         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
22697         * NEWS: Document this.
22698         * doc/glibc-functions/canonicalize_file_name.texi
22699         (canonicalize_file_name): Likewise.
22700         * doc/posix-functions/realpath.texi (realpath): Likewise.
22701         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
22702
22703         test-canonicalize: consolidate into single C program
22704         * tests/test-canonicalize.sh: Delete; move setup into...
22705         * tests/test-canonicalize.c (main): ...the program, making it
22706         easier to run in debugger.  Add some tests.
22707         * modules/canonicalize-tests (Files): Remove unused file.
22708         (Depends-on): Add progname.
22709         (configure.ac, Makefile.am): Simplify.
22710
22711         test-canonicalize-lgpl: consolidate into single C program
22712         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
22713         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
22714         easier to run in debugger.  Add some tests.
22715         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
22716         (configure.ac, Makefile.am): Simplify.
22717
22718         canonicalize: avoid resolvepath
22719         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
22720         unnecessary checks.
22721         * lib/canonicalize.c (includes): Simplify.
22722         (canonicalize_file_name): Drop resolvepath implementation.
22723         * modules/canonicalize (Depends-on): Drop filenamecat.
22724
22725         canonicalize: don't lose errno
22726         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
22727         over calls to free.
22728
22729         canonicalize: simplify errno handling
22730         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
22731         assignment.
22732
22733         canonicalize, canonicalize-lgpl: update module dependencies
22734         * modules/canonicalize (Depends-on): Add extensions, lstat,
22735         pathmax, stdlib.
22736         (Files): Drop pathmax.h.
22737         (configure.ac): Adjust macro name.
22738         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
22739         lstat, stdlib, sys_stat.
22740         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
22741         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
22742         extensions.
22743         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
22744         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
22745         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
22746         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
22747         declaration, if available.
22748         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
22749         we can rely on the readlink module.
22750         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
22751         (includes): Use <unistd.h> unconditionally.
22752
22753 2009-09-17  Eric Blake  <ebb9@byu.net>
22754
22755         maint: make Include sections of modules consistent
22756         * modules/alloca: Use only header name; no need to list #include.
22757         * modules/alloca-opt: Likewise.
22758         * modules/arpa_inet: Likewise.
22759         * modules/canon-host: Likewise.
22760         * modules/configmake: Likewise.
22761         * modules/dirent: Likewise.
22762         * modules/eealloc: Likewise.
22763         * modules/environ: Likewise.
22764         * modules/fchdir: Likewise.
22765         * modules/fcntl: Likewise.
22766         * modules/fcntl-h: Likewise.
22767         * modules/gethrxtime: Likewise.
22768         * modules/gettime: Likewise.
22769         * modules/ignore-value: Likewise.
22770         * modules/inet_ntop: Likewise.
22771         * modules/inet_pton: Likewise.
22772         * modules/inttypes: Likewise.
22773         * modules/isnand-nolibm: Likewise.
22774         * modules/isnanf-nolibm: Likewise.
22775         * modules/mbchar: Likewise.
22776         * modules/mbfile: Likewise.
22777         * modules/mbiter: Likewise.
22778         * modules/mbuiter: Likewise.
22779         * modules/netdb: Likewise.
22780         * modules/netinet_in: Likewise.
22781         * modules/nproc: Likewise.
22782         * modules/pagealign_alloc: Likewise.
22783         * modules/poll: Likewise.
22784         * modules/printf-frexp: Likewise.
22785         * modules/pthread: Likewise.
22786         * modules/putenv: Likewise.
22787         * modules/random_r: Likewise.
22788         * modules/relocatable-prog: Likewise.
22789         * modules/search: Likewise.
22790         * modules/select: Likewise.
22791         * modules/selinux-h: Likewise.
22792         * modules/settime: Likewise.
22793         * modules/signal: Likewise.
22794         * modules/size_max: Likewise.
22795         * modules/socklen: Likewise.
22796         * modules/ssize_t: Likewise.
22797         * modules/stdarg: Likewise.
22798         * modules/stdbool: Likewise.
22799         * modules/stddef: Likewise.
22800         * modules/stdint: Likewise.
22801         * modules/stdio: Likewise.
22802         * modules/stdlib: Likewise.
22803         * modules/string: Likewise.
22804         * modules/strings: Likewise.
22805         * modules/sys_file: Likewise.
22806         * modules/sys_ioctl: Likewise.
22807         * modules/sys_select: Likewise.
22808         * modules/sys_socket: Likewise.
22809         * modules/sys_stat: Likewise.
22810         * modules/sys_time: Likewise.
22811         * modules/sys_times: Likewise.
22812         * modules/sys_utsname: Likewise.
22813         * modules/sys_wait: Likewise.
22814         * modules/sysexits: Likewise.
22815         * modules/time: Likewise.
22816         * modules/times: Likewise.
22817         * modules/tmpfile: Likewise.
22818         * modules/trim: Likewise.
22819         * modules/unistd: Likewise.
22820         * modules/wchar: Likewise.
22821         * modules/wctype: Likewise.
22822
22823 2009-09-17  Bruno Haible  <bruno@clisp.org>
22824
22825         Make getdate.y compile on QNX and NetBSD 5 / i386.
22826         * m4/getdate.m4 (gl_GETDATE): Conditionally define
22827         TIME_T_FITS_IN_LONG_INT.
22828         * lib/getdate.y (long_time_t): New type.
22829         (relative_time): Change type of 'seconds' field to long_time_t.
22830         (get_date): Update types of local variables. Check against overflow
22831         during conversion from long_time_t to time_t.
22832         Reported by Matt Kraai <kraai@ftbfs.org>
22833         and Hasso Tepper <hasso@netbsd.org>.
22834
22835 2009-09-17  Bruno Haible  <bruno@clisp.org>
22836
22837         * modules/COPYING: Update copyright years.
22838         * modules/README: Likeiwse.
22839         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
22840         Reported by Ian Beckwith <ianb@erislabs.net>.
22841
22842 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
22843
22844         * users.txt: Update references for gnuit package.
22845
22846 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
22847
22848         * m4/getdelim.m4: Fix typo in copyright line.
22849
22850 2009-09-17  Bruno Haible  <bruno@clisp.org>
22851
22852         * lib/atoll.c: Use the standard header with GPL copyright.
22853         * lib/argz.in.h: Likewise.
22854         * lib/glob.c: Likewise.
22855         * lib/glob-libc.h: Likewise.
22856         * lib/random_r.c: Likewise.
22857         * lib/siglist.h: Likewise.
22858         * lib/strsignal.c: Likewise.
22859         Reported by Ian Beckwith <ianb@erislabs.net>.
22860
22861 2009-09-17  Eric Blake  <ebb9@byu.net>
22862
22863         rmdir: ensure correct dependency order
22864         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
22865
22866 2009-09-17  Bruno Haible  <bruno@clisp.org>
22867
22868         Disable assertion that fails on NetBSD 5 / i386.
22869         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
22870         Reported by Sam Steingold <sds@gnu.org>
22871         and Hasso Tepper <hasso@netbsd.org>.
22872
22873 2009-09-16  Eric Blake  <ebb9@byu.net>
22874
22875         unlinkdir: port to mingw
22876         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
22877         on which no one can unlink a directory.
22878
22879         stdlib: sort witness names
22880         * modules/stdlib (Makefile.am): Sort replacements.
22881         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
22882         * lib/stdlib.in.h: Likewise.
22883
22884         parse-duration-tests: avoid link failure
22885         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
22886         LIBINTL.
22887         Reported by Tom G. Christensen.
22888
22889         openat-tests: ensure unlinkat behaves like rmdir
22890         * tests/test-rmdir.c (main): Factor guts...
22891         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
22892         * modules/rmdir-tests (Files): Ship new file.
22893         * modules/openat-tests: New test.
22894         * tests/test-unlinkat.c: Likewise.
22895
22896         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
22897         * modules/rmdir-errno (Status, Notice): Now obsolete.
22898
22899         rmdir: work around cygwin 1.5.x and mingw bugs
22900         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
22901         * lib/rmdir.c (rmdir): Work around it.
22902         * modules/rmdir (Status, Notice): No longer obsolete.
22903         (Files): Add dos.m4.
22904         (Depends-on): Add unistd.
22905         (configure.ac): Set witnesses.
22906         (License): Relax to LGPLv2+.
22907         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
22908         * modules/unistd (Makefile.am): Substitute witnesses.
22909         * lib/unistd.in.h (rmdir): Declare replacement.
22910         * doc/posix-functions/rmdir.texi (rmdir): Document this.
22911         * modules/rmdir-tests: New tests.
22912         * tests/test-rmdir.c: Likewise.
22913
22914 2009-09-15  Eric Blake  <ebb9@byu.net>
22915
22916         fchdir: improve use of replacement functions
22917         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
22918         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
22919         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
22920         REPLACE_CLOSEDIR.
22921         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
22922         * modules/sys_stat (Makefile.am): Substitute correct witness.
22923         * modules/dirent (Makefile.am): Likewise.
22924         * modules/unistd (Makefile.am): Likewise.
22925         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
22926         * lib/unistd.in.h (dup): Likewise.
22927         * lib/sys_stat.in.h (fstat): Likewise.
22928
22929         maint: ignore gnulib-tool temp files
22930         * .gitignore: Ignore files created during gnulib-tool --test.
22931
22932 2009-09-13  Jim Meyering  <meyering@redhat.com>
22933
22934         posixtm: don't reject a time that specify "60" as the number of seconds
22935         * lib/posixtm.c (posixtime): The code to reject invalid dates
22936         would also reject a time specified with the .60 suffix.
22937         But POSIX allows that, in order to accommodate leap seconds.
22938         So don't reject it.
22939         (main): Adjust tests accordingly.
22940         * modules/posixtm (Depends-on): Add stpcpy.
22941
22942 2009-09-11  Jim Meyering  <meyering@redhat.com>
22943
22944         announce-gen: include [$release_type] in emitted Subject:
22945         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
22946         e.g., [stable] in the emitted Subject: line.
22947
22948 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22949
22950         Remove obsolete macros from several modules.
22951         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
22952         obsolete Autoconf macros with their modern counterparts.
22953         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
22954         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
22955         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
22956         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
22957         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
22958         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
22959         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
22960         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
22961         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
22962         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
22963         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
22964         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
22965         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
22966         * m4/sockets.m4 (gl_SOCKETS): Likewise.
22967         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
22968         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
22969         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
22970         * m4/time_r.m4 (gl_TIME_R): Likewise.
22971         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
22972         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
22973         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
22974
22975         Fix copyright header in build-aux scripts.
22976         * build-aux/git-version-gen: Fix copyright header to match GPLv3
22977         recommendation.
22978         * build-aux/ncftpput-ftp: Likewise.
22979         * build-aux/update-copyright: Likewise.
22980
22981 2009-09-09  Eric Blake  <ebb9@byu.net>
22982
22983         test-link: allow Linux choice of errno
22984         * tests/test-link.c (main): Relax test for alternate error.
22985
22986         strndup: fix improper m4 caching
22987         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
22988         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
22989         (gl_PREREQ_STRNDUP): Delete.
22990         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
22991         * modules/string (Makefile.am): Substitute it.
22992         * lib/string.in.h (strndup): Modernize prototype.
22993
22994         getcwd: port to mingw
22995         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
22996         different from the POSIX assumptions made throughout the getcwd
22997         module; fortunately, the mingw getcwd does not need replacement.
22998         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
22999         * modules/getcwd-tests: New test.
23000         * tests/test-getcwd.c: Likewise.
23001
23002         link: fix platform bugs
23003         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
23004         * lib/link.c (link): Work around them.  Fix related mingw bug.
23005         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
23006         * modules/unistd (Makefile.am): Substitute it.
23007         * lib/unistd.in.h (link): Declare replacement.
23008         * doc/posix-functions/link.texi (link): Document this.
23009         * modules/link (Depends-on): Add strdup-posix, sys_stat.
23010
23011         test-link: consolidate into single C program, test more cases
23012         * tests/test-link.sh: Delete.
23013         * tests/test-link.c: Test more error conditions.  Exposes bugs on
23014         at least Cygwin and Solaris.
23015         * modules/link-tests (Files): Remove unused file.
23016         (Depends-on): Add errno, sys_stat.
23017         (Makefile.am): Simplify.
23018
23019 2009-09-08  Bruno Haible  <bruno@clisp.org>
23020
23021         Work around towlower, towupper bug on mingw.
23022         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
23023         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
23024         * doc/posix-functions/towlower.texi: Mention the mingw bug.
23025         * doc/posix-functions/towupper.texi: Likewise.
23026         Reported by Eric Blake.
23027
23028 2009-09-08  Jim Meyering  <meyering@redhat.com>
23029
23030         build: don't try to run autoheader if we don't use it
23031         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
23032         is not used in configure.ac.
23033
23034 2009-09-08  Eric Blake  <ebb9@byu.net>
23035
23036         euidaccess: fix compilation error
23037         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
23038
23039         rawmemchr: relax license
23040         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
23041         okay.
23042         Reported by Jim Meyering.
23043
23044         mkfifoat: new module
23045         * modules/mkfifoat: New file.
23046         * lib/mkfifoat.c: Likewise.
23047         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
23048         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
23049         * modules/sys_stat (Makefile.am): Use them.
23050         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
23051         * MODULES.html.sh (File system functions): Mention module.
23052         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
23053         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
23054         * modules/mkfifoat-tests: New test.
23055         * tests/test-mkfifoat.c: Likewise.
23056
23057         strchrnul: relax license
23058         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
23059         okay.
23060         Reported by Jim Meyering.
23061
23062 2009-09-08  Eric Blake  <ebb9@byu.net>
23063
23064         fstatat: fix compilation on Solaris
23065         * lib/fstatat.c (includes): Add fcntl.h.
23066         Reported by Pádraig Brady.
23067
23068 2009-09-07  Eric Blake  <ebb9@byu.net>
23069
23070         rename: modernize replacement
23071         * modules/rename (Depends-on): Add stdio.
23072         (configure.ac): Declare witness.
23073         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
23074         stdio take care of replacement.
23075         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
23076         * modules/stdio (Makefile.am): Substitute them.
23077         * lib/stdio.in.h (rename): Declare replacement.
23078         * lib/rename.c (includes): Allow cross-compilation to non-windows
23079         machines.
23080         * doc/posix-functions/rename.texi (rename): Improve
23081         documentation.
23082
23083         stdio: sort witness names
23084         * modules/stdio (Makefile.am): Sort replacements.
23085         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
23086         * lib/stdio.in.h: Likewise.
23087
23088         getcwd: minor cleanups
23089         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
23090         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
23091
23092         openat: provide more convenience names
23093         * modules/faccessat (configure.ac): Add C witness.
23094         * lib/unistd.in.h (readlinkat): Fix typo.
23095         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
23096         convenience wrappers.
23097         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
23098         wrappers in syntax checks.
23099
23100 2009-09-06  Eric Blake  <ebb9@byu.net>
23101
23102         doc: fix comments in recent patches
23103         * lib/faccessat.c: Mention correct function.
23104         * lib/fchmodat.c: Likewise.
23105         * lib/fchownat.c: Likewise.
23106         * lib/symlinkat.c: Likewise.
23107         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
23108         constants.
23109
23110         faccessat, symlinkat: continue cleanup of previous patch
23111         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
23112         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
23113         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
23114         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
23115         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
23116         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
23117         set.
23118
23119 2009-09-06  Bruno Haible  <bruno@clisp.org>
23120
23121         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
23122         (fstatat): Declare if GNULIB_FSTATAT is set.
23123         (mkdirat): Declare if GNULIB_MKDIRAT is set.
23124         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
23125         (unlinkat): Declare if GNULIB_UNLINKAT is set.
23126         * modules/fcntl-h (Files): Remove m4/openat.m4.
23127         * modules/sys_stat (Files): Remove m4/openat.m4.
23128         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
23129         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
23130         * modules/unistd (Files): Remove m4/openat.m4.
23131         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
23132         GNULIB_OPENAT.
23133         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
23134         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
23135         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
23136         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
23137         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
23138         gl_OPENAT_DEFAULTS.
23139         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
23140         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
23141         Don't require gl_OPENAT_DEFAULTS.
23142         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
23143         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
23144         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
23145         (gl_OPENAT_DEFAULTS): Remove macro.
23146
23147 2009-09-06  Bruno Haible  <bruno@clisp.org>
23148
23149         * modules/openat (configure.ac): Remove unneeded witness.
23150
23151 2009-09-06  Bruno Haible  <bruno@clisp.org>
23152
23153         Set errno to ENOSYS when a function is entirely unsupported.
23154         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
23155         EOPNOTSUPP.
23156         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
23157         * modules/chown (Depends-on): Remove errno.
23158
23159 2009-09-06  Bruno Haible  <bruno@clisp.org>
23160
23161         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
23162
23163 2009-09-06  Bruno Haible  <bruno@clisp.org>
23164
23165         * lib/sys_stat.in.h: Fix preprocessor command indentation.
23166
23167 2009-09-06  Ben Pfaff  <blp@gnu.org>
23168             Bruno Haible  <bruno@clisp.org>
23169
23170         Work around a glibc bug in strtok_r.
23171         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
23172         Undefine if UNDEFINE_STRTOK_R is set.
23173         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
23174         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
23175         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
23176         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
23177         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
23178         UNDEFINE_STRTOK_R.
23179         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
23180
23181 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
23182
23183         exclude: minor fix
23184         * lib/exclude.c: Include wctype.h
23185
23186 2009-09-06  Akim Demaille  <demaille@gostai.com>
23187
23188         bootstrap: improve error message
23189         * build-aux/bootstrap (find_tool): Upon failure, report the list
23190         of candidates.
23191         Honor the initial value of the envvar.
23192
23193 2009-09-05  Eric Blake  <ebb9@byu.net>
23194
23195         symlinkat: new module
23196         * modules/symlinkat: New file.
23197         * lib/symlinkat.c: Likewise.
23198         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
23199         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
23200         * modules/unistd (Makefile.am): Use them.
23201         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
23202         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
23203         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
23204         * MODULES.html.sh (File system functions): Mention module.
23205         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
23206         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
23207         * modules/symlinkat-tests: New test.
23208         * tests/test-symlinkat.c: Likewise.
23209
23210         test-openat-safer: add more checks
23211         * tests/test-openat-safer.c (main): Check more code paths.
23212
23213 2009-09-05  Jim Meyering  <meyering@redhat.com>
23214
23215         syntax-check: detect unnecessary inclusion of openat.h
23216         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
23217
23218 2009-09-05  Bruno Haible  <bruno@clisp.org>
23219
23220         Support towlower, towupper.
23221         * doc/posix-functions/towlower.texi: Mention module wctype.
23222         * doc/posix-functions/towupper.texi: Likewise.
23223         * lib/wctype.in.h (towlower, towupper): New functions.
23224         * tests/test-wctype.c: Include stdio.h, stdlib.h.
23225         (ASSERT): New macro.
23226         (e): New variable.
23227         (main): Test also towlower, towupper. Test WEOF argument.
23228         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
23229
23230 2009-09-05  Bruno Haible  <bruno@clisp.org>
23231
23232         Fix conversion behaviour when the input is invalid.
23233         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
23234         mark occurring in first pass of indirect conversion.
23235         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
23236         input.
23237         Found by clang's static analyzer.
23238
23239 2009-09-05  Bruno Haible  <bruno@clisp.org>
23240
23241         * tests/test-striconveh.c (main): Test indirect conversion on platforms
23242         where direct conversion is possible.
23243
23244 2009-09-04  Eric Blake  <ebb9@byu.net>
23245
23246         openat: fail with ENOENT on empty name
23247         * lib/openat-proc.c (openat_proc_name): Special-case the empty
23248         buffer.
23249
23250         link-follow: fix logic bug in prior patch
23251         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
23252         reversed sense of yes and no in prior patch.  Avoid confusing
23253         compilation failure with desired semantics.
23254
23255         link-follow: accomodate mingw and cross-compilation
23256         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
23257         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
23258         cross-compilation results to -1, to make linkat easier to
23259         implement when cross-compiling.  Trivially support mingw.
23260         * modules/link-follow (configure.ac): Call new name.
23261         * NEWS: Mention this.
23262
23263 2009-09-03  Eric Blake  <ebb9@byu.net>
23264
23265         faccessat: compile replacement
23266         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
23267         needed.
23268
23269         fts: fix compilation error
23270         * lib/fts.c (includes): Re-add "openat.h", for
23271         openat_needs_fchdir.
23272
23273         faccessat: new module
23274         * modules/faccessat: New file.
23275         * lib/faccessat.c: Likewise.
23276         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
23277         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
23278         * modules/unistd (Makefile.am): Use it.
23279         * lib/unistd.in.h (faccessat): Declare it.
23280         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
23281         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
23282         * MODULES.html.sh (File system functions): Mention it.
23283         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
23284         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
23285
23286         euidaccess: prefer POSIX over non-standard implementation
23287         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
23288         * lib/euidaccess.c (euidaccess): Use it if available.
23289
23290         openat: make template easier to use
23291         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
23292         AT_FUNC_F2 to be undefined.
23293         (VALIDATE_FLAG): New macro; use it to reject bad flags.
23294         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
23295         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
23296         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
23297         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
23298         Likewise.
23299         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
23300         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
23301         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
23302         Likewise.
23303
23304         openat: declare in POSIX headers
23305         * NEWS: Mention this.
23306         * modules/openat (configure.ac): Declare witnesses.
23307         (Depends-on): Add fcntl-h, sys_stat, unistd.
23308         (Include): Mention correct headers.
23309         * modules/fcntl-h (Depends-on): Add link-warning.
23310         (Files): Add openat.m4.
23311         (Makefile.am): Substitute witnesses.
23312         * modules/sys_stat (Files, Makefile.am): Likewise.
23313         * modules/unistd (Files, Makefile.am): Likewise.
23314         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
23315         (gl_OPENAT_DEFAULTS): New macro.
23316         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
23317         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
23318         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
23319         (SYS_STAT_H): Remove unused variable.
23320         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
23321         * lib/fcntl--.h (includes): Remove unneeded header.
23322         * lib/openat-safer.c (includes): Likewise.
23323         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
23324         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
23325         appropriate headers.
23326         (__OPENAT_PREFIX): Delete.
23327         * lib/fcntl.in.h (openat): Provide declaration.
23328         (AT_FDCWD): Fix Solaris bug.
23329         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
23330         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
23331         * lib/fchmodat.c (includes):  Adjust to find declaration.
23332         * lib/fchownat.c (includes): Likewise.
23333         * lib/mkdirat.c (includes): Likewise.
23334         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
23335         still visible.
23336
23337 2009-09-02  Eric Blake  <ebb9@byu.net>
23338
23339         errno: use consistently
23340         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
23341         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
23342         * lib/canonicalize.c (ELOOP): Likewise.
23343         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
23344         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
23345         * lib/lchown.c (EOPNOTSUPP): Likewise.
23346         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
23347         * lib/savewd.c (ESTALE): Likewise.
23348         * lib/settime.c (ENOSYS): Likewise.
23349         * lib/utimens.c (ENOSYS): Likewise.
23350         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
23351         * lib/chdir-safer.c (ELOOP): Likewise.
23352         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
23353         * modules/c-stack (Depends-on): Add errno.
23354         * modules/canonicalize (Depends-on): Likewise.
23355         * modules/chdir-safer (Depends-on): Likewise.
23356         * modules/fdopendir (Depends-on): Likewise.
23357         * modules/inet_ntop (Depends-on): Likewise.
23358         * modules/inet_pton (Depends-on): Likewise.
23359         * modules/lchown (Depends-on): Likewise.
23360         * modules/openat (Depends-on): Likewise.
23361         * modules/savewd (Depends-on): Likewise.
23362         * modules/settime (Depends-on): Likewise.
23363         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
23364
23365         fts: avoid leaking fds
23366         * modules/fts (Depends-on): Add cloexec.
23367         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
23368         flag.
23369
23370         fts: make directory fds more robust
23371         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
23372         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
23373
23374         backupfile, chdir-long, fts, savedir: make safer
23375         * lib/backupfile.c (includes): Use "dirent--.h", since
23376         numbered_backup can write to stderr during readdir.
23377         * lib/savedir.c (includes): Likewise.
23378         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
23379         emulation can write to stderr on failure.
23380         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
23381         * lib/getcwd.c: Document why opendir_safer is unused.
23382         * lib/glob.c: Likewise.
23383         * lib/scandir.c: Likewise.
23384         * lib/openat-proc.c: Likewise, for open_safer.
23385         * modules/backupfile (Depends-on): Add dirent-safer.
23386         * modules/savedir (Depends-on): Likewise.
23387         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
23388         * modules/chdir-long (Depends-on): Add openat-safer.
23389
23390         openat-safer: new module
23391         * modules/openat-safer: New file.
23392         * lib/openat-safer.c: Likewise.
23393         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
23394         * lib/fcntl-safer.h (openat_safer): Declare.
23395         * lib/fcntl--.h (openat): Override.
23396         * MODULES.html.sh (File descriptor based I/O): Mention it.
23397         * lib/openat.h: Add double-inclusion guards.
23398         * lib/openat.c (includes): Only include "fcntl-safer.h", not
23399         "fcntl--.h", so we can implement openat.
23400         * modules/openat-safer-tests: New test.
23401         * tests/test-openat-safer.c: New file.
23402
23403         dirent-safer: new module
23404         * modules/dirent-safer: New file.
23405         * lib/dirent--.h: Likewise.
23406         * lib/dirent-safer.h: Likewise.
23407         * lib/opendir-safer.c: Likewise.
23408         * m4/dirent-safer.m4: Likewise.
23409         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
23410         * modules/dirent-safer-tests: New test.
23411         * tests/test-dirent-safer.c: New file.
23412         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
23413
23414         fdopendir: optimize on mingw
23415         * lib/unistd.in.h (_gl_directory_name): New prototype.
23416         * lib/fchdir.c (_gl_directory_name): Implement it.
23417         (fchdir): Use it to simplify implementation.
23418         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
23419         fchdir, when available, to avoid calling [f]chdir().
23420
23421         fdopendir: split into its own module
23422         * lib/openat.c (fdopendir): Move...
23423         * lib/fdopendir.c: ...into new file.
23424         * modules/fdopendir: New module.
23425         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
23426         * modules/openat (Depends-on): Add fdopendir.
23427         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
23428         fdopendir here.
23429         * modules/savedir (Depends-on): Only need fdopendir, not full
23430         openat.
23431         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
23432         * lib/openat.h (fdopendir): Drop prototype.
23433         * lib/dirent.in.h (fdopendir): Provide prototype.
23434         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
23435         * modules/dirent (Makefile.am): Substitute them.
23436         * MODULES.html.sh (File system functions): Mention it.
23437         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
23438         * modules/fdopendir-tests: New file.
23439         * tests/test-fdopendir.c: Likewise.
23440
23441         fchdir: use more consistent macro convention
23442         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
23443         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
23444         REPLACE_FCHDIR, rather than relying on config.h macros.
23445         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
23446         inside a single make-time REPLACE_FCHDIR block, rather than using
23447         the config.h FCHDIR_REPLACEMENT.
23448         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
23449         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
23450         Manage fstat replacement.
23451         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
23452         REPLACE_FCHDIR.
23453         * modules/sys_stat (Files): Add m4/unistd_h.m4.
23454         (Makefile.am): Substitute REPLACE_FCHDIR.
23455         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
23456         FCHDIR_REPLACEMENT.
23457         * lib/dup-safer.c (dup_safer): Likewise.
23458         * lib/dup2.c (rpl_dup2): Likewise.
23459         * lib/dup3.c (rpl_dup3): Likewise.
23460         * lib/open.c (rpl_open): Likewise.
23461
23462         fchdir: simplify error handling, and support dup3
23463         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
23464         stdbool, malloc-posix, realloc-posix.
23465         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
23466         (ensure_dirs_slot): Return false on allocation failure.
23467         (rpl_dup2): Delete.
23468         (_gl_register_dup): New function.
23469         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
23470         (_gl_register_fd): Close fd on allocation failure.
23471         * lib/fcntl.in.h (_gl_register_fd): Update signature.
23472         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
23473         prototype.
23474         (rpl_dup2_fchdir): Delete prototype.
23475         * lib/open.c (open): Update caller.
23476         * lib/dup2.c (dup2): Track fchdir metadata.
23477         * lib/dup3.c (dup3): Likewise.
23478         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
23479         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
23480
23481 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23482
23483         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
23484         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
23485         don't pass arguments to AC_OUTPUT.
23486
23487 2009-09-02  Bruno Haible  <bruno@clisp.org>
23488
23489         * modules/mkdtemp (License): Relicense under LGPLv2+.
23490         Reported by Paolo Bonzini.
23491
23492 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23493
23494         Replace uses of obsolete autoconf macros in Jim's modules.
23495         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
23496         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
23497         can evoke a warning from autoconf when run with -Wobsolete
23498         enabled.  They were declared obsolete for good reasons (see
23499         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
23500         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
23501         should not continue using the deprecated macros.
23502         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
23503         obsolete Autoconf macros with modern counterparts.
23504         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
23505         * m4/dos.m4 (gl_AC_DOS): Likewise.
23506         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
23507         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
23508         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
23509         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
23510         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
23511         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
23512         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
23513         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
23514         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
23515         Likewise.
23516         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
23517         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
23518         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
23519         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
23520         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
23521         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
23522
23523 2009-09-01  Eric Blake  <ebb9@byu.net>
23524
23525         fchdir: fix off-by-one bug in previous patch
23526         * lib/fchdir.c (rpl_fstat): Use correct bounds.
23527         (_gl_unregister_fd): Delete useless if.
23528
23529 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
23530
23531         maint.mk: sort the list of syntax-check rules
23532         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
23533         easier to get a sense of progress when the rules are run sequentially
23534         and take a long time.
23535
23536 2009-09-01  Simon Josefsson  <simon@josefsson.org>
23537
23538         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
23539         * modules/netinet_in: Likewise.
23540         * modules/sys_file: Likewise.
23541         * modules/sys_ioctl: Likewise.
23542         * modules/sys_select: Likewise.
23543         * modules/sys_socket: Likewise.
23544         * modules/sys_stat: Likewise.
23545         * modules/sys_time: Likewise.
23546         * modules/sys_times: Likewise.
23547         * modules/sys_utsname: Likewise.
23548         * modules/sys_wait: Likewise.
23549
23550 2009-09-01  Jim Meyering  <meyering@redhat.com>
23551
23552         fts: help ensure that return values are not ignored
23553         * lib/fts_.h (__GNUC_PREREQ): Define.
23554         (__attribute_warn_unused_result__): Define.
23555         (fts_children, fts_close, fts_open, fts_read): Declare with
23556         __attribute_warn_unused_result__.
23557
23558         fts: fts_close now fails also when closing a dir file descriptor fails
23559         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
23560         and propagate to caller, along with errno.
23561
23562         announce-gen: correct formatting in --help output
23563         * build-aux/announce-gen (usage): Move the one-line description in
23564         --help output "up", to where it belongs, just after Usage:.
23565
23566 2009-08-31  Eric Blake  <ebb9@byu.net>
23567
23568         fchdir: port to mingw
23569         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
23570         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
23571         opened, then use a substitute.
23572         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
23573         replacement.
23574         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
23575         (_gl_register_fd): No need to check stat if open already filters
23576         all directories.
23577         (fchdir): Fix error condition to match POSIX.
23578         * modules/fchdir (Depends-on): Add sys_stat.
23579         * doc/posix-functions/open.texi (open): Document the limitation.
23580         * modules/fchdir-tests: New file.
23581         * tests/test-fchdir.c: Likewise.
23582
23583         canonicalize: allow cross-testing from cygwin to mingw
23584         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
23585         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
23586         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
23587         Likewise.
23588         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
23589         target does not support symlinks.
23590         * tests/test-canonicalize-lgpl.sh: Likewise.
23591
23592         chown: avoid compilation warning on mingw
23593         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
23594         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
23595         mingw.
23596         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
23597         * modules/chown (Depends-on): Add errno.
23598
23599 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
23600
23601         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
23602         command.
23603
23604 2009-08-31  Jim Meyering  <meyering@redhat.com>
23605
23606         canonicalize: remove useless initialization
23607         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
23608         initialization of local, "end".
23609
23610 2009-08-30  Bruno Haible  <bruno@clisp.org>
23611
23612         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
23613         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
23614         ENOSYS.
23615
23616 2009-08-30  Bruno Haible  <bruno@clisp.org>
23617
23618         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
23619         /usr/xpg4/bin/tr when it exists.
23620         * tests/test-pipe-filter-gi1.sh: Likewise.
23621
23622 2009-08-30  Bruno Haible  <bruno@clisp.org>
23623
23624         Work around deficient /usr/bin/id program on Solaris.
23625         * tests/test-file-has-acl.sh (ID): New variable.
23626         * tests/test-set-mode-acl.sh (ID): Likewise.
23627         * tests/test-copy-acl.sh (ID): Likewise.
23628         * tests/test-copy-file.sh (ID): Likewise.
23629
23630 2009-08-30  Bruno Haible  <bruno@clisp.org>
23631
23632         New module 'xstriconveh'.
23633         * lib/xstriconveh.h: New file.
23634         * lib/xstriconveh.c: New file.
23635         * modules/xstriconveh: New file.
23636
23637 2009-08-30  Bruno Haible  <bruno@clisp.org>
23638
23639         Make it easier to use mem_cd_iconveh.
23640         * lib/striconveh.h (iconveh_t): New type.
23641         (iconveh_open, iconveh_close): New declarations.
23642         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
23643         with a single 'const iconveh_t *' argument.
23644         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
23645         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
23646         with a single 'const iconveh_t *' argument.
23647         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
23648         * tests/test-striconveh.c (main): Update.
23649         * NEWS: Mention the change.
23650
23651 2009-08-30  Bruno Haible  <bruno@clisp.org>
23652
23653         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
23654         problem.
23655
23656 2009-08-30  Bruno Haible  <bruno@clisp.org>
23657
23658         Work around iconv_open problem on Solaris.
23659         * lib/iconv_open-solaris.gperf: New file.
23660         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
23661         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
23662         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
23663         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
23664         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
23665         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
23666
23667 2009-08-29  Jim Meyering  <meyering@redhat.com>
23668
23669         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
23670         * top/maint.mk (cvs-check): Remove target; it was just an alias
23671         to the better-named vc-diff-check.
23672         (maintainer-distcheck): Remove rule.  It was used only from
23673         the (alpha/beta/major) target, and all of its commands but one
23674         were coreutils-specific.
23675         (vc-dist): Remove rule.
23676         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
23677         Run vc-diff-check, not vc-dist.
23678         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
23679
23680 2009-08-27  Bruno Haible  <bruno@clisp.org>
23681
23682         * tests/test-bitrotate.c (main): Remove test that uses a shift count
23683         of 0.
23684
23685 2009-08-27  Bruno Haible  <bruno@clisp.org>
23686
23687         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
23688         compilers.
23689         * doc/func.texi: Document the SunPRO C bug.
23690
23691 2009-08-27  Bruno Haible  <bruno@clisp.org>
23692
23693         Fix link error on Solaris.
23694         * tests/test-parse-duration.c (xstrdup): Remove function.
23695
23696 2009-08-26  Pádraig Brady  <P@draigbrady.com>
23697
23698         ignore-value: handle pointer types, too
23699         * lib/ignore-value.h (__attribute__): Remove definition.
23700         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
23701         of a more concise and more-often effective "(void) i" statement.
23702         (ignore_ptr): New function to suppress warnings from functions that
23703         return pointers, and to make it explicit that one function doesn't
23704         handle all cases.
23705
23706 2009-08-25  Bruno Haible  <bruno@clisp.org>
23707
23708         dup2: work around a Linux bug.
23709         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
23710         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
23711         * doc/posix-functions/dup2.texi: Mention the Linux bug.
23712         Reported by Simon Josefsson.
23713
23714 2009-08-25  Jim Meyering  <meyering@redhat.com>
23715
23716         libguestfs uses gnulib
23717         * users.txt: Add libguestfs.
23718
23719 2009-08-24  Eric Blake  <ebb9@byu.net>
23720
23721         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
23722         * lib/pipe2.c (includes): Add binary-io.h.
23723         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
23724
23725 2009-08-24  Bruno Haible  <bruno@clisp.org>
23726
23727         Tolerate declared but missing accept4 syscall.
23728         * lib/accept4.c (accept4): Invoke original accept4 function first, if
23729         available.
23730         * lib/sys_socket.in.h (accept4): If the function is already present,
23731         override it.
23732         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
23733         * modules/accept4 (Makefile.am): Compile accept4.c always.
23734         Reported by Paolo Bonzini and Eric Blake.
23735
23736 2009-08-23  Bruno Haible  <bruno@clisp.org>
23737
23738         New module 'accept4'.
23739         * lib/sys_socket.in.h (accept4): New declaration.
23740         * lib/accept4.c: New file.
23741         * m4/accept4.m4: New file.
23742         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
23743         GNULIB_ACCEPT4, HAVE_ACCEPT4.
23744         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
23745         HAVE_ACCEPT4.
23746         * modules/accept4: New file.
23747         * doc/glibc-functions/accept4.texi: Mention the new module.
23748
23749 2009-08-24  Jim Meyering  <meyering@redhat.com>
23750
23751         progname: also set global program_invocation_name, when possible
23752         Before this change, a libtool-enabled program that calls glibc's
23753         error function would report the program name as
23754         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
23755         * modules/progname (configure.ac): Check for a declaration of
23756         program_invocation_name.
23757         * lib/progname.c:  Include <errno.h>.
23758         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
23759         Set program_invocation_name.
23760
23761 2009-08-23  Bruno Haible  <bruno@clisp.org>
23762
23763         * lib/dup3.c: Include <string.h>.
23764
23765 2009-08-23  Bruno Haible  <bruno@clisp.org>
23766
23767         * lib/dup3.c (dup3): Test only once whether the system actually exists.
23768         * lib/pipe2.c (pipe2): Likewise.
23769         Suggested by Eric Blake.
23770
23771 2009-08-23  Bruno Haible  <bruno@clisp.org>
23772
23773         Tolerate declared but missing dup3 syscall.
23774         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
23775         * lib/unistd.in.h (dup3): If the function is already present,
23776         override it.
23777         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
23778         * modules/dup3 (Makefile.am): Compile dup3.c always.
23779         Reported by Paolo Bonzini.
23780
23781 2009-08-23  Bruno Haible  <bruno@clisp.org>
23782
23783         Tolerate declared but missing pipe2 syscall.
23784         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
23785         available.
23786         * lib/unistd.in.h (pipe2): If the function is already present,
23787         override it.
23788         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
23789         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
23790         Reported by Paolo Bonzini.
23791
23792 2009-08-23  Bruno Haible  <bruno@clisp.org>
23793
23794         * lib/pipe2.c (pipe2): Move #ifs inside function.
23795
23796 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
23797
23798         quotearg: document limitations of quote_these_too
23799         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
23800         those limitations are created.
23801         * lib/quotearg.h (set_char_quoting): Document that digits and
23802         letters that are special after backslash are not permitted.
23803         (quotearg_char): Cross-reference set_char_quoting documentation.
23804
23805 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
23806
23807         quotearg: implement custom_quoting_style
23808         * lib/quotearg.c: (struct quoting_options): Add left_quote and
23809         right_quote fields.
23810         (set_custom_quoting): New public function.
23811         (quotearg_buffer_restyled): Add left_quote and right_quote
23812         arguments, handle them very much like locale quoting, and update
23813         all uses.
23814         (quotearg_n_custom): New public function.
23815         (quotearg_n_custom_mem): New public function.
23816         (quotearg_custom): New public function.
23817         (quotearg_custom_mem): New public function.
23818         * lib/quotearg.h: Prototype and document new public functions.
23819         (enum quoting_style): For escape_quoting_style and
23820         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
23821         ignored even though they're otherwise like c_quoting_style.
23822         Add custom_quoting_style member and document with comparison to
23823         clocale_quoting_style.
23824         * tests/test-quotearg.c (custom_quotes): New array.
23825         (custom_results): New array.
23826         (main): Extend to test custom quoting.
23827
23828 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
23829
23830         quotearg: fix right quote escaping when it's in quote_these_too
23831         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
23832         quote, be sure to prepend only one backslash.
23833         * tests/test-quotearg.c (use_quote_double_quotes): New function.
23834         (main): Test it.
23835
23836 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
23837
23838         quotearg-tests: test escaping of embedded locale quotes
23839         * tests/test-quotearg.c (struct result_strings): Add member for
23840         new input.
23841         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
23842         (inputs): Add new input.
23843         (results_g): Add expected results.
23844         (flag_results): Likewise.
23845         (locale_results): Likewise.
23846         (compare_strings): Check those.
23847
23848 2009-08-23  Bruno Haible  <bruno@clisp.org>
23849
23850         Tests for module 'dup3'.
23851         * modules/dup3-tests: New file.
23852         * tests/test-dup3.c: New file.
23853
23854         New module 'dup3'.
23855         * lib/unistd.in.h (dup3): New declaration.
23856         * lib/dup3.c: New file.
23857         * m4/dup3.m4: New file.
23858         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
23859         HAVE_DUP3.
23860         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
23861         * modules/dup3: New file.
23862         * doc/glibc-functions/dup3.texi: Mention the new module.
23863
23864 2009-08-23  Bruno Haible  <bruno@clisp.org>
23865
23866         Tweak the dup2 test.
23867         * tests/test-dup2.c (main): Create the test file empty. Verify that an
23868         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
23869         the test file is still empty. Fix argument order of lseek.
23870
23871 2009-08-23  Bruno Haible  <bruno@clisp.org>
23872
23873         Avoid test link errors when the modules getopt-gnu, gettext are used.
23874         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
23875         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
23876
23877 2009-08-23  Bruno Haible  <bruno@clisp.org>
23878
23879         Fix getdtablesize() on mingw.
23880         * lib/getdtablesize.c (getdtablesize): Implement differently.
23881         * lib/unistd.in.h (getdtablesize): Improve comment.
23882
23883 2009-08-23  Bruno Haible  <bruno@clisp.org>
23884
23885         New module 'mkostemp'.
23886         Based on Ulrich Drepper's 2007-08-10 change in glibc.
23887         * lib/stdlib.in.h (mksotemp): New declaration.
23888         * lib/mkostemp.c: New file, from glibc with modifications.
23889         * lib/tempname.h (GT_FILE): Remove outdated comment.
23890         (gen_tempname): Add flags argument.
23891         * lib/tempname.c (__GT_BIGFILE): Remove macro.
23892         (__GT_FILE): Map to 1.
23893         (small_open, large_open): Remove macros.
23894         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
23895         * lib/mkstemp.c (mkstemp): Update.
23896         * lib/mkdtemp.c (mkdtemp): Likewise.
23897         * m4/mkostemp.m4: New file.
23898         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
23899         HAVE_MKOSTEMP.
23900         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
23901         HAVE_MKOSTEMP.
23902         * modules/mkostemp: New file, based on modules/mkstemp.
23903         * doc/glibc-functions/mkostemp.texi: Mention the new module.
23904         * NEWS: Mention the change.
23905
23906 2009-08-23  Bruno Haible  <bruno@clisp.org>
23907
23908         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
23909         Reported by Eric Blake.
23910
23911 2009-08-23  Bruno Haible  <bruno@clisp.org>
23912
23913         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
23914         Reported by Eric Blake.
23915
23916 2009-08-23  Bruno Haible  <bruno@clisp.org>
23917
23918         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
23919         * modules/pipe2 (Depends-on): Likewise.
23920
23921 2009-08-23  Eric Blake  <ebb9@byu.net>
23922
23923         fcntl-h: add O_TTY_INIT support
23924         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
23925         * tests/test-fcntl-h.c (o): Test it.
23926         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
23927
23928         fcntl-h: rename from fcntl, in preparation for fcntl(2)
23929         * modules/fcntl: Move <fcntl.h> header replacement...
23930         * modules/fcntl-h: ...to new name, so as not to collide with
23931         like-named function.
23932         * tests/test-fcntl.c: Rename...
23933         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
23934         * modules/fcntl-tests: Rename...
23935         * modules/fcntl-h-tests: ...to this.  Update test file name.
23936         * modules/chdir-long (Depends-on): Update clients.
23937         * modules/chdir-safer (Depends-on): Likewise.
23938         * modules/fcntl-safer (Depends-on): Likewise.
23939         * modules/fts (Depends-on): Likewise.
23940         * modules/mkancesdirs (Depends-on): Likewise.
23941         * modules/mkdir-p (Depends-on): Likewise.
23942         * modules/open (Depends-on): Likewise.
23943         * modules/savewd (Depends-on): Likewise.
23944         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
23945         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
23946
23947 2009-08-22  Bruno Haible  <bruno@clisp.org>
23948
23949         * modules/binary-io (License): Relicense under LGPL.
23950         * modules/pipe2 (License): Likewise.
23951
23952 2009-08-22  Bruno Haible  <bruno@clisp.org>
23953
23954         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
23955         return value.
23956         * lib/pipe-filter-gi.c (filter_init): Likewise.
23957         Reported by Eric Blake.
23958
23959 2009-08-22  Bruno Haible  <bruno@clisp.org>
23960
23961         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
23962         * modules/pipe (Depends-on): Add pipe2.
23963
23964 2009-08-22  Bruno Haible  <bruno@clisp.org>
23965
23966         Tests for module 'pipe2'.
23967         * modules/pipe2-tests: New file.
23968         * tests/test-pipe2.c: New file.
23969
23970         New module 'pipe2'.
23971         * lib/unistd.in.h (pipe2): New declaration.
23972         * lib/pipe2.c: New file.
23973         * m4/pipe2.m4: New file.
23974         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
23975         HAVE_PIPE2.
23976         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
23977         * modules/pipe2: New file.
23978         * doc/glibc-functions/pipe2.texi: Mention the new module.
23979
23980 2009-08-22  Bruno Haible  <bruno@clisp.org>
23981
23982         Reference some new glibc functions.
23983         * doc/glibc-functions/accept4.texi: New file.
23984         * doc/glibc-functions/dup3.texi: New file.
23985         * doc/glibc-functions/mkostemp.texi: New file.
23986         * doc/glibc-functions/pipe2.texi: New file.
23987         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
23988         (Glibc sys/socket.h): Refer to accept4.
23989         (Glibc unistd.h): Refer to dup3, pipe2.
23990         Reported by Eric Blake.
23991
23992 2009-08-22  Jim Meyering  <meyering@redhat.com>
23993             Bruno Haible  <bruno@clisp.org>
23994
23995         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
23996         This makes it so packages using automake-1.11's silent-rules option
23997         can print e.g., a single "GEN    configmake.h" line, rather than
23998         the 30+ statements that perform the job.  If you want to see the
23999         actual commands, you can still run "make V=1".
24000         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
24001         so that make output is abbreviated when those variables are defined
24002         appropriately.
24003         * modules/argz: Likewise.
24004         * modules/arpa_inet: Likewise.
24005         * modules/byteswap: Likewise.
24006         * modules/configmake: Likewise.
24007         * modules/dirent: Likewise.
24008         * modules/errno: Likewise.
24009         * modules/fcntl: Likewise.
24010         * modules/float: Likewise.
24011         * modules/fnmatch: Likewise.
24012         * modules/getopt-posix: Likewise.
24013         * modules/glob: Likewise.
24014         * modules/iconv_open: Likewise.
24015         * modules/inttypes: Likewise.
24016         * modules/localcharset: Likewise.
24017         * modules/locale: Likewise.
24018         * modules/math: Likewise.
24019         * modules/netdb: Likewise.
24020         * modules/netinet_in: Likewise.
24021         * modules/poll: Likewise.
24022         * modules/posix_spawnp-tests: Likewise.
24023         * modules/sched: Likewise.
24024         * modules/search: Likewise.
24025         * modules/selinux-h: Likewise.
24026         * modules/signal: Likewise.
24027         * modules/spawn: Likewise.
24028         * modules/stdarg: Likewise.
24029         * modules/stdbool: Likewise.
24030         * modules/stddef: Likewise.
24031         * modules/stdint: Likewise.
24032         * modules/stdio: Likewise.
24033         * modules/stdlib: Likewise.
24034         * modules/string: Likewise.
24035         * modules/strings: Likewise.
24036         * modules/sys_file: Likewise.
24037         * modules/sys_ioctl: Likewise.
24038         * modules/sys_select: Likewise.
24039         * modules/sys_socket: Likewise.
24040         * modules/sys_stat: Likewise.
24041         * modules/sys_time: Likewise.
24042         * modules/sys_times: Likewise.
24043         * modules/sys_utsname: Likewise.
24044         * modules/sys_wait: Likewise.
24045         * modules/sysexits: Likewise.
24046         * modules/time: Likewise.
24047         * modules/unistd: Likewise.
24048         * modules/wchar: Likewise.
24049         * modules/wctype: Likewise.
24050
24051 2009-08-22  Jim Meyering  <meyering@redhat.com>
24052
24053         announce-gen: detect write failure
24054         * build-aux/announce-gen: Add Coda at end.
24055         Remove equivalent-but-more-verbose block at top.
24056
24057 2009-08-19  Akim Demaille  <demaille@gostai.com>
24058
24059         bootstrap: --help to stdout.
24060         * bootstrap (usage): Don't send --help to stderr.
24061         Use a here doc instead of a long string.
24062
24063 2009-08-21  Eric Blake  <ebb9@byu.net>
24064
24065         test-popen-safer: split from test-popen
24066         * tests/test-popen.c (main): Move...
24067         * tests/test-popen.h: ...into new file.
24068         * tests/test-popen-safer2.c: New file.
24069         * modules/popen-tests (Files): Add test-popen.h.
24070         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
24071         Suggested by Bruno Haible.
24072
24073         test-fcntl-safer: split from test-open
24074         * tests/test-open.c (main): Move...
24075         * tests/test-open.h: ...into new file.
24076         * tests/test-fcntl-safer.c: New file.
24077         * modules/open-tests (Files): Add test-open.h.
24078         * modules/fcntl-safer-tests: New file.
24079         Suggested by Bruno Haible.
24080
24081         test-fopen-safer: split from test-fopen
24082         * tests/test-fopen.c (main): Move...
24083         * tests/test-fopen.h: ...into new file.
24084         * tests/test-fopen-safer.c: New file.
24085         * modules/fopen-tests (Files): Add test-fopen.h.
24086         * modules/fopen-safer-tests: New file.
24087         Suggested by Bruno Haible.
24088
24089 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
24090
24091         popen-safer: test O_CLOEXEC at run-time.
24092         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
24093
24094 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
24095
24096         fcntl: move more flags to the header
24097         * lib/cloexec.c: Do not define FD_CLOEXEC here.
24098         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
24099         * lib/fcntl.in.h: Do both things here.
24100
24101 2009-08-21  Jim Meyering  <meyering@redhat.com>
24102
24103         consistently remove $@-t before redirecting to it
24104         * modules/argz: Remove $@-t and $@ before redirecting to the former.
24105         * modules/alloca-opt: Likewise.
24106         * modules/byteswap: Likewise.
24107         * modules/fnmatch: Likewise.
24108         * modules/getopt-posix: Likewise.
24109         * modules/glob: Likewise.
24110         * modules/poll: Likewise.
24111         * modules/posix_spawnp-tests: Likewise.
24112         * modules/sys_socket: Likewise.
24113         * modules/sysexits: Likewise.
24114
24115 2009-08-21  Eric Blake  <ebb9@byu.net>
24116
24117         popen: simplify access to original popen
24118         * lib/popen.c (rpl_popen): No need to worry about popen being a
24119         macro.
24120         Reported by Bruno Haible.
24121
24122 2009-08-20  Eric Blake  <ebb9@byu.net>
24123
24124         build: avoid some compiler warnings
24125         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
24126         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
24127         type.
24128         (new_exclude_segment, excluded_file_pattern_p)
24129         (excluded_file_name_p): Reduce scope.
24130         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
24131         old-style declaration.
24132
24133 2009-08-20  Simon Josefsson  <simon@josefsson.org>
24134
24135         * tests/test-exclude1.sh: Handle Windows EOL.
24136         * tests/test-exclude2.sh: Likewise.
24137         * tests/test-exclude3.sh: Likewise.
24138         * tests/test-exclude4.sh: Likewise.
24139         * tests/test-exclude5.sh: Likewise.
24140         * tests/test-exclude6.sh: Likewise.
24141         * tests/test-exclude7.sh: Likewise.
24142
24143 2009-08-19  Akim Demaille  <demaille@gostai.com>
24144
24145         bootstrap: find sha1sum when named gsha1sum.
24146         * bootstrap (find_tool): New.
24147         ($SHA1SUM): New.
24148         Use it.
24149
24150 2009-08-20  Jim Meyering  <meyering@redhat.com>
24151
24152         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
24153         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
24154         expression that converts "." in a file name to "\." in the resulting
24155         regexp.  Start with a dummy statement, so that prior shell variable
24156         definitions are expanded portably.  Reported by Simon Josefsson.
24157
24158 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
24159
24160         Fix polling for writeability of a screen buffer.
24161         * lib/poll.c: Distinguish input and screen buffers for the
24162         Win32 implementation.
24163         * lib/select.c: Likewise.
24164
24165 2009-08-19  Eric Blake  <ebb9@byu.net>
24166
24167         popen-safer: prevent popen from clobbering std descriptors
24168         * modules/popen-safer: New file.
24169         * lib/popen-safer.c: Likewise.
24170         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
24171         * lib/stdio--.h (popen): Provide override.
24172         * lib/stdio-safer.h (popen_safer): Provide declaration.
24173         * tests/test-popen.c (includes): Partially test this.
24174         * modules/popen-safer-tests: New file, for more tests.
24175         * tests/test-popen-safer.c: Likewise.
24176         * MODULES.html.sh (file stream based Input/Output): Mention it.
24177
24178         tests: test some of the *-safer modules
24179         * modules/fopen-safer (Depends-on): Add fopen.
24180         * modules/fcntl-safer (Depends-on): Add fcntl.
24181         * modules/stdlib-safer (Depends-on): Add stdlib.
24182         (configure.ac): Set indicator.
24183         * modules/unistd-safer (configure.ac): Likewise.
24184         * modules/tmpfile-safer (configure.ac): Likewise.
24185         (Depends-on): Add tmpfile.
24186         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
24187         active.
24188         * tests/test-fopen.c (includes): Test safer versions when they are
24189         in use.
24190         * tests/test-open.c (includes): Likewise.
24191
24192         popen: fix cygwin 1.5 bug when stdin closed
24193         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
24194         * modules/popen: New file.
24195         * modules/popen-tests: Likewise.
24196         * tests/test-popen.c: Likewise.
24197         * m4/popen.m4: Likewise.
24198         * lib/popen.c: Likewise.
24199         * lib/stdio.in.h (popen): New declaration.
24200         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
24201         * modules/stdio (Makefile.am): Likewise.
24202         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
24203
24204 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
24205
24206         maint.mk: give full control over update-copyright exclusions
24207         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
24208         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
24209         (update-copyright): Don't force inclusion of top-level
24210         ChangeLog.  Don't force exclusion of all COPYING files, but make
24211         them the default exclusion instead.
24212
24213 2009-08-16  Bruno Haible  <bruno@clisp.org>
24214
24215         Fix test failures on Solaris 10.
24216         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
24217         tests when Solaris iconv() is used.
24218         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
24219         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
24220         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
24221         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
24222         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
24223
24224 2009-08-16  Bruno Haible  <bruno@clisp.org>
24225
24226         Fix test failures on Solaris 10.
24227         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
24228         'tr' program and pass it as first argument.
24229         * tests/test-pipe-filter-gi1.sh: Likewise.
24230         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
24231         program as first argument.
24232         * tests/test-pipe-filter-gi1.c (main): Likewise.
24233
24234 2009-08-16  Eric Blake  <ebb9@byu.net>
24235
24236         fpurge: fix previous commits
24237         * modules/fpurge (Makefile.am): Make replacement conditional,
24238         partially reverting 2007-04-29 change; missed in previous
24239         attempt.
24240         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
24241         is missing.
24242
24243 2009-08-16  Bruno Haible  <bruno@clisp.org>
24244
24245         Clarify fpurge's effect on the file position.
24246         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
24247         * tests/test-fpurge.c (main): Make a second pass for checking the file
24248         position.
24249
24250 2009-08-16  Bruno Haible  <bruno@clisp.org>
24251
24252         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
24253         declaration of fpurge is missing.
24254         * tests/test-fpurge.c (main): Check that the file has not more contents
24255         than expected. Close the file before removing it.
24256
24257 2009-08-15  Eric Blake  <ebb9@byu.net>
24258
24259         fpurge: don't wrap working cygwin implementation
24260         * lib/fpurge.c (fpurge): Fix comment typo.
24261         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
24262         1.7 to avoid replacement.
24263         * tests/test-fpurge.c (main): Enhance test.
24264
24265 2009-08-15  Eric Blake  <ebb9@byu.net>
24266         and Jim Meyering  <meyering@redhat.com>
24267
24268         test-update-copyright: skip if perl is insufficient
24269         * tests/test-update-copyright.sh: Failure to run maintainer tool
24270         should not cause testsuite failure on cygwin 1.5.
24271
24272 2009-08-14  Eric Blake  <ebb9@byu.net>
24273
24274         doc: mention more functions added in cygwin 1.7.0
24275         * doc/posix-headers/limits.texi (limits.h): Update for recent
24276         cygwin additions.
24277         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
24278         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
24279         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
24280         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
24281         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
24282
24283 2009-08-14  Eric Blake  <ebb9@byu.net>
24284
24285         maint.mk: simplify update-copyright rule
24286         * top/maint.mk (update-copyright-local): Delete, and document how
24287         to do it in cfg.mk instead.
24288         (update-copyright-exclude-regexp): Delete, and document how to do
24289         it in .x-update-copyright instead.
24290         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
24291         exclude ChangeLog.
24292
24293 2009-08-14  Bruno Haible  <bruno@clisp.org>
24294
24295         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
24296
24297 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
24298
24299         maint.mk: support update-copyright-env
24300         * top/maint.mk (update-copyright-env): Define place-holder.
24301         (update-copyright): Expand $(update-copyright-env) before
24302         invoking update-copyright.
24303
24304 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
24305
24306         update-copyright: implement forced reformatting
24307         * build-aux/update-copyright: Implement and document
24308         UPDATE_COPYRIGHT_FORCE.
24309         * tests/test-update-copyright.sh: Test it.
24310
24311 2009-08-14  Eric Blake  <ebb9@byu.net>
24312         and Bruno Haible  <bruno@clisp.org>
24313
24314         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
24315         * tests/test-locale.c: Revert previous patch related to NULL.
24316         * tests/test-stdio.c: Likewise.
24317         * tests/test-stdlib.c: Likewise.
24318         * tests/test-string.c: Likewise.
24319         * tests/test-unistd.c: Likewise.
24320         * modules/time-tests (Depends-on): Add verify.
24321         * modules/wchar-tests (Depends-on): Likewise.
24322         * tests/test-time.c: Test for NULL compliance.
24323         * tests/test-wchar.c: Likewise.
24324         * modules/locale (Depends-on): Add stddef.
24325         * modules/stdio (Depends-on): Likewise.
24326         * modules/stdlib (Depends-on): Likewise.
24327         * modules/string (Depends-on): Likewise.
24328         * modules/time (Depends-on): Likewise.
24329         * modules/unistd (Depends-on): Likewise.
24330         * modules/wchar (Depends-on): Likewise.
24331         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
24332         * lib/stdlib.in.h (includes): Likewise.
24333         * lib/string.in.h (includes): Likewise.
24334         * lib/time.in.h (includes): Likewise.
24335         * lib/unistd.in.h (includes): Likewise.
24336         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
24337         replaced.
24338         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
24339         * m4/stddef_h.m4: New file.
24340         * modules/stddef: Likewise.
24341         * lib/stddef.in.h: Likewise.
24342         * modules/stddef-tests: Likewise.
24343         * tests/test-stddef.c: Likewise.
24344         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
24345         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
24346         * doc/posix-headers/locale.texi (locale.h): Likewise.
24347         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
24348         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
24349         * doc/posix-headers/string.texi (string.h): Likewise.
24350         * doc/posix-headers/time.texi (time.h): Likewise.
24351         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
24352         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
24353
24354 2009-08-14  Eric Blake  <ebb9@byu.net>
24355
24356         doc: improve git diff of texinfo files
24357         * .gitattributes: Add rule for *.texi files, with hint on how to
24358         use it.
24359         Copied from m4, and based on a report by Bruno Haible.
24360
24361 2009-08-14  Bruno Haible  <bruno@clisp.org>
24362
24363         Disable multithread support by default on Cygwin 1.5.x for real.
24364         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
24365
24366 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
24367
24368         update-copyright: much ado about intervals
24369         * build-aux/update-copyright: Implement and document
24370         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
24371         of copyright year intervals.
24372         Also, document UPDATE_COPYRIGHT_YEAR.
24373         * tests/test-update-copyright.sh: Test it.
24374
24375         update-copyright: convert 2-digit to 4-digit years
24376         * build-aux/update-copyright: Implement and document.
24377         * tests/test-update-copyright.sh: Update.
24378
24379 2009-08-14  Jim Meyering  <meyering@redhat.com>
24380
24381         test-exclude: avoid coreutils "make check" failure
24382         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
24383         just as in test-argmatch.c.
24384
24385 2009-08-13  Eric Blake  <ebb9@byu.net>
24386
24387         test-dup2: fix bad assumption
24388         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
24389         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
24390
24391         test-version-etc: fix CRLF portability issue
24392         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
24393         recognize \r.
24394         * tests/test-argp-version-etc-1.sh: Likewise.
24395
24396         getopt: update client modules
24397         * modules/argp (Depends-on): Use getopt-gnu.
24398         * modules/git-merge-changelog (Depends-on): Likewise.
24399         * modules/long-options (Depends-on): Likewise.
24400         * modules/xstrtol (Depends-on): Likewise.
24401
24402 2009-08-13  Simon Josefsson  <simon@josefsson.org>
24403
24404         * tests/test-version-etc.sh: Don't fail on different
24405         project/version.  Don't fail on CRLF differences.  Rewrite to use
24406         multiple -e instead of multiple sed forks, suggested by Eric Blake
24407         <ebb9@byu.net>.
24408         * tests/test-argp-version-etc-1.sh: Likewise.
24409
24410 2009-08-13  Simon Josefsson  <simon@josefsson.org>
24411
24412         * tests/test-version-etc.sh: Don't fail on different
24413         project/version.
24414
24415 2009-08-12  Bruno Haible  <bruno@clisp.org>
24416
24417         Tests for modules 'getopt-posix', 'getopt-gnu'.
24418         * modules/getopt-posix-tests: New file.
24419         * tests/test-getopt.c: New file.
24420         * tests/test-getopt.h: New file.
24421         * tests/test-getopt_long.h: New file.
24422
24423         New modules 'getopt-posix', 'getopt-gnu'.
24424         * modules/getopt-gnu: New file, renamed from modules/getopt.
24425         * modules/getopt-posix: New file.
24426         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
24427         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
24428         (gl_GETOPT): Remove macro.
24429         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
24430         Disable the test against BSD systems that declare optreset. Test
24431         against mingw bug. Test against lack of support of optional arguments
24432         on many platforms.
24433         * doc/glibc-headers/getopt.texi: Update module name and list of
24434         relevant platforms.
24435         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
24436         'getopt-gnu' and more portability problems.
24437         * NEWS: Mention the changes.
24438
24439 2009-08-12  Bruno Haible  <bruno@clisp.org>
24440
24441         Ensure that optarg etc. get declared by <unistd.h>.
24442         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
24443         AC_USE_SYSTEM_EXTENSIONS.
24444         * modules/getopt (Depends-on): Add 'extensions'.
24445
24446 2009-08-12  Bruno Haible  <bruno@clisp.org>
24447
24448         Avoid test link errors.
24449         * modules/pipe-filter-ii-tests (Makefile.am): Define
24450         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
24451         * modules/pipe-filter-gi-tests (Makefile.am): Define
24452         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
24453         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
24454
24455 2009-08-12  Bruno Haible  <bruno@clisp.org>
24456
24457         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
24458         gl_GETOPT_SUBSTITUTE before.
24459         (gl_GETOPT): Use it.
24460         * m4/argp.m4 (gl_ARGP): Update.
24461         Reported by Sergey Poznyakoff.
24462
24463         * m4/getopt.m4: Reorder macros.
24464         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
24465         (gl_GETOPT_SUBSTITUTE): Remove macro.
24466
24467 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
24468
24469         Minor improvement in gitlog-to-changelog
24470
24471         * build-aux/gitlog-to-changelog: New option `--format' makes
24472         output format string configurable.
24473
24474 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
24475
24476         Optimize exclude: use hash tables for non-wildcard patterns.
24477
24478         * lib/exclude.c: Include hash.h and mbuiter.h
24479         (struct exclude_pattern, exclude_segment): New data types.
24480         (struct exclude): Rewrite.
24481         (fnmatch_pattern_has_wildcards): New function.
24482         (new_exclude_segment, free_exclude_segment): New functions.
24483         (excluded_file_pattern_p, excluded_file_name_p): New functions.
24484         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
24485         * lib/exclude.h (is_fnmatch_pattern): New prototype.
24486         * modules/exclude: Depend on hash and mbuiter.
24487
24488         * modules/exclude-tests: New file.
24489         * tests/test-exclude.c: New file.
24490         * tests/test-exclude1.sh: New file.
24491         * tests/test-exclude2.sh: New file.
24492         * tests/test-exclude3.sh: New file.
24493         * tests/test-exclude4.sh: New file.
24494         * tests/test-exclude5.sh: New file.
24495         * tests/test-exclude6.sh: New file.
24496         * tests/test-exclude7.sh: New file.
24497
24498 2009-08-12  Bruno Haible  <bruno@clisp.org>
24499
24500         Ensure that getopt() gets declared by <unistd.h>.
24501         * lib/unistd.in.h: Conditionally include getopt.h.
24502         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
24503         Set GNULIB_UNISTD_H_GETOPT.
24504         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
24505         GNULIB_UNISTD_H_GETOPT.
24506         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
24507
24508 2009-08-12  Bruno Haible  <bruno@clisp.org>
24509
24510         Clarify logic.
24511         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
24512         gl_replace_getopt instead of GETOPT_H.
24513
24514 2009-08-12  Bruno Haible  <bruno@clisp.org>
24515
24516         * m4/getopt.m4: Add comments.
24517
24518 2009-08-12  Bruno Haible  <bruno@clisp.org>
24519
24520         Disable multithread support by default on Cygwin 1.5.x.
24521         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
24522         set gl_use_threads=no if not specified otherwise.
24523
24524 2009-08-11  Bruno Haible  <bruno@clisp.org>
24525
24526         Avoid compilation error on NetBSD 5.0.
24527         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
24528         * tests/test-stdio.c: Likewise.
24529         * tests/test-stdlib.c: Likewise.
24530         * tests/test-string.c: Likewise.
24531         * tests/test-unistd.c: Likewise.
24532         Reported by Greg Troxel <gdt@ir.bbn.com>
24533         at <https://savannah.gnu.org/support/?106973>.
24534
24535 2009-08-11  Bruno Haible  <bruno@clisp.org>
24536
24537         * modules/dup2-tests (Depends-on): Remove close.
24538
24539         Undo 2009-07-19 commit.
24540         * modules/acl-tests (Depends-on): Remove close.
24541         * modules/binary-io-tests (Depends-on): Likewise.
24542         * modules/closein-tests (Depends-on): Likewise.
24543         * modules/flock-tests (Depends-on): Likewise.
24544         * modules/fsync-tests (Depends-on): Likewise.
24545         * modules/lseek-tests (Depends-on): Likewise.
24546         * modules/pipe-tests (Depends-on): Likewise.
24547         * modules/posix_spawn-tests (Depends-on): Likewise.
24548         * modules/posix_spawnp-tests (Depends-on): Likewise.
24549         * modules/stat-time-tests (Depends-on): Likewise.
24550         * modules/yesno-tests (Depends-on): Likewise.
24551
24552 2009-08-10  Bruno Haible  <bruno@clisp.org>
24553
24554         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
24555
24556 2009-08-10  Bruno Haible  <bruno@clisp.org>
24557
24558         Fix a gcc warning.
24559         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
24560
24561 2009-08-10  Bruno Haible  <bruno@clisp.org>
24562
24563         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
24564         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
24565         not only the first time.
24566         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
24567         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
24568         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
24569         is 1, not only the the first time.
24570
24571 2009-08-10  Bruno Haible  <bruno@clisp.org>
24572
24573         Make it possible to use module 'gethostname' without module 'close'.
24574         * lib/unistd.in.h (close): Evoke a link error only if
24575         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
24576         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
24577         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
24578         * modules/unistd (Makefile.am): Substitute
24579         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
24580         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
24581         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
24582         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
24583         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
24584         * modules/sys_ioctl (Makefile.am): Substitute
24585         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
24586         * modules/socket (configure.ac): On native Windows, set
24587         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
24588         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
24589         Reported by Sam Steingold <sds@gnu.org>.
24590
24591 2009-08-10  Bruno Haible  <bruno@clisp.org>
24592
24593         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
24594         * modules/ioctl (configure.ac): Likewise.
24595
24596 2009-08-10  Bruno Haible  <bruno@clisp.org>
24597
24598         Avoid collision between gnulib wrapper and libintl wrapper.
24599         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
24600         already defined in intl/printf.c.
24601         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
24602         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
24603
24604 2009-08-09  Bruno Haible  <bruno@clisp.org>
24605
24606         Make <sys/select.h> really self-contained, also on Solaris 10.
24607         * lib/sys_select.in.h: Include <string.h>.
24608         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
24609         Solaris 10 problem.
24610         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
24611         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
24612         Reported by Jim Meyering.
24613
24614 2009-08-09  Bruno Haible  <bruno@clisp.org>
24615
24616         Avoid warnings from 'aclocal' that are due to a use of macro name
24617         AM_XGETTEXT_OPTION that is not defined in automake.
24618         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
24619         automake.
24620         * modules/error (configure.ac): Likewise.
24621         * modules/propername (configure.ac): Likewise.
24622         * modules/vasprintf (configure.ac): Likewise.
24623         * modules/verror (configure.ac): Likewise.
24624         * modules/xprintf (configure.ac): Likewise.
24625         * modules/xvasprintf (configure.ac): Likewise.
24626
24627 2009-08-08  Bruno Haible  <bruno@clisp.org>
24628
24629         Avoid compilation error in C++ mode.
24630         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
24631         Reported by Sam Steingold <sds@gnu.org>.
24632
24633 2009-08-08  Bruno Haible  <bruno@clisp.org>
24634
24635         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
24636         for the various Unix platforms.
24637         * doc/posix-headers/limits.texi: Update platforms list regarding
24638         HOST_NAME_MAX.
24639         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
24640
24641 2009-08-07  Jim Meyering  <meyering@redhat.com>
24642
24643         selinux-at: fix typo in a comment
24644         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
24645         Spotted by Paolo Bonzini.
24646
24647         selinux-at: remove redundant m4 code, add documentation
24648         * modules/selinux-at (configure.ac): Remove redundant code.
24649         LIB_SELINUX is already set via the dependent module, selinux-h.
24650         (Include): Add quotes around selinux-at.h.
24651         * lib/selinux-at.h: Add documentation.
24652         Reported by Bruno Haible in
24653         http://marc.info/?l=gnulib-bug&m=124958988300749
24654
24655 2009-08-07  Bruno Haible  <bruno@clisp.org>
24656
24657         Avoid link error on MacOS X 10.3 and 10.4.
24658         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
24659         on non-ELF systems.
24660         * lib/argp-pv.c (argp_program_version): Likewise.
24661         Reported by Simon Josefsson.
24662
24663 2009-08-07  Simon Josefsson  <simon@josefsson.org>
24664
24665         * tests/test-version-etc.sh: Use $EXEEXT.
24666
24667 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
24668
24669         update-copyright: update documentation to point to maint.mk
24670         * build-aux/update-copyright: Here.
24671
24672 2009-08-06  Jim Meyering  <meyering@redhat.com>
24673
24674         maint.mk: support update-copyright-local
24675         * top/maint.mk (update-copyright-local): Define place-holder.
24676         (update-copyright): Depend on $(update-copyright-local).
24677
24678 2009-08-06  Jim Meyering  <meyering@redhat.com>
24679
24680         selinux-at: new module
24681         Initially written for coreutils, this module will soon be
24682         used by findutils, too.
24683         * MODULES.html.sh [Misc]: Add selinux-at.
24684         * lib/selinux-at.h: New file, from coreutils.
24685         * lib/selinux-at.c: Likewise.
24686         * modules/selinux-at: Likewise.
24687         (License): Change from LGPL to GPL, since it depends
24688         on the GPL'd openat module.
24689
24690         doc: update README
24691         * README: Remove references to cogito.
24692         Remove cvs-repo-updating instructions from 2007.
24693         Don't imply that CVS is better if you have limited disk space.
24694
24695 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
24696
24697         update-copyright: support C-style comments
24698         * build-aux/update-copyright: Implement and document.
24699         * tests/test-update-copyright.sh: Test.
24700
24701 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
24702
24703         update-copyright: support omitted "(C)"
24704         * build-aux/update-copyright: Implement and document.  Also,
24705         allow variable whitespace before "(C)".
24706         * tests/test-update-copyright.sh: Test.
24707
24708 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
24709
24710         update-copyright: don't trip on non-FSF copyright statements
24711         * build-aux/update-copyright: Fix so that the first correctly
24712         formatted FSF copyright statement is recognized no matter what
24713         appears before it.  Update documentation.
24714         * tests/test-update-copyright.sh: Test that.
24715
24716 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
24717
24718         update-copyright: clean up code a little
24719         * build-aux/update-copyright: Append "_re" to the name of any
24720         variable holding a regular expression.
24721         Replace "old" and "new" with "stmt" in variable names.
24722         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
24723         handled correctly.
24724         Format code more consistently.
24725
24726 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
24727
24728         update-copyright-tests: improve portability
24729         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
24730         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
24731
24732 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
24733
24734         update-copyright: support @copyright{} and &copy;
24735         * build-aux/update-copyright: Implement and document.
24736         * tests/test-update-copyright.sh: Test.
24737
24738 2009-08-04  Jim Meyering  <meyering@redhat.com>
24739
24740         update-copyright-tests: correctly test EOL=\r\n handling
24741         * tests/test-update-copyright.sh: Put \r at the end of some lines
24742         for the dos-eol tests.  Based on a patch by Joel E. Denny.
24743
24744         maint.mk: make update-copyright exclusion list more configurable
24745         * top/maint.mk (update-copyright): Default to excluding COPYING,
24746         but allow an override, in case someone does want to update that file.
24747
24748         maint.mk: don't update copyright date in COPYING
24749         * top/maint.mk (update-copyright): Exclude COPYING.
24750
24751         maint.mk: add a copyright-updating rule
24752         * top/maint.mk (update-copyright): New rule.
24753         Derived from coreutils/Makefile.am.
24754
24755         update-copyright: rename some variables
24756         * build-aux/update-copyright: Rename a few variables for clarity.
24757         Tweak syntax.  List Joel E. Denny as coauthor.
24758
24759 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
24760
24761         update-copyright: fix bug for 2-digit last year and add tests
24762         * build-aux/update-copyright: Fix bug.
24763         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
24764         specified.
24765         * modules/update-copyright-tests: New
24766         * tests/test-update-copyright.sh: New.
24767
24768 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
24769
24770         update-copyright: handle leading tabs in line prefix
24771         * build-aux/update-copyright: Count leading tabs as 8 spaces
24772         when computing margin.  This helps with the formatting of
24773         ChangeLogs, for example.
24774         Fix documentation a little.
24775
24776 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
24777
24778         update-copyright: support EOL=\r\n
24779         * build-aux/update-copyright: Implement that.
24780
24781 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
24782
24783         update-copyright: automatically format copyright statements
24784         * build-aux/update-copyright: Implement that.
24785         Also, be a little more predictable and safer by always failing
24786         when the full copyright format is not perfectly recognized as an
24787         unbroken whole.  Discussed at
24788         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
24789         Rewrite documentation.
24790
24791 2009-08-03  Bruno Haible  <bruno@clisp.org>
24792
24793         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
24794
24795 2009-08-02  Bruno Haible  <bruno@clisp.org>
24796
24797         Tests for module 'uname'.
24798         * modules/uname-tests: New file.
24799         * tests/test-uname.c: New file.
24800
24801         New module 'uname'.
24802         * lib/uname.c: New file.
24803         * m4/uname.m4: New file.
24804         * modules/uname: New file.
24805         * doc/posix-functions/uname.texi: Mention the new module.
24806
24807 2009-08-02  Bruno Haible  <bruno@clisp.org>
24808
24809         Tests for module 'sys_utsname'.
24810         * modules/sys_utsname-tests: New file.
24811         * tests/test-sys_utsname.c: New file.
24812
24813         New module 'sys_utsname'.
24814         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
24815         * m4/sys_utsname_h.m4: New file.
24816         * modules/sys_utsname: New file.
24817         * doc/posix-headers/sys_utsname.texi: Mention the new module.
24818
24819 2009-08-02  Bruno Haible  <bruno@clisp.org>
24820
24821         Implicitly initialize the sockets library.
24822         * lib/gethostname.c: Include sockets.h.
24823         (rpl_gethostname): Invoke gl_sockets_startup.
24824         * lib/socket.c: Include sockets.h.
24825         (rpl_socket): Invoke gl_sockets_startup.
24826         * modules/gethostname (Depends-on): Add sockets.
24827         * modules/socket (Depends-on): Likewise.
24828         * tests/test-poll.c: Don't include sockets.h.
24829         (main): Don't invoke gl_sockets_startup.
24830         * tests/test-select.c: Don't include sockets.h.
24831         (main): Don't invoke gl_sockets_startup.
24832
24833 2009-08-02  Bruno Haible  <bruno@clisp.org>
24834
24835         Allow multiple calls to gl_sockets_startup.
24836         * lib/sockets.c (initialized_sockets_version): New variable.
24837         (gl_sockets_startup): Do nothing if already called for this or a higher
24838         version.
24839         (gl_sockets_cleanup): Reset initialized_sockets_version.
24840
24841 2009-08-03  Simon Josefsson  <simon@josefsson.org>
24842
24843         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
24844         different project/version.
24845
24846 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
24847             Bruno Haible  <bruno@clisp.org>
24848
24849         Tests for module 'pipe-filter-gi'.
24850         * modules/pipe-filter-gi-tests: New file.
24851         * tests/test-pipe-filter-gi1.sh: New file.
24852         * tests/test-pipe-filter-gi1.c: New file.
24853         * tests/test-pipe-filter-gi2.sh: New file.
24854         * tests/test-pipe-filter-gi2-main.c: New file.
24855         * tests/test-pipe-filter-gi2-child.c: New file.
24856
24857         New module 'pipe-filter-gi'.
24858         * lib/pipe-filter-gi.c: New file.
24859         * modules/pipe-filter-gi: New file.
24860
24861 2009-08-02  Bruno Haible  <bruno@clisp.org>
24862             Paolo Bonzini  <bonzini@gnu.org>
24863
24864         Tests for module 'pipe-filter-ii'.
24865         * modules/pipe-filter-ii-tests: New file.
24866         * tests/test-pipe-filter-ii1.sh: New file.
24867         * tests/test-pipe-filter-ii1.c: New file.
24868         * tests/test-pipe-filter-ii2.sh: New file.
24869         * tests/test-pipe-filter-ii2-main.c: New file.
24870         * tests/test-pipe-filter-ii2-child.c: New file.
24871
24872         New module 'pipe-filter-ii'.
24873         * lib/pipe-filter.h: New file.
24874         * lib/pipe-filter-ii.c: New file.
24875         * lib/pipe-filter-aux.h: New file.
24876         * modules/pipe-filter-ii: New file.
24877
24878 2009-08-02  Simon Josefsson  <simon@josefsson.org>
24879
24880         * lib/gc-libgcrypt.c: Change copyright to FSF.
24881         * lib/gc-gnulib.c: Likewise.
24882
24883 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
24884
24885         * lib/gethostname.c: Include limits.h.
24886
24887 2009-08-02  Simon Josefsson  <simon@josefsson.org>
24888             Bruno Haible  <bruno@clisp.org>
24889
24890         Ensure HOST_NAME_MAX as part of the gethostname module.
24891         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
24892         define also HOST_NAME_MAX.
24893         * tests/test-gethostname.c: Include <limits.h>.
24894         (main): Check also HOST_NAME_MAX.
24895         * doc/posix-headers/limits.texi: Document the mingw problem.
24896
24897 2009-08-02  Bruno Haible  <bruno@clisp.org>
24898
24899         * lib/gethostname.c (gethostname): Fix handling of large len argument.
24900         Add comments.
24901
24902 2009-03-31  Simon Josefsson  <simon@josefsson.org>
24903
24904         * lib/gethostname.c: Add Windows wrapper.
24905         * m4/gethostname.m4: Look for gethostname in -lws2_32.
24906         * modules/gethostname: Depend on sys_socket & errno, for also
24907         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
24908         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
24909
24910 2009-07-31  Jim Meyering  <meyering@redhat.com>
24911
24912         getloadavg: fix symbol name in comment
24913         * lib/getloadavg.c: Correct a typo I introduced when adding
24914         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
24915         Matt Kraai spotted the problem.
24916
24917 2009-07-29  Matt Kraai  <mkraai@beckman.com>
24918
24919         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
24920         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
24921         code also if ! defined N_NAME_POINTER.
24922         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
24923         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
24924         but the n_name member is a 12-byte array.
24925
24926 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
24927
24928         update-copyright: generalize comment handling
24929         * build-aux/update-copyright: Handle copyright statements
24930         within more comment styles.
24931         Document usage.
24932         Report any file with an external copyright holder or parse failure.
24933
24934 2009-07-29  Jim Meyering  <meyering@redhat.com>
24935
24936         mktime: correct setting of REPLACE_MKTIME
24937         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
24938
24939         update-copyright: new module
24940         * modules/update-copyright: New file.
24941         * build-aux/update-copyright: New file.
24942         * MODULES.html.sh (maint+release support): Add update-copyright.
24943
24944 2009-07-27  Bruno Haible  <bruno@clisp.org>
24945
24946         Fix compilation error when <ctime> is used and mktime is replaced.
24947         * lib/time.in.h (mktime): New declaration.
24948         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
24949         REPLACE_MKTIME instead of defining mktime in config.h.
24950         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
24951         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
24952         Reported by Ross McFarland <rwmcfa1@neces.com>.
24953
24954 2009-07-27  Bruno Haible  <bruno@clisp.org>
24955
24956         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
24957         Reported by Matt Kraai <mkraai@beckman.com>.
24958
24959 2009-07-25  Jim Meyering  <meyering@redhat.com>
24960
24961         maint.mk: avoid warnings about missing files
24962         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
24963         diagnostic when .prev-version does not exist.
24964         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
24965         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
24966         nonexistent cfg.mk.
24967         Suggestions from Simon Josefsson.
24968
24969 2009-07-25  Bruno Haible  <bruno@clisp.org>
24970
24971         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
24972         defined as macros. Needed on QNX 6.4.1.
24973         Reported by Matt Kraai <mkraai@beckman.com>.
24974
24975 2009-07-23  Jim Meyering  <meyering@redhat.com>
24976
24977         maint.mk: invoke "make dist" with a working value of XZ_OPT
24978         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
24979
24980 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
24981
24982         Make fseeko.c compile on QNX.
24983         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
24984
24985 2009-07-22  Peter Simons  <simons@cryp.to>
24986
24987         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
24988         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
24989         * lib/md4.h: Likewise.
24990         * lib/md5.h: Likewise.
24991         * lib/sha1.h: Likewise.
24992         * lib/sha256.h: Likewise.
24993         * lib/sha512.h: Likewise.
24994
24995         tests-sha1: don't assign literal string to 'char *' variable
24996         * tests/test-sha1.c (main): Declare locals with "const" to match
24997         attributes of the right hand side.
24998
24999 2009-07-21  Eric Blake  <ebb9@byu.net>
25000
25001         dup2: fix more mingw problems
25002         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
25003         fd to itself.
25004         * doc/posix-functions/dup2.texi (dup2): Document the bug.
25005         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
25006         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
25007         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
25008         care of mingw bugs.
25009
25010 2009-07-21  Jim Meyering  <meyering@redhat.com>
25011
25012         vc-list-files: avoid failure when /bin/sh is dash
25013         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
25014         On some Debian based systems, /bin/sh is a symlink to dash, and running
25015         this command would omit the "/" following each 'tests' prefix:
25016           dash -x build-aux/vc-list-files -C . tests
25017         That is because bash and dash work differently:
25018           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
25019           bash ok
25020           dash odd
25021
25022 2009-07-21  Eric Blake  <ebb9@byu.net>
25023
25024         dup2-tests: test previous patch
25025         * modules/dup2-tests: New file.
25026         * tests/test-dup2.c: Likewise.
25027         * tests/test-open.c (main): Avoid unspecified behavior.
25028         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
25029         test.
25030
25031         dup2: work around mingw and cygwin 1.5 bug
25032         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
25033         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
25034         * modules/unistd (Makefile.am): Substitute it.
25035         * lib/unistd.in.h (dup2): Declare the replacement.
25036         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
25037         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
25038         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
25039         * modules/execute (Depends-on): Add dup2.
25040         * modules/fseterr (Depends-on): Likewise.
25041         * modules/pipe (Depends-on): Likewise.
25042         * modules/posix_spawn-internal (Depends-on): Likewise.
25043
25044 2009-07-21  Bruno Haible  <bruno@clisp.org>
25045
25046         * modules/.gitattributes: New file.
25047
25048 2009-07-20  Bruno Haible  <bruno@clisp.org>
25049
25050         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
25051         (main): Use it.
25052
25053 2009-07-20  Eric Blake  <ebb9@byu.net>
25054
25055         test-pipe: make a bit more robust.
25056         * tests/test-pipe.c (myerr): Allow error messages regardless of
25057         what we do to stderr.
25058         (test_pipe): Rearrange to avoid deadlock.
25059         (child_main): Try a larger read, to ensure we avoided deadlock.
25060         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
25061         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
25062         if misused.
25063
25064 2009-07-19  Jim Meyering  <meyering@redhat.com>
25065
25066         fts: avoid false-positive cycle-detection
25067         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
25068         for each new command line argument.
25069
25070 2009-07-19  Bruno Haible  <bruno@clisp.org>
25071
25072         Fix build error on mingw with the modules sys_select and unistd.
25073         * modules/acl-tests (Depends-on): Add close.
25074         * modules/binary-io-tests (Depends-on): Likewise.
25075         * modules/closein-tests (Depends-on): Likewise.
25076         * modules/flock-tests (Depends-on): Likewise.
25077         * modules/fsync-tests (Depends-on): Likewise.
25078         * modules/lseek-tests (Depends-on): Likewise.
25079         * modules/pipe-tests (Depends-on): Likewise.
25080         * modules/posix_spawn-tests (Depends-on): Likewise.
25081         * modules/posix_spawnp-tests (Depends-on): Likewise.
25082         * modules/stat-time-tests (Depends-on): Likewise.
25083         * modules/yesno-tests (Depends-on): Likewise.
25084
25085 2009-07-19  Bruno Haible  <bruno@clisp.org>
25086
25087         Unify conditionals.
25088         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
25089         macros, not at the compiler macros.
25090         * lib/pipe.c: Likewise.
25091         * lib/execute.c: Likewise.
25092         * lib/spawni.c: Likewise.
25093
25094 2009-07-19  Bruno Haible  <bruno@clisp.org>
25095
25096         Fix handling of closed stdin/stdout/stderr on mingw.
25097         * lib/w32spawn.h: Include unistd.h.
25098         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
25099         file descriptor with O_NOINHERIT flag.
25100         (fd_safer_noinherit): New function, based on fd-safer.c.
25101         (dup_safer_noinherit): New function, based on dup-safer.c.
25102         (undup_safer_noinherit): New function.
25103         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
25104         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
25105         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
25106         instead of fd_safer.
25107         * tests/test-pipe.c: Include <windows.h>.
25108         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
25109
25110         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
25111         from main.
25112         (test_pipe): Pass an extra argument for disambiguation.
25113         (main): Invoke parent_main or child_main.
25114
25115         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
25116         consistently.
25117
25118 2009-07-18  Eric Blake  <ebb9@byu.net>
25119
25120         test-pipe: fix mingw build
25121         * tests/test-pipe.c (main): Avoid fcntl on mingw.
25122
25123 2009-07-18  Bruno Haible  <bruno@clisp.org>
25124
25125         * modules/pipe-tests (Makefile.am): Fix typo.
25126
25127 2009-07-18  Eric Blake  <ebb9@byu.net>
25128
25129         error: fix mingw build
25130         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
25131         Reported by Bruno Haible.
25132
25133         error: avoid undefined use of stdout
25134         * lib/error.c (error, error_at_line): Check that fd 1 is open
25135         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
25136         is handling faults and the close_stdout module wants to report the
25137         detection of closed stdout as an error.
25138
25139 2009-07-17  Eric Blake  <ebb9@byu.net>
25140
25141         pipe: be robust in face of closed fds
25142         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
25143         should cause child to misbehave.
25144         * modules/pipe-tests: New module.
25145         * tests/test-pipe.c: New file.
25146         * tests/test-pipe.sh: New file.
25147         Reported by Akim Demaille.
25148
25149 2009-07-14  Bruno Haible  <bruno@clisp.org>
25150
25151         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
25152         Reported by anonymous kc.
25153
25154 2009-07-07  Jim Meyering  <meyering@redhat.com>
25155
25156         maint.mk: don't look for translatable strings in *.m4 or *.mk
25157         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
25158         when searching for translatable strings.
25159
25160 2009-07-05  Jim Meyering  <meyering@redhat.com>
25161
25162         remove superfluous parentheses in STREQ definition
25163         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
25164         * lib/getugroups.c (STREQ): Likewise.
25165         * lib/fnmatch.c (STREQ): Likewise.
25166         Spotted by Bruno Haible.
25167
25168 2009-07-04  Jim Meyering  <meyering@redhat.com>
25169
25170         argv-iter: new module
25171         * MODULES.html.sh: Add argv-iter.
25172         * lib/argv-iter.c, lib/argv-iter.h: New files.
25173         * modules/argv-iter: New file.
25174         * modules/argv-iter-tests: New file.
25175         * tests/test-argv-iter.c: Test it.
25176
25177 2009-07-04  Bruno Haible  <bruno@clisp.org>
25178
25179         Fix assertion.
25180         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
25181         contains more exact copies of a given entry than file2, leave the extra
25182         copies unpaired rather than aborting.
25183         Reported by Eric Blake.
25184
25185 2009-07-02  Bruno Haible  <bruno@clisp.org>
25186
25187         Speedup git-merge-changelog for git cherry-pick.
25188         * lib/git-merge-changelog.c (struct entries_mapping): New type.
25189         (entries_mapping_get): New function, extracted from compute_mapping.
25190         (entries_mapping_reverse_get): New function.
25191         (compute_mapping): Add a 'full' argument. Return the result in a
25192         'struct entries_mapping'.
25193         (main): Update. Access the mappings through entries_mapping_get.
25194         Reported by Eric Blake.
25195
25196 2009-07-02  Bruno Haible  <bruno@clisp.org>
25197
25198         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
25199         best_i.
25200
25201 2009-07-02  Bruno Haible  <bruno@clisp.org>
25202
25203         Speed up approximate search for matching ChangeLog entries.
25204         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
25205         argument. Call fstrcmp_bounded instead of fstrcmp.
25206         (compute_mapping, try_split_merged_entry, main): Update callers.
25207
25208 2009-07-02  Bruno Haible  <bruno@clisp.org>
25209
25210         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
25211
25212 2009-06-30  Bruno Haible  <bruno@clisp.org>
25213
25214         Reduce the number of uc_is_cased calls.
25215         * lib/unicase.h (casing_suffix_context_t): Add
25216         'first_char_except_ignorable' field.
25217         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
25218         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
25219         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
25220         Update initializer.
25221         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
25222         case-ignorable characters.
25223         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
25224         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
25225         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
25226         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
25227         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
25228
25229 2009-06-30  Bruno Haible  <bruno@clisp.org>
25230
25231         Tests for module 'unicase/ignorable'.
25232         * modules/unicase/ignorable-tests: New file.
25233         * tests/unicase/test-ignorable.c: New file, generated by
25234         gen-uni-tables.
25235
25236         Tests for module 'unicase/cased'.
25237         * modules/unicase/cased-tests: New file.
25238         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
25239         * tests/unicase/test-predicate-part1.h: New file, derived from
25240         tests/unictype/test-predicate-part1.h.
25241         * tests/unicase/test-predicate-part2.h: New file, same as
25242         tests/unictype/test-predicate-part2.h.
25243
25244         Fix evaluation of "Before C" condition of FINAL_SIGMA.
25245         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
25246         (output_casing_properties): New function.
25247         (main): Call it.
25248         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
25249         * lib/unicase/cased.c: Include unictype/bitmap.h.
25250         (uc_is_cased): Define through a bitmap lookup.
25251         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
25252         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
25253         (uc_is_case_ignorable): Define through a bitmap lookup.
25254         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
25255         lib/unictype/bitmap.h.
25256         (Depends-on): Add inline. Clean up.
25257         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
25258         lib/unictype/bitmap.h.
25259         (Depends-on): Add inline. Clean up.
25260         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
25261         recognition.
25262         * tests/unicase/test-u16-tolower.c (main): Likewise.
25263         * tests/unicase/test-u32-tolower.c (main): Likewise.
25264
25265 2009-06-30  Bruno Haible  <bruno@clisp.org>
25266
25267         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
25268         * lib/unicase/u16-casemap.c: Likewise.
25269         * lib/unicase/u32-casemap.c: Likewise.
25270
25271 2009-06-29  Bruno Haible  <bruno@clisp.org>
25272
25273         Define u32_casefold as a wrapper around u32_ct_casefold.
25274         * lib/unicase/u32-casefold.c: Update.
25275         * modules/unicase/u32-casefold (Depends-on): Add
25276         unicase/u32-ct-casefold, unicase/empty-prefix-context,
25277         unicase/empty-suffix-context. Clean up.
25278
25279         Define u16_casefold as a wrapper around u16_ct_casefold.
25280         * lib/unicase/u16-casefold.c: Update.
25281         * modules/unicase/u16-casefold (Depends-on): Add
25282         unicase/u16-ct-casefold, unicase/empty-prefix-context,
25283         unicase/empty-suffix-context. Clean up.
25284
25285         Define u8_casefold as a wrapper around u8_ct_casefold.
25286         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
25287         * lib/unicase/u8-casefold.c: Update.
25288         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
25289         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
25290
25291         Define u32_totitle as a wrapper around u32_ct_totitle.
25292         * lib/unicase/u32-totitle.c: Update.
25293         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
25294         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
25295
25296         Define u16_totitle as a wrapper around u16_ct_totitle.
25297         * lib/unicase/u16-totitle.c: Update.
25298         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
25299         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
25300
25301         Define u8_totitle as a wrapper around u8_ct_totitle.
25302         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
25303         functions.
25304         (FUNC): Delegate to U_CT_TOTITLE.
25305         * lib/unicase/u8-totitle.c: Update.
25306         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
25307         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
25308
25309         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
25310         invocation.
25311         * modules/unicase/u32-tolower (Depends-on): Add
25312         unicase/empty-prefix-context, unicase/empty-suffix-context.
25313
25314         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
25315         invocation.
25316         * modules/unicase/u16-tolower (Depends-on): Add
25317         unicase/empty-prefix-context, unicase/empty-suffix-context.
25318
25319         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
25320         * modules/unicase/u8-tolower (Depends-on): Add
25321         unicase/empty-prefix-context, unicase/empty-suffix-context.
25322
25323         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
25324         invocation.
25325         * modules/unicase/u32-toupper (Depends-on): Add
25326         unicase/empty-prefix-context, unicase/empty-suffix-context.
25327
25328         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
25329         invocation.
25330         * modules/unicase/u16-toupper (Depends-on): Add
25331         unicase/empty-prefix-context, unicase/empty-suffix-context.
25332
25333         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
25334         * modules/unicase/u8-toupper (Depends-on): Add
25335         unicase/empty-prefix-context, unicase/empty-suffix-context.
25336
25337         New module 'unicase/u32-ct-casefold'.
25338         * lib/unicase/u32-ct-casefold.c: New file.
25339         * modules/unicase/u32-ct-casefold: New file.
25340
25341         New module 'unicase/u16-ct-casefold'.
25342         * lib/unicase/u16-ct-casefold.c: New file.
25343         * modules/unicase/u16-ct-casefold: New file.
25344
25345         New module 'unicase/u8-ct-casefold'.
25346         * lib/unicase/u8-ct-casefold.c: New file.
25347         * lib/unicase/u-ct-casefold.h: New file, derived from
25348         lib/unicase/u-casefold.h.
25349         * modules/unicase/u8-ct-casefold: New file.
25350
25351         New module 'unicase/u32-ct-totitle'.
25352         * lib/unicase/u32-ct-totitle.c: New file.
25353         * modules/unicase/u32-ct-totitle: New file.
25354
25355         New module 'unicase/u16-ct-totitle'.
25356         * lib/unicase/u16-ct-totitle.c: New file.
25357         * modules/unicase/u16-ct-totitle: New file.
25358
25359         New module 'unicase/u8-ct-totitle'.
25360         * lib/unicase/u8-ct-totitle.c: New file.
25361         * lib/unicase/u-ct-totitle.h: New file, derived from
25362         lib/unicase/u-totitle.h.
25363         * modules/unicase/u8-ct-totitle: New file.
25364
25365         New module 'unicase/u32-ct-tolower'.
25366         * lib/unicase/u32-ct-tolower.c: New file.
25367         * modules/unicase/u32-ct-tolower: New file.
25368
25369         New module 'unicase/u16-ct-tolower'.
25370         * lib/unicase/u16-ct-tolower.c: New file.
25371         * modules/unicase/u16-ct-tolower: New file.
25372
25373         New module 'unicase/u8-ct-tolower'.
25374         * lib/unicase/u8-ct-tolower.c: New file.
25375         * modules/unicase/u8-ct-tolower: New file.
25376
25377         New module 'unicase/u32-ct-toupper'.
25378         * lib/unicase/u32-ct-toupper.c: New file.
25379         * modules/unicase/u32-ct-toupper: New file.
25380
25381         New module 'unicase/u16-ct-toupper'.
25382         * lib/unicase/u16-ct-toupper.c: New file.
25383         * modules/unicase/u16-ct-toupper: New file.
25384
25385         New module 'unicase/u8-ct-toupper'.
25386         * lib/unicase/u8-ct-toupper.c: New file.
25387         * modules/unicase/u8-ct-toupper: New file.
25388
25389         Add context arguments to u*_casemap functions.
25390         * lib/unicase/unicasemap.h: Include unicase.h.
25391         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
25392         suffix_context arguments.
25393         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
25394         functions.
25395         (FUNC): Add prefix_context and suffix_context arguments. Use
25396         uc_is_cased and uc_is_case_ignorable.
25397         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
25398         * lib/unicase/u16-casemap.c: Likewise.
25399         * lib/unicase/u32-casemap.c: Likewise.
25400         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
25401         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
25402         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
25403         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
25404         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
25405         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
25406
25407         New module 'unicase/u32-suffix-context'.
25408         * lib/unicase/u32-suffix-context.c: New file.
25409         * modules/unicase/u32-suffix-context: New file.
25410
25411         New module 'unicase/u16-suffix-context'.
25412         * lib/unicase/u16-suffix-context.c: New file.
25413         * modules/unicase/u16-suffix-context: New file.
25414
25415         New module 'unicase/u8-suffix-context'.
25416         * lib/unicase/u8-suffix-context.c: New file.
25417         * lib/unicase/u-suffix-context.h: New file.
25418         * modules/unicase/u8-suffix-context: New file.
25419
25420         New module 'unicase/empty-suffix-context'.
25421         * lib/unicase/empty-suffix-context.c: New file.
25422         * modules/unicase/empty-suffix-context: New file.
25423
25424         New module 'unicase/u32-prefix-context'.
25425         * lib/unicase/u32-prefix-context.c: New file.
25426         * modules/unicase/u32-prefix-context: New file.
25427
25428         New module 'unicase/u16-prefix-context'.
25429         * lib/unicase/u16-prefix-context.c: New file.
25430         * modules/unicase/u16-prefix-context: New file.
25431
25432         New module 'unicase/u8-prefix-context'.
25433         * lib/unicase/u8-prefix-context.c: New file.
25434         * lib/unicase/u-prefix-context.h: New file.
25435         * lib/unicase/context.h: New file.
25436         * modules/unicase/u8-prefix-context: New file.
25437
25438         New module 'unicase/empty-prefix-context'.
25439         * lib/unicase/empty-prefix-context.c: New file.
25440         * modules/unicase/empty-prefix-context: New file.
25441
25442         New module 'unicase/ignorable'.
25443         * lib/unicase/ignorable.c: New file.
25444         * modules/unicase/ignorable: New file.
25445
25446         New module 'unicase/cased'.
25447         * lib/unicase/caseprop.h: New file.
25448         * lib/unicase/cased.c: New file.
25449         * modules/unicase/cased: New file.
25450
25451         New functions for case mapping of substrings.
25452         * lib/unicase.h (casing_prefix_context_t): New type.
25453         (unicase_empty_prefix_context): New variable.
25454         (u8_casing_prefix_context, u16_casing_prefix_context,
25455         u32_casing_prefix_context, u8_casing_prefixes_context,
25456         u16_casing_prefixes_context, u32_casing_prefixes_context): New
25457         declarations.
25458         (casing_suffix_context_t): New type.
25459         (unicase_empty_suffix_context): New variable.
25460         (u8_casing_suffix_context, u16_casing_suffix_context,
25461         u32_casing_suffix_context, u8_casing_suffixes_context,
25462         u16_casing_suffixes_context, u32_casing_suffixes_context,
25463         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
25464         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
25465         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
25466         declarations.
25467
25468 2009-06-28  Jim Meyering  <meyering@redhat.com>
25469
25470         boostrap: indent only with spaces
25471         * build-aux/bootstrap: Indent only with spaces, never TABs.
25472
25473         bootstrap: split long lines
25474         * build-aux/bootstrap: Keep line length < 80.
25475
25476         bootstrap: sync from coreutils
25477         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
25478         just as autoreconf does.  Verify a list of prerequisite
25479         package-name,version-number pairs if defined in bootstrap.conf.
25480         Refer to README-prereq, if prerequisites are not satisfied.
25481
25482 2009-06-27  Eric Blake  <ebb9@byu.net>
25483
25484         tests: add test for bogus NULL definition
25485         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
25486         * tests/test-stdlib.c: Likewise.
25487         * tests/test-string.c: Likewise.
25488         * tests/test-locale.c: Likewise.
25489         * tests/test-unistd.c: Likewise.
25490         * modules/stdio-tests (Depends-on): Add verify.
25491         * modules/stdlib-tests (Depends-on): Likewise.
25492         * modules/string-tests (Depends-on): Likewise.
25493         * modules/locale-tests (Depends-on): Likewise.
25494         * modules/unistd-tests (Depends-on): Likewise.
25495
25496 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
25497
25498         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
25499         self-explaining comment.
25500         * m4/selinux-selinux-h: Update serial.
25501         (gl_LIBSELINUX): New macro, adding a warning for missing development
25502         packages to code extracted from...
25503         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
25504         Add warning for missing development packages here, too.
25505
25506 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
25507
25508         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
25509
25510 2009-06-25  Eric Blake  <ebb9@byu.net>
25511
25512         version-etc: fix regression
25513         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
25514         gcc.
25515         (version_etc): Use it, to catch bugs with trailing NULL.
25516         * lib/version-etc.c (version_etc_arn): Delete unused argument.
25517         (version_etc_va): Fix logic bug.
25518         * modules/version-etc-tests: Add test.
25519         * tests/test-version-etc.c: New file.
25520         * tests/test-version-etc.sh: Likewise.
25521
25522 2009-06-25  Sam Steingold  <sds@gnu.org>
25523
25524         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
25525         mbtowc declaration.
25526
25527 2009-06-25  Eric Blake  <ebb9@byu.net>
25528
25529         fpurge: migrate into <stdio.h>
25530         * lib/fpurge.h: Delete...
25531         * lib/stdio.in.h (fpurge): ...and declare here, instead.
25532         * lib/fpurge.c (fpurge): Change declaring header.
25533         * modules/fpurge (Files): Drop deleted file.
25534         (Depends-on): Add stdio.
25535         (configure.ac): Set witness.
25536         * modules/stdio (Makefile.am): Support fpurge macros.
25537         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
25538         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
25539         * lib/fflush.c: Update client.
25540         * tests/test-fpurge.c: Likewise.
25541         * NEWS: Mention the change.
25542
25543 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
25544
25545         * lib/argp-version-etc.c (program_authors): Add const
25546         qualifier.
25547         * lib/version-etc.c: Fix typos in the comments.
25548         * modules/argp-version-etc: Depends on version-etc.
25549
25550 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
25551
25552         argp-version-etc: new module.
25553
25554         * lib/argp-version-etc.c: New file.
25555         * lib/argp-version-etc.h: New file.
25556         * modules/argp-version-etc: New file.
25557         * modules/argp-version-etc-tests: New file.
25558         * tests/test-argp-version-etc.c: New test.
25559         * tests/test-argp-version-etc-1.sh: New test.
25560
25561 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
25562
25563         Provide additional interfaces and documentation for version-etc
25564         module.
25565
25566         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
25567         interfaces.
25568         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
25569         prototypes.
25570
25571 2009-06-24  Bruno Haible  <bruno@clisp.org>
25572
25573         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
25574         HAVE_LIB${NAME} macro.
25575         Reported by Sam Steingold <sds@gnu.org>.
25576
25577 2009-06-23  Simon Josefsson  <simon@josefsson.org>
25578
25579         * modules/hash-tests (test_hash_LDADD): Link to libintl when
25580         needed.
25581
25582 2009-06-21  Bruno Haible  <bruno@clisp.org>
25583
25584         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
25585         work.
25586         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
25587         together with LIB${NAME}, LTLIB${NAME}.
25588         Reported by Sam Steingold <sds@gnu.org>.
25589
25590 2009-06-20  Jim Meyering  <meyering@redhat.com>
25591
25592         tests: make sc_require_test_exit_idiom more generic
25593         * top/maint.mk (Exit_witness_file): New overridable variable.
25594         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
25595         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
25596
25597 2009-06-19  Jim Meyering  <meyering@redhat.com>
25598
25599         hash: reverse order of src/dst parameters in an internal interface
25600         * lib/hash.c (transfer_entries): Reverse order of parameters to
25601         put DST before SRC.  Adjust callers.
25602
25603         tests: test-hash: avoid wholesale duplication
25604         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
25605         Instead, use a loop and add a single conditional.
25606
25607         tests: test-hash: allow seed selection via a command line argument
25608         * tests/test-hash.c (get_seed): New function.
25609         (main): Use it.
25610
25611 2009-06-19  Eric Blake  <ebb9@byu.net>
25612
25613         hash: avoid memory leak on allocation failure
25614         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
25615         failure.  Factor repeated algorithm...
25616         (transfer_entries): ...into new helper routine.
25617         (hash_delete): React to hash_rehash return value.
25618
25619         hash: reduce memory pressure in hash_rehash no-op case
25620         * lib/hash.c (next_prime): Avoid overflow.
25621         (hash_initialize): Factor bucket size computation...
25622         (compute_bucket_size): ...into new helper function.
25623         (hash_rehash): Use new function and open coding to reduce memory
25624         pressure, and avoid a memory leak in USE_OBSTACK code.
25625         Reported by Jim Meyering.
25626
25627 2009-06-18  Eric Blake  <ebb9@byu.net>
25628
25629         hash: make rotation more obvious
25630         * modules/hash (Depends-on): Add bitrotate and stdint.
25631         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
25632         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
25633         (SIZE_MAX): Rely on headers for definition.
25634         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
25635         (raw_hasher): Use rotr_sz.
25636         Suggested by Jim Meyering.
25637
25638         hash: fix memory leak in last patch
25639         * lib/hash.c (hash_rehash): Avoid memory leak.
25640
25641         hash: avoid no-op rehashing
25642         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
25643
25644         hash: provide default callback functions
25645         * lib/hash.c (raw_hasher, raw_comparator): New functions.
25646         (hash_initialize): Use them as defaults.
25647         * tests/test-hash.c (main): Test this.
25648
25649         hash: minor optimization
25650         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
25651         when possible.
25652         (hash_initialize): Document this promise.
25653         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
25654         * tests/test-hash.c (hash_compare_strings): Test this.
25655
25656 2009-06-18  Bruno Haible  <bruno@clisp.org>
25657
25658         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
25659         going to be replaced anyway.
25660
25661 2009-06-18  Bruno Haible  <bruno@clisp.org>
25662
25663         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
25664         in one place.
25665         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
25666         be replaced anyway.
25667
25668 2009-06-18  Eric Blake  <ebb9@byu.net>
25669
25670         hash: check for resize before insertion
25671         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
25672         threshold before insertion, so that a pathological hash_rehash
25673         that fills every bucket can still trigger another rehash.
25674
25675 2009-06-18  Jim Meyering  <meyering@redhat.com>
25676
25677         hash-tests: add a loop around the small tests
25678         * tests/test-hash.c (main): Repeat small tests with selected
25679         small initial table sizes.
25680
25681 2009-06-17  Eric Blake  <ebb9@byu.net>
25682
25683         hash: minor cleanups
25684         * lib/hash.h (hash_entry): Make opaque, by moving...
25685         * lib/hash.c (hash_entry): ...here.
25686         (hash_insert): Clarify restrictions on what can be inserted.
25687         (hash_get_next): Clarify when it is safe to remove an element
25688         during traversal.
25689         (check_tuning): Skip verification when tuning is known safe.
25690         (hash_initialize): Clarify restrictions on tuning.
25691
25692 2009-06-17  Jim Meyering  <jim@meyering.net>
25693         and Eric Blake  <ebb9@byu.net>
25694
25695         hash-tests: new module
25696         * modules/hash-tests: New file.
25697         * tests/test-hash.c: New file.
25698
25699 2009-06-17  Eric Blake  <ebb9@byu.net>
25700
25701         strstr-simple: document new module
25702         * MODULES.html.sh: Document new module.
25703
25704         strstr, strcasestr: replace on platforms with broken memchr
25705         * modules/strstr: Split into...
25706         * modules/strstr-simple: ...new module that does not care about
25707         performance, but does care about glibc bug.
25708         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
25709         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
25710         if platform memchr is broken, per Debian bug 521737.
25711         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
25712         memchr.
25713         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
25714         * doc/posix-functions/strstr.texi (strstr): Document the fix.
25715         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
25716         * modules/mountlist (Depends-on): Add strstr-simple.
25717         * modules/gen-uni-tables (Depends-on): Likewise.
25718         * modules/argz (Depends-on): Add strstr.
25719
25720 2009-06-17  Bruno Haible  <bruno@clisp.org>
25721
25722         * modules/posix_spawn-internal (Depends-on): Add errno.
25723
25724 2009-06-17  Bruno Haible  <bruno@clisp.org>
25725
25726         Define missing ESTALE on Interix 3.5.
25727         * lib/errno.in.h (ESTALE): Assign a value if missing.
25728         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
25729         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
25730         missing.
25731         * doc/posix-headers/errno.texi: Mention the Interix bug.
25732         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
25733
25734 2009-06-15  Eric Blake  <ebb9@byu.net>
25735
25736         memchr, memchr2: add valgrind exception
25737         * lib/memchr.valgrind: New file.
25738         * lib/memchr2.valgrind: New file.
25739         * modules/memchr (Files): Distribute valgrind file.
25740         * modules/memchr2 (Files): Likewise.
25741
25742         docs: memchr is no longer obsolete
25743         * MODULES.html.sh: Move memchr from obsolete to string.h section.
25744         * lib/string.in.h (memchr): Simplify logic.
25745
25746 2009-06-14  Jim Meyering  <meyering@redhat.com>
25747
25748         link-follow: fix the "checking..." message to not mention trailing slash
25749         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
25750         never considered trailing slashes.
25751
25752 2009-06-14  Bruno Haible  <bruno@clisp.org>
25753
25754         * m4/memchr.m4: Mention also the bug on IA-64.
25755         * doc/posix-functions/memchr.texi: Likewise.
25756
25757 2009-06-12  Eric Blake  <ebb9@byu.net>
25758
25759         memchr: detect broken x86_64 and alpha implementations
25760         * modules/memchr-tests (Depends-on): Move mmap detection...
25761         * modules/memchr (Depends-on): ...here.
25762         (configure.ac): Set indicator.
25763         * lib/string.in.h (memchr): Declare replacement.
25764         * modules/string (Makefile.am): Trigger replacement.
25765         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
25766         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
25767         bugs.
25768         * doc/posix-functions/memchr.texi (memchr): Document the bug.
25769         * modules/getpagesize (License): Relax license.
25770
25771 2009-06-11  Bruno Haible  <bruno@clisp.org>
25772
25773         * lib/idpriv.h: Add more references.
25774
25775 2009-06-08  Bruno Haible  <bruno@clisp.org>
25776
25777         Tests for module 'idpriv-droptemp'.
25778         * modules/idpriv-droptemp-tests: New file.
25779         * tests/test-idpriv-droptemp.sh: New file.
25780         * tests/test-idpriv-droptemp.su.sh: New file.
25781         * tests/test-idpriv-droptemp.c: New file.
25782
25783         New module 'idpriv-droptemp'.
25784         * lib/idpriv-droptemp.c: New file.
25785         * modules/idpriv-droptemp: New file.
25786
25787 2009-06-08  Bruno Haible  <bruno@clisp.org>
25788
25789         Tests for module 'idpriv-drop'.
25790         * modules/idpriv-drop-tests: New file.
25791         * tests/test-idpriv-drop.sh: New file.
25792         * tests/test-idpriv-drop.su.sh: New file.
25793         * tests/test-idpriv-drop.c: New file.
25794
25795         New module 'idpriv-drop'.
25796         * lib/idpriv.h: New file.
25797         * lib-idpriv-drop.c: New file.
25798         * m4/idpriv.m4: New file.
25799         * modules/idpriv-drop: New file.
25800
25801 2009-06-08  Bruno Haible  <bruno@clisp.org>
25802
25803         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
25804         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
25805         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
25806         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
25807         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
25808         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
25809         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
25810
25811 2009-06-08  Eric Blake  <ebb9@byu.net>
25812
25813         test-strstr: use memory fence, when possible
25814         * tests/test-strstr.c (main): Use memory fence, in order to be
25815         more likely to trigger Debian bug 521737.
25816         * modules/strstr-tests (Files): Pull in additional files.
25817
25818         memchr: no longer obsolete, for wider field testing
25819         * modules/memchr (Status, Notice): Delete, this module is no
25820         longer obsolete.
25821         * modules/vasnprintf (Depends-on): Add memchr.
25822
25823 2009-06-07  Jim Meyering  <meyering@redhat.com>
25824
25825         hash: declare some functions with the warn_unused_result attribute
25826         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
25827
25828 2009-06-07  Bruno Haible  <bruno@clisp.org>
25829
25830         * tests/test-alignof.c: Don't test int64_t if it does not exist.
25831         Reported by Eric Blake.
25832
25833 2009-06-06  Eric Blake  <ebb9@byu.net>
25834
25835         test-alignof: fix typo with long double
25836         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
25837         compiler error.
25838
25839 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
25840
25841         Escape non-texinfo { and }s.
25842         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
25843         markup error.
25844
25845 2009-06-04  Jim Meyering  <meyering@redhat.com>
25846
25847         gitlog-to-changelog: don't infloop on an empty commit log
25848         * build-aux/gitlog-to-changelog: Warn about an empty log message.
25849         Reported by Boris Petersen <transacid@centerim.org>.
25850
25851 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
25852
25853         version-etc: extend for packagers
25854         Add three new configure options, intended for packagers:
25855           --with-packager="packager name"
25856           --with-packager-version="packager-specific version"
25857           --with-packager-bug-reports="packager bug reporting"
25858         An example with coreutils:
25859           $ ./configure \
25860             --with-packager=Gentoo \
25861             --with-packager-bug-report=http://bugs.gentoo.org/ \
25862             --with-packager-version="patchset 1.6"
25863           $ ./src/ls --version | head -n2
25864           ls (GNU coreutils) 7.1-dirty
25865           Packaged by Gentoo (patchset 1.6)
25866         Note that the bug reporting info via --help doesn't show up because
25867         coreutils uses its own custom emit_bug_reporting_address() implementation
25868         in src/system.h.  If it didn't, it'd look like:
25869           $ ./src/ls --help | tail -n4
25870           Report bugs to <bug-coreutils@gnu.org>.
25871           Report Gentoo bugs to <http://bugs.gentoo.org/>.
25872           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
25873           General help using GNU software: <http://www.gnu.org/gethelp/>.
25874         * lib/version-etc.c: Print new information, if provided.
25875         * m4/version-etc.m4: New file.
25876         * modules/version-etc (Files): Add m4/version-etc.m4.
25877         (configure.ac): Add gl_VERSION_ETC.
25878
25879 2009-05-31  Bruno Haible  <bruno@clisp.org>
25880
25881         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
25882         and 'int64_t'.
25883         * modules/alignof-tests (Dependencies): Add stdint.
25884         Reported by Eric Blake.
25885
25886 2009-05-31  Bruno Haible  <bruno@clisp.org>
25887
25888         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
25889         restriction due to compiler bugs.
25890         Reported by Eric Blake.
25891
25892 2009-05-31  Simon Josefsson  <simon@josefsson.org>
25893             Bruno Haible  <bruno@clisp.org>
25894
25895         Fix test-alignof failure.
25896         * lib/alignof.h (alignof_slot): New macro.
25897         (alignof_type): New macro, with the same semantics as the previous
25898         'alignof'.
25899         (alignof): Alias to alignof_slot.
25900         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
25901         check that the results are usable as constant expressions.
25902
25903 2009-05-31  Bruno Haible  <bruno@clisp.org>
25904
25905         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
25906         * tests/test-memchr.c (main): Check that memchr does not read past the
25907         first occurrence of the byte.
25908         * tests/test-strstr.c (main): Update comment.
25909         Suggested by Eric Blake.
25910
25911 2009-05-30  Bruno Haible  <bruno@clisp.org>
25912
25913         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
25914         detail how to use dumpbin.
25915         Reported by David Byron <dbyron@dbyron.com>.
25916
25917 2009-06-02  Simon Josefsson  <simon@josefsson.org>
25918
25919         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
25920
25921 2009-06-02  Simon Josefsson  <simon@josefsson.org>
25922
25923         * m4/manywarnings.m4: Add GCC 4.4 warnings.
25924
25925 2009-05-28  Bruno Haible  <bruno@clisp.org>
25926
25927         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
25928         build-aux/ files.
25929
25930 2009-05-28  Simon Josefsson  <simon@josefsson.org>
25931
25932         * gnulib-tool (func_import): Transform license on build-aux/ files too.
25933
25934 2009-05-27  Simon Josefsson  <simon@josefsson.org>
25935
25936         * gnulib-tool (sed_transform_main_lib_file)
25937         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
25938         regexps.
25939
25940 2009-05-26  Simon Josefsson  <simon@josefsson.org>
25941
25942         * tests/test-strstr.c: Add another self-test.
25943         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
25944         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
25945
25946 2009-05-23  Bruno Haible  <bruno@clisp.org>
25947
25948         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
25949         change.
25950
25951 2009-05-21  Bruno Haible  <bruno@clisp.org>
25952
25953         Simplify use of mode_t varargs.
25954         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
25955         uses 'mode_t' or 'int'.
25956         * lib/openat.c (openat): Likewise.
25957         * lib/open-safer.c (open_safer): Likewise.
25958         * m4/mode_t.m4: New file.
25959         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
25960         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
25961         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
25962         * modules/open (Files): Add m4/mode_t.m4.
25963         * modules/openat (Files): Likewise.
25964         * modules/fcntl-safer (Files): Likewise.
25965         Suggested by Eric Blake.
25966
25967 2009-05-21  Pádraig Brady  <P@draigbrady.com>
25968
25969         * doc/glibc-functions/fallocate.texi: New file.
25970         * doc/gnulib.texi: Include it.
25971
25972 2009-05-21  Eric Blake  <ebb9@byu.net>
25973             Bruno Haible  <bruno@clisp.org>
25974
25975         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
25976         invocations.
25977         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
25978
25979 2009-05-21  Eric Blake  <ebb9@byu.net>
25980             Bruno Haible  <bruno@clisp.org>
25981
25982         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
25983         include_next. Fix of 2008-11-20 commit.
25984         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
25985         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
25986         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
25987         NEXT_MATH_H.
25988         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
25989         instead of NEXT_MATH_H.
25990
25991 2009-05-21  Bruno Haible  <bruno@clisp.org>
25992
25993         Avoid redefinition warnings for SIZE_MAX.
25994         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
25995         Reported by Simon Josefsson.
25996
25997 2009-05-21  Bruno Haible  <bruno@clisp.org>
25998
25999         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
26000         AC_CACHE_VAL.
26001
26002 2009-05-20  Bruno Haible  <bruno@clisp.org>
26003
26004         Make zeroptr.h work on mingw.
26005         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
26006         mprotect.
26007         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
26008         * modules/memchr2-tests (configure.ac): Likewise.
26009         * modules/memcmp-tests (configure.ac): Likewise.
26010         * modules/memmem-tests (configure.ac): Likewise.
26011         * modules/memrchr-tests (configure.ac): Likewise.
26012         Reported by Simon Josefsson.
26013
26014 2009-05-20  Simon Josefsson  <simon@josefsson.org>
26015
26016         * tests/test-glob.c: Include string.h for strcmp prototype.
26017
26018 2009-05-20  Simon Josefsson  <simon@josefsson.org>
26019
26020         * modules/getdelim (Depends-on): Add explicit stdint, although it
26021         was implicitly already pulled in via realloc-posix.
26022         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
26023
26024 2009-05-20  Simon Josefsson  <simon@josefsson.org>
26025
26026         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
26027         G. Christensen" <tgc@jupiterrise.com>.
26028         * m4/sys_socket_h.m4: Check for sa_family_t.
26029         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
26030         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
26031         * tests/test-sys_socket.c: Check that sa_family_t works.
26032
26033 2009-05-18  Eric Blake  <ebb9@byu.net>
26034
26035         maint.mk: allow gnulib_dir in VPATH build
26036         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
26037
26038 2009-05-15  Jim Meyering  <meyering@redhat.com>
26039
26040         maint.mk: Give gnulib_dir a default definition.
26041         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
26042         Thus, most packages no longer need to specify this variable in cfg.mk
26043
26044 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
26045
26046         rename.m4: fix typos that would make non-mingw cross-configure fail
26047         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
26048
26049 2009-05-13  Eric Blake  <ebb9@byu.net>
26050
26051         mmap-anon: avoid out-of-order autoconf expansion
26052         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
26053         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
26054         * modules/memchr-tests (Depends-on): Add extensions.
26055         * modules/memchr2-tests (Depends-on): Add extensions.
26056         * modules/memcmp-tests (Depends-on): Add extensions.
26057         * modules/memmem-tests (Depends-on): Add extensions.
26058         * modules/memrchr-tests (Depends-on): Add extensions.
26059
26060 2009-05-13  Bruno Haible  <bruno@clisp.org>
26061
26062         Make some tests ISO C 99 compliant.
26063         * tests/zerosize-ptr.h: New file.
26064         * tests/test-memchr.c: Include zerosize-ptr.h.
26065         (main): Use a zero-size object pointer instead of NULL.
26066         * tests/test-memchr2.c: Include zerosize-ptr.h.
26067         (main): Use a zero-size object pointer instead of NULL.
26068         * tests/test-memcmp.c: Include zerosize-ptr.h.
26069         (main): Use a zero-size object pointer instead of NULL.
26070         * tests/test-memmem.c: Include zerosize-ptr.h.
26071         (main): Use a zero-size object pointer instead of NULL.
26072         * tests/test-memrchr.c: Include zerosize-ptr.h.
26073         (main): Use a zero-size object pointer instead of NULL.
26074         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
26075         m4/mmap-anon.m4.
26076         (Depends-on): Add getpagesize.
26077         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
26078         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
26079         m4/mmap-anon.m4.
26080         (Depends-on): Add getpagesize.
26081         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
26082         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
26083         m4/mmap-anon.m4.
26084         (Depends-on): Add getpagesize.
26085         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
26086         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
26087         m4/mmap-anon.m4.
26088         (Depends-on): Add getpagesize.
26089         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
26090         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
26091         m4/mmap-anon.m4.
26092         (Depends-on): Add getpagesize.
26093         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
26094
26095 2009-05-12  Bruno Haible  <bruno@clisp.org>
26096
26097         Tests for module 'alignof'.
26098         * modules/alignof-tests: New file.
26099         * tests/test-alignof.c: New file.
26100
26101 2009-05-12  Bruno Haible  <bruno@clisp.org>
26102
26103         Fix alignof macro.
26104         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
26105         vendor compilers that are always correct.
26106
26107 2009-05-12  Bruno Haible  <bruno@clisp.org>
26108
26109         Make the MAP_ANONYMOUS detection work on HP-UX 11.
26110         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
26111         not whether its fully works.
26112
26113 2009-05-12  Bruno Haible  <bruno@clisp.org>
26114
26115         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
26116
26117 2009-05-12  Jim Meyering  <meyering@redhat.com>
26118
26119         * top/maint.mk: Adjust backslash alignment.
26120
26121 2009-05-11  Simon Josefsson  <simon@josefsson.org>
26122
26123         * top/maint.mk: Make $(srcdir)/build-aux configurable.
26124
26125 2009-05-11  Eric Blake  <ebb9@byu.net>
26126
26127         argp: avoid undefined behavior
26128         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
26129         macros.
26130
26131 2009-05-08  Simon Josefsson  <simon@josefsson.org>
26132
26133         * tests/test-vc-list-files-git.sh: Do git config of user.email and
26134         user.name to prevent git commit from complaining.
26135
26136 2009-05-10  Bruno Haible  <bruno@clisp.org>
26137
26138         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
26139         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
26140         it rewrites every file name only once.
26141         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
26142
26143 2009-05-08  Bruno Haible  <bruno@clisp.org>
26144
26145         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
26146         instead of 'max'.
26147
26148 2009-05-08  Simon Josefsson  <simon@josefsson.org>
26149
26150         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
26151         sockaddr_storage test.
26152
26153 2009-05-07  Simon Josefsson  <simon@josefsson.org>
26154
26155         * modules/sys_socket (Makefile.am): Substitute
26156         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
26157         * m4/sys_socket_h.m4: Check for sockaddr_storage.
26158         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
26159         * tests/test-sys_socket.c: Check sockaddr_storage.
26160
26161 2009-05-08  Bruno Haible  <bruno@clisp.org>
26162
26163         New module 'alignof'.
26164         * lib/alignof.h: New file.
26165         * modules/alignof: New file.
26166
26167 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
26168             Bruno Haible  <bruno@clisp.org>
26169
26170         Fix test-file-has-acl on FreeBSD.
26171         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
26172         mask is implicitly added.
26173         * tests/test-file-has-acl.c: Include <signal.h>.
26174         (main): Terminate the test after 5 seconds.
26175         * modules/acl-tests (configure.ac): Check for alarm function.
26176
26177 2009-05-04  Bruno Haible  <bruno@clisp.org>
26178
26179         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
26180         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
26181         * modules/errno (configure.ac): Drop AC_REQUIRE.
26182         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
26183         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
26184
26185 2009-05-04  Simon Josefsson  <simon@josefsson.org>
26186
26187         * modules/glob-tests: New module.
26188         * tests/test-glob.c: Add.
26189
26190 2009-05-04  Simon Josefsson  <simon@josefsson.org>
26191
26192         * modules/fnmatch-tests: New module.
26193         * tests/test-fnmatch.c: Add.
26194
26195 2009-05-04  Eric Blake  <ebb9@byu.net>
26196
26197         maint: make the new no-submodule-changes rule VPATH-safe
26198         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
26199
26200 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
26201             Bruno Haible  <bruno@clisp.org>
26202
26203         acl: Fix infinite loop on FreeBSD.
26204         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
26205         of return value from acl_get_entry.
26206         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
26207         Likewise.
26208
26209 2009-05-03  Bruno Haible  <bruno@clisp.org>
26210
26211         * lib/acl-internal.h (acl_entries): Clarify return value.
26212         * lib/acl_entries.c (acl_entries): Likewise.
26213
26214 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
26215
26216         Bug fix in acl module.
26217         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
26218
26219 2009-05-03  Bruno Haible  <bruno@clisp.org>
26220
26221         Create gperf-generated file in the source dir, not in the build dir.
26222         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
26223         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
26224         * modules/unicase/locale-language (unicase/locale-languages.h):
26225         Likewise.
26226         * modules/unicase/special-casing (unicase/special-casing-table.h):
26227         Likewise.
26228         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
26229         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
26230         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
26231         Reported by Ralf Wildenhues.
26232
26233 2009-05-03  Bruno Haible  <bruno@clisp.org>
26234
26235         * modules/fnmatch (Description, configure.ac): Taken from
26236         fnmatch-posix.
26237         * modules/fnmatch-posix: Turn into a symbolic reference to the
26238         'fnmatch' module, and deprecate.
26239         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
26240
26241 2009-05-03  Bruno Haible  <bruno@clisp.org>
26242
26243         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
26244         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
26245         Reported by Ralf Wildenhues.
26246
26247 2009-05-04  Simon Josefsson  <simon@josefsson.org>
26248
26249         * m4/fnmatch.m4: Fix fnmatch re-define.
26250
26251 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
26252
26253         priv-set: new module and tests; adapt write-any-file
26254         * lib/priv-set.c: New file.
26255         * lib/priv-set.h: New file.
26256         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
26257         * lib/write-any-file.c: Simplify by using priv-set module.
26258         * m4/priv-set.m4: New file.
26259         * modules/priv-set: New file.
26260         * modules/unlinkdir: Add dependency on priv-set module.
26261         * modules/write-any-file: Likewise.
26262
26263         Tests for module 'priv-set'.
26264         * modules/priv-set-tests: New file.
26265         * tests/test-priv-set.c: New file.
26266
26267 2009-05-03  Jim Meyering  <meyering@redhat.com>
26268             Bruno Haible  <bruno@clisp.org>
26269
26270         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
26271         use the converted UTF-8 variant of the name instead.
26272
26273 2009-05-03  Jim Meyering  <meyering@redhat.com>
26274
26275         tests: tighten some getdate tests
26276         * tests/test-getdate.c (main): Tighten tests: require equality,
26277         not just greater than.  Set TZ envvar to UTC0.
26278
26279 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
26280
26281         getdate: correctly interpret "next monday" when run on a Monday
26282         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
26283         that e.g., "next tues" (when run on a tuesday) results in a date
26284         that is one week in the future, and not today's date.
26285         I.e., add a week when the wday is the same as the current one.
26286         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
26287         and earlier by Martin Bernreuther and Jan Minář.
26288         * tests/test-getdate.c (main): Check that "next DAY" is always in
26289         the future and that "last DAY" is always in the past.
26290
26291 2009-05-02  Jim Meyering  <meyering@redhat.com>
26292
26293         build: ensure that a release build fails when a submodule is unclean
26294         * top/maint.mk (no-submodule-changes): New rule.
26295         (alpha beta major): Depend on it.
26296
26297 2009-05-02  Bruno Haible  <bruno@clisp.org>
26298
26299         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
26300         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
26301         shell variable gl_fnmatch_required to detect which variant is
26302         requested.
26303         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
26304         gl_FUNC_FNMATCH_POSIX.
26305         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
26306         exclude fnmatch-posix.
26307
26308 2009-05-02  Bruno Haible  <bruno@clisp.org>
26309
26310         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
26311         * modules/mbsrtowcs (License): Change to LGPLv2+.
26312         * modules/strnlen1 (License): Likewise.
26313         Reported by Simon Josefsson.
26314
26315 2009-05-02  Bruno Haible  <bruno@clisp.org>
26316
26317         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
26318         "cross".
26319         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
26320         gnulib-tool was called with option --source-base=lib.
26321
26322 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26323
26324         Use automake *-local hooks without commands, for extensibility.
26325         * modules/localcharset (Makefile.am): Rename install-exec-local
26326         rule to install-exec-localcharset, and make it a prerequisite of
26327         install-exec-local.  Likewise, rename the uninstall-local rule to
26328         uninstall-localcharset, and make it a prerequisite of the former.
26329
26330 2009-05-01  Bruno Haible  <bruno@clisp.org>
26331
26332         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
26333         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
26334         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
26335         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
26336         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
26337         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
26338         m4/locale-zh.m4, m4/codeset.m4.
26339
26340         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
26341         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
26342         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
26343         m4/locale-zh.m4.
26344
26345         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
26346         REPLACE_WCRTOMB if mbstate_t must be replaced.
26347         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
26348         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
26349
26350 2009-05-01  Bruno Haible  <bruno@clisp.org>
26351
26352         Avoid compiler warnings when redefining macros defined by <libintl.h>.
26353         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
26354         dngettext, dcngettext, textdomain, bindtextdomain,
26355         bind_textdomain_codeset): Undefine before redefining.
26356
26357 2009-04-30  Bruno Haible  <bruno@clisp.org>
26358
26359         Fix bug introduced on 2009-04-25.
26360         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
26361         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
26362         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
26363         is defined.
26364         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
26365         is defined.
26366         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
26367         is defined.
26368         Reported by Elbert_Pol <elbert.pol@gmail.com>.
26369
26370 2009-04-28  Bruno Haible  <bruno@clisp.org>
26371
26372         Comment tweaks.
26373         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
26374         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
26375         * lib/unicase.h (u*_casexfrm): Likewise.
26376         Reported by Paolo Bonzini.
26377
26378 2009-04-28  Bruno Haible  <bruno@clisp.org>
26379
26380         Fix a compilation error.
26381         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
26382         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
26383         Reported by Jim Meyering.
26384
26385 2009-04-27  Bruno Haible  <bruno@clisp.org>
26386
26387         New module 'libunistring'.
26388         * modules/libunistring: New file.
26389         * m4/libunistring.m4: New file.
26390         * MODULES.html.sh (Unicode string functions): Add it.
26391
26392 2009-04-27  Eric Blake  <ebb9@byu.net>
26393
26394         maint.mk: allow package-specific header to provide <config.h>
26395         * top/maint.mk (sc_require_config_h): New variable.
26396         (sc_require_config_h, sc_require_config_h_first): Use it.
26397
26398 2009-04-27  Simon Josefsson  <simon@josefsson.org>
26399
26400         * top/maint.mk (sc_avoid_if_before_free): Except
26401         useless-if-before-free script.
26402
26403 2009-04-27  Eric Blake  <ebb9@byu.net>
26404
26405         maintainer-makefile: depend on all required helper scripts
26406         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
26407         useless-if-before-free.
26408         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
26409         version, rather than assuming gnulib checkout is available.
26410         Reported by Simen Josefsson.
26411
26412 2009-04-26  Bruno Haible  <bruno@clisp.org>
26413
26414         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
26415         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
26416         "../" or "..".
26417
26418 2009-04-26  Bruno Haible  <bruno@clisp.org>
26419
26420         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
26421         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
26422         AC_LIB_HAVE_LINKFLAGS.
26423
26424 2009-04-26  Bruno Haible  <bruno@clisp.org>
26425
26426         Simplify calling convention of u*_conv_from_encoding.
26427         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
26428         u32_conv_from_encoding): Expect a resultbuf argument and return the
26429         result directly as a pointer.
26430         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
26431         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
26432         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
26433         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
26434         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
26435         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
26436         Update.
26437         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
26438         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
26439         * lib/vasnprintf.c (VASNPRINTF): Update.
26440         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
26441         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
26442         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
26443         * NEWS: Mention the change.
26444
26445 2009-04-26  Bruno Haible  <bruno@clisp.org>
26446
26447         Simplify calling convention of u*_conv_to_encoding.
26448         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
26449         u32_conv_to_encoding): Expect a resultbuf argument and return the
26450         result directly as a pointer.
26451         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
26452         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
26453         freeing scaled_offsets if mem_iconveha failed.
26454         * lib/unicase/u-casexfrm.h (FUNC): Update.
26455         * lib/uninorm/u-normxfrm.h (FUNC): Update.
26456         * lib/vasnprintf.c (VASNPRINTF): Update.
26457         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
26458         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
26459         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
26460         * NEWS: Mention the change.
26461
26462 2009-04-26  Bruno Haible  <bruno@clisp.org>
26463
26464         Avoid test failures on AIX and OSF/1.
26465         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
26466         malloc(0).
26467         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
26468         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
26469         Likewise.
26470         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
26471         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
26472         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
26473         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
26474         * doc/posix-functions/malloc.texi: Document the portability problem
26475         related to malloc(0).
26476
26477 2009-04-26  Bruno Haible  <bruno@clisp.org>
26478
26479         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
26480         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
26481         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
26482
26483 2009-04-25  Bruno Haible  <bruno@clisp.org>
26484
26485         Avoid link error when creating a namespace clean library.
26486         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
26487         as macro with arguments if already defined as an alias.
26488         * lib/signbitf.c (gl_signbitf): Don't undefine.
26489         * lib/signbitd.c (gl_signbitd): Don't undefine.
26490         * lib/signbitl.c (gl_signbitl): Don't undefine.
26491
26492 2009-04-25  Jim Meyering  <meyering@redhat.com>
26493
26494         vc-list-files: fix another quoting bug
26495         * build-aux/vc-list-files: Avoid sed backslash expansion
26496         of pathological directory names.
26497
26498 2009-04-25  Eric Blake  <ebb9@byu.net>
26499
26500         vc-list-files: fix shell quoting error
26501         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
26502         timestamp.
26503
26504 2009-04-25  Jim Meyering  <meyering@redhat.com>
26505
26506         vc-list-files: restore lost functionality with subdir argument
26507         * build-aux/vc-list-files: When given a non-"." sub-directory
26508         argument, substitute the $dir/ prefix back onto each resulting name.
26509         Otherwise, coreutils' root_tests check would fail.
26510
26511 2009-04-24  Eric Blake  <ebb9@byu.net>
26512
26513         vc-list-files: ignore git symlinks
26514         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
26515         than ls-files, to ignore git symlinks.
26516
26517         maint.mk: import improvements from m4
26518         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
26519         (move_if_change): Delete unused macro.
26520         (news-date-check, vc-diff-check): Support VPATH builds.
26521         (announcement): Likewise.  Split --bootstrap-tools list...
26522         (boostrap-tools): ...into separate list, which can be overridden
26523         in cfg.mk.
26524         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
26525         requiring dependency on useless-if-before-free module.
26526         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
26527         Support VPATH builds.
26528
26529 2009-04-24  Jim Meyering  <meyering@redhat.com>
26530
26531         maint.mk: remove coreutils-specific rules and variables
26532         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
26533         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
26534         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
26535
26536         maint.mk: remove obsolete rule
26537         * top/maint.mk (rel-check): Remove rule.
26538         (WGET, WGETFLAGS): Remove now-unused variables.
26539
26540 2009-04-24  Simon Josefsson  <simon@josefsson.org>
26541
26542         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
26543         consistency.
26544
26545         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
26546         '$(PATH_SEPARATOR)' instead of ':'.
26547
26548 2009-04-24  Simon Josefsson  <simon@josefsson.org>
26549
26550         * lib/getopt1.c (main): Use 'const' for static array.
26551
26552 2009-04-24  Simon Josefsson  <simon@josefsson.org>
26553
26554         * top/maint.mk: Sync with coreutils.
26555         * NEWS: Explain incompatibilities.
26556
26557 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26558             Bruno Haible  <bruno@clisp.org>
26559
26560         Fix cross-compilation results.
26561         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
26562         statement, as third argument of AC_TRY_RUN.
26563         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
26564         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
26565         Likewise.
26566         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
26567         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
26568         Likewise.
26569         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
26570         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
26571         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
26572
26573 2009-04-20  Bruno Haible  <bruno@clisp.org>
26574
26575         Avoid test failure on mingw.
26576         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
26577
26578 2009-04-20  Bruno Haible  <bruno@clisp.org>
26579
26580         Avoid compilation error on mingw.
26581         * modules/localename-tests (Depends-on): Add locale.
26582
26583 2009-04-19  Bruno Haible  <bruno@clisp.org>
26584
26585         Support for building a shared library on Windows platforms.
26586         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
26587         (main): Test the presence of UNINORM_NFC here.
26588         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
26589         (main): Test the presence of UNINORM_NFD here.
26590         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
26591         (main): Test the presence of UNINORM_NFKC here.
26592         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
26593         (main): Test the presence of UNINORM_NFKD here.
26594
26595 2009-04-19  Bruno Haible  <bruno@clisp.org>
26596
26597         Avoid a compiler warning.
26598         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
26599         Change type of variable 'sequence'.
26600
26601 2009-04-19  Bruno Haible  <bruno@clisp.org>
26602
26603         * modules/configmake (Makefile.am): When the contents of configmake.h
26604         does not change, arrange to preserve its modification time.
26605
26606 2009-04-17  Simon Josefsson  <simon@josefsson.org>
26607
26608         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
26609         gettext domain.
26610
26611 2009-04-16  Jim Meyering  <meyering@redhat.com>
26612
26613         useless-if-before-free: improve conversion code
26614         * build-aux/useless-if-before-free: Adjust code-in-comment to match
26615         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
26616
26617 2009-04-14  Bruno Haible  <bruno@clisp.org>
26618
26619         * modules/fcntl (Depends-on): Add extensions.
26620         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
26621
26622 2009-04-12  Ben Pfaff  <blp@gnu.org>
26623
26624         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
26625         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
26626
26627 2009-03-20  Ben Pfaff  <blp@gnu.org>
26628
26629         Make rename replace existing destinations on Windows.
26630         * m4/rename.m4: Add test for Mingw.
26631         * lib/rename.c: Add rename replacement that uses MoveFileEx with
26632         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
26633         * doc/posix-functions/rename.texi: Document.
26634
26635 2009-04-10  Bruno Haible  <bruno@clisp.org>
26636
26637         New include file "iconveh.h".
26638         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
26639         * lib/striconveh.h: Include it.
26640         (enum iconv_ilseq_handler): Remove definition.
26641         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
26642         striconveh.h.
26643         * lib/striconveha.c: Include striconveh.h.
26644         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
26645         * modules/striconveh (Files): Add lib/iconveh.h.
26646         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
26647         lib/striconveh.h.
26648
26649 2009-04-10  Bruno Haible  <bruno@clisp.org>
26650
26651         * lib/uniconv.h: Update comment.
26652
26653 2009-04-10  Bruno Haible  <bruno@clisp.org>
26654
26655         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
26656         always.
26657         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
26658         * lib/unistr/u16-mbtouc-aux.c: Likewise.
26659         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
26660         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
26661         "unistring-notinline.h", so that the function gets defined always.
26662         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
26663         * lib/unistr/u8-uctomb.c: Likewise.
26664         * lib/unistr/u16-mbtouc.c: Likewise.
26665         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
26666         * lib/unistr/u16-uctomb.c: Likewise.
26667         * lib/unistr/u32-mbtouc.c: Likewise.
26668         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
26669         * lib/unistr/u32-uctomb.c: Likewise.
26670
26671 2009-04-10  Bruno Haible  <bruno@clisp.org>
26672
26673         Mark 'utime' obsolete.
26674         * modules/utime (Status, Notice): New sections.
26675         Suggested by Jim Meyering.
26676
26677         Fix cross-compile guess for utime test.
26678         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
26679         autoconf.
26680         * doc/posix-functions/utime.texi: Give more precisions.
26681         Reported by Jan <ipif@ymail.com>.
26682
26683 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
26684
26685         filevercmp: correct today's change
26686         * lib/filevercmp.c: Also handle coreutils' test inputs.
26687         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
26688
26689         Fix regression in 'filevercmp' module. Thanks Sven Joachim
26690         for reporting it.
26691         * lib/filevercmp.c: Special handle for "", "." and "..".
26692         * tests/test-filevercmp.c: Enlarge the set suite.
26693
26694 2009-04-07  Jim Meyering  <meyering@redhat.com>
26695
26696         useless-if-before-free: show how to remove braced useless free, too
26697         * build-aux/useless-if-before-free: still only in a comment, though.
26698
26699 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
26700
26701         maint.mk: import changes to syntax-check macros from coreutils
26702         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
26703         Use them in the relevant macros.
26704
26705 2009-04-06  Bruno Haible  <bruno@clisp.org>
26706
26707         Fix unportable use of bit-fields.
26708         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
26709         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
26710         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
26711
26712 2009-04-06  Bruno Haible  <bruno@clisp.org>
26713
26714         Avoid test failures on AIX and OSF/1.
26715         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
26716         that malloc(0) = NULL.
26717         * tests/unicase/test-u8-tolower.c (check): Likewise.
26718         * tests/unicase/test-u8-totitle.c (check): Likewise.
26719         * tests/unicase/test-u8-toupper.c (check): Likewise.
26720         * tests/unicase/test-u16-casefold.c (check): Likewise.
26721         * tests/unicase/test-u16-tolower.c (check): Likewise.
26722         * tests/unicase/test-u16-totitle.c (check): Likewise.
26723         * tests/unicase/test-u16-toupper.c (check): Likewise.
26724         * tests/unicase/test-u32-casefold.c (check): Likewise.
26725         * tests/unicase/test-u32-tolower.c (check): Likewise.
26726         * tests/unicase/test-u32-totitle.c (check): Likewise.
26727         * tests/unicase/test-u32-toupper.c (check): Likewise.
26728         * tests/uninorm/test-u8-nfc.c (check): Likewise.
26729         * tests/uninorm/test-u8-nfd.c (check): Likewise.
26730         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
26731         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
26732         * tests/uninorm/test-u16-nfc.c (check): Likewise.
26733         * tests/uninorm/test-u16-nfd.c (check): Likewise.
26734         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
26735         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
26736         * tests/uninorm/test-u32-nfc.c (check): Likewise.
26737         * tests/uninorm/test-u32-nfd.c (check): Likewise.
26738         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
26739         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
26740
26741 2009-04-05  Bruno Haible  <bruno@clisp.org>
26742
26743         Work around an autoconf limitation.
26744         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
26745         comment line if it would be longer than 3 KB.
26746
26747 2009-04-05  Bruno Haible  <bruno@clisp.org>
26748
26749         Avoid test failure with libiconv-1.13.
26750         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
26751         of the expected test results.
26752
26753 2009-04-05  Bruno Haible  <bruno@clisp.org>
26754
26755         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
26756         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
26757         that it should be installed.
26758
26759 2009-04-05  Bruno Haible  <bruno@clisp.org>
26760
26761         * gnulib-tool: New option --copy-file.
26762         (func_usage): Document it.
26763         (func_dest_tmpfilename): Moved out of func_import.
26764         (func_add_file, func_update_file): New functions, extracted from
26765         func_import.
26766         (func_import): Update.
26767
26768 2009-04-05  Karl Berry  <karl@gnu.org>
26769
26770         * README: prominently mention gnulib-tool.
26771         Rearrange sections so getting the code is near the top.
26772
26773 2009-04-05  Bruno Haible  <bruno@clisp.org>
26774
26775         * lib/unicase.h: Mention u*_cmp2.
26776         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
26777         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
26778         * lib/unicase/ulc-casecmp.c: Likewise.
26779         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
26780         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
26781         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
26782         unistr/u8-cmp.
26783         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
26784         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
26785         unistr/u16-cmp.
26786         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
26787         unistr/u32-cmp.
26788
26789         * lib/uninorm.h: Mention u*_cmp2.
26790         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
26791         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
26792         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
26793         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
26794         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
26795         unistr/u8-cmp.
26796         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
26797         unistr/u16-cmp.
26798         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
26799         unistr/u32-cmp.
26800
26801         New module 'unistr/u32-cmp2'.
26802         * lib/unistr/u32-cmp2.c: New file.
26803         * modules/unistr/u32-cmp2: New file.
26804
26805         New module 'unistr/u16-cmp2'.
26806         * lib/unistr/u16-cmp2.c: New file.
26807         * modules/unistr/u16-cmp2: New file.
26808
26809         New module 'unistr/u8-cmp2'.
26810         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
26811         * lib/unistr/u8-cmp2.c: New file.
26812         * lib/unistr/u-cmp2.h: New file.
26813         * modules/unistr/u8-cmp2: New file.
26814
26815 2009-04-05  Bruno Haible  <bruno@clisp.org>
26816
26817         * lib/unictype.h (uc_property_is_valid): New macro.
26818         * tests/unictype/test-pr_byname.c (main): Use it.
26819
26820         * lib/unistr.h: Doc fixes.
26821         * lib/uniconv.h: Doc fixes.
26822         * lib/unictype.h: Doc fixes.
26823
26824 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
26825
26826         Port coreutils 7.2 to Solaris 8.
26827
26828         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
26829         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
26830         for Solaris 8.  This is a bit of a hack, as it means it's the
26831         caller's responsibility to add -lnsl if needed, but most likely it
26832         won't be needed since only getaddrinfo uses this and getaddrinfo
26833         isn't needed on Solaris 8.
26834
26835         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
26836         problem to Solaris 8 encountered with coreutils 7.2, which
26837         resulted in a message "fnmatch.c:292: warning: passing argument 4
26838         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
26839         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
26840
26841 2009-04-03  Simon Josefsson  <simon@josefsson.org>
26842
26843         * m4/ld-version-script.m4: Add FIXME comment.
26844
26845 2009-04-02  Simon Josefsson  <simon@josefsson.org>
26846
26847         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
26848         SOVERSION variable.
26849
26850 2009-04-02  Bruno Haible  <bruno@clisp.org>
26851
26852         * Makefile (info, html, dvi, pdf): Combine the rules.
26853         Suggested by Jim Meyering.
26854
26855 2009-04-01  Bruno Haible  <bruno@clisp.org>
26856
26857         * Makefile (info, html, dvi, pdf): New targets.
26858         Reported by Reuben Thomas <rrt@sc3d.org>.
26859
26860 2009-04-01  Bruno Haible  <bruno@clisp.org>
26861
26862         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
26863         can be put into PATH.
26864         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
26865
26866 2009-04-01  Bruno Haible  <bruno@clisp.org>
26867
26868         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
26869
26870 2009-04-01  Bruno Haible  <bruno@clisp.org>
26871
26872         Rename module 'visibility'.
26873         * modules/lib-symbol-visibility: Renamed from modules/visibility.
26874         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
26875         * doc/gnulib.texi: Update.
26876         * MODULES.html.sh (Misc): Update.
26877         * NEWS: Mention the change.
26878
26879 2009-04-01  Simon Josefsson  <simon@josefsson.org>
26880
26881         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
26882         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
26883         Eric Blake <ebb9@byu.net> for review.
26884         * MODULES.html.sh: Add lib-msvc-compat.
26885         * doc/gnulib.texi: Link to new section.
26886         * m4/ld-output-def.m4: New file.
26887         * doc/ld-output-def.texi: New file.
26888
26889 2009-04-01  Simon Josefsson  <simon@josefsson.org>
26890
26891         Rename ld-version-script to lib-symbol-versions.  Suggested by
26892         Bruno Haible <bruno@clisp.org>.
26893         * modules/ld-version-script: Renamed to lib-symbol-versions.
26894         * doc/ld-version-script.texi: Fix module name.
26895         * MODULES.html.sh: Add lib-symbol-versions.
26896
26897 2009-03-31  Simon Josefsson  <simon@josefsson.org>
26898
26899         * modules/u64-tests: New file.
26900         * tests/test-u64.c: New file.
26901
26902 2009-03-04  Simon Josefsson  <simon@josefsson.org>
26903
26904         * MODULES.html.sh: Mention u64.
26905         * modules/u64: New module.
26906         * modules/crypto/sha512: Depend on u64 module instead of providing
26907         u64.h.
26908
26909 2009-03-27  Eric Blake  <ebb9@byu.net>
26910
26911         test-strerror: make debugging EAI_SYSTEM easier
26912         * modules/getaddrinfo-tests (Depends-on): Add strerror.
26913         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
26914         failure was EAI_SYSTEM.
26915
26916 2009-03-25  Bruno Haible  <bruno@clisp.org>
26917
26918         Fix a problem with --enable-relocatable on Solaris 7.
26919         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
26920         since 2008-02-24.
26921
26922 2009-03-25  Eric Blake  <ebb9@byu.net>
26923
26924         test-sockets: avoid gcc warning
26925         * tests/test-sockets.c (main): Silence compiler warning.
26926
26927 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
26928
26929         New modules nproc, pthread, contributed by Glen Lenker.
26930
26931         * MODULES.html.sh: Add pthread, nproc.
26932         * lib/nproc.c: New file.
26933         * lib/nproc.h: New file.
26934         * lib/pthread.in.h: New file.
26935         * m4/pthread.m4: New file.
26936         * modules/nproc: New file.
26937         * modules/pthread: New file.
26938
26939 2009-03-24  Simon Josefsson  <simon@josefsson.org>
26940
26941         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
26942         New variable.
26943
26944 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
26945
26946         filevercmp: handle simple~ and numbered.~3~ backup suffixes
26947         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
26948         * tests/test-filevercmp.c: Add tests for backup suffixes.
26949
26950 2009-03-24  Simon Josefsson  <simon@josefsson.org>
26951
26952         * modules/stdlib (Depends-on): Add stdint, needed when defining
26953         struct random_data on, for example, HP-UX 10.20.  Reported by
26954         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
26955
26956 2009-03-24  Simon Josefsson  <simon@josefsson.org>
26957
26958         * lib/readline.c (readline): Call fflush on stdout after printing
26959         prompt.
26960
26961 2009-03-20  Bruno Haible  <bruno@clisp.org>
26962
26963         Remove dependency from 'close' module to -lws2_32 on native Windows.
26964         * lib/close-hook.h: New file.
26965         * lib/close-hook.c: New file.
26966         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
26967         w32sock.h.
26968         (_gl_close_fd_maybe_socket): Remove function.
26969         (rpl_close): Invoke execute_all_close_hooks instead of
26970         _gl_close_fd_maybe_socket.
26971         * lib/sockets.c: Include close-hook.h, w32sock.h.
26972         (close_fd_maybe_socket): New function, essentially from lib/close.c.
26973         (close_sockets_hook): New variable.
26974         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
26975         (gl_sockets_cleanup): Unregister it.
26976         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
26977         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
26978         * modules/close-hook: New file.
26979         * modules/close (Files): Remove lib/w32sock.h.
26980         (Depends-on): Add close-hook.
26981         (Link): Remove section.
26982         * modules/sockets (Files): Add lib/w32sock.h.
26983         (Depends-on): Add close-hook.
26984         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
26985         invocation.
26986         * NEWS: Mention that LIB_CLOSE is gone.
26987
26988 2009-03-23  Eric Blake  <ebb9@byu.net>
26989
26990         signal-tests: test previous patch
26991         * tests/test-signal.c: New file.
26992         * modules/signal-tests: Likewise.
26993
26994         signal.h: always support 'volatile sig_atomic_t'
26995         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
26996         (gl_SIGNAL_H_DEFAULTS): Add a default.
26997         * modules/signal (Makefile.am): Substitute if needed.
26998         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
26999         users can blindly add volatile.
27000         * doc/posix-headers/signal.texi (signal.h): Document it.
27001         Reported by Matthew Woehlke.
27002
27003 2009-03-23  Jim Meyering  <meyering@redhat.com>
27004
27005         pathmax: PATH_MAX: use pathconf only when available
27006         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
27007         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
27008         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
27009         This avoids a link failure in a PSP cross-compilation environment
27010         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
27011
27012         * lib/vasnprintf.c (divide): Fix typo in comment.
27013
27014 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27015
27016         * gnulib-tool (func_filter_filelist): Fix comment.
27017
27018 2009-03-20  Bruno Haible  <bruno@clisp.org>
27019
27020         Make sockets.h self-contained.
27021         * lib/sockets.c: Include sockets.h first.
27022         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
27023
27024 2009-03-19  Eric Blake  <ebb9@byu.net>
27025
27026         doc: mention more functions added in cygwin 1.7.0
27027         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
27028         addition.
27029         * doc/posix-functions/log2f.texi: Likewise.
27030
27031 2009-03-19  Jim Meyering  <meyering@redhat.com>
27032
27033         fsusage: avoid syntax error due to statement-before-declaration
27034         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
27035         after all declarations.  Reported by Matthew Woehlke in
27036         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
27037
27038 2009-03-18  Eric Blake  <ebb9@byu.net>
27039
27040         build-aux/compile: sync from automake
27041         * build-aux/compile: New file, from automake.
27042         * config/srclist.txt: Mention build-aux/compile.
27043
27044 2009-03-17  Bruno Haible  <bruno@clisp.org>
27045
27046         * lib/git-merge-changelog.c: Fix typo in comment.
27047         Reported by Reuben Thomas <rrt@sc3d.org>.
27048
27049 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
27050
27051         * m4/regex.m4: update and improve help for
27052         --without-included-regex.
27053
27054 2009-03-17  Simon Josefsson  <simon@josefsson.org>
27055
27056         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
27057         failure on missing include files.
27058
27059 2009-03-17  Eric Blake  <ebb9@byu.net>
27060
27061         doc: mention more functions added in cygwin 1.7.0
27062         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
27063         addition.
27064         * doc/posix-functions/fwscanf.texi: Likewise.
27065         * doc/posix-functions/swprintf.texi: Likewise.
27066         * doc/posix-functions/swscanf.texi: Likewise.
27067         * doc/posix-functions/vfwprintf.texi: Likewise.
27068         * doc/posix-functions/vfwscanf.texi: Likewise.
27069         * doc/posix-functions/vswprintf.texi: Likewise.
27070         * doc/posix-functions/vswscanf.texi: Likewise.
27071         * doc/posix-functions/vwprintf.texi: Likewise.
27072         * doc/posix-functions/vwscanf.texi: Likewise.
27073         * doc/posix-functions/wcscasecmp.texi: Likewise.
27074         * doc/posix-functions/wcsdup.texi: Likewise.
27075         * doc/posix-functions/wcsftime.texi: Likewise.
27076         * doc/posix-functions/wcsncasecmp.texi: Likewise.
27077         * doc/posix-functions/wprintf.texi: Likewise.
27078         * doc/posix-functions/wscanf.texi: Likewise.
27079         * doc/glibc-functions/gethostbyname2.texi: Likewise.
27080
27081 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27082
27083         maint.mk: really add $(AM_MAKEFLAGS)
27084         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
27085         was inadvertently omitted in the last commit.
27086         Spotted by Bruno Haible.
27087
27088         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
27089         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
27090         $(AM_MAKEFLAGS)' rather than plain `make'.
27091
27092         gnulib-tool: execute $MAKE not make
27093         * gnulib-tool: Default $MAKE to 'make'.
27094         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
27095         than make.  Initialize $MAKE in the do-autobuild script.
27096
27097         gnulib-tool: use $MAKE not make in generated files
27098         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
27099         make, in generated files.  Initialize $MAKE in the do-autobuild
27100         script.
27101
27102         * top/GNUmakefile (_have-git-version-gen): Fix typo.
27103
27104         GNUmakefile: disable parallelism only for multiple, recursive targets
27105         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
27106         additions in the Makefile.
27107         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
27108         by Automake.
27109         (.NOTPARALLEL): Only disable parallel builds if multiple targets
27110         are listed on the command line and at least one of them is
27111         listed in $(ALL_RECURSIVE_TARGETS).
27112
27113 2009-03-14  Bruno Haible  <bruno@clisp.org>
27114
27115         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
27116         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
27117         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
27118         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
27119         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
27120         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
27121         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
27122         unistr/u8-uctomb.
27123         * modules/unistr/u8-strchr (Depends-on): Likewise.
27124         * modules/unistr/u8-strrchr (Depends-on): Likewise.
27125         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
27126         unistr/u16-uctomb.
27127         * modules/unistr/u16-strchr (Depends-on): Likewise.
27128         * modules/unistr/u16-strrchr (Depends-on): Likewise.
27129
27130 2009-03-12  Bruno Haible  <bruno@clisp.org>
27131
27132         Work around select() bug on Interix 3.5.
27133         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
27134         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
27135         * m4/select.m4: New file.
27136         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
27137         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
27138         * modules/select (Files): Add m4/select.m4.
27139         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
27140         * modules/nanosleep (Depends-on): Add select.
27141         * modules/poll (Depends-on): Likewise.
27142         * doc/posix-functions/select.texi: Mention the Interix bug.
27143         Reported by Markus Duft <mduft@gentoo.org>.
27144
27145         * lib/select.c: Renamed from lib/winsock-select.c.
27146         * modules/select (Files): Add lib/select.c, remove
27147         lib/winsock-select.c.
27148         (configure.ac): Update.
27149
27150 2009-03-12  Jim Meyering  <meyering@redhat.com>
27151
27152         avoid gcc warnings about unused macro definitions
27153         * lib/readtokens.c (STREQ): Remove unused definition.
27154         * lib/xmalloc.c (SIZE_MAX): Likewise.
27155         * lib/openat-die.c (N_): Likewise.
27156         * lib/mountlist.c (SIZE_MAX): Remove definition.
27157         Instead, include <stdint.h>.
27158         * lib/readutmp.c: Likewise.
27159         * modules/readutmp (Depends-on): Add stdint.
27160         * modules/mountlist (Depends-on): Add stdint.
27161         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
27162
27163 2009-03-10  Bruno Haible  <bruno@clisp.org>
27164
27165         Tests for module 'mbmemcasecoll'.
27166         * modules/mbmemcasecoll-tests: New file.
27167         * tests/test-mbmemcasecoll1.sh: New file.
27168         * tests/test-mbmemcasecoll2.sh: New file.
27169         * tests/test-mbmemcasecoll3.sh: New file.
27170         * tests/test-mbmemcasecoll.c: New file.
27171
27172         New module 'mbmemcasecoll'.
27173         * lib/mbmemcasecoll.h: New file.
27174         * lib/mbmemcasecoll.c: New file.
27175         * modules/mbmemcasecoll: New file.
27176
27177         * tests/test-mbmemcasecmp.h: New file, extracted from
27178         tests/test-mbmemcasecmp.c.
27179         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
27180         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
27181         (main): Update.
27182         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
27183
27184 2009-03-09  Bruno Haible  <bruno@clisp.org>
27185
27186         Tests for module 'mbmemcasecmp'.
27187         * modules/mbmemcasecmp-tests: New file.
27188         * tests/test-mbmemcasecmp1.sh: New file.
27189         * tests/test-mbmemcasecmp2.sh: New file.
27190         * tests/test-mbmemcasecmp3.sh: New file.
27191         * tests/test-mbmemcasecmp.c: New file.
27192
27193         New module 'mbmemcasecmp'.
27194         * lib/mbmemcasecmp.h: New file.
27195         * lib/mbmemcasecmp.c: New file.
27196         * modules/mbmemcasecmp: New file.
27197
27198 2009-03-09  Bruno Haible  <bruno@clisp.org>
27199
27200         Tests for module 'unicase/ulc-casecoll'.
27201         * modules/unicase/ulc-casecoll-tests: New file.
27202         * tests/unicase/test-ulc-casecoll1.sh: New file.
27203         * tests/unicase/test-ulc-casecoll2.sh: New file.
27204         * tests/unicase/test-ulc-casecoll.c: New file.
27205
27206         New module 'unicase/ulc-casecoll'.
27207         * lib/unicase.h (ulc_casecoll): New declaration.
27208         * lib/unicase/ulc-casecoll.c: New file.
27209         * modules/unicase/ulc-casecoll: New file.
27210
27211         New module 'unicase/ulc-casexfrm'.
27212         * lib/unicase.h (ulc_casexfrm): New declaration.
27213         * lib/unicase/ulc-casexfrm.c: New file.
27214         * modules/unicase/ulc-casexfrm: New file.
27215
27216 2009-03-09  Bruno Haible  <bruno@clisp.org>
27217
27218         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
27219         invocations.
27220
27221         * m4/mbscasecmp.m4: Remove file.
27222         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
27223         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
27224
27225         * m4/mbscasestr.m4: Remove file.
27226         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
27227         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
27228
27229         * m4/mbschr.m4: Remove file.
27230         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
27231         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
27232
27233         * m4/mbscspn.m4: Remove file.
27234         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
27235         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
27236
27237         * m4/mbslen.m4: Remove file.
27238         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
27239         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
27240
27241         * m4/mbsncasecmp.m4: Remove file.
27242         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
27243         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
27244
27245         * m4/mbsnlen.m4: Remove file.
27246         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
27247         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
27248
27249         * m4/mbspbrk.m4: Remove file.
27250         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
27251         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
27252
27253         * m4/mbspcasecmp.m4: Remove file.
27254         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
27255         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
27256
27257         * m4/mbsrchr.m4: Remove file.
27258         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
27259         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
27260
27261         * m4/mbssep.m4: Remove file.
27262         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
27263         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
27264
27265         * m4/mbsspn.m4: Remove file.
27266         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
27267         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
27268
27269         * m4/mbsstr.m4: Remove file.
27270         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
27271         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
27272
27273         * m4/mbstok_r.m4: Remove file.
27274         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
27275         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
27276
27277         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
27278
27279         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
27280         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
27281
27282         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
27283
27284 2009-03-08  Bruno Haible  <bruno@clisp.org>
27285
27286         Tests for module 'unicase/ulc-casecmp'.
27287         * modules/unicase/ulc-casecmp-tests: New file.
27288         * tests/unicase/test-ulc-casecmp1.sh: New file.
27289         * tests/unicase/test-ulc-casecmp2.sh: New file.
27290         * tests/unicase/test-ulc-casecmp.c: New file.
27291
27292         New module 'unicase/ulc-casecmp'.
27293         * lib/unicase.h (ulc_casecmp): New declaration.
27294         * lib/unicase/ulc-casecmp.c: New file.
27295         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
27296         'const SRC_UNIT *'.
27297         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
27298         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
27299         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
27300         * modules/unicase/ulc-casecmp: New file.
27301
27302         Tests for module 'unicase/u32-is-cased'.
27303         * modules/unicase/u32-is-cased-tests: New file.
27304         * tests/unicase/test-u32-is-cased.c: New file.
27305
27306         Tests for module 'unicase/u16-is-cased'.
27307         * modules/unicase/u16-is-cased-tests: New file.
27308         * tests/unicase/test-u16-is-cased.c: New file.
27309
27310         Tests for module 'unicase/u8-is-cased'.
27311         * modules/unicase/u8-is-cased-tests: New file.
27312         * tests/unicase/test-u8-is-cased.c: New file.
27313         * tests/unicase/test-is-cased.h: New file.
27314
27315         New module 'unicase/u32-is-cased'.
27316         * lib/unicase/u32-is-cased.c: New file.
27317         * modules/unicase/u32-is-cased: New file.
27318
27319         New module 'unicase/u16-is-cased'.
27320         * lib/unicase/u16-is-cased.c: New file.
27321         * modules/unicase/u16-is-cased: New file.
27322
27323         New module 'unicase/u8-is-cased'.
27324         * lib/unicase/u8-is-cased.c: New file.
27325         * lib/unicase/u-is-cased.h: New file.
27326         * modules/unicase/u8-is-cased: New file.
27327
27328         Tests for module 'unicase/u32-is-casefolded'.
27329         * modules/unicase/u32-is-casefolded-tests: New file.
27330         * tests/unicase/test-u32-is-casefolded.c: New file.
27331
27332         Tests for module 'unicase/u16-is-casefolded'.
27333         * modules/unicase/u16-is-casefolded-tests: New file.
27334         * tests/unicase/test-u16-is-casefolded.c: New file.
27335
27336         Tests for module 'unicase/u8-is-casefolded'.
27337         * modules/unicase/u8-is-casefolded-tests: New file.
27338         * tests/unicase/test-u8-is-casefolded.c: New file.
27339         * tests/unicase/test-is-casefolded.h: New file.
27340
27341         New module 'unicase/u32-is-casefolded'.
27342         * lib/unicase/u32-is-casefolded.c: New file.
27343         * modules/unicase/u32-is-casefolded: New file.
27344
27345         New module 'unicase/u16-is-casefolded'.
27346         * lib/unicase/u16-is-casefolded.c: New file.
27347         * modules/unicase/u16-is-casefolded: New file.
27348
27349         New module 'unicase/u8-is-casefolded'.
27350         * lib/unicase/u8-is-casefolded.c: New file.
27351         * modules/unicase/u8-is-casefolded: New file.
27352
27353         Tests for module 'unicase/u32-is-titlecase'.
27354         * modules/unicase/u32-is-titlecase-tests: New file.
27355         * tests/unicase/test-u32-is-titlecase.c: New file.
27356
27357         Tests for module 'unicase/u16-is-titlecase'.
27358         * modules/unicase/u16-is-titlecase-tests: New file.
27359         * tests/unicase/test-u16-is-titlecase.c: New file.
27360
27361         Tests for module 'unicase/u8-is-titlecase'.
27362         * modules/unicase/u8-is-titlecase-tests: New file.
27363         * tests/unicase/test-u8-is-titlecase.c: New file.
27364         * tests/unicase/test-is-titlecase.h: New file.
27365
27366         New module 'unicase/u32-is-titlecase'.
27367         * lib/unicase/u32-is-titlecase.c: New file.
27368         * modules/unicase/u32-is-titlecase: New file.
27369
27370         New module 'unicase/u16-is-titlecase'.
27371         * lib/unicase/u16-is-titlecase.c: New file.
27372         * modules/unicase/u16-is-titlecase: New file.
27373
27374         New module 'unicase/u8-is-titlecase'.
27375         * lib/unicase/u8-is-titlecase.c: New file.
27376         * modules/unicase/u8-is-titlecase: New file.
27377
27378         Tests for module 'unicase/u32-is-lowercase'.
27379         * modules/unicase/u32-is-lowercase-tests: New file.
27380         * tests/unicase/test-u32-is-lowercase.c: New file.
27381
27382         Tests for module 'unicase/u16-is-lowercase'.
27383         * modules/unicase/u16-is-lowercase-tests: New file.
27384         * tests/unicase/test-u16-is-lowercase.c: New file.
27385
27386         Tests for module 'unicase/u8-is-lowercase'.
27387         * modules/unicase/u8-is-lowercase-tests: New file.
27388         * tests/unicase/test-u8-is-lowercase.c: New file.
27389         * tests/unicase/test-is-lowercase.h: New file.
27390
27391         New module 'unicase/u32-is-lowercase'.
27392         * lib/unicase/u32-is-lowercase.c: New file.
27393         * modules/unicase/u32-is-lowercase: New file.
27394
27395         New module 'unicase/u16-is-lowercase'.
27396         * lib/unicase/u16-is-lowercase.c: New file.
27397         * modules/unicase/u16-is-lowercase: New file.
27398
27399         New module 'unicase/u8-is-lowercase'.
27400         * lib/unicase/u8-is-lowercase.c: New file.
27401         * modules/unicase/u8-is-lowercase: New file.
27402
27403         Tests for module 'unicase/u32-is-uppercase'.
27404         * modules/unicase/u32-is-uppercase-tests: New file.
27405         * tests/unicase/test-u32-is-uppercase.c: New file.
27406
27407         Tests for module 'unicase/u16-is-uppercase'.
27408         * modules/unicase/u16-is-uppercase-tests: New file.
27409         * tests/unicase/test-u16-is-uppercase.c: New file.
27410
27411         Tests for module 'unicase/u8-is-uppercase'.
27412         * modules/unicase/u8-is-uppercase-tests: New file.
27413         * tests/unicase/test-u8-is-uppercase.c: New file.
27414         * tests/unicase/test-is-uppercase.h: New file.
27415
27416         New module 'unicase/u32-is-uppercase'.
27417         * lib/unicase/u32-is-uppercase.c: New file.
27418         * modules/unicase/u32-is-uppercase: New file.
27419
27420         New module 'unicase/u16-is-uppercase'.
27421         * lib/unicase/u16-is-uppercase.c: New file.
27422         * modules/unicase/u16-is-uppercase: New file.
27423
27424         New module 'unicase/u8-is-uppercase'.
27425         * lib/unicase/u8-is-uppercase.c: New file.
27426         * modules/unicase/u8-is-uppercase: New file.
27427
27428         New module 'unicase/u32-is-invariant'.
27429         * lib/unicase/u32-is-invariant.c: New file.
27430         * modules/unicase/u32-is-invariant: New file.
27431
27432         New module 'unicase/u16-is-invariant'.
27433         * lib/unicase/u16-is-invariant.c: New file.
27434         * modules/unicase/u16-is-invariant: New file.
27435
27436         New module 'unicase/u8-is-invariant'.
27437         * lib/unicase/u8-is-invariant.c: New file.
27438         * lib/unicase/invariant.h: New file.
27439         * lib/unicase/u-is-invariant.h: New file.
27440         * modules/unicase/u8-is-invariant: New file.
27441
27442         Tests for module 'unicase/u32-casecoll'.
27443         * modules/unicase/u32-casecoll-tests: New file.
27444         * tests/unicase/test-u32-casecoll.c: New file.
27445
27446         Tests for module 'unicase/u16-casecoll'.
27447         * modules/unicase/u16-casecoll-tests: New file.
27448         * tests/unicase/test-u16-casecoll.c: New file.
27449
27450         Tests for module 'unicase/u8-casecoll'.
27451         * modules/unicase/u8-casecoll-tests: New file.
27452         * tests/unicase/test-u8-casecoll.c: New file.
27453
27454         New module 'unicase/u32-casecoll'.
27455         * lib/unicase/u32-casecoll.c: New file.
27456         * modules/unicase/u32-casecoll: New file.
27457
27458         New module 'unicase/u16-casecoll'.
27459         * lib/unicase/u16-casecoll.c: New file.
27460         * modules/unicase/u16-casecoll: New file.
27461
27462         New module 'unicase/u8-casecoll'.
27463         * lib/unicase/u8-casecoll.c: New file.
27464         * lib/unicase/u-casecoll.h: New file.
27465         * modules/unicase/u8-casecoll: New file.
27466
27467         New module 'unicase/u32-casexfrm'.
27468         * lib/unicase/u32-casexfrm.c: New file.
27469         * modules/unicase/u32-casexfrm: New file.
27470
27471         New module 'unicase/u16-casexfrm'.
27472         * lib/unicase/u16-casexfrm.c: New file.
27473         * modules/unicase/u16-casexfrm: New file.
27474
27475         New module 'unicase/u8-casexfrm'.
27476         * lib/unicase/u8-casexfrm.c: New file.
27477         * lib/unicase/u-casexfrm.h: New file.
27478         * modules/unicase/u8-casexfrm: New file.
27479
27480         Tests for module 'unicase/u32-casecmp'.
27481         * modules/unicase/u32-casecmp-tests: New file.
27482         * tests/unicase/test-u32-casecmp.c: New file.
27483
27484         Tests for module 'unicase/u16-casecmp'.
27485         * modules/unicase/u16-casecmp-tests: New file.
27486         * tests/unicase/test-u16-casecmp.c: New file.
27487
27488         Tests for module 'unicase/u8-casecmp'.
27489         * modules/unicase/u8-casecmp-tests: New file.
27490         * tests/unicase/test-u8-casecmp.c: New file.
27491         * tests/unicase/test-casecmp.h: New file.
27492
27493         New module 'unicase/u32-casecmp'.
27494         * lib/unicase/u32-casecmp.c: New file.
27495         * modules/unicase/u32-casecmp: New file.
27496
27497         New module 'unicase/u16-casecmp'.
27498         * lib/unicase/u16-casecmp.c: New file.
27499         * modules/unicase/u16-casecmp: New file.
27500
27501         New module 'unicase/u8-casecmp'.
27502         * lib/unicase/u8-casecmp.c: New file.
27503         * lib/unicase/u-casecmp.h: New file.
27504         * modules/unicase/u8-casecmp: New file.
27505
27506         Tests for module 'unicase/u32-casefold'.
27507         * modules/unicase/u32-casefold-tests: New file.
27508         * tests/unicase/test-u32-casefold.c: New file.
27509
27510         Tests for module 'unicase/u16-casefold'.
27511         * modules/unicase/u16-casefold-tests: New file.
27512         * tests/unicase/test-u16-casefold.c: New file.
27513
27514         Tests for module 'unicase/u8-casefold'.
27515         * modules/unicase/u8-casefold-tests: New file.
27516         * tests/unicase/test-u8-casefold.c: New file.
27517
27518         New module 'unicase/u32-casefold'.
27519         * lib/unicase/u32-casefold.c: New file.
27520         * modules/unicase/u32-casefold: New file.
27521
27522         New module 'unicase/u16-casefold'.
27523         * lib/unicase/u16-casefold.c: New file.
27524         * modules/unicase/u16-casefold: New file.
27525
27526         New module 'unicase/u8-casefold'.
27527         * lib/unicase/u8-casefold.c: New file.
27528         * lib/unicase/u-casefold.h: New file.
27529         * modules/unicase/u8-casefold: New file.
27530
27531         New module 'unicase/tocasefold'.
27532         * lib/unicase/casefold.h: New file.
27533         * lib/unicase/tocasefold.c: New file.
27534         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
27535         * modules/unicase/tocasefold: New file.
27536
27537         Tests for module 'unicase/u32-totitle'.
27538         * modules/unicase/u32-totitle-tests: New file.
27539         * tests/unicase/test-u32-totitle.c: New file.
27540
27541         Tests for module 'unicase/u16-totitle'.
27542         * modules/unicase/u16-totitle-tests: New file.
27543         * tests/unicase/test-u16-totitle.c: New file.
27544
27545         Tests for module 'unicase/u8-totitle'.
27546         * modules/unicase/u8-totitle-tests: New file.
27547         * tests/unicase/test-u8-totitle.c: New file.
27548
27549         New module 'unicase/u32-totitle'.
27550         * lib/unicase/u32-totitle.c: New file.
27551         * modules/unicase/u32-totitle: New file.
27552
27553         New module 'unicase/u16-totitle'.
27554         * lib/unicase/u16-totitle.c: New file.
27555         * modules/unicase/u16-totitle: New file.
27556
27557         New module 'unicase/u8-totitle'.
27558         * lib/unicase/u8-totitle.c: New file.
27559         * lib/unicase/u-totitle.h: New file.
27560         * modules/unicase/u8-totitle: New file.
27561
27562         Tests for module 'unicase/u32-tolower'.
27563         * modules/unicase/u32-tolower-tests: New file.
27564         * tests/unicase/test-u32-tolower.c: New file.
27565
27566         Tests for module 'unicase/u16-tolower'.
27567         * modules/unicase/u16-tolower-tests: New file.
27568         * tests/unicase/test-u16-tolower.c: New file.
27569
27570         Tests for module 'unicase/u8-tolower'.
27571         * modules/unicase/u8-tolower-tests: New file.
27572         * tests/unicase/test-u8-tolower.c: New file.
27573
27574         New module 'unicase/u32-tolower'.
27575         * lib/unicase/u32-tolower.c: New file.
27576         * modules/unicase/u32-tolower: New file.
27577
27578         New module 'unicase/u16-tolower'.
27579         * lib/unicase/u16-tolower.c: New file.
27580         * modules/unicase/u16-tolower: New file.
27581
27582         New module 'unicase/u8-tolower'.
27583         * lib/unicase/u8-tolower.c: New file.
27584         * modules/unicase/u8-tolower: New file.
27585
27586         Tests for module 'unicase/u32-toupper'.
27587         * modules/unicase/u32-toupper-tests: New file.
27588         * tests/unicase/test-u32-toupper.c: New file.
27589
27590         Tests for module 'unicase/u16-toupper'.
27591         * modules/unicase/u16-toupper-tests: New file.
27592         * tests/unicase/test-u16-toupper.c: New file.
27593
27594         Tests for module 'unicase/u8-toupper'.
27595         * modules/unicase/u8-toupper-tests: New file.
27596         * tests/unicase/test-u8-toupper.c: New file.
27597
27598         New module 'unicase/u32-toupper'.
27599         * lib/unicase/u32-toupper.c: New file.
27600         * modules/unicase/u32-toupper: New file.
27601
27602         New module 'unicase/u16-toupper'.
27603         * lib/unicase/u16-toupper.c: New file.
27604         * modules/unicase/u16-toupper: New file.
27605
27606         New module 'unicase/u8-toupper'.
27607         * lib/unicase/u8-toupper.c: New file.
27608         * modules/unicase/u8-toupper: New file.
27609
27610         New module 'unicase/u32-casemap'.
27611         * lib/unicase/u32-casemap.c: New file.
27612         * modules/unicase/u32-casemap: New file.
27613
27614         New module 'unicase/u16-casemap'.
27615         * lib/unicase/u16-casemap.c: New file.
27616         * modules/unicase/u16-casemap: New file.
27617
27618         New module 'unicase/u8-casemap'.
27619         * lib/unicase/unicasemap.h: New file.
27620         * lib/unicase/u8-casemap.c: New file.
27621         * lib/unicase/u-casemap.h: New file.
27622         * modules/unicase/u8-casemap: New file.
27623
27624         New module 'unicase/special-casing'.
27625         * lib/unicase/special-casing.h: New file.
27626         * lib/unicase/special-casing.c: New file.
27627         * lib/unicase/special-casing-table.gperf: New file, generated by
27628         gen-uni-tables.c.
27629         * modules/unicase/special-casing: New file.
27630
27631         Tests for module 'unicase/locale-language'.
27632         * modules/unicase/locale-language-tests: New file.
27633         * tests/unicase/test-locale-language.sh: New file.
27634         * tests/unicase/test-locale-language.c: New file.
27635
27636         New module 'unicase/locale-language'.
27637         * lib/unicase/locale-language.c: New file.
27638         * lib/unicase/locale-languages.gperf: New file.
27639         * modules/unicase/locale-language: New file.
27640
27641         Generate more tables for case conversion and case folding.
27642         * lib/gen-uni-tables.c (SCC_*): New enum items.
27643         (struct special_casing_rule): New type.
27644         (casing_rules, num_casing_rules, allocated_casing_rules): New
27645         variables.
27646         (add_casing_rule, fill_casing_rules): New functions.
27647         (struct casefold_rule): New type.
27648         (casefolding_rules, num_casefolding_rules,
27649         allocated_casefolding_rules): New variables.
27650         (fill_casefolding_rules): New function.
27651         (unicode_casefold): New variable.
27652         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
27653         sort_casing_rules, output_casing_rules): New functions.
27654         (main): Accept to more arguments: SpecialCasing.txt and
27655         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
27656         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
27657         Output mapping for casefolding.
27658
27659         * lib/unicase.h: Include stdbool.h, uninorm.h.
27660         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
27661         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
27662         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
27663         arguments.
27664         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
27665         resultp arguments.
27666         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
27667         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
27668         resultp arguments.
27669         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
27670         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
27671         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
27672         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
27673         declarations.
27674         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
27675
27676 2009-03-08  Bruno Haible  <bruno@clisp.org>
27677
27678         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
27679         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
27680         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
27681         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
27682
27683 2009-03-07  Bruno Haible  <bruno@clisp.org>
27684
27685         Adjust u*_normcmp, u*_normcoll API.
27686         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
27687         u16_normcoll, u32_normcoll): Change failure conventions.
27688         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
27689         errno and return -1.
27690         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
27691
27692 2009-03-07  Bruno Haible  <bruno@clisp.org>
27693
27694         Tests for module 'uninorm/u32-normcoll'.
27695         * modules/uninorm/u32-normcoll-tests: New file.
27696         * tests/uninorm/test-u32-normcoll.c: New file.
27697
27698         Tests for module 'uninorm/u16-normcoll'.
27699         * modules/uninorm/u16-normcoll-tests: New file.
27700         * tests/uninorm/test-u16-normcoll.c: New file.
27701
27702         Tests for module 'uninorm/u8-normcoll'.
27703         * modules/uninorm/u8-normcoll-tests: New file.
27704         * tests/uninorm/test-u8-normcoll.c: New file.
27705
27706 2009-03-07  Bruno Haible  <bruno@clisp.org>
27707
27708         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
27709         tests/uninorm/test-u32-normcmp.c.
27710         * tests/uninorm/test-u32-normcmp.c: Include it.
27711         (test_nonascii): New function, extracted from main. Add some more
27712         tests.
27713         (main): Invoke test_ascii and test_nonascii.
27714         * modules/uninorm/u32-normcmp-tests (Files): Add
27715         tests/uninorm/test-u32-normcmp.h.
27716         (Depends-on): Remove uninorm/u32-normcmp.
27717
27718         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
27719         tests/uninorm/test-u16-normcmp.c.
27720         * tests/uninorm/test-u16-normcmp.c: Include it.
27721         (test_nonascii): New function, extracted from main. Add some more
27722         tests.
27723         (main): Invoke test_ascii and test_nonascii.
27724         * modules/uninorm/u16-normcmp-tests (Files): Add
27725         tests/uninorm/test-u16-normcmp.h.
27726         (Depends-on): Remove uninorm/u16-normcmp.
27727
27728         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
27729         tests/uninorm/test-u8-normcmp.c.
27730         * tests/uninorm/test-u8-normcmp.c: Include it.
27731         (test_nonascii): New function, extracted from main. Add some more
27732         tests.
27733         (main): Invoke test_ascii and test_nonascii.
27734         * modules/uninorm/u8-normcmp-tests (Files): Add
27735         tests/uninorm/test-u8-normcmp.h.
27736         (Depends-on): Remove uninorm/u8-normcmp.
27737
27738 2009-03-07  Bruno Haible  <bruno@clisp.org>
27739
27740         New module 'uninorm/u32-normcoll'.
27741         * lib/uninorm/u32-normcoll.c: New file.
27742         * modules/uninorm/u32-normcoll: New file.
27743
27744         New module 'uninorm/u16-normcoll'.
27745         * lib/uninorm/u16-normcoll.c: New file.
27746         * modules/uninorm/u16-normcoll: New file.
27747
27748         New module 'uninorm/u8-normcoll'.
27749         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
27750         declarations.
27751         * lib/uninorm/u8-normcoll.c: New file.
27752         * lib/uninorm/u-normcoll.h: New file.
27753         * modules/uninorm/u8-normcoll: New file.
27754
27755         New module 'uninorm/u32-normxfrm'.
27756         * lib/uninorm/u32-normxfrm.c: New file.
27757         * modules/uninorm/u32-normxfrm: New file.
27758
27759         New module 'uninorm/u16-normxfrm'.
27760         * lib/uninorm/u16-normxfrm.c: New file.
27761         * modules/uninorm/u16-normxfrm: New file.
27762
27763         New module 'uninorm/u8-normxfrm'.
27764         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
27765         declarations.
27766         * lib/uninorm/u8-normxfrm.c: New file.
27767         * lib/uninorm/u-normxfrm.h: New file.
27768         * modules/uninorm/u8-normxfrm: New file.
27769
27770 2009-03-07  Bruno Haible  <bruno@clisp.org>
27771
27772         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
27773         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
27774         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
27775
27776 2009-03-07  Bruno Haible  <bruno@clisp.org>
27777
27778         New module 'memxfrm'.
27779         * lib/memxfrm.h: New file.
27780         * lib/memxfrm.c: New file.
27781         * modules/memxfrm: New file.
27782
27783 2009-03-07  Bruno Haible  <bruno@clisp.org>
27784
27785         New module 'memcmp2'.
27786         * lib/memcmp2.h: New file.
27787         * lib/memcmp2.c: New file.
27788         * modules/memcmp2: New file.
27789
27790 2009-03-07  Bruno Haible  <bruno@clisp.org>
27791
27792         Tests for module 'uninorm/decomposing-form'.
27793         * modules/uninorm/decomposing-form-tests: New file.
27794         * tests/uninorm/test-decomposing-form.c: New file.
27795
27796         New module 'uninorm/decomposing-form'.
27797         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
27798         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
27799         Add 'decomposing_variant' field.
27800         * lib/uninorm/decomposing-form.c: New file.
27801         * lib/uninorm/nfc.c (uninorm_nfc): Update.
27802         * lib/uninorm/nfd.c (uninorm_nfd): Update.
27803         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
27804         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
27805         * modules/uninorm/decomposing-form: New file.
27806         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
27807         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
27808
27809 2009-03-07  Bruno Haible  <bruno@clisp.org>
27810
27811         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
27812         strings.
27813
27814 2009-03-06  Bruno Haible  <bruno@clisp.org>
27815
27816         Tests for module 'uninorm/u32-normcmp'.
27817         * tests/uninorm/test-u32-normcmp.c: New file.
27818         * modules/uninorm/u32-normcmp-tests: New file.
27819
27820         Tests for module 'uninorm/u16-normcmp'.
27821         * tests/uninorm/test-u16-normcmp.c: New file.
27822         * modules/uninorm/u16-normcmp-tests: New file.
27823
27824         Tests for module 'uninorm/u8-normcmp'.
27825         * tests/uninorm/test-u8-normcmp.c: New file.
27826         * modules/uninorm/u8-normcmp-tests: New file.
27827
27828         New module 'uninorm/u32-normcmp'.
27829         * lib/uninorm/u32-normcmp.c: New file.
27830         * modules/uninorm/u32-normcmp: New file.
27831
27832         New module 'uninorm/u16-normcmp'.
27833         * lib/uninorm/u16-normcmp.c: New file.
27834         * modules/uninorm/u16-normcmp: New file.
27835
27836         New module 'uninorm/u8-normcmp'.
27837         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
27838         declarations.
27839         * lib/uninorm/u8-normcmp.c: New file.
27840         * lib/uninorm/u-normcmp.h: New file.
27841         * modules/uninorm/u8-normcmp: New file.
27842
27843 2009-03-06  Bruno Haible  <bruno@clisp.org>
27844
27845         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
27846         Reported by Eric Blake.
27847
27848 2009-03-06  Eric Blake  <ebb9@byu.net>
27849             Bruno Haible  <bruno@clisp.org>
27850
27851         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
27852         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
27853         condition.
27854         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
27855         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
27856         condition.
27857         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
27858
27859 2009-03-06  Eric Blake  <ebb9@byu.net>
27860
27861         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
27862         to avoid compiler warnings.
27863         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
27864
27865 2009-03-05  Bruno Haible  <bruno@clisp.org>
27866
27867         * tests/test-ftell.c (main): Disable test beyond end of file on
27868         FreeMiNT.
27869         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
27870
27871 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
27872
27873         * lib/filevercmp.c: Move hidden files up in ordering.
27874         * tests/test-filevercmp.c: Add tests for hidden files.
27875
27876 2009-03-04  Bruno Haible  <bruno@clisp.org>
27877
27878         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
27879         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
27880         AM_CFLAGS.
27881         Reported by Simon Josefsson.
27882
27883 2009-03-03  Bruno Haible  <bruno@clisp.org>
27884
27885         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
27886         Reported by Simon Josefsson.
27887
27888         * doc/ld-version-script.texi: Update node reference.
27889
27890 2009-03-03  Bruno Haible  <bruno@clisp.org>
27891
27892         * modules/visibility (License): Change to 'unlimited'.
27893         Suggested by Simon Josefsson.
27894
27895 2009-03-03  Jim Meyering  <meyering@redhat.com>
27896
27897         unlinkdir: cannot_unlink_dir may modify process state
27898         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
27899         it's neither thread-safe nor appropriate for use in a library.
27900
27901 2009-03-03  Eric Blake  <ebb9@byu.net>
27902
27903         test-closein: silence test under Darwin
27904         * tests/test-closein.sh: Ignore stderr from cat, since we don't
27905         care if it dies from EPIPE or EBADF.
27906
27907 2009-03-03  Bruno Haible  <bruno@clisp.org>
27908
27909         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
27910         earlier.
27911         * doc/visibility.texi: Fix @node and @section.
27912
27913 2009-03-03  Simon Josefsson  <simon@josefsson.org>
27914
27915         * doc/gnulib.texi: Link to sections for ld version script and
27916         visibility.
27917         * doc/visibility.texi: Add @node and @section.
27918         * modules/ld-version-script: New module.
27919         * m4/ld-version-script.m4: New file.
27920         * doc/ld-version-script.texi: New file.
27921
27922 2009-03-02  David Lutterkort  <lutter@redhat.com>
27923
27924         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
27925         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27926
27927 2009-03-02  Bruno Haible  <bruno@clisp.org>
27928
27929         * doc/visibility.texi: Mention libtool's -export-symbols option.
27930
27931 2009-03-02  Jim Meyering  <meyering@redhat.com>
27932
27933         announce-gen: new option: --no-print-checksums
27934         * build-aux/announce-gen (usage): Describe it.
27935         (print_checksums): Print a newline here, not in the [*] footnote.
27936         (main): Honor it.
27937
27938 2009-03-01  Bruno Haible  <bruno@clisp.org>
27939
27940         Use socklen_t in the native Windows replacements prototypes.
27941         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
27942         instead of 'int'.
27943         * lib/getsockopt.c (rpl_getsockopt): Likewise.
27944         * lib/setsockopt.c (rpl_setsockopt): Likewise.
27945         * modules/getsockopt (Depends-on): Add socklen.
27946         * modules/setsockopt (Depends-on): Add socklen.
27947
27948 2009-03-01  Bruno Haible  <bruno@clisp.org>
27949
27950         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
27951         least 4.2.
27952
27953 2009-03-01  Eric Blake  <ebb9@byu.net>
27954             Bruno Haible  <bruno@clisp.org>
27955
27956         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
27957         error messages.
27958         * lib/wait-process.c (wait_subprocess): Omit error message about
27959         deadly signal sent to the child of termsigp != NULL.
27960
27961 2009-03-01  Eric Blake  <ebb9@byu.net>
27962
27963         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
27964
27965 2009-03-01  Bruno Haible  <bruno@clisp.org>
27966
27967         Avoid a gcc warning.
27968         * tests/test-sched.c (b): Make global.
27969         Reported by Eric Blake.
27970
27971 2009-01-19  Martin Lambers  <marlam@marlam.de>
27972
27973         Provide POSIX semantics for socket timeout options on W32.
27974         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
27975         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
27976         * modules/setsockopt: Depend on sys_time module for struct timeval.
27977         * modules/getsockopt: Depend on sys_time module for struct timeval.
27978
27979 2009-03-01  Simon Josefsson  <simon@josefsson.org>
27980
27981         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
27982         __USE_GNU, for consistency with netdb.in.h.
27983         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
27984
27985 2009-03-01  Bruno Haible  <bruno@clisp.org>
27986
27987         More support for FreeMiNT.
27988         * lib/fseeko.c (rpl_fseeko): Complete last commit.
27989         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
27990
27991 2009-03-01  Bruno Haible  <bruno@clisp.org>
27992
27993         More support for FreeMiNT.
27994         * lib/fpurge.c (fpurge): Correct last commit.
27995         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
27996
27997 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27998
27999         Fix unportable awk script in vc-list-files.
28000         * build-aux/vc-list-files: In the replacement awk script, use
28001         substr with a second argument of 1, not zero.
28002         Report by Simon Josefsson.
28003
28004 2009-02-28  Bruno Haible  <bruno@clisp.org>
28005
28006         More support for FreeMiNT.
28007         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
28008         to FreeMiNT today.
28009         * lib/fwriting.c (fwriting): Likewise.
28010         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
28011
28012 2009-02-28  Bruno Haible  <bruno@clisp.org>
28013
28014         * tests/test-freadseek.c (main): Disable test beyond end of file on
28015         FreeMiNT.
28016         * tests/test-ftello.c (main): Likewise.
28017         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
28018
28019 2009-02-28  Bruno Haible  <bruno@clisp.org>
28020
28021         Add tentative support for FreeMiNT.
28022         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
28023         * lib/fpurge.c (fpurge): Likewise.
28024         * lib/freadable.c (freadable): Likewise.
28025         * lib/freading.c (freading): Likewise.
28026         * lib/freadptr.c (freadptr): Likewise.
28027         * lib/freadseek.c (freadptrinc): Likewise.
28028         * lib/fseeko.c (rpl_fseeko): Likewise.
28029         * lib/fseterr.c (fseterr): Likewise.
28030         * lib/fwritable.c (fwritable): Likewise.
28031         * lib/fwriting.c (fwriting): Likewise.
28032         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
28033         Hourihane.
28034         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
28035
28036 2009-02-28  Bruno Haible  <bruno@clisp.org>
28037
28038         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
28039         SIGCHLD.
28040         Reported by Jim Meyering.
28041
28042 2009-02-28  Bruno Haible  <bruno@clisp.org>
28043
28044         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
28045         Mention the results of these tests on various platforms.
28046         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
28047         order.
28048         * doc/posix-functions/printf.texi: Likewise.
28049         * doc/posix-functions/snprintf.texi: Likewise.
28050         * doc/posix-functions/sprintf.texi: Likewise.
28051         * doc/posix-functions/vfprintf.texi: Likewise.
28052         * doc/posix-functions/vprintf.texi: Likewise.
28053         * doc/posix-functions/vsnprintf.texi: Likewise.
28054         * doc/posix-functions/vsprintf.texi: Likewise.
28055         * doc/glibc-functions/obstack_printf.texi: Likewise.
28056         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
28057
28058 2009-02-28  Bruno Haible  <bruno@clisp.org>
28059
28060         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
28061         Reported by Loïc Minier <lool@dooz.org>.
28062
28063 2009-02-27  Bruno Haible  <bruno@clisp.org>
28064
28065         * gnulib-tool (func_import): Make the sed expression used to create the
28066         sed script for updating the .gitignore file POSIX compliant.
28067         Reported by Eric Blake.
28068
28069 2009-02-27  Bruno Haible  <bruno@clisp.org>
28070
28071         * gnulib-tool (sed): Don't alias as "sed --posix".
28072         Reported by Eric Blake.
28073
28074 2009-02-27  Bruno Haible  <bruno@clisp.org>
28075
28076         Avoid test link errors.
28077         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
28078         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
28079         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
28080         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
28081         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28082
28083 2009-02-27  Bruno Haible  <bruno@clisp.org>
28084
28085         Avoid spurious "(cached)" in configure output.
28086         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
28087         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
28088         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
28089         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
28090         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
28091         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
28092         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
28093         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
28094         Reported by Eric Blake.
28095
28096 2009-02-27  Eric Blake  <ebb9@byu.net>
28097
28098         printf: fix regression in previous patch
28099         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
28100
28101 2009-02-27  Bruno Haible  <bruno@clisp.org>
28102
28103         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
28104         value.
28105         * lib/stdint.in.h: Likewise.
28106         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
28107
28108 2009-02-27  Eric Blake  <ebb9@byu.net>
28109
28110         doc: mention more functions added in cygwin 1.7.0
28111         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
28112         addition.
28113         * doc/posix-functions/open_wmemstream.texi: Likewise.
28114         * doc/posix-functions/wcsnlen.texi: Likewise.
28115         * doc/posix-functions/wcsnrtombs.texi: Likewise.
28116         * doc/posix-functions/wcstod.texi: Likewise.
28117         * doc/posix-functions/wcstof.texi: Likewise.
28118         * doc/posix-functions/wcstoimax.texi: Likewise.
28119         * doc/posix-functions/wcstok.texi: Likewise.
28120         * doc/posix-functions/wcstoumax.texi: Likewise.
28121
28122         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
28123         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
28124         * doc/posix-functions/fprintf.texi: Update.
28125         * doc/posix-functions/printf.texi: Update.
28126         * doc/posix-functions/snprintf.texi: Update.
28127         * doc/posix-functions/sprintf.texi: Update.
28128         * doc/posix-functions/vfprintf.texi: Update.
28129         * doc/posix-functions/vprintf.texi: Update.
28130         * doc/posix-functions/vsnprintf.texi: Update.
28131         * doc/posix-functions/vsprintf.texi: Update.
28132         * doc/glibc-functions/obstack_printf.texi: Update.
28133         * doc/glibc-functions/obstack_vprintf.texi: Update.
28134
28135 2009-02-26  Eric Blake  <ebb9@byu.net>
28136
28137         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
28138         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
28139         compilation bug by using runtime conversion.
28140         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
28141         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
28142         * modules/ceill-tests (Files): Use nan.h.
28143         * modules/floorl-tests (Files): Likewise.
28144         * modules/frexpl-tests (Files): Likewise.
28145         * modules/isnanl-tests (Files): Likewise.
28146         * modules/ldexpl-tests (Files): Likewise.
28147         * modules/roundl-tests (Files): Likewise.
28148         * modules/truncl-tests (Files): Likewise.
28149         * tests/test-ceill.c (main): Use a working NaN.
28150         * tests/test-floorl.c (main): Likewise.
28151         * tests/test-frexpl.c (main): Likewise.
28152         * tests/test-isnan.c (test_long_double): Likewise.
28153         * tests/test-isnanl.h (main): Likewise.
28154         * tests/test-ldexpl.h (main): Likewise.
28155         * tests/test-roundl.h (main): Likewise.
28156         * tests/test-truncl.h (main): Likewise.
28157         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
28158
28159 2009-02-26  Eric Blake  <ebb9@byu.net>
28160             Bruno Haible  <bruno@clisp.org>
28161
28162         Work around a *printf bug with %ls on Solaris.
28163         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
28164         precision is specified, sprintf stops converting the wide string
28165         argument when the number of bytes that have been produced by this
28166         conversion equals or exceeds the precision.
28167         * doc/posix-functions/fprintf.texi: Update.
28168         * doc/posix-functions/printf.texi: Update.
28169         * doc/posix-functions/snprintf.texi: Update.
28170         * doc/posix-functions/sprintf.texi: Update.
28171         * doc/posix-functions/vfprintf.texi: Update.
28172         * doc/posix-functions/vprintf.texi: Update.
28173         * doc/posix-functions/vsnprintf.texi: Update.
28174         * doc/posix-functions/vsprintf.texi: Update.
28175         * doc/glibc-functions/obstack_printf.texi: Update.
28176         * doc/glibc-functions/obstack_vprintf.texi: Update.
28177
28178 2009-02-26  Eric Blake  <ebb9@byu.net>
28179
28180         stdlib: favor compiler check of random.h
28181         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
28182         to avoid an ObjC random.h installed by Swarm.
28183
28184 2009-02-26  Bruno Haible  <bruno@clisp.org>
28185
28186         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
28187         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
28188         Reported by Gary V. Vaughan <gary@gnu.org>.
28189
28190 2009-02-26  Bruno Haible  <bruno@clisp.org>
28191
28192         Fix *printf behaviour regarding the %ls directive.
28193         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
28194         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
28195         NEED_PRINTF_DIRECTIVE_LS.
28196         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
28197         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
28198         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
28199         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
28200         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
28201         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
28202         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
28203         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
28204         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
28205         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
28206         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
28207         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
28208         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
28209         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
28210         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
28211         * doc/posix-functions/fprintf.texi: Update.
28212         * doc/posix-functions/printf.texi: Update.
28213         * doc/posix-functions/snprintf.texi: Update.
28214         * doc/posix-functions/sprintf.texi: Update.
28215         * doc/posix-functions/vfprintf.texi: Update.
28216         * doc/posix-functions/vprintf.texi: Update.
28217         * doc/posix-functions/vsnprintf.texi: Update.
28218         * doc/posix-functions/vsprintf.texi: Update.
28219         * doc/glibc-functions/obstack_printf.texi: Update.
28220         * doc/glibc-functions/obstack_vprintf.texi: Update.
28221         Reported by Eric Blake.
28222
28223 2009-02-25  Bruno Haible  <bruno@clisp.org>
28224
28225         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
28226         with known value.
28227         Reported by Gary V. Vaughan <gary@gnu.org>.
28228
28229 2009-02-25  Bruno Haible  <bruno@clisp.org>
28230
28231         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
28232         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
28233         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
28234         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
28235         Reported by Gary V. Vaughan <gary@gnu.org>.
28236
28237 2009-02-25  Bruno Haible  <bruno@clisp.org>
28238
28239         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
28240         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
28241         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
28242         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
28243         Reported by Gary V. Vaughan <gary@gnu.org>.
28244
28245 2009-02-25  Eric Blake  <ebb9@byu.net>
28246
28247         tests: skip fseek/ftell tests if ungetc is broken
28248         * m4/ungetc.m4: New file.
28249         * modules/fseek-tests: Split test, so ungetc dependency is
28250         separate from rest of test.
28251         * modules/fseeko-tests: Likewise.
28252         * modules/ftell-tests: Likewise.
28253         * modules/ftello-tests: Likewise.
28254         * tests/test-fseek.c (main): Isolate ungetc dependency.
28255         * tests/test-fseeko.c (main): Likewise.
28256         * tests/test-ftell.c (main): Likewise.
28257         * tests/test-ftello.c (main): Likewise.
28258         * tests/test-fseek2.sh: New file.
28259         * tests/test-fseeko2.sh: Likewise.
28260         * tests/test-ftell2.sh: Likewise.
28261         * tests/test-ftello2.sh: Likewise.
28262
28263 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
28264
28265         test-getaddrinfo: fix usage of skip return code 77
28266         * tests/test-gettaddrinfo.c: Return skip code 77 only
28267         for first occurance of skip (4x77 is not 77)
28268
28269 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
28270
28271         strtod: avoid C99 decl-after-statement
28272         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
28273
28274 2009-02-24  Eric Blake  <ebb9@byu.net>
28275
28276         strtod: detect HP-UX 11.31 bug
28277         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
28278         Reported by Gary V. Vaughan.
28279
28280 2009-02-23  Bruno Haible  <bruno@clisp.org>
28281
28282         Fix invalid read past end of memory block.
28283         * lib/vasnprintf.c (DCHAR_SET): Define.
28284         (local_wcslen): Define only when needed.
28285         (local_strnlen, local_wcsnlen): New functions.
28286         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
28287         directives that involve a conversion ourselves.
28288         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
28289         wcsnlen, mbrtowc, wcrtomb.
28290         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
28291         * tests/test-vasprintf-posix.c (test_function): Likewise.
28292         * tests/test-snprintf-posix.h (test_function): Likewise.
28293         * tests/test-sprintf-posix.h (test_function): Likewise.
28294         Reported by Ben Pfaff <blp@cs.stanford.edu>.
28295
28296 2009-02-22  Bruno Haible  <bruno@clisp.org>
28297
28298         Implement new clarified decomposition of Hangul syllables.
28299         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
28300         of type LTV, return only a pairwise decomposition.
28301         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
28302         Likewise.
28303         * tests/uninorm/test-decomposition.c (main): Updated expected result.
28304         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
28305         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
28306
28307 2009-02-22  Bruno Haible  <bruno@clisp.org>
28308
28309         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
28310         zero-length results and shrink excess allocated memory.
28311         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
28312         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
28313         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
28314         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
28315         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
28316         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
28317         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
28318         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
28319         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
28320         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
28321         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
28322         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
28323
28324 2009-02-21  Bruno Haible  <bruno@clisp.org>
28325
28326         * doc/gnulib.texi: Include safe-alloc.texi earlier.
28327         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
28328         spaces after a period. Put a space between a macro name and its
28329         argument list. Trivial rewordings.
28330         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
28331         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
28332         (main): Return 0 explicitly.
28333
28334 2009-02-21  Bruno Haible  <bruno@clisp.org>
28335
28336         Tests for module 'uninorm/filter'.
28337         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
28338         * modules/uninorm/filter-tests: New file.
28339
28340         New module 'uninorm/filter'.
28341         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
28342         uninorm_filter_flush, uninorm_filter_free): New declarations.
28343         * lib/uninorm/uninorm-filter.c: New file.
28344         * modules/uninorm/filter: New file.
28345
28346 2009-02-21  Bruno Haible  <bruno@clisp.org>
28347
28348         Tests for module 'uninorm/nfkc'.
28349         * tests/uninorm/test-nfkc.c: New file.
28350         * tests/uninorm/test-u8-nfkc.c: New file.
28351         * tests/uninorm/test-u16-nfkc.c: New file.
28352         * tests/uninorm/test-u32-nfkc.c: New file.
28353         * tests/uninorm/test-u32-nfkc-big.sh: New file.
28354         * tests/uninorm/test-u32-nfkc-big.c: New file.
28355         * modules/uninorm/nfkc-tests: New file.
28356
28357         New module 'uninorm/nfkc'.
28358         * lib/uninorm/nfkc.c: New file.
28359         * modules/uninorm/nfkc: New file.
28360
28361         Tests for module 'uninorm/nfkd'.
28362         * tests/uninorm/test-nfkd.c: New file.
28363         * tests/uninorm/test-u8-nfkd.c: New file.
28364         * tests/uninorm/test-u16-nfkd.c: New file.
28365         * tests/uninorm/test-u32-nfkd.c: New file.
28366         * tests/uninorm/test-u32-nfkd-big.sh: New file.
28367         * tests/uninorm/test-u32-nfkd-big.c: New file.
28368         * modules/uninorm/nfkd-tests: New file.
28369
28370         New module 'uninorm/nfkd'.
28371         * lib/uninorm/nfkd.c: New file.
28372         * modules/uninorm/nfkd: New file.
28373
28374         Tests for module 'uninorm/nfc'.
28375         * tests/uninorm/test-nfc.c: New file.
28376         * tests/uninorm/test-u8-nfc.c: New file.
28377         * tests/uninorm/test-u16-nfc.c: New file.
28378         * tests/uninorm/test-u32-nfc.c: New file.
28379         * tests/uninorm/test-u32-nfc-big.sh: New file.
28380         * tests/uninorm/test-u32-nfc-big.c: New file.
28381         * modules/uninorm/nfc-tests: New file.
28382
28383         New module 'uninorm/nfc'.
28384         * lib/uninorm/nfc.c: New file.
28385         * modules/uninorm/nfc: New file.
28386
28387         Tests for module 'uninorm/nfd'.
28388         * tests/uninorm/test-nfd.c: New file.
28389         * tests/uninorm/test-u8-nfd.c: New file.
28390         * tests/uninorm/test-u16-nfd.c: New file.
28391         * tests/uninorm/test-u32-nfd.c: New file.
28392         * tests/uninorm/test-u32-nfd-big.sh: New file.
28393         * tests/uninorm/test-u32-nfd-big.c: New file.
28394         * tests/uninorm/test-u32-normalize-big.h: New file.
28395         * tests/uninorm/test-u32-normalize-big.c: New file.
28396         * tests/uninorm/NormalizationTest.txt: New file, created from
28397         Unicode 5.1.0 NormalizationTest.txt.
28398         * modules/uninorm/nfd-tests: New file.
28399
28400         New module 'uninorm/nfd'.
28401         * lib/uninorm/nfd.c: New file.
28402         * modules/uninorm/nfd: New file.
28403
28404         New module 'uninorm/u32-normalize'.
28405         * lib/uninorm/u32-normalize.c: New file.
28406         * modules/uninorm/u32-normalize: New file.
28407
28408         New module 'uninorm/u16-normalize'.
28409         * lib/uninorm/u16-normalize.c: New file.
28410         * modules/uninorm/u16-normalize: New file.
28411
28412         New module 'uninorm/u8-normalize'.
28413         * lib/uninorm/u8-normalize.c: New file.
28414         * lib/uninorm/normalize-internal.h: New file.
28415         * lib/uninorm/u-normalize-internal.h: New file.
28416         * modules/uninorm/u8-normalize: New file.
28417
28418         New module 'uninorm/decompose-internal'.
28419         * lib/uninorm/decompose-internal.c: New file.
28420         * modules/uninorm/decompose-internal: New file.
28421
28422         Tests for module 'uninorm/composition'.
28423         * tests/uninorm/test-composition.c: New file.
28424         * modules/uninorm/composition-tests: New file.
28425
28426         New module 'uninorm/composition'.
28427         * lib/uninorm/composition.c: New file.
28428         * lib/uninorm/composition-table.gperf: New file, generated by
28429         gen-uni-tables.
28430         * modules/uninorm/composition: New file.
28431
28432         Tests for module 'uninorm/compat-decomposition'.
28433         * tests/uninorm/test-compat-decomposition.c: New file.
28434         * modules/uninorm/compat-decomposition-tests: New file.
28435
28436         New module 'uninorm/compat-decomposition'.
28437         * lib/uninorm/decompose-internal.h: New file.
28438         * lib/uninorm/compat-decomposition.c: New file.
28439         * modules/uninorm/compat-decomposition: New file.
28440
28441         Tests for module 'uninorm/canonical-decomposition'.
28442         * tests/uninorm/test-canonical-decomposition.c: New file.
28443         * modules/uninorm/canonical-decomposition-tests: New file.
28444
28445         New module 'uninorm/canonical-decomposition'.
28446         * lib/uninorm/canonical-decomposition.c: New file.
28447         * modules/uninorm/canonical-decomposition: New file.
28448
28449         Tests for module 'uninorm/decomposition'.
28450         * tests/uninorm/test-decomposition.c: New file.
28451         * modules/uninorm/decomposition-tests: New file.
28452
28453         New module 'uninorm/decomposition'.
28454         * lib/uninorm/decomposition.c: New file.
28455         * modules/uninorm/decomposition: New file.
28456
28457         New module 'uninorm/decomposition-table'.
28458         * lib/uninorm/decomposition-table.h: New file.
28459         * lib/uninorm/decomposition-table.c: New file.
28460         * lib/uninorm/decomposition-table1.h: New file, generated by
28461         gen-uni-tables.
28462         * lib/uninorm/decomposition-table2.h: New file, generated by
28463         gen-uni-tables.
28464         * modules/uninorm/decomposition-table: New file.
28465
28466         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
28467         (UC_DECOMP_*): New enumeration items.
28468         (get_decomposition): New function.
28469         (struct decomp_table): New type.
28470         (output_decomposition, output_decomposition_tables): New functions.
28471         (unicode_composition_exclusions): New variable.
28472         (fill_composition_exclusions, debug_output_composition_tables): New
28473         functions.
28474         (main): Accept one more argument. Invoke fill_composition_exclusions.
28475         Output decomposition and composition tables.
28476
28477         New module 'uninorm/base'.
28478         * lib/uninorm.h: New file.
28479         * lib/unictype.h: Update comment.
28480         * modules/uninorm/base: New file.
28481
28482 2009-02-21  David Lutterkort  <lutter@redhat.com>
28483
28484         Tests for module 'safe-alloc'.
28485         * tests/test-safe-alloc.c: New file.
28486         * modules/safe-alloc-tests: New file.
28487
28488         New module 'safe-alloc'.
28489         * lib/safe-alloc.h: New file.
28490         * lib/safe-alloc.c: New file.
28491         * m4/safe-alloc.m4: New file.
28492         * modules/safe-alloc: New file.
28493         * doc/safe-alloc.texi: New file.
28494         * doc/gnulib.texi: Include it.
28495         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
28496         safe-alloc.
28497
28498 2009-02-18  Bruno Haible  <bruno@clisp.org>
28499
28500         Fix link error on non-glibc systems.
28501         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
28502         variable.
28503         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28504
28505 2009-02-18  Jim Meyering  <meyering@redhat.com>
28506
28507         fts: avoid used-uninitialized error due to recent change
28508         * lib/fts.c (fts_read): Guard uses of the new member,
28509         parent->fts_n_dirs_remaining, since it's not relevant for
28510         the parent of a directory specified on the command-line.
28511
28512 2009-02-17  James Youngman  <jay@gnu.org>
28513             Bruno Haible  <bruno@clisp.org>
28514
28515         * m4/include_next.m4: Reformulate comment.
28516
28517 2009-02-16  Jim Meyering  <meyering@redhat.com>
28518
28519         fts: add #if guards so that the fts_lgpl module still builds
28520         * lib/fts.c: Guard just-added hash-table-using parts with
28521         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
28522         Reported by Simon Josefsson.
28523
28524 2009-02-15  Bruno Haible  <bruno@clisp.org>
28525
28526         * modules/array-mergesort-tests: New file.
28527         * tests/test-array-mergesort.c: New file.
28528
28529         New module 'array-mergesort'.
28530         * modules/array-mergesort: New file.
28531         * lib/array-mergesort.h: New file.
28532
28533 2009-02-15  Bruno Haible  <bruno@clisp.org>
28534
28535         Fix 2009-02-07 commit.
28536         * lib/gen-uni-tables.c (output_predicate, output_category,
28537         output_combclass, output_bidi_category, output_decimal_digit,
28538         output_digit, output_numeric, output_mirror, output_scripts,
28539         output_ident_category, output_simple_mapping): Fix format directives.
28540         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
28541
28542 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
28543
28544         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
28545         fixes are available from IBM.
28546
28547 2009-02-13  Jim Meyering  <meyering@redhat.com>
28548
28549         fts: arrange not to stat non-directories in more cases
28550         This makes GNU find (when it doesn't need to stat each file)
28551         *much* more efficient at traversing reiserfs file systems.
28552         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
28553         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
28554         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
28555         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
28556         (leaf_optimization_applies): New function.
28557         (LCO_hash, LCO_compare): New helper functions.
28558         (link_count_optimize_ok): New function.
28559         (fts_stat): Initialize new member (if dir).
28560         (fts_read): Decrement parent's fts_n_dirs_remaining count if
28561         we've just stat'ed a directory.  Skip the stat call when possible.
28562         ---
28563         Note this AFS-related exchange:
28564         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
28565         and note find's pioctl call in find/fstype.c.
28566         But that is necessary only if you want to enable the
28567         optimization for AFS, and for now, I don't.
28568
28569         fts: move a function definition "up" (no semantic change)
28570         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
28571         "up" to precede upcoming use of a related function.
28572
28573 2009-02-11  Jim Meyering  <meyering@redhat.com>
28574
28575         fts: correct internal computation of nlinks (optimization-related)
28576         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
28577         whether the current entry is a directory, so don't test it.
28578
28579 2009-02-10  Bruno Haible  <bruno@clisp.org>
28580
28581         Tests for module 'uniwbrk/ulc-wordbreaks'.
28582         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
28583         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
28584         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
28585
28586         Tests for module 'uniwbrk/u32-wordbreaks'.
28587         * modules/uniwbrk/u32-wordbreaks-tests: New file.
28588         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
28589
28590         Tests for module 'uniwbrk/u16-wordbreaks'.
28591         * modules/uniwbrk/u16-wordbreaks-tests: New file.
28592         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
28593
28594         Tests for module 'uniwbrk/u8-wordbreaks'.
28595         * modules/uniwbrk/u8-wordbreaks-tests: New file.
28596         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
28597
28598 2009-02-10  Bruno Haible  <bruno@clisp.org>
28599
28600         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
28601         property.
28602         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
28603         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
28604         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
28605
28606 2009-02-10  Simon Josefsson  <simon@josefsson.org>
28607
28608         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
28609         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
28610
28611 2009-02-10  Bruno Haible  <bruno@clisp.org>
28612
28613         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
28614         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
28615         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
28616         * lib/unilbrk/u8-possible-linebreaks.c: Update.
28617         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
28618         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
28619
28620 2009-02-09  Simon Josefsson  <simon@josefsson.org>
28621
28622         * lib/sockets.h (gl_fd_to_handle): New function.
28623
28624         * tests/test-sockets.c: Call gl_fd_to_handle.
28625
28626 2009-02-09  Bruno Haible  <bruno@clisp.org>
28627
28628         * doc/havelib.texi: Document the conventions on bi-arch systems.
28629
28630 2009-02-08  Bruno Haible  <bruno@clisp.org>
28631
28632         Document the AC_LIB_LINKFLAGS macro.
28633         * doc/havelib.texi: New file, mostly written on 2005-05-24.
28634         * doc/gnulib.texi: Include it.
28635
28636 2009-02-08  Bruno Haible  <bruno@clisp.org>
28637
28638         Fix wrong order of sections, compared to TOC.
28639         * doc/gnulib.texi: Include relocatable-maint.texi after the
28640         "Regular expressions" node, not before.
28641
28642 2009-02-08  Bruno Haible  <bruno@clisp.org>
28643
28644         Tests for module 'unicase/totitle'.
28645         * modules/unicase/totitle-tests: New file.
28646
28647         Tests for module 'unicase/tolower'.
28648         * modules/unicase/tolower-tests: New file.
28649
28650         Tests for module 'unicase/toupper'.
28651         * modules/unicase/toupper-tests: New file.
28652         * tests/unicase/test-mapping-part1.h: New file.
28653         * tests/unicase/test-mapping-part2.h: New file.
28654
28655         New module 'unicase/totitle'.
28656         * modules/unicase/totitle: New file.
28657         * lib/unicase/totitle.c: New file.
28658
28659         New module 'unicase/tolower'.
28660         * modules/unicase/tolower: New file.
28661         * lib/unicase/tolower.c: New file.
28662
28663         New module 'unicase/toupper'.
28664         * modules/unicase/toupper: New file.
28665         * lib/unicase/toupper.c: New file.
28666         * lib/unicase/simple-mapping.h: New file.
28667
28668         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
28669         (mapping_table): New structure.
28670         (output_simple_mapping): New function.
28671         (main): Invoke output_simple_mapping_test and output_simple_mapping.
28672         * modules/gen-uni-tables (Description): Update.
28673         * lib/unicase/toupper.h: New file, automatically generated by
28674         gen-uni-tables.
28675         * lib/unicase/tolower.h: New file, automatically generated by
28676         gen-uni-tables.
28677         * lib/unicase/totitle.h: New file, automatically generated by
28678         gen-uni-tables.
28679         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
28680         gen-uni-tables.
28681         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
28682         gen-uni-tables.
28683         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
28684         gen-uni-tables.
28685
28686         New module 'unicase/base'.
28687         * modules/unicase/base: New file.
28688         * lib/unicase.h: New file.
28689
28690 2009-02-08  Bruno Haible  <bruno@clisp.org>
28691
28692         New module 'uniwbrk/ulc-wordbreaks'.
28693         * modules/uniwbrk/ulc-wordbreaks: New file.
28694         * lib/uniwbrk/ulc-wordbreaks.c: New file.
28695
28696         New module 'uniwbrk/u32-wordbreaks'.
28697         * modules/uniwbrk/u32-wordbreaks: New file.
28698         * lib/uniwbrk/u32-wordbreaks.c: New file.
28699
28700         New module 'uniwbrk/u16-wordbreaks'.
28701         * modules/uniwbrk/u16-wordbreaks: New file.
28702         * lib/uniwbrk/u16-wordbreaks.c: New file.
28703
28704         New module 'uniwbrk/u8-wordbreaks'.
28705         * modules/uniwbrk/u8-wordbreaks: New file.
28706         * lib/uniwbrk/u8-wordbreaks.c: New file.
28707         * lib/uniwbrk/u-wordbreaks.h: New file.
28708
28709         New module 'uniwbrk/table'.
28710         * modules/uniwbrk/table: New file.
28711         * lib/uniwbrk/wbrktable.h: New file.
28712         * lib/uniwbrk/wbrktable.c: New file.
28713
28714         New module 'uniwbrk/wordbreak-property'.
28715         * modules/uniwbrk/wordbreak-property: New file.
28716         * lib/uniwbrk/wordbreak-property.c: New file.
28717
28718         * lib/gen-uni-tables.c (WBP_*): New enum items.
28719         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
28720         (unicode_org_wbp): New variable.
28721         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
28722         New functions.
28723         (wbp_table): New structure.
28724         (output_wbp, output_wbrk_tables): New functions.
28725         (main): Accept additional argument. Invoke fill_org_wbp,
28726         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
28727         output_wbrk_tables.
28728         * modules/gen-uni-tables (Description): Update.
28729         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
28730         gen-uni-tables.
28731
28732         New module 'uniwbrk/base'.
28733         * modules/uniwbrk/base: New file.
28734         * lib/uniwbrk.h: New file.
28735
28736 2009-02-08  Bruno Haible  <bruno@clisp.org>
28737
28738         Update to Unicode 5.1.0.
28739         * lib/gen-uni-tables.c (is_property_alphabetic): Include
28740         U+2185..U+2188.
28741         (is_property_default_ignorable_code_point): Don't include characters
28742         of category Cc or Cs and not-a-characters.
28743         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
28744         U+0D79, U+109E, U+109F, U+A60C.
28745         * lib/unictype/bidi_of.h: Regenerated.
28746         * lib/unictype/blocks.h: Regenerated.
28747         * lib/unictype/categ_C.h: Regenerated.
28748         * lib/unictype/categ_Cf.h: Regenerated.
28749         * lib/unictype/categ_Cn.h: Regenerated.
28750         * lib/unictype/categ_L.h: Regenerated.
28751         * lib/unictype/categ_Ll.h: Regenerated.
28752         * lib/unictype/categ_Lm.h: Regenerated.
28753         * lib/unictype/categ_Lo.h: Regenerated.
28754         * lib/unictype/categ_Lu.h: Regenerated.
28755         * lib/unictype/categ_M.h: Regenerated.
28756         * lib/unictype/categ_Mc.h: Regenerated.
28757         * lib/unictype/categ_Me.h: Regenerated.
28758         * lib/unictype/categ_Mn.h: Regenerated.
28759         * lib/unictype/categ_N.h: Regenerated.
28760         * lib/unictype/categ_Nd.h: Regenerated.
28761         * lib/unictype/categ_Nl.h: Regenerated.
28762         * lib/unictype/categ_No.h: Regenerated.
28763         * lib/unictype/categ_P.h: Regenerated.
28764         * lib/unictype/categ_Pd.h: Regenerated.
28765         * lib/unictype/categ_Pe.h: Regenerated.
28766         * lib/unictype/categ_Pf.h: Regenerated.
28767         * lib/unictype/categ_Pi.h: Regenerated.
28768         * lib/unictype/categ_Po.h: Regenerated.
28769         * lib/unictype/categ_Ps.h: Regenerated.
28770         * lib/unictype/categ_S.h: Regenerated.
28771         * lib/unictype/categ_Sk.h: Regenerated.
28772         * lib/unictype/categ_Sm.h: Regenerated.
28773         * lib/unictype/categ_So.h: Regenerated.
28774         * lib/unictype/categ_of.h: Regenerated.
28775         * lib/unictype/combining.h: Regenerated.
28776         * lib/unictype/ctype_alnum.h: Regenerated.
28777         * lib/unictype/ctype_alpha.h: Regenerated.
28778         * lib/unictype/ctype_graph.h: Regenerated.
28779         * lib/unictype/ctype_lower.h: Regenerated.
28780         * lib/unictype/ctype_print.h: Regenerated.
28781         * lib/unictype/ctype_punct.h: Regenerated.
28782         * lib/unictype/ctype_upper.h: Regenerated.
28783         * lib/unictype/decdigit.h: Regenerated.
28784         * lib/unictype/digit.h: Regenerated.
28785         * lib/unictype/mirror.h: Regenerated.
28786         * lib/unictype/numeric.h: Regenerated.
28787         * lib/unictype/pr_alphabetic.h: Regenerated.
28788         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
28789         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
28790         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
28791         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
28792         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
28793         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
28794         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
28795         * lib/unictype/pr_combining.h: Regenerated.
28796         * lib/unictype/pr_dash.h: Regenerated.
28797         * lib/unictype/pr_decimal_digit.h: Regenerated.
28798         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
28799         * lib/unictype/pr_deprecated.h: Regenerated.
28800         * lib/unictype/pr_diacritic.h: Regenerated.
28801         * lib/unictype/pr_extender.h: Regenerated.
28802         * lib/unictype/pr_format_control.h: Regenerated.
28803         * lib/unictype/pr_grapheme_base.h: Regenerated.
28804         * lib/unictype/pr_grapheme_extend.h: Regenerated.
28805         * lib/unictype/pr_grapheme_link.h: Regenerated.
28806         * lib/unictype/pr_id_continue.h: Regenerated.
28807         * lib/unictype/pr_id_start.h: Regenerated.
28808         * lib/unictype/pr_ideographic.h: Regenerated.
28809         * lib/unictype/pr_ignorable_control.h: Regenerated.
28810         * lib/unictype/pr_lowercase.h: Regenerated.
28811         * lib/unictype/pr_math.h: Regenerated.
28812         * lib/unictype/pr_numeric.h: Regenerated.
28813         * lib/unictype/pr_other_alphabetic.h: Regenerated.
28814         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
28815         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
28816         * lib/unictype/pr_other_id_continue.h: Regenerated.
28817         * lib/unictype/pr_other_lowercase.h: Regenerated.
28818         * lib/unictype/pr_other_math.h: Regenerated.
28819         * lib/unictype/pr_punctuation.h: Regenerated.
28820         * lib/unictype/pr_sentence_terminal.h: Regenerated.
28821         * lib/unictype/pr_soft_dotted.h: Regenerated.
28822         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
28823         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
28824         * lib/unictype/pr_unified_ideograph.h: Regenerated.
28825         * lib/unictype/pr_uppercase.h: Regenerated.
28826         * lib/unictype/pr_xid_continue.h: Regenerated.
28827         * lib/unictype/pr_xid_start.h: Regenerated.
28828         * lib/unictype/pr_zero_width.h: Regenerated.
28829         * lib/unictype/scripts.h: Regenerated.
28830         * lib/unictype/scripts_byname.gperf: Regenerated.
28831         * lib/unictype/sy_java_ident.h: Regenerated.
28832         * lib/unilbrk/lbrkprop1.h: Regenerated.
28833         * lib/unilbrk/lbrkprop2.h: Regenerated.
28834         * tests/unictype/test-categ_C.c: Regenerated.
28835         * tests/unictype/test-categ_Cf.c: Regenerated.
28836         * tests/unictype/test-categ_Cn.c: Regenerated.
28837         * tests/unictype/test-categ_L.c: Regenerated.
28838         * tests/unictype/test-categ_Ll.c: Regenerated.
28839         * tests/unictype/test-categ_Lm.c: Regenerated.
28840         * tests/unictype/test-categ_Lo.c: Regenerated.
28841         * tests/unictype/test-categ_Lu.c: Regenerated.
28842         * tests/unictype/test-categ_M.c: Regenerated.
28843         * tests/unictype/test-categ_Mc.c: Regenerated.
28844         * tests/unictype/test-categ_Me.c: Regenerated.
28845         * tests/unictype/test-categ_Mn.c: Regenerated.
28846         * tests/unictype/test-categ_N.c: Regenerated.
28847         * tests/unictype/test-categ_Nd.c: Regenerated.
28848         * tests/unictype/test-categ_Nl.c: Regenerated.
28849         * tests/unictype/test-categ_No.c: Regenerated.
28850         * tests/unictype/test-categ_P.c: Regenerated.
28851         * tests/unictype/test-categ_Pd.c: Regenerated.
28852         * tests/unictype/test-categ_Pe.c: Regenerated.
28853         * tests/unictype/test-categ_Pf.c: Regenerated.
28854         * tests/unictype/test-categ_Pi.c: Regenerated.
28855         * tests/unictype/test-categ_Po.c: Regenerated.
28856         * tests/unictype/test-categ_Ps.c: Regenerated.
28857         * tests/unictype/test-categ_S.c: Regenerated.
28858         * tests/unictype/test-categ_Sk.c: Regenerated.
28859         * tests/unictype/test-categ_Sm.c: Regenerated.
28860         * tests/unictype/test-categ_So.c: Regenerated.
28861         * tests/unictype/test-ctype_alnum.c: Regenerated.
28862         * tests/unictype/test-ctype_alpha.c: Regenerated.
28863         * tests/unictype/test-ctype_graph.c: Regenerated.
28864         * tests/unictype/test-ctype_lower.c: Regenerated.
28865         * tests/unictype/test-ctype_print.c: Regenerated.
28866         * tests/unictype/test-ctype_punct.c: Regenerated.
28867         * tests/unictype/test-ctype_upper.c: Regenerated.
28868         * tests/unictype/test-decdigit.h: Regenerated.
28869         * tests/unictype/test-digit.h: Regenerated.
28870         * tests/unictype/test-numeric.h: Regenerated.
28871         * tests/unictype/test-pr_alphabetic.c: Regenerated.
28872         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
28873         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
28874         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
28875         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
28876         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
28877         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
28878         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
28879         * tests/unictype/test-pr_combining.c: Regenerated.
28880         * tests/unictype/test-pr_dash.c: Regenerated.
28881         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
28882         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
28883         * tests/unictype/test-pr_deprecated.c: Regenerated.
28884         * tests/unictype/test-pr_diacritic.c: Regenerated.
28885         * tests/unictype/test-pr_extender.c: Regenerated.
28886         * tests/unictype/test-pr_format_control.c: Regenerated.
28887         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
28888         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
28889         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
28890         * tests/unictype/test-pr_id_continue.c: Regenerated.
28891         * tests/unictype/test-pr_id_start.c: Regenerated.
28892         * tests/unictype/test-pr_ideographic.c: Regenerated.
28893         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
28894         * tests/unictype/test-pr_lowercase.c: Regenerated.
28895         * tests/unictype/test-pr_math.c: Regenerated.
28896         * tests/unictype/test-pr_numeric.c: Regenerated.
28897         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
28898         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
28899         Regenerated.
28900         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
28901         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
28902         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
28903         * tests/unictype/test-pr_other_math.c: Regenerated.
28904         * tests/unictype/test-pr_punctuation.c: Regenerated.
28905         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
28906         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
28907         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
28908         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
28909         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
28910         * tests/unictype/test-pr_uppercase.c: Regenerated.
28911         * tests/unictype/test-pr_xid_continue.c: Regenerated.
28912         * tests/unictype/test-pr_xid_start.c: Regenerated.
28913         * tests/unictype/test-pr_zero_width.c: Regenerated.
28914
28915         Update to Unicode 5.1.0.
28916         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
28917         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
28918         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
28919         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
28920         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
28921         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
28922         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
28923         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
28924         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
28925         (nonspacing_table_ind): Update.
28926         * tests/uniwidth/test-uc_width2.sh: Update expected result.
28927
28928         Update to Unicode 5.1.0.
28929         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
28930         code transform.
28931         * lib/uniname/uniname.c (unicode_character_name,
28932         unicode_name_character): Add the range 0x1Fxxx to the code transform.
28933         * lib/uniname/uninames.h: Regenerated.
28934         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
28935
28936 2009-02-07  Bruno Haible  <bruno@clisp.org>
28937
28938         Merge gen-ctype and gen-lbrk into a single program.
28939         * lib/gen-uni-tables.c: New file, incorporating
28940         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
28941         Add directory prefixes to the names of the generated files.
28942         * lib/unictype/gen-ctype.c: Remove file.
28943         * lib/unilbrk/gen-lbrk.c: Remove file.
28944         * modules/gen-uni-tables: New file.
28945         * modules/unictype/gen-ctype: Remove file.
28946         * modules/unilbrk/gen-lbrk: Remove file.
28947
28948 2009-02-07  Bruno Haible  <bruno@clisp.org>
28949
28950         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
28951
28952         New module 'unistr/u32-strcoll'.
28953         * modules/unistr/u32-strcoll: New file.
28954         * lib/unistr/u32-strcoll.c: New file.
28955
28956         New module 'unistr/u16-strcoll'.
28957         * modules/unistr/u16-strcoll: New file.
28958         * lib/unistr/u16-strcoll.c: New file.
28959
28960         New module 'unistr/u8-strcoll'.
28961         * modules/unistr/u8-strcoll: New file.
28962         * lib/unistr/u8-strcoll.c: New file.
28963         * lib/unistr/u-strcoll.h: New file.
28964
28965 2009-02-07  Bruno Haible  <bruno@clisp.org>
28966
28967         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
28968         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
28969         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
28970         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
28971         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
28972         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
28973
28974 2009-02-07  Bruno Haible  <bruno@clisp.org>
28975
28976         Make 64-bit clean.
28977         * lib/unictype/gen-ctype.c (output_predicate, output_category,
28978         output_combclass, output_bidi_category, output_decimal_digit,
28979         output_digit, output_numeric, output_mirror, output_scripts,
28980         output_ident_category): Use proper width specifier in format strings.
28981
28982 2009-02-07  Bruno Haible  <bruno@clisp.org>
28983
28984         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
28985         failure behaviour.
28986
28987 2009-02-07  Jim Meyering  <meyering@redhat.com>
28988
28989         regex: avoid compilation failure with upcoming gcc-4.4
28990         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
28991         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
28992         "... error: integer overflow in preprocessor expression".
28993
28994 2009-02-05  Ben Pfaff  <blp@gnu.org>
28995
28996         Fix link errors on Windows when close module is used.
28997         * modules/close: Add $(LIB_CLOSE) to Link section.
28998         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
28999         $(LIB_CLOSE) on Windows.
29000
29001 2009-02-05  Jim Meyering  <meyering@redhat.com>
29002
29003         still avoid unused-parameter warnings, but do it cleanly
29004         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
29005         (get_fs_usage): Cast to void instead.
29006         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
29007         (dev_from_mount_options, read_file_system_list): Cast to void.
29008         Prompted by Bruno Haible.
29009
29010 2009-02-04  Jim Meyering  <meyering@redhat.com>
29011
29012         fsusage.c: correct copyright year
29013         * lib/fsusage.c: Reflect year in which the change is pushed into
29014
29015         avoid misc. warnings
29016         * lib/fsusage.c (UNUSED_PARAM): Define.
29017         (get_fs_usage): Mark parameter "disk" as unused.
29018         * lib/getugroups.c (getgrent): Use "void" in prototype.
29019         * lib/mountlist.c: Mark unused parameters.
29020         (read_file_system_list): Declare a local with "const".
29021         * lib/nanosleep.c (getnow): Declare static.
29022         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
29023
29024         dirfd: set errno upon failure
29025         * lib/dirfd.c: Include <errno.h>.
29026         Set errno to ENOTSUP when returning -1.
29027         * modules/dirfd (Depends-on): Add errno.
29028         Suggested by John Kodis <kodis@comcast.net>.
29029
29030 2009-02-01  Bruno Haible  <bruno@clisp.org>
29031
29032         Don't assume sizeof (long) >= sizeof (void *).
29033         * lib/memcmp.c: Include stdint.h.
29034         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
29035         srcp2 to 'const byte *'.
29036         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
29037         types to uintptr_t.
29038         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
29039         * modules/memcmp (Depends-on): Add stdint.
29040         Reported by Ozkan Sezer <sezeroz@gmail.com>.
29041
29042 2009-01-30  Eric Blake  <ebb9@byu.net>
29043
29044         fix more require-before-expand issues
29045         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
29046         expand, AC_PROG_AWK.
29047         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
29048
29049 2009-01-28  Eric Blake  <ebb9@byu.net>
29050
29051         version-etc: use consistent URL formatting
29052         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
29053         Improve formatting.  Use fputs for string without %.
29054
29055 2009-01-28  Jim Meyering  <meyering@redhat.com>
29056
29057         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
29058         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
29059         "underquoted definition of NAME" from autoconf-2.59.
29060
29061 2009-01-28  Bruno Haible  <bruno@clisp.org>
29062
29063         * doc/gnulib.texi: Add "Obsolete modules" to index.
29064
29065 2009-01-28  Jim Meyering  <meyering@redhat.com>
29066
29067         useless-if-before-free: recognize more variants
29068         * build-aux/useless-if-before-free: Also recognize e.g.,
29069         if (NULL != p) free (p);
29070
29071 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
29072
29073         test-getaddrinfo: skip (don't fail) this test when there's no network
29074         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
29075         on the presumption that it means you lack network access.
29076
29077 2009-01-26  Jim Meyering  <meyering@redhat.com>
29078
29079         fflush: avoid warnings on modern systems
29080         * lib/fflush.c (rpl_fflush): Move declarations of locals,
29081         pos and result, into scopes where they're used.
29082
29083 2009-01-26  Eric Blake  <ebb9@byu.net>
29084
29085         Silence warning reintroduced by recent extensions patch.
29086         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
29087         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
29088         autoconf.
29089
29090         Backport improved autoconf semantics of AC_DEFUN_ONCE.
29091         * m4/00gnulib.m4: New file.
29092         * gnulib-tool (func_get_filelist): Always use it.
29093         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
29094         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
29095
29096 2009-01-25  Bruno Haible  <bruno@clisp.org>
29097
29098         Make test-quotearg work on MacOS X and AIX.
29099         * tests/test-quotearg.sh: New file.
29100         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
29101         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
29102         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
29103         include <libintl.h>.
29104         (fake_locale): Remove variable.
29105         (gettext, dgettext, dcgettext): Remove functions.
29106         (main): Instead of setting a fake locale, set a real locale. Call
29107         textdomain and bindtextdomain.
29108         * modules/quotearg-tests (Files): Add the new files.
29109         (Depends-on): Add gettext, setenv, unsetenv.
29110         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
29111         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
29112         Augment TESTS_ENVIRONMENT.
29113
29114 2009-01-25  Bruno Haible  <bruno@clisp.org>
29115
29116         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
29117         fr_FR.ISO8859-1 locale on MacOS X.
29118         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
29119         ja_JP.eucJP locale on MacOS X.
29120         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
29121         zh_CN.GB18030 locale on MacOS X.
29122
29123 2009-01-25  Bruno Haible  <bruno@clisp.org>
29124
29125         Avoid link errors on MacOS X 10.3.
29126         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
29127         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
29128
29129 2009-01-25  Bruno Haible  <bruno@clisp.org>
29130
29131         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
29132         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
29133         * modules/pipe (Files): Remove m4/posix_spawn.m4.
29134         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
29135         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
29136         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
29137         posix_spawnattr_init, posix_spawnattr_setsigmask,
29138         posix_spawnattr_setflags, posix_spawnattr_destroy.
29139
29140         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
29141         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
29142         * modules/execute (Files): Remove m4/posix_spawn.m4.
29143         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
29144         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
29145         posix_spawnattr_init, posix_spawnattr_setsigmask,
29146         posix_spawnattr_setflags, posix_spawnattr_destroy.
29147
29148 2009-01-25  Bruno Haible  <bruno@clisp.org>
29149
29150         * lib/glthread/threadlib.c: Include <stdlib.h>.
29151
29152 2009-01-25  Bruno Haible  <bruno@clisp.org>
29153
29154         * lib/glthread/threadlib.c (dummy): New declaration.
29155
29156 2009-01-25  Bruno Haible  <bruno@clisp.org>
29157
29158         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
29159         multibyte characters also for the GB18030 encoding. Don't crash when
29160         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
29161
29162 2009-01-25  Bruno Haible  <bruno@clisp.org>
29163
29164         Avoid redefining 'struct random_data' on OSF/1 5.1.
29165         * lib/stdlib.in.h: Include <random.h> if it exists.
29166         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
29167         HAVE_RANDOM_H. Include <random.h> when testing whether
29168         'struct random_data' exists.
29169         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
29170
29171 2009-01-25  Bruno Haible  <bruno@clisp.org>
29172
29173         Don't install charset.alias on MacOS X >= 10.3.
29174         * lib/localcharset.c (DARWIN7): New macro.
29175         (get_charset_aliases): Hardcode the result for Darwin7.
29176         * modules/localcharset (install-exec-local): Don't install
29177         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
29178
29179 2009-01-25  Bruno Haible  <bruno@clisp.org>
29180
29181         Don't install charset.alias on mingw and Cygwin.
29182         * modules/localcharset (install-exec-local): Don't install
29183         charset.alias on mingw and Cygwin, if the file does not yet exist.
29184         The result for these platforms is hardcoded in localcharset.c.
29185
29186 2009-01-25  Bruno Haible  <bruno@clisp.org>
29187
29188         Make it possible again to use AC_GNU_SOURCE together with gnulib.
29189         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
29190         before requiring AC_USE_SYSTEM_EXTENSIONS.
29191
29192 2009-01-25  Jim Meyering  <meyering@redhat.com>
29193
29194         c-strtod: avoid warnings
29195         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
29196         "assignment discards qualifiers from pointer target type" warnings.
29197
29198 2009-01-24  Bruno Haible  <bruno@clisp.org>
29199
29200         Add support for non-UTF-8 locales on MacOS X.
29201         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
29202         canonical encodings. For Darwin 7 and newer, don't map traditional
29203         encodings to UTF-8.
29204         Reported by Vincent Lefevre <vincent@vinc17.org>
29205         at <http://savannah.gnu.org/bugs/?25235>.
29206
29207 2009-01-24  Bruno Haible  <bruno@clisp.org>
29208
29209         * doc/gnulib.texi (Obsolete modules): New section.
29210         Reported by Mike Frysinger <vapier@gentoo.org>.
29211
29212 2009-01-24  Bruno Haible  <bruno@clisp.org>
29213
29214         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
29215         (%.dvi): New rule.
29216
29217 2009-01-24  Bruno Haible  <bruno@clisp.org>
29218
29219         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
29220         Reported by Eric Blake.
29221
29222 2009-01-24  Bruno Haible  <bruno@clisp.org>
29223
29224         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
29225         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
29226         Reported by Gary V. Vaughan <gary@gnu.org>.
29227
29228 2009-01-24  Bruno Haible  <bruno@clisp.org>
29229
29230         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
29231
29232 2009-01-23  Bruno Haible  <bruno@clisp.org>
29233
29234         Make c-strtod, c-strtold usable in libraries.
29235         * lib/c-strtod.c: Include string.h instead of xalloc.h.
29236         (C_STRTOD): Call strdup instead of xstrdup.
29237         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
29238         * modules/c-strtold (Depends-on): Likewise.
29239         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
29240         * NEWS: Mention the change.
29241         Reported by Michael Gold <mgold@ncf.ca>.
29242
29243 2009-01-23  Jim Meyering  <meyering@redhat.com>
29244
29245         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
29246         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
29247         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
29248
29249 2009-01-23  Simon Josefsson  <simon@josefsson.org>
29250
29251         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
29252         GNU CoreUtils.
29253         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
29254         * modules/version-etc (Description): Update.
29255
29256 2009-01-22  Bruno Haible  <bruno@clisp.org>
29257
29258         Cache the C locale object.
29259         * lib/c-strtod.c (c_locale_cache): New variable.
29260         (c_locale): New function.
29261         (C_STRTOD): Use it, and don't call freelocale.
29262         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
29263         Suggested by Paolo Bonzini.
29264
29265 2009-01-21  Bruno Haible  <bruno@clisp.org>
29266
29267         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
29268         conditions other than overflow.
29269
29270 2009-01-21  Bruno Haible  <bruno@clisp.org>
29271
29272         * lib/c-strtod.c: Include errno.h.
29273         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
29274         value from STRTOD_L and STRTOD.
29275
29276 2009-01-21  Bruno Haible  <bruno@clisp.org>
29277         and Jim Meyering  <meyering@redhat.com>
29278
29279         nanosleep: skip configure test (fail it) for apple universal builds
29280         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
29281         universal builds, assume that nanosleep does not work.
29282         * modules/nanosleep (Depends-on): Add multiarch.
29283
29284         mktime: skip configure test (fail it) for apple universal builds
29285         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
29286         universal builds, assume that mktime does not work.
29287         * modules/mktime (Depends-on): Add multiarch.
29288
29289 2009-01-21  Eric Blake  <ebb9@byu.net>
29290
29291         multiarch: avoid expand-before-require warning
29292         * modules/multiarch (configure.ac): Require, rather than expand,
29293         gl_MULTIARCH.
29294         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
29295         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
29296         enforce that all clients require it.  Partial reversion of
29297         2008-12-29 patch.
29298
29299         error: avoid expand-before-require warning
29300         * modules/errno (configure.ac): Require, rather than expand,
29301         gl_HEADER_ERRNO_H.
29302         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
29303         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
29304         enforce that all clients require it.
29305
29306         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
29307         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
29308         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
29309         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
29310
29311 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
29312
29313         Revert:
29314         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
29315
29316         regex: do not depend on obsolete modules.
29317         * modules/regex: Remove memcmp and memmove.
29318
29319 2009-01-20  Bruno Haible  <bruno@clisp.org>
29320
29321         Make the 'link' module link on Windows NT 4.
29322         * lib/link.c (_WIN32_WINNT): Don't define.
29323         (CreateHardLinkFuncType): New type.
29324         (CreateHardLinkFunc, initialized): New variables.
29325         (initialize): New function.
29326         (link): Invoke CreateHardLink indirectly through the function pointer.
29327
29328 2009-01-20  Bruno Haible  <bruno@clisp.org>
29329
29330         Fix compilation failure on mingw.
29331         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
29332
29333 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
29334
29335         * doc/c-strtod.texi: Mention a couple of restrictions.
29336
29337 2009-01-20  Jim Meyering  <meyering@redhat.com>
29338
29339         gettimeofday: move more declarations out of functions
29340         * lib/gettimeofday.c: Move extern declarations of tzset and
29341         gmtime out of containing functions.  Prompted by Bruno Haible.
29342
29343 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
29344
29345         regex: do not depend on obsolete modules.
29346         * modules/regex: Remove memcmp and memmove.
29347
29348 2009-01-19  Bruno Haible  <bruno@clisp.org>
29349
29350         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
29351         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
29352         gl_BIGENDIAN, not AC_C_BIGENDIAN.
29353         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
29354         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
29355
29356 2009-01-19  Bruno Haible  <bruno@clisp.org>
29357
29358         * tests/test-link.c: Include <errno.h>.
29359         (main): Exit with code 77 when a hard link cannot be created due to
29360         the file system.
29361         * tests/test-link.sh: Skip test when a hard link cannot be created due
29362         to the file system.
29363         Suggested by Eric Blake.
29364
29365 2009-01-19  Martin Lambers  <marlam@marlam.de>
29366
29367         * modules/link-tests: New file.
29368         * tests/test-link.sh: New file.
29369         * tests/test-link.c: New file.
29370
29371 2009-01-19  Eric Blake  <ebb9@byu.net>
29372
29373         doc: mention another function added in cygwin 1.7.0
29374         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
29375         Another new function in cygwin 1.7.
29376
29377 2009-01-19  Bruno Haible  <bruno@clisp.org>
29378
29379         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
29380         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
29381         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
29382         gl_BIGENDIAN, not AC_C_BIGENDIAN.
29383         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
29384         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
29385         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
29386         * m4/md4.m4 (gl_MD4): Likewise.
29387         * m4/md5.m4 (gl_MD5): Likewise.
29388         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
29389         * m4/sha1.m4 (gl_SHA1): Likewise.
29390         * m4/sha256.m4 (gl_SHA256): Likewise.
29391         * m4/sha512.m4 (gl_SHA512): Likewise.
29392
29393 2009-01-19  Bruno Haible  <bruno@clisp.org>
29394
29395         * modules/uniname/uniname-tests (Depends-on): Add progname.
29396         * tests/uniname/test-uninames.c: Include progname.h.
29397         (main): Call set_program_name.
29398
29399         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
29400         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
29401         (main): Call set_program_name.
29402
29403         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
29404         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
29405         (main): Call set_program_name.
29406
29407         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
29408         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
29409         (main): Call set_program_name.
29410
29411         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
29412         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
29413         (main): Call set_program_name.
29414
29415         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
29416         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
29417         (main): Call set_program_name.
29418
29419         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
29420         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
29421         (main): Call set_program_name.
29422
29423         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
29424         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
29425         (main): Call set_program_name.
29426
29427         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
29428         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
29429         (main): Call set_program_name.
29430
29431 2009-01-19  Eric Blake  <ebb9@byu.net>
29432
29433         test-unistd: test previous patch
29434         * tests/test-unistd.c: Test *_FILENO macros.
29435
29436         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
29437         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
29438         Guarantee a definition.
29439         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
29440         * modules/unistd-safer (Depends-on): Add dependency on unistd.
29441         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
29442         * lib/dup-safer.c (STDERR_FILENO): Likewise.
29443         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
29444         Likewise.
29445         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
29446         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
29447         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
29448         Likewise.
29449         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
29450         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
29451         (STDERR_FILENO): Likewise.
29452         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
29453         (STDERR_FILENO): Likewise.
29454         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
29455         (STDERR_FILENO): Likewise.
29456         Reported by Elbert Pol.
29457
29458 2009-01-19  Eric Blake  <ebb9@byu.net>
29459
29460         doc: mention more functions added in cygwin 1.7.0
29461         * doc/posix-functions/abort.texi (abort): Update wording related
29462         to cygwin.
29463         * doc/posix-functions/daylight.texi (daylight): Likewise.
29464         * doc/posix-functions/optarg.texi (optarg): Likewise.
29465         * doc/posix-functions/optarg.texi (opterr): Likewise.
29466         * doc/posix-functions/optarg.texi (optind): Likewise.
29467         * doc/posix-functions/optarg.texi (optopt): Likewise.
29468         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
29469         worked in 1.5.x, and was withdrawn in 1.7.
29470         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
29471         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
29472         cygwin versions.
29473         * doc/posix-functions/perror.texi (perror): Likewise.
29474         * doc/posix-functions/printf.texi (printf): Likewise.
29475         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
29476         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
29477         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
29478         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
29479         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
29480         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
29481         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
29482         Likewise.
29483         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
29484         Likewise.
29485         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
29486         this function.
29487         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
29488         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
29489         Likewise.
29490         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
29491         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
29492         * doc/posix-functions/confstr.texi (confstr): Likewise.
29493         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
29494         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
29495         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
29496         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
29497         * doc/posix-functions/fputws.texi (fputws): Likewise.
29498         * doc/posix-functions/fwide.texi (fwide): Likewise.
29499         * doc/posix-functions/getwc.texi (getwc): Likewise.
29500         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
29501         * doc/posix-functions/putwc.texi (putwc): Likewise.
29502         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
29503         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
29504         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
29505         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
29506         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
29507         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
29508         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
29509         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
29510         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
29511         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
29512         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
29513
29514 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
29515
29516         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
29517         * lib/ioctl.c: Include <sys/ioctl.h>.
29518
29519 2009-01-19  Simon Josefsson  <simon@josefsson.org>
29520
29521         * modules/getdate-tests (Depends-on): Add progname.
29522         * tests/test-getdate.c: Use progname module, to avoid link errors
29523         on non-glibc systems.
29524
29525 2009-01-18  Simon Josefsson  <simon@josefsson.org>
29526
29527         * modules/filenamecat-tests (Depends-on): Add progname.
29528         * modules/fstrcmp-tests (Depends-on): Likewise.
29529
29530         * tests/test-filenamecat.c: Use progname module, to avoid link
29531         errors on non-glibc systems.
29532         * tests/test-fstrcmp.c: Likewise.
29533
29534 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
29535
29536         gettimeofday: avoid warning: nested extern declaration of 'localtime'
29537         * lib/gettimeofday.c: Move extern declaration out of function.
29538
29539 2009-01-18  Bruno Haible  <bruno@clisp.org>
29540
29541         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
29542         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
29543         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
29544
29545 2009-01-18  Bruno Haible  <bruno@clisp.org>
29546
29547         * lib/strftime.c (MEMPCPY): Remove unused macro.
29548         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
29549
29550 2009-01-18  Martin Lambers  <marlam@marlam.de>
29551
29552         New module 'link'.
29553         * lib/unistd.in.h (link): New declaration.
29554         * lib/link.c: New file.
29555         * m4/link.m4: New file.
29556         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
29557         HAVE_LINK.
29558         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
29559         * modules/link: New file.
29560         * doc/posix-functions/link.texi: Mention the new module.
29561
29562 2009-01-18  Bruno Haible  <bruno@clisp.org>
29563
29564         * tests/test-avltree_list.c (main): Call set_program_name.
29565         * tests/test-avltree_oset.c (main): Likewise.
29566         * tests/test-obstack-printf.c: Include progname.h.
29567         (main): Call set_program_name.
29568         * tests/test-quotearg.c: Include progname.h.
29569         (main): Call set_program_name.
29570         * tests/test-xmemdup0.c: Include progname.h.
29571         (main): Call set_program_name.
29572
29573 2009-01-18  Bruno Haible  <bruno@clisp.org>
29574
29575         New module 'alphasort'.
29576         * lib/dirent.in.h (alphasort): New declaration.
29577         * lib/alphasort.c: New file, from glibc with modifications.
29578         * m4/alphasort.m4: New file.
29579         * modules/alphasort: New file.
29580         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
29581         HAVE_ALPHASORT.
29582         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
29583         HAVE_ALPHASORT.
29584         * doc/posix-functions/alphasort.texi: Mention the new module and the
29585         portability problems.
29586
29587 2009-01-18  Bruno Haible  <bruno@clisp.org>
29588
29589         New module 'scandir'.
29590         * lib/dirent.in.h (scandir): New declaration.
29591         * lib/scandir.c: New file, from glibc with modifications.
29592         * m4/scandir.m4: New file.
29593         * modules/scandir: New file.
29594         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
29595         HAVE_SCANDIR.
29596         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
29597         HAVE_SCANDIR.
29598         * doc/posix-functions/scandir.texi: Mention the new module and the
29599         portability problems.
29600
29601 2009-01-17  Bruno Haible  <bruno@clisp.org>
29602
29603         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
29604         Update documentation.
29605         (func_remove_suffix): Escape all dots in the suffix. Update
29606         documentation.
29607         (func_filter_filelist): Update documentation.
29608         Reported by Ralf Wildenhues.
29609
29610 2009-01-17  Bruno Haible  <bruno@clisp.org>
29611
29612         * modules/dprintf-posix-tests: New file.
29613         * tests/test-dprintf-posix.sh: New file.
29614         * tests/test-dprintf-posix.c: New file.
29615
29616         New modules 'dprintf', 'dprintf-posix'.
29617         * lib/stdio.in.h (dprintf): New declaration.
29618         * lib/dprintf.c: New file.
29619         * m4/dprintf.m4: New file.
29620         * m4/dprintf-posix.m4: New file.
29621         * modules/dprintf: New file.
29622         * modules/dprintf-posix: New file.
29623         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
29624         HAVE_DPRINTF, REPLACE_DPRINTF.
29625         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
29626         HAVE_DPRINTF, REPLACE_DPRINTF.
29627         * doc/posix-functions/dprintf.texi: Mention the new modules.
29628
29629 2009-01-17  Bruno Haible  <bruno@clisp.org>
29630
29631         * modules/vdprintf-posix-tests: New file.
29632         * tests/test-vdprintf-posix.sh: New file.
29633         * tests/test-vdprintf-posix.c: New file.
29634
29635         New modules 'vdprintf', 'vdprintf-posix'.
29636         * lib/stdio.in.h (vdprintf): New declaration.
29637         * lib/vdprintf.c: New file.
29638         * m4/vdprintf.m4: New file.
29639         * m4/vdprintf-posix.m4: New file.
29640         * modules/vdprintf: New file.
29641         * modules/vdprintf-posix: New file.
29642         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
29643         HAVE_VDPRINTF, REPLACE_VDPRINTF.
29644         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
29645         HAVE_VDPRINTF, REPLACE_VDPRINTF.
29646         * doc/posix-functions/vdprintf.texi: Mention the new modules.
29647
29648 2009-01-17  Bruno Haible  <bruno@clisp.org>
29649
29650         Fix replacement of fopen on mingw.
29651         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
29652         mingw.
29653
29654 2009-01-17  Bruno Haible  <bruno@clisp.org>
29655
29656         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
29657         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
29658
29659 2009-01-17  Bruno Haible  <bruno@clisp.org>
29660
29661         Avoid test-fflush2.sh failure on mingw.
29662         * tests/test-fflush2.c: Include binary-io.h.
29663         (main): Put standard input into binary mode.
29664         * modules/fflush-tests (Depends-on): Add binary-io.
29665
29666 2009-01-17  Bruno Haible  <bruno@clisp.org>
29667
29668         * lib/wchar.in.h: In another particular situation, include only the
29669         system's <wchar.h> file.
29670         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
29671         Reported by Albert Chin-A-Young <china@thewrittenword.com>
29672         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
29673
29674 2009-01-17  Bruno Haible  <bruno@clisp.org>
29675
29676         Support for stripping executables in --enable-relocatable.
29677         * build-aux/install-reloc: Expect one more argument, or an environment
29678         variable RELOC_STRIP_PROG. If set, strip the destination program and
29679         its wrapper.
29680         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
29681         RELOC_STRIP_PROG.
29682         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
29683         to set RELOCATABLE_STRIP.
29684         * NEWS: Mention the new Makefile requirement.
29685
29686 2009-01-17  Bruno Haible  <bruno@clisp.org>
29687
29688         * build-aux/install-reloc: Remove debugging information left over by
29689         C compiler on MacOS X.
29690
29691 2009-01-17  Bruno Haible  <bruno@clisp.org>
29692
29693         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
29694         * lib/progreloc.c (find_executable): Fix type of pointer passed to
29695         _NSGetExecutablePath.
29696
29697 2009-01-16  Jim Meyering  <meyering@redhat.com>
29698
29699         strerror: avoid warnings about discarding "const"
29700         * lib/strerror.c (rpl_strerror): Instead of returning a const
29701         string from each and every "case", use a variable, and add a single
29702         cast after the switch.
29703
29704 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
29705
29706         * lib/arpa_inet.in.h: Add extern "C" block for C++.
29707
29708 2009-01-16  Bruno Haible  <bruno@clisp.org>
29709
29710         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
29711         array initializer syntax that also works in C++ mode.
29712         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
29713
29714 2009-01-16  Jim Meyering  <meyering@redhat.com>
29715
29716         poll: suppress a warning
29717         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
29718         to ignore "...unsigned expression < 0 is always false" warnings.
29719
29720 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
29721
29722         poll: remove declarations of unused variables
29723         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
29724         sockbuf and optlen.
29725
29726 2009-01-15  Bruno Haible  <bruno@clisp.org>
29727
29728         Make fflush-after-ungetc POSIX compliant on BSD systems.
29729         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
29730         (clear_ungetc_buffer): Implement also for other systems.
29731         (rpl_fflush): On glibc systems, invoke
29732         clear_ungetc_buffer_preserving_position. Otherwise, invoke
29733         clear_ungetc_buffer after fetching the stream's position, not before.
29734
29735 2009-01-15  Bruno Haible  <bruno@clisp.org>
29736
29737         Make fflush-after-ungetc POSIX compliant on glibc systems.
29738         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
29739         after ungetc.
29740         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
29741         (rpl_fflush): On glibc systems, simply call the system's fflush
29742         function after clearing the ungetc buffer.
29743         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
29744         Instead, lseek only to the end of file, then use the system's fseeko
29745         for the rest. On glibc systems, reset the EOF indicator bit.
29746
29747 2009-01-15  Jim Meyering  <meyering@redhat.com>
29748
29749         openmp.m4: revert quote-adding change, for portability to older autoconf
29750         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
29751         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
29752         Simon Josefsson noticed the problem when using autoconf-2.61.
29753
29754 2009-01-15  Bruno Haible  <bruno@clisp.org>
29755
29756         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
29757         * tests/test-fflush2.c (ASSERT): Always fail.
29758         (main): Add two tests for fflush() after ungetc(), taking into account
29759         the Austin Group's clarification.
29760         Suggested by Eric Blake.
29761
29762 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
29763
29764         mktime.m4: remove K&R-style function prototypes
29765         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
29766         for the Sun C++ compiler.
29767
29768 2009-01-14  Bruno Haible  <bruno@clisp.org>
29769
29770         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
29771         while including <wchar.h>.
29772         * lib/wchar.in.h: In two particular situations on HP-UX, include only
29773         the system's <wchar.h> file.
29774         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
29775
29776 2009-01-14  Bruno Haible  <bruno@clisp.org>
29777
29778         * m4/csharp.m4: Don't mention gettext on the serial number line.
29779         * m4/csharpexec.m4: Likewise.
29780         * m4/eaccess.m4: Likewise.
29781         * m4/javaexec.m4: Likewise.
29782         * m4/sig_atomic_t.m4: Likewise.
29783         * m4/tmpdir.m4: Likewise.
29784         * m4/intldir.m4: Bump gettext version.
29785         * m4/lib-ld.m4: Likewise.
29786
29787 2009-01-14  Bruno Haible  <bruno@clisp.org>
29788
29789         * lib/progname.c (set_program_name): Add more comments.
29790         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
29791
29792 2009-01-14  Simon Josefsson  <simon@josefsson.org>
29793
29794         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
29795         were sys/stat.h does not define it.
29796
29797 2009-01-14  Jim Meyering  <meyering@redhat.com>
29798
29799         many *.m4 files: improve m4 quoting
29800         99% of this change was performed by running the following commands:
29801         git ls-files | grep '\.m4$' | xargs perl -pi \
29802           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
29803           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
29804           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
29805           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
29806         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
29807         The remainder were to add Copyright dates, increment serial numbers,
29808         undo some changes in comments, exclude m4/intl.m4, and add quotes
29809         around the "1" in ",1" where the unusual spacing prohibited the
29810         above regexps from doing the job.  For more details, see
29811         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
29812         * m4/acl.m4: Modified.
29813         * m4/afs.m4: Likewise.
29814         * m4/alloca.m4: Likewise.
29815         * m4/argp.m4: Likewise.
29816         * m4/argz.m4: Likewise.
29817         * m4/atexit.m4: Likewise.
29818         * m4/bison-i18n.m4: Likewise.
29819         * m4/bison.m4: Likewise.
29820         * m4/byteswap.m4: Likewise.
29821         * m4/c-stack.m4: Likewise.
29822         * m4/c-strtod.m4: Likewise.
29823         * m4/calloc.m4: Likewise.
29824         * m4/canonicalize-lgpl.m4: Likewise.
29825         * m4/chown.m4: Likewise.
29826         * m4/clock_time.m4: Likewise.
29827         * m4/codeset.m4: Likewise.
29828         * m4/copy-file.m4: Likewise.
29829         * m4/csharp.m4: Likewise.
29830         * m4/csharpcomp.m4: Likewise.
29831         * m4/csharpexec.m4: Likewise.
29832         * m4/d-ino.m4: Likewise.
29833         * m4/d-type.m4: Likewise.
29834         * m4/dirfd.m4: Likewise.
29835         * m4/double-slash-root.m4: Likewise.
29836         * m4/eaccess.m4: Likewise.
29837         * m4/eealloc.m4: Likewise.
29838         * m4/environ.m4: Likewise.
29839         * m4/errno_h.m4: Likewise.
29840         * m4/euidaccess.m4: Likewise.
29841         * m4/execute.m4: Likewise.
29842         * m4/fatal-signal.m4: Likewise.
29843         * m4/fchdir.m4: Likewise.
29844         * m4/fcntl_h.m4: Likewise.
29845         * m4/fileblocks.m4: Likewise.
29846         * m4/filenamecat.m4: Likewise.
29847         * m4/findprog.m4: Likewise.
29848         * m4/flexmember.m4: Likewise.
29849         * m4/fnmatch.m4: Likewise.
29850         * m4/fopen.m4: Likewise.
29851         * m4/fpending.m4: Likewise.
29852         * m4/fprintf-posix.m4: Likewise.
29853         * m4/free.m4: Likewise.
29854         * m4/frexp.m4: Likewise.
29855         * m4/frexpl.m4: Likewise.
29856         * m4/fsusage.m4: Likewise.
29857         * m4/ftruncate.m4: Likewise.
29858         * m4/gc-camellia.m4: Likewise.
29859         * m4/gc-random.m4: Likewise.
29860         * m4/gc.m4: Likewise.
29861         * m4/getaddrinfo.m4: Likewise.
29862         * m4/getcwd-abort-bug.m4: Likewise.
29863         * m4/getcwd-path-max.m4: Likewise.
29864         * m4/getdate.m4: Likewise.
29865         * m4/getdomainname.m4: Likewise.
29866         * m4/getgroups.m4: Likewise.
29867         * m4/gethostname.m4: Likewise.
29868         * m4/gethrxtime.m4: Likewise.
29869         * m4/getline.m4: Likewise.
29870         * m4/getloadavg.m4: Likewise.
29871         * m4/getndelim2.m4: Likewise.
29872         * m4/getpass.m4: Likewise.
29873         * m4/gettext.m4: Likewise.
29874         * m4/gettime.m4: Likewise.
29875         * m4/gettimeofday.m4: Likewise.
29876         * m4/gnulib-common.m4: Likewise.
29877         * m4/group-member.m4: Likewise.
29878         * m4/host-os.m4: Likewise.
29879         * m4/iconv.m4: Likewise.
29880         * m4/iconv_open.m4: Likewise.
29881         * m4/inet_ntop.m4: Likewise.
29882         * m4/inet_pton.m4: Likewise.
29883         * m4/inline.m4: Likewise.
29884         * m4/intldir.m4: Likewise.
29885         * m4/intlmacosx.m4: Likewise.
29886         * m4/intmax.m4: Likewise.
29887         * m4/intmax_t.m4: Likewise.
29888         * m4/inttypes.m4: Likewise.
29889         * m4/inttypes_h.m4: Likewise.
29890         * m4/inttypes-pri.m4: Likewise.
29891         * m4/isapipe.m4: Likewise.
29892         * m4/isnand.m4: Likewise.
29893         * m4/isnanf.m4: Likewise.
29894         * m4/isnanl.m4: Likewise.
29895         * m4/javacomp.m4: Likewise.
29896         * m4/javaexec.m4: Likewise.
29897         * m4/jm-winsz1.m4: Likewise.
29898         * m4/jm-winsz2.m4: Likewise.
29899         * m4/lchown.m4: Likewise.
29900         * m4/lcmessage.m4: Likewise.
29901         * m4/ldexpl.m4: Likewise.
29902         * m4/lib-ld.m4: Likewise.
29903         * m4/lib-link.m4: Likewise.
29904         * m4/libsigsegv.m4: Likewise.
29905         * m4/link-follow.m4: Likewise.
29906         * m4/localcharset.m4: Likewise.
29907         * m4/locale-fr.m4: Likewise.
29908         * m4/locale-ja.m4: Likewise.
29909         * m4/locale-tr.m4: Likewise.
29910         * m4/locale-zh.m4: Likewise.
29911         * m4/lock.m4: Likewise.
29912         * m4/longlong.m4: Likewise.
29913         * m4/ls-mntd-fs.m4: Likewise.
29914         * m4/lstat.m4: Likewise.
29915         * m4/malloc.m4: Likewise.
29916         * m4/mathl.m4: Likewise.
29917         * m4/mbrtowc.m4: Likewise.
29918         * m4/mbstate_t.m4: Likewise.
29919         * m4/mbswidth.m4: Likewise.
29920         * m4/memchr.m4: Likewise.
29921         * m4/memcmp.m4: Likewise.
29922         * m4/memcpy.m4: Likewise.
29923         * m4/memmem.m4: Likewise.
29924         * m4/memmove.m4: Likewise.
29925         * m4/mempcpy.m4: Likewise.
29926         * m4/memrchr.m4: Likewise.
29927         * m4/memset.m4: Likewise.
29928         * m4/minmax.m4: Likewise.
29929         * m4/mkdir-slash.m4: Likewise.
29930         * m4/mkdtemp.m4: Likewise.
29931         * m4/mktime.m4: Likewise.
29932         * m4/mmap-anon.m4: Likewise.
29933         * m4/mountlist.m4: Likewise.
29934         * m4/nanosleep.m4: Likewise.
29935         * m4/nls.m4: Likewise.
29936         * m4/nocrash.m4: Likewise.
29937         * m4/open.m4: Likewise.
29938         * m4/openat.m4: Likewise.
29939         * m4/openmp.m4: Likewise.
29940         * m4/pathmax.m4: Likewise.
29941         * m4/perl.m4: Likewise.
29942         * m4/physmem.m4: Likewise.
29943         * m4/pipe.m4: Likewise.
29944         * m4/po.m4: Likewise.
29945         * m4/poll.m4: Likewise.
29946         * m4/posixtm.m4: Likewise.
29947         * m4/posixver.m4: Likewise.
29948         * m4/printf-frexp.m4: Likewise.
29949         * m4/printf-frexpl.m4: Likewise.
29950         * m4/printf-posix.m4: Likewise.
29951         * m4/printf-posix-rpl.m4: Likewise.
29952         * m4/printf.m4: Likewise.
29953         * m4/progtest.m4: Likewise.
29954         * m4/putenv.m4: Likewise.
29955         * m4/readline.m4: Likewise.
29956         * m4/readlink.m4: Likewise.
29957         * m4/readutmp.m4: Likewise.
29958         * m4/realloc.m4: Likewise.
29959         * m4/regex.m4: Likewise.
29960         * m4/relocatable.m4: Likewise.
29961         * m4/relocatable-lib.m4: Likewise.
29962         * m4/rename-dest-slash.m4: Likewise.
29963         * m4/rename.m4: Likewise.
29964         * m4/rmdir-errno.m4: Likewise.
29965         * m4/rmdir.m4: Likewise.
29966         * m4/roundf.m4: Likewise.
29967         * m4/roundl.m4: Likewise.
29968         * m4/rpmatch.m4: Likewise.
29969         * m4/save-cwd.m4: Likewise.
29970         * m4/selinux-selinux-h.m4: Likewise.
29971         * m4/setenv.m4: Likewise.
29972         * m4/settime.m4: Likewise.
29973         * m4/sig2str.m4: Likewise.
29974         * m4/sig_atomic_t.m4: Likewise.
29975         * m4/signalblocking.m4: Likewise.
29976         * m4/signbit.m4: Likewise.
29977         * m4/sigpipe.m4: Likewise.
29978         * m4/sockets.m4: Likewise.
29979         * m4/sockpfaf.m4: Likewise.
29980         * m4/st_dm_mode.m4: Likewise.
29981         * m4/stat-time.m4: Likewise.
29982         * m4/stdbool.m4: Likewise.
29983         * m4/stdint.m4: Likewise.
29984         * m4/stdint_h.m4: Likewise.
29985         * m4/stpcpy.m4: Likewise.
29986         * m4/stpncpy.m4: Likewise.
29987         * m4/strcase.m4: Likewise.
29988         * m4/strchrnul.m4: Likewise.
29989         * m4/strcspn.m4: Likewise.
29990         * m4/strdup.m4: Likewise.
29991         * m4/strftime.m4: Likewise.
29992         * m4/strndup.m4: Likewise.
29993         * m4/strnlen.m4: Likewise.
29994         * m4/strpbrk.m4: Likewise.
29995         * m4/strptime.m4: Likewise.
29996         * m4/strsep.m4: Likewise.
29997         * m4/strtod.m4: Likewise.
29998         * m4/strtoimax.m4: Likewise.
29999         * m4/strtok_r.m4: Likewise.
30000         * m4/strtol.m4: Likewise.
30001         * m4/strtoll.m4: Likewise.
30002         * m4/strtoul.m4: Likewise.
30003         * m4/strtoull.m4: Likewise.
30004         * m4/strtoumax.m4: Likewise.
30005         * m4/strverscmp.m4: Likewise.
30006         * m4/threadlib.m4: Likewise.
30007         * m4/timegm.m4: Likewise.
30008         * m4/tm_gmtoff.m4: Likewise.
30009         * m4/tmpdir.m4: Likewise.
30010         * m4/tmpfile.m4: Likewise.
30011         * m4/tzset.m4: Likewise.
30012         * m4/uintmax_t.m4: Likewise.
30013         * m4/unlinkdir.m4: Likewise.
30014         * m4/unlocked-io.m4: Likewise.
30015         * m4/uptime.m4: Likewise.
30016         * m4/userspec.m4: Likewise.
30017         * m4/utimbuf.m4: Likewise.
30018         * m4/utime.m4: Likewise.
30019         * m4/utimes-null.m4: Likewise.
30020         * m4/utimes.m4: Likewise.
30021         * m4/vararrays.m4: Likewise.
30022         * m4/vasnprintf.m4: Likewise.
30023         * m4/vfprintf-posix.m4: Likewise.
30024         * m4/vprintf-posix.m4: Likewise.
30025         * m4/wait-process.m4: Likewise.
30026         * m4/wchar_t.m4: Likewise.
30027         * m4/wint_t.m4: Likewise.
30028         * m4/write-any-file.m4: Likewise.
30029         * m4/yield.m4: Likewise.
30030
30031 2009-01-13  Bruno Haible  <bruno@clisp.org>
30032
30033         Avoid test-copy-file.sh failures when ACL support insufficient.
30034         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
30035         TESTS_ENVIRONMENT.
30036         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
30037         Reported by Jim Meyering.
30038
30039 2009-01-13  Bruno Haible  <bruno@clisp.org>
30040
30041         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
30042         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
30043         * modules/unistdio/u8-printf-parse (Files): Likewise.
30044         * modules/unistdio/u32-printf-parse (Files): Likewise.
30045         * modules/unistdio/ulc-printf-parse (Files): Likewise.
30046
30047 2009-01-13  Simon Josefsson  <simon@josefsson.org>
30048
30049         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
30050         and m4/inttypes_h.m4 too.
30051
30052 2009-01-12  Eric Blake  <ebb9@byu.net>
30053
30054         tests: IRIX 6.2 cc can't compile -0.0 into .data
30055         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
30056         rather than at compile-time.
30057         * tests/test-floorl.c (minus_zero): Likewise.
30058         * tests/test-frexpl.c (minus_zero): Likewise.
30059         * tests/test-isnan.c (minus_zerol): Likewise.
30060         * tests/test-isnanl.h (minus_zero): Likewise.
30061         * tests/test-ldexpl.c (minus_zero): Likewise.
30062         * tests/test-roundl.c (minus_zero): Likewise.
30063         * tests/test-signbit.c (minus_zerol): Likewise.
30064         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
30065         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
30066         * tests/test-truncl.c (minus_zero): Likewise.
30067         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
30068         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
30069         Reported by Tom G. Christensen and Nelson H. F. Beebe.
30070
30071 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
30072
30073         regex: fix glibc bug 9697
30074         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
30075         handling.
30076
30077 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
30078
30079         regex: fix glibc bug 697
30080         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
30081         being NULL also if there are no backreferences.
30082
30083 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
30084
30085         regex: merge glibc changes
30086         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
30087         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
30088         re_string_skip_chars, re_string_reconstruct): Likewise.
30089         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
30090
30091 2009-01-07  Jim Meyering  <meyering@redhat.com>
30092
30093         poll: filter through cppi
30094         * lib/poll.c: Indent cpp directives to reflect nesting.
30095
30096 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
30097
30098         poll: don't return uninitialized
30099         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
30100
30101 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
30102
30103         avoid compile failure on AIX 6.1
30104         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
30105         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
30106
30107 2009-01-04  Jim Meyering  <meyering@redhat.com>
30108
30109         remove duplicate inclusion of <stdio.h>
30110         * tests/test-fprintf-posix.c: Likewise.
30111         * tests/test-printf-posix.c: Likewise.
30112         * tests/test-snprintf-posix.c: Likewise.
30113         * tests/test-sprintf-posix.c: Likewise.
30114         * tests/test-vasprintf-posix.c: Likewise.
30115         * tests/test-vfprintf-posix.c: Likewise.
30116         * tests/test-vprintf-posix.c: Likewise.
30117         * tests/test-vsnprintf-posix.c: Likewise.
30118         * tests/test-vsprintf-posix.c: Likewise.
30119
30120 2009-01-03  Jim Meyering  <meyering@redhat.com>
30121
30122         gnulib-tool: fix sed-based filtering
30123         * gnulib-tool (func_filter_filelist): Remove extra backslash
30124         in sed_fff_filter definition.
30125
30126 2009-01-02  Jim Meyering  <meyering@redhat.com>
30127
30128         strftime: avoid compilation failure on Solaris 2.6
30129         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
30130         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
30131         Don't #define mbrlen or mbsinit, since now they're guaranteed to
30132         be available.  Reported by Tom G. Christensen.  Details in
30133         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
30134
30135 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30136             Bruno Haible  <bruno@clisp.org>
30137
30138         Speed up gnulib-tool by doing more string processing through shell
30139         built-ins.
30140         * gnulib-tool (fast_func_append): New variable.
30141         (func_remove_prefix, func_remove_suffix): New functions.
30142         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
30143         (func_filter_filelist): New function.
30144         (func_get_dependencies): Use func_remove_suffix instead of sed.
30145         (func_get_automake_snippet): Use func_filter_filelist instead of a
30146         subshell and sed invocation.
30147
30148 2009-01-01  Bruno Haible  <bruno@clisp.org>
30149
30150         Fix a security bug.
30151         * gnulib-tool (func_import, import, update): Don't allow the characters
30152         '"', '$', '`', '\' in macro arguments that become part of commands that
30153         are evaluated.
30154
30155 2009-01-01  Bruno Haible  <bruno@clisp.org>
30156
30157         * gnulib-tool (func_reset_sigpipe): Add more comments.
30158
30159 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30160
30161         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
30162         func_emit_tests_Makefile_am, func_import): Abort loops early if we
30163         already know the answer.
30164
30165 2009-01-01  Jim Meyering  <meyering@redhat.com>
30166
30167         * lib/version-etc.c (version_etc_va): Update copyright year.
30168
30169 2008-12-30  Bruno Haible  <bruno@clisp.org>
30170
30171         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
30172         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
30173         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
30174
30175 2008-12-29  Eric Blake  <ebb9@byu.net>
30176
30177         multiarch: avoid autoconf AC_REQUIRE bug
30178         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
30179         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
30180         2.63 and older.
30181         Reported by Bruno Haible, and analyzed in
30182         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
30183
30184 2008-12-29  Bruno Haible  <bruno@clisp.org>
30185
30186         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
30187         files in subdirectories correctly.
30188         Reported by Ralf Wildenhues.
30189
30190 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30191
30192         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
30193         rather than 'join FILE -', for Solaris join.
30194
30195 2008-12-29  Bruno Haible  <bruno@clisp.org>
30196
30197         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
30198         quoting.
30199         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
30200         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
30201         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
30202         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
30203         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
30204         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
30205         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
30206         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
30207         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
30208         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
30209         * m4/nls.m4 (AM_NLS): Likewise.
30210         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
30211         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
30212         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
30213         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
30214         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
30215         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
30216         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
30217         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
30218         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
30219         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
30220         * m4/xsize.m4 (gl_XSIZE): Likewise.
30221         Suggested by Jim Meyering.
30222
30223 2008-11-17  Bruce Korb  <bkorb@gnu.org>
30224
30225         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
30226         * lib/parse-duration.c: use a switch instead of cascading if's.
30227
30228 2008-12-29  Eric Blake  <ebb9@byu.net>
30229
30230         wchar.h: supply WEOF on Irix 5.3
30231         * lib/wchar.in.h (wint_t): Also supply WEOF.
30232         * lib/wctype.in.h (wint_t): Likewise.
30233         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
30234         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
30235         Reported by Tom G. Christensen.
30236
30237 2008-12-26  Bruno Haible  <bruno@clisp.org>
30238
30239         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
30240         i486, i586, i686.
30241
30242 2008-12-26  Bruno Haible  <bruno@clisp.org>
30243
30244         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
30245
30246 2008-12-26  Bruno Haible  <bruno@clisp.org>
30247
30248         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
30249         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
30250         not __STDC_CONSTANT_MACROS.
30251         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
30252
30253 2008-12-25  Bruno Haible  <bruno@clisp.org>
30254
30255         Add support for universal builds to vasnprintf.
30256         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
30257         universal builds, guess no.
30258         * modules/vasnprintf-posix (Depends-on): Add multiarch.
30259         * modules/vasprintf-posix (Depends-on): Likewise.
30260         * modules/fprintf-posix (Depends-on): Likewise.
30261         * modules/vfprintf-posix (Depends-on): Likewise.
30262         * modules/snprintf-posix (Depends-on): Likewise.
30263         * modules/vsnprintf-posix (Depends-on): Likewise.
30264         * modules/sprintf-posix (Depends-on): Likewise.
30265         * modules/vsprintf-posix (Depends-on): Likewise.
30266         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
30267         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
30268         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
30269         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
30270         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
30271         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
30272         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
30273
30274         Add support for universal builds to <inttypes.h>.
30275         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
30276         _SCNu64_PREFIX): In Apple
30277         universal builds, define directly, using _LP64.
30278         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
30279         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
30280         * modules/inttypes (Depends-on): Add multiarch.
30281         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
30282
30283         Add support for universal builds to <stdint.h>.
30284         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
30285         universal builds, define directly, using _LP64.
30286         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
30287         Apple universal builds, don't test for the size and suffix of ptrdiff_t
30288         and size_t.
30289         * modules/stdint (Depends-on): Add multiarch.
30290         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
30291
30292         New module 'multiarch'.
30293         * modules/multiarch: New file.
30294         * m4/multiarch.m4: New file.
30295
30296 2008-12-25  Bruno Haible  <bruno@clisp.org>
30297
30298         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
30299
30300 2008-12-25  Bruno Haible  <bruno@clisp.org>
30301
30302         * modules/btowc (License): Relicense under LGPLv2+.
30303         * modules/mbsinit (License): Likewise.
30304         * modules/mbrtowc (License): Likewise.
30305         * modules/wcrtomb (License): Likewise.
30306         * modules/streq (License): Likewise.
30307         Reported by David Lutterkort <lutter@redhat.com>.
30308
30309 2008-12-23  Bruno Haible  <bruno@clisp.org>
30310
30311         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
30312
30313 2008-12-23  Bruno Haible  <bruno@clisp.org>
30314
30315         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
30316         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
30317         GETADDRINFO_LIB, not in LIBS.
30318         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
30319         * modules/canon-host (Link): Likewise.
30320         * NEWS: Mention the change.
30321         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
30322         GETADDRINFO_LIB.
30323
30324 2008-12-22  Bruno Haible  <bruno@clisp.org>
30325
30326         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
30327         * doc/posix-functions/iswalpha_l.texi: Likewise.
30328         * doc/posix-functions/iswblank_l.texi: Likewise.
30329         * doc/posix-functions/iswcntrl_l.texi: Likewise.
30330         * doc/posix-functions/iswctype_l.texi: Likewise.
30331         * doc/posix-functions/iswdigit_l.texi: Likewise.
30332         * doc/posix-functions/iswgraph_l.texi: Likewise.
30333         * doc/posix-functions/iswlower_l.texi: Likewise.
30334         * doc/posix-functions/iswprint_l.texi: Likewise.
30335         * doc/posix-functions/iswpunct_l.texi: Likewise.
30336         * doc/posix-functions/iswspace_l.texi: Likewise.
30337         * doc/posix-functions/iswupper_l.texi: Likewise.
30338         * doc/posix-functions/iswxdigit_l.texi: Likewise.
30339         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
30340         * doc/posix-functions/open_wmemstream.texi: Likewise.
30341         * doc/posix-functions/swscanf.texi: Likewise.
30342         * doc/posix-functions/towctrans_l.texi: Likewise.
30343         * doc/posix-functions/towlower.texi: Likewise.
30344         * doc/posix-functions/towlower_l.texi: Likewise.
30345         * doc/posix-functions/towupper.texi: Likewise.
30346         * doc/posix-functions/towupper_l.texi: Likewise.
30347         * doc/posix-functions/vfwprintf.texi: Likewise.
30348         * doc/posix-functions/vfwscanf.texi: Likewise.
30349         * doc/posix-functions/vswscanf.texi: Likewise.
30350         * doc/posix-functions/vwprintf.texi: Likewise.
30351         * doc/posix-functions/vwscanf.texi: Likewise.
30352         * doc/posix-functions/wcpcpy.texi: Likewise.
30353         * doc/posix-functions/wcpncpy.texi: Likewise.
30354         * doc/posix-functions/wcscasecmp.texi: Likewise.
30355         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
30356         * doc/posix-functions/wcscoll_l.texi: Likewise.
30357         * doc/posix-functions/wcsdup.texi: Likewise.
30358         * doc/posix-functions/wcsncasecmp.texi: Likewise.
30359         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
30360         * doc/posix-functions/wcsnlen.texi: Likewise.
30361         * doc/posix-functions/wcsnrtombs.texi: Likewise.
30362         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
30363         * doc/posix-functions/wctrans_l.texi: Likewise.
30364         * doc/posix-functions/wctype_l.texi: Likewise.
30365         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
30366         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
30367         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
30368         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
30369         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
30370         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
30371         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
30372         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
30373         * doc/glibc-functions/wcschrnul.texi: Likewise.
30374         * doc/glibc-functions/wcsftime_l.texi: Likewise.
30375         * doc/glibc-functions/wcstod_l.texi: Likewise.
30376         * doc/glibc-functions/wcstof_l.texi: Likewise.
30377         * doc/glibc-functions/wcstol_l.texi: Likewise.
30378         * doc/glibc-functions/wcstold_l.texi: Likewise.
30379         * doc/glibc-functions/wcstoll_l.texi: Likewise.
30380         * doc/glibc-functions/wcstoq.texi: Likewise.
30381         * doc/glibc-functions/wcstoul_l.texi: Likewise.
30382         * doc/glibc-functions/wcstoull_l.texi: Likewise.
30383         * doc/glibc-functions/wcstouq.texi: Likewise.
30384         * doc/glibc-functions/wmempcpy.texi: Likewise.
30385
30386 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
30387             Eric Blake  <ebb9@byu.net>
30388             Paolo Bonzini  <bonzini@gnu.org>
30389             Bruno Haible  <bruno@clisp.org>
30390
30391         Make c-stack work on Haiku.
30392         * lib/c-stack.c (SA_ONSTACK): Define fallback.
30393         (c_stack_action): Use SA_ONSTACK flag.
30394
30395 2008-12-22  Bruno Haible  <bruno@clisp.org>
30396
30397         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
30398
30399 2008-12-22  Bruno Haible  <bruno@clisp.org>
30400
30401         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
30402         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
30403         being overridden.
30404         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
30405         New macros.
30406         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
30407         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
30408         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
30409         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
30410
30411 2008-12-22  Bruno Haible  <bruno@clisp.org>
30412
30413         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
30414         from test code.
30415
30416 2008-12-22  Eric Blake  <ebb9@byu.net>
30417
30418         Avoid gcc warnings on cygwin.
30419         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
30420         Avoid unused variable.
30421         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
30422         Likewise.
30423
30424 2008-12-22  Bruno Haible  <bruno@clisp.org>
30425
30426         Remove HAVE_MBRTOWC conditionals.
30427         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
30428         (mbscasecmp): Assume mbrtowc function.
30429         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
30430         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
30431         * lib/mbschr.c: Include mbuiter.h unconditionally.
30432         (mbschr): Assume mbrtowc function.
30433         * lib/mbscspn.c: Include mbuiter.h unconditionally.
30434         (mbscspn): Assume mbrtowc function.
30435         * lib/mbslen.c: Include mbuiter.h unconditionally.
30436         (mbslen): Assume mbrtowc function.
30437         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
30438         (mbsncasecmp): Assume mbrtowc function.
30439         * lib/mbsnlen.c: Include mbiter.h unconditionally.
30440         (mbsnlen): Assume mbrtowc function.
30441         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
30442         (mbspbrk): Assume mbrtowc function.
30443         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
30444         (mbspcasecmp): Assume mbrtowc function.
30445         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
30446         (mbsrchr): Assume mbrtowc function.
30447         * lib/mbssep.c: Include mbuiter.h unconditionally.
30448         (mbssep): Assume mbrtowc function.
30449         * lib/mbsspn.c: Include mbuiter.h unconditionally.
30450         (mbsspn): Assume mbrtowc function.
30451         * lib/mbsstr.c: Include mbuiter.h unconditionally.
30452         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
30453         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
30454         (mbstok_r): Assume mbrtowc function.
30455         * lib/propername.c: Include mbuiter.h unconditionally.
30456         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
30457         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
30458         (trim2): Assume mbrtowc function.
30459         * lib/mbswidth.c (mbsinit): Remove fallback definition.
30460         (mbsnwidth): Assume mbrtowc function.
30461         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
30462         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
30463         fallback definitions.
30464         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
30465
30466 2008-12-22  Bruno Haible  <bruno@clisp.org>
30467
30468         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
30469
30470 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
30471
30472         * modules/regex: Request emulations for the mb*/wc* functions we need.
30473         * m4/regex.m4: Don't look for those functions here.
30474         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
30475
30476 2008-12-22  Bruno Haible  <bruno@clisp.org>
30477
30478         * modules/fnmatch (Depends-on): Remove duplicated dependency.
30479
30480 2008-12-21  Bruno Haible  <bruno@clisp.org>
30481
30482         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
30483         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
30484         (Include): Remove conditionalization.
30485         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
30486         (Include): Remove conditionalization.
30487         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
30488         (Include): Remove conditionalization.
30489         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
30490         * m4/mbfile.m4 (gl_MBFILE): Likewise.
30491         * NEWS: Mention the change.
30492         Reported by Alan Hourihane <alanh@fairlite.co.uk>
30493         via Sergey Poznyakoff <gray@gnu.org.ua>.
30494
30495 2008-12-21  Bruno Haible  <bruno@clisp.org>
30496
30497         * MODULES.html.sh (Extended multibyte and wide character utilities
30498         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
30499         wcrtomb, wcsrtombs.
30500         (Support for systems lacking POSIX:2008): Add accept, bind, close,
30501         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
30502         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
30503         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
30504
30505 2008-12-21  Bruno Haible  <bruno@clisp.org>
30506
30507         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
30508
30509 2008-12-21  Bruno Haible  <bruno@clisp.org>
30510
30511         * modules/wcsnrtombs-tests: New file.
30512         * tests/test-wcsnrtombs1.sh: New file.
30513         * tests/test-wcsnrtombs2.sh: New file.
30514         * tests/test-wcsnrtombs3.sh: New file.
30515         * tests/test-wcsnrtombs4.sh: New file.
30516         * tests/test-wcsnrtombs.c: New file.
30517
30518         New module 'wcsnrtombs'.
30519         * lib/wchar.in.h (wcsnrtombs): New declaration.
30520         * lib/wcsnrtombs.c: New file.
30521         * lib/wcsrtombs-state.c: New file.
30522         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
30523         (internal_state): Remove variable.
30524         * m4/wcsnrtombs.m4: New file.
30525         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
30526         compilation units.
30527         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
30528         HAVE_WCSNRTOMBS.
30529         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
30530         HAVE_WCSNRTOMBS.
30531         * modules/wcsnrtombs: New file.
30532         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
30533         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
30534
30535 2008-12-21  Bruno Haible  <bruno@clisp.org>
30536
30537         * modules/wcsrtombs-tests: New file.
30538         * tests/test-wcsrtombs1.sh: New file.
30539         * tests/test-wcsrtombs2.sh: New file.
30540         * tests/test-wcsrtombs3.sh: New file.
30541         * tests/test-wcsrtombs4.sh: New file.
30542         * tests/test-wcsrtombs.c: New file.
30543
30544         New module 'wcsrtombs'.
30545         * lib/wchar.in.h (wcsrtombs): New declaration.
30546         * lib/wcsrtombs.c: New file.
30547         * m4/wcsrtombs.m4: New file.
30548         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
30549         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
30550         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
30551         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
30552         * modules/wcsrtombs: New file.
30553         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
30554         bugs.
30555
30556 2008-12-21  Bruno Haible  <bruno@clisp.org>
30557
30558         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
30559         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
30560         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
30561         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
30562         if not correct.
30563         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
30564         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
30565         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
30566         m4/locale-zh.m4, m4/codeset.m4.
30567         * doc/posix-functions/wcrtomb.texi: Document the bug.
30568
30569 2008-12-21  Bruno Haible  <bruno@clisp.org>
30570
30571         Work around a btowc() bug on IRIX 6.5.
30572         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
30573         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
30574         REPLACE_WTOBC if not.
30575         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
30576         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
30577         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
30578
30579 2008-12-21  Bruno Haible  <bruno@clisp.org>
30580
30581         * modules/wcrtomb-tests: New file.
30582         * tests/test-wcrtomb.sh: New file.
30583         * tests/test-wcrtomb.c: New file.
30584
30585         New module 'wcrtomb'.
30586         * lib/wchar.in.h (wcrtomb): New declaration.
30587         * lib/wcrtomb.c: New file.
30588         * m4/wcrtomb.m4: New file.
30589         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
30590         HAVE_WCRTOMB.
30591         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
30592         HAVE_WCRTOMB.
30593         * modules/wcrtomb: New file.
30594         * doc/posix-functions/wcrtomb.texi: Mention the new module.
30595
30596 2008-12-21  Bruno Haible  <bruno@clisp.org>
30597
30598         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
30599         * modules/mbsrtowcs (Files): Likewise.
30600         * modules/wctob (Files): Likewise.
30601         * modules/c-strcase-tests (Files): Likewise.
30602         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
30603         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
30604         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
30605         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
30606         * modules/vasnprintf-posix-tests (Files): Likewise.
30607
30608 2008-12-21  William Pursell  <bill.pursell@gmail.com>
30609
30610         gitlog-to-changelog: pass all command-line arguments to git-log
30611         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
30612         it is sometimes convenient to filter the commits in various ways.
30613         gitlog-to-changelog only allows --since to specify a start date,
30614         but git-log itself supports many other filtering mechanisms.
30615         At the moment, I want to filter by branch name.  Rather than
30616         adding a --branch option to gitlog-to-changelog, it seems more
30617         flexible to simply pass all options directly to git-log and let
30618         git do the work.  Notice that this effectively makes --since a
30619         redundant option for gitlog-to-changelog, but removing it would
30620         require current usage to change since calls would then require
30621         an additional '--'.
30622
30623 2008-12-21  Bruno Haible  <bruno@clisp.org>
30624
30625         * modules/mbsnrtowcs-tests: New file.
30626         * tests/test-mbsnrtowcs1.sh: New file.
30627         * tests/test-mbsnrtowcs2.sh: New file.
30628         * tests/test-mbsnrtowcs3.sh: New file.
30629         * tests/test-mbsnrtowcs4.sh: New file.
30630         * tests/test-mbsnrtowcs.c: New file.
30631
30632         New module 'mbsnrtowcs'.
30633         * lib/wchar.in.h (mbsnrtowcs): New declaration.
30634         * lib/mbsnrtowcs.c: New file.
30635         * lib/mbsrtowcs-state.c: New file.
30636         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
30637         (internal_state): Remove variable.
30638         * m4/mbsnrtowcs.m4: New file.
30639         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
30640         compilation units.
30641         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
30642         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
30643         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
30644         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
30645         * modules/mbsnrtowcs: New file.
30646         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
30647         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
30648         portability problem.
30649
30650 2008-12-21  Bruno Haible  <bruno@clisp.org>
30651
30652         Work around mbsrtowcs bug.
30653         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
30654         (gl_FUNC_MBSRTOWCS): Invoke it.
30655         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
30656         m4/locale-zh.m4.
30657         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
30658
30659 2008-12-21  Bruno Haible  <bruno@clisp.org>
30660
30661         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
30662
30663 2008-12-21  Bruno Haible  <bruno@clisp.org>
30664
30665         Update doc for AIX.
30666         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
30667         16-bit wchar_t type.
30668         * doc/posix-functions/btowc.texi: Likewise.
30669         * doc/posix-functions/fgetwc.texi: Likewise.
30670         * doc/posix-functions/fgetws.texi: Likewise.
30671         * doc/posix-functions/fputwc.texi: Likewise.
30672         * doc/posix-functions/fputws.texi: Likewise.
30673         * doc/posix-functions/fwide.texi: Likewise.
30674         * doc/posix-functions/fwprintf.texi: Likewise.
30675         * doc/posix-functions/fwscanf.texi: Likewise.
30676         * doc/posix-functions/getwchar.texi: Likewise.
30677         * doc/posix-functions/getwc.texi: Likewise.
30678         * doc/posix-functions/iswalnum.texi: Likewise.
30679         * doc/posix-functions/iswalpha.texi: Likewise.
30680         * doc/posix-functions/iswblank.texi: Likewise.
30681         * doc/posix-functions/iswcntrl.texi: Likewise.
30682         * doc/posix-functions/iswctype.texi: Likewise.
30683         * doc/posix-functions/iswdigit.texi: Likewise.
30684         * doc/posix-functions/iswgraph.texi: Likewise.
30685         * doc/posix-functions/iswlower.texi: Likewise.
30686         * doc/posix-functions/iswprint.texi: Likewise.
30687         * doc/posix-functions/iswpunct.texi: Likewise.
30688         * doc/posix-functions/iswspace.texi: Likewise.
30689         * doc/posix-functions/iswupper.texi: Likewise.
30690         * doc/posix-functions/iswxdigit.texi: Likewise.
30691         * doc/posix-functions/mbrtowc.texi: Likewise.
30692         * doc/posix-functions/mbsrtowcs.texi: Likewise.
30693         * doc/posix-functions/mbstowcs.texi: Likewise.
30694         * doc/posix-functions/mbtowc.texi: Likewise.
30695         * doc/posix-functions/putwchar.texi: Likewise.
30696         * doc/posix-functions/putwc.texi: Likewise.
30697         * doc/posix-functions/swprintf.texi: Likewise.
30698         * doc/posix-functions/tolower.texi: Likewise.
30699         * doc/posix-functions/toupper.texi: Likewise.
30700         * doc/posix-functions/towctrans.texi: Likewise.
30701         * doc/posix-functions/ungetwc.texi: Likewise.
30702         * doc/posix-functions/vswprintf.texi: Likewise.
30703         * doc/posix-functions/wcrtomb.texi: Likewise.
30704         * doc/posix-functions/wcscat.texi: Likewise.
30705         * doc/posix-functions/wcschr.texi: Likewise.
30706         * doc/posix-functions/wcscmp.texi: Likewise.
30707         * doc/posix-functions/wcscoll.texi: Likewise.
30708         * doc/posix-functions/wcscpy.texi: Likewise.
30709         * doc/posix-functions/wcscspn.texi: Likewise.
30710         * doc/posix-functions/wcsftime.texi: Likewise.
30711         * doc/posix-functions/wcslen.texi: Likewise.
30712         * doc/posix-functions/wcsncat.texi: Likewise.
30713         * doc/posix-functions/wcsncmp.texi: Likewise.
30714         * doc/posix-functions/wcsncpy.texi: Likewise.
30715         * doc/posix-functions/wcspbrk.texi: Likewise.
30716         * doc/posix-functions/wcsrchr.texi: Likewise.
30717         * doc/posix-functions/wcsrtombs.texi: Likewise.
30718         * doc/posix-functions/wcsspn.texi: Likewise.
30719         * doc/posix-functions/wcsstr.texi: Likewise.
30720         * doc/posix-functions/wcstod.texi: Likewise.
30721         * doc/posix-functions/wcstof.texi: Likewise.
30722         * doc/posix-functions/wcstoimax.texi: Likewise.
30723         * doc/posix-functions/wcstok.texi: Likewise.
30724         * doc/posix-functions/wcstold.texi: Likewise.
30725         * doc/posix-functions/wcstoll.texi: Likewise.
30726         * doc/posix-functions/wcstol.texi: Likewise.
30727         * doc/posix-functions/wcstombs.texi: Likewise.
30728         * doc/posix-functions/wcstoull.texi: Likewise.
30729         * doc/posix-functions/wcstoul.texi: Likewise.
30730         * doc/posix-functions/wcstoumax.texi: Likewise.
30731         * doc/posix-functions/wcswidth.texi: Likewise.
30732         * doc/posix-functions/wcsxfrm.texi: Likewise.
30733         * doc/posix-functions/wctob.texi: Likewise.
30734         * doc/posix-functions/wctomb.texi: Likewise.
30735         * doc/posix-functions/wctrans.texi: Likewise.
30736         * doc/posix-functions/wctype.texi: Likewise.
30737         * doc/posix-functions/wcwidth.texi: Likewise.
30738         * doc/posix-functions/wmemchr.texi: Likewise.
30739         * doc/posix-functions/wmemcmp.texi: Likewise.
30740         * doc/posix-functions/wmemcpy.texi: Likewise.
30741         * doc/posix-functions/wmemmove.texi: Likewise.
30742         * doc/posix-functions/wmemset.texi: Likewise.
30743         * doc/posix-functions/wprintf.texi: Likewise.
30744         * doc/posix-functions/wscanf.texi: Likewise.
30745
30746 2008-12-21  Bruno Haible  <bruno@clisp.org>
30747
30748         Update doc for HP-UX 11.11.
30749         * doc/posix-functions/btowc.texi: Clarify that the function is missing
30750         in HP-UX version 11.00, not in all versions of HP-UX 11.
30751         * doc/posix-functions/fwide.texi: Likewise.
30752         * doc/posix-functions/fwprintf.texi: Likewise.
30753         * doc/posix-functions/fwscanf.texi: Likewise.
30754         * doc/posix-functions/inet_ntop.texi: Likewise.
30755         * doc/posix-functions/inet_pton.texi: Likewise.
30756         * doc/posix-functions/mbrlen.texi: Likewise.
30757         * doc/posix-functions/mbrtowc.texi: Likewise.
30758         * doc/posix-functions/mbsinit.texi: Likewise.
30759         * doc/posix-functions/mbsrtowcs.texi: Likewise.
30760         * doc/posix-functions/swprintf.texi: Likewise.
30761         * doc/posix-functions/swscanf.texi: Likewise.
30762         * doc/posix-functions/towctrans.texi: Likewise.
30763         * doc/posix-functions/vfwprintf.texi: Likewise.
30764         * doc/posix-functions/vswprintf.texi: Likewise.
30765         * doc/posix-functions/vwprintf.texi: Likewise.
30766         * doc/posix-functions/wcrtomb.texi: Likewise.
30767         * doc/posix-functions/wcsrtombs.texi: Likewise.
30768         * doc/posix-functions/wcsstr.texi: Likewise.
30769         * doc/posix-functions/wctob.texi: Likewise.
30770         * doc/posix-functions/wctrans.texi: Likewise.
30771         * doc/posix-functions/wmemchr.texi: Likewise.
30772         * doc/posix-functions/wmemcmp.texi: Likewise.
30773         * doc/posix-functions/wmemcpy.texi: Likewise.
30774         * doc/posix-functions/wmemmove.texi: Likewise.
30775         * doc/posix-functions/wmemset.texi: Likewise.
30776         * doc/posix-functions/wprintf.texi: Likewise.
30777         * doc/posix-functions/wscanf.texi: Likewise.
30778
30779 2008-12-21  Bruno Haible  <bruno@clisp.org>
30780
30781         Work around a portability problem.
30782         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
30783         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
30784
30785 2008-12-20  Bruno Haible  <bruno@clisp.org>
30786
30787         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
30788         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
30789         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
30790         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
30791         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
30792
30793         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
30794         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
30795         set.
30796         (GNULIB_defined_mbstate_t): New macro.
30797         (mbsinit): Redefine if REPLACE_MBSINIT is set.
30798         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
30799         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
30800         reuses the system's mbrtowc function but works around the bugs.
30801         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
30802         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
30803         macros.
30804         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
30805         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
30806         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
30807         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
30808         REPLACE_MBSINIT if mbsinit needs to be overridden.
30809         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
30810         REPLACE_MBSINIT, REPLACE_MBRTOWC.
30811         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
30812         REPLACE_MBSINIT, REPLACE_MBRTOWC.
30813         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
30814         m4/locale-zh.m4.
30815         (Depends): Add mbsinit.
30816         * modules/mbsinit (Depends): Add mbrtowc.
30817         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
30818
30819 2008-12-20  Bruno Haible  <bruno@clisp.org>
30820
30821         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
30822         so that there are no conversion errors on AIX.
30823         * tests/test-mbsrtowcs.c (main): LIkewise.
30824
30825 2008-12-20  Bruno Haible  <bruno@clisp.org>
30826
30827         Work around wctob bug on Solaris <= 9.
30828         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
30829         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
30830         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
30831         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
30832         * modules/wctob (Files): Add m4/locale-fr.m4.
30833         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
30834
30835 2008-12-20  Bruno Haible  <bruno@clisp.org>
30836
30837         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
30838         /dev/null.
30839         * tests/test-select-in.sh: Likewise.
30840         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30841
30842 2008-12-20  Bruno Haible  <bruno@clisp.org>
30843
30844         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
30845         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
30846         Cygwin 1.5.x.
30847
30848 2008-12-20  Bruno Haible  <bruno@clisp.org>
30849
30850         Ensure mbstate_t is defined on HP-UX 11.11.
30851         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
30852         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
30853         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
30854         AC_USE_SYSTEM_EXTENSIONS.
30855         * modules/fnmatch (Depends-on): Add extensions.
30856         * modules/mbrlen (Depends-on): Likewise.
30857         * modules/mbrtowc (Depends-on): Likewise.
30858         * modules/mbsinit (Depends-on): Likewise.
30859         * modules/mbsrtowcs (Depends-on): Likewise.
30860         * modules/mbswidth (Depends-on): Likewise.
30861         * modules/quotearg (Depends-on): Likewise.
30862         * modules/strftime (Depends-on): Likewise.
30863
30864 2008-12-20  Bruno Haible  <bruno@clisp.org>
30865
30866         Ensure wctob is declared on IRIX 6.5.
30867         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
30868         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
30869         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
30870         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
30871         of HAVE_WCTOB.
30872         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
30873         HAVE_WCTOB.
30874         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
30875
30876 2008-12-19  Bruno Haible  <bruno@clisp.org>
30877
30878         * modules/mbsrtowcs-tests: New file.
30879         * tests/test-mbsrtowcs1.sh: New file.
30880         * tests/test-mbsrtowcs2.sh: New file.
30881         * tests/test-mbsrtowcs3.sh: New file.
30882         * tests/test-mbsrtowcs4.sh: New file.
30883         * tests/test-mbsrtowcs.c: New file.
30884
30885         New module 'mbsrtowcs'.
30886         * lib/wchar.in.h (mbsrtowcs): New declaration.
30887         * lib/mbsrtowcs.c: New file.
30888         * m4/mbsrtowcs.m4: New file.
30889         * modules/mbsrtowcs: New file.
30890         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
30891         HAVE_MBSRTOWCS.
30892         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
30893         HAVE_MBSRTOWCS.
30894         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
30895
30896 2008-12-19  Bruno Haible  <bruno@clisp.org>
30897
30898         New module 'mbrlen'.
30899         * lib/wchar.in.h (mbrlen): New declaration.
30900         * lib/mbrlen.c: New file.
30901         * m4/mbrlen.m4: New file.
30902         * modules/mbrlen: New file.
30903         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
30904         HAVE_MBRLEN.
30905         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
30906         HAVE_MBRLEN.
30907         * doc/posix-functions/mbrlen.texi: Document the new module.
30908
30909 2008-12-19  Bruno Haible  <bruno@clisp.org>
30910
30911         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
30912         * modules/mbrtowc (Depends-on): Add verify.
30913         Suggested by Paul Eggert.
30914
30915 2008-12-18  Bruno Haible  <bruno@clisp.org>
30916
30917         * modules/mbsinit-tests: New file.
30918         * tests/test-mbsinit.sh: New file.
30919         * tests/test-mbsinit.c: New file.
30920
30921 2008-12-18  Bruno Haible  <bruno@clisp.org>
30922
30923         * modules/mbrtowc-tests: New file.
30924         * tests/test-mbrtowc1.sh: New file.
30925         * tests/test-mbrtowc2.sh: New file.
30926         * tests/test-mbrtowc3.sh: New file.
30927         * tests/test-mbrtowc4.sh: New file.
30928         * tests/test-mbrtowc.c: New file.
30929
30930         New module 'mbrtowc'.
30931         * lib/wchar.in.h (mbstate_t): Override when the system does not have
30932         mbsinit and mbrtowc.
30933         (mbrtowc): New declaration.
30934         * lib/mbrtowc.c: New file.
30935         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
30936         * modules/mbrtowc: New file.
30937         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
30938         HAVE_MBRTOWC.
30939         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
30940         HAVE_MBRTOWC.
30941         * doc/posix-functions/mbrtowc.texi: Document the new module.
30942
30943 2008-12-18  Bruno Haible  <bruno@clisp.org>
30944
30945         New module 'wctob'.
30946         * lib/wchar.in.h (wctob): New declaration.
30947         * lib/wctob.c: New file.
30948         * m4/wctob.m4: New file.
30949         * modules/wctob: New file.
30950         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
30951         HAVE_WCTOB.
30952         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
30953         * doc/posix-functions/wctob.texi: Document the new module.
30954
30955 2008-12-18  Bruno Haible  <bruno@clisp.org>
30956
30957         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
30958         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
30959
30960 2008-12-18  Simon Josefsson  <simon@josefsson.org>
30961
30962         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
30963         G. Christensen" <tgc@jupiterrise.com>.
30964
30965         * lib/flock.c: Need to include errno.h.  Reported by "Tom
30966         G. Christensen" <tgc@jupiterrise.com>.
30967
30968         * lib/flock.c: Need to include string.h.  Reported by "Tom
30969         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
30970         <ebb9@byu.net>.
30971
30972 2008-12-18  Bruno Haible  <bruno@clisp.org>
30973
30974         * m4/locale-ja.m4: New file, from GNU gettext.
30975
30976 2008-12-17  Bruno Haible  <bruno@clisp.org>
30977
30978         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
30979         Suggested by Eric Blake.
30980
30981 2008-12-17  Bruno Haible  <bruno@clisp.org>
30982
30983         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
30984
30985 2008-12-17  Bruno Haible  <bruno@clisp.org>
30986
30987         * lib/mbsinit.c: Include verify.h. Verify an assumption.
30988         * modules/mbsinit (Depends-on): Add verify.
30989         Suggested by Paul Eggert.
30990
30991 2008-12-17  Bruno Haible  <bruno@clisp.org>
30992
30993         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
30994         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
30995         gl_FUNC_MBRTOWC.
30996         * m4/mbiter.m4 (gl_MBITER): LIkewise.
30997         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
30998         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
30999         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
31000         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
31001         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
31002         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
31003         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
31004         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
31005         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
31006         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
31007         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
31008         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
31009         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
31010         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
31011         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
31012         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
31013         * modules/trim (configure.ac): Likewise.
31014
31015 2008-12-17  Bruno Haible  <bruno@clisp.org>
31016
31017         * modules/btowc-tests: New file.
31018         * tests/test-btowc1.sh: New file.
31019         * tests/test-btowc2.sh: New file.
31020         * tests/test-btowc.c: New file.
31021
31022         New module 'btowc'.
31023         * lib/wchar.in.h (btowc): New declaration.
31024         * lib/btowc.c: New file.
31025         * m4/btowc.m4: New file.
31026         * modules/btowc: New file.
31027         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
31028         HAVE_BTOWC.
31029         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
31030         * doc/posix-functions/btowc.texi: Document the new module.
31031
31032 2008-12-17  Bruno Haible  <bruno@clisp.org>
31033
31034         New module 'mbsinit'.
31035         * lib/wchar.in.h (mbsinit): New declaration.
31036         * lib/mbsinit.c: New file.
31037         * m4/mbsinit.m4: New file.
31038         * modules/mbsinit: New file.
31039         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
31040         HAVE_MBSINIT.
31041         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
31042         HAVE_MBSINIT.
31043         * doc/posix-functions/mbsinit.texi: Document the new module.
31044
31045 2008-12-16  Bruno Haible  <bruno@clisp.org>
31046
31047         * lib/unistd.in.h: Add comment.
31048         * tests/test-environ.c: Don't include <stdlib.h>.
31049
31050 2008-12-16  Bruno Haible  <bruno@clisp.org>
31051
31052         * lib/parse-duration.h (parse_duration): Document return value
31053         convention.
31054         * lib/parse-duration.c: Include specification header first. Add
31055         comments.
31056         (_): Remove macro.
31057         (parse_year_month_day, parse_hour_minute_second): Move side effects
31058         outside of strchr call.
31059         (parse_non_iso8601): Move side effects outside of isspace call.
31060         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
31061         call.
31062
31063 2008-12-16  Bruno Haible  <bruno@clisp.org>
31064
31065         * tests/test-parse-duration.sh: Produce no output when the test
31066         succeeds.
31067
31068 2008-12-16  Bruno Haible  <bruno@clisp.org>
31069
31070         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
31071         expressions.
31072
31073 2008-12-15  Bruno Haible  <bruno@clisp.org>
31074
31075         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
31076         * doc/glibc-functions/flistxattr.texi: Likewise.
31077         * doc/glibc-functions/fopencookie.texi: Likewise.
31078         * doc/glibc-functions/fremovexattr.texi: Likewise.
31079         * doc/glibc-functions/fsetxattr.texi: Likewise.
31080         * doc/glibc-functions/getxattr.texi: Likewise.
31081         * doc/glibc-functions/lgetxattr.texi: Likewise.
31082         * doc/glibc-functions/listxattr.texi: Likewise.
31083         * doc/glibc-functions/llistxattr.texi: Likewise.
31084         * doc/glibc-functions/lremovexattr.texi: Likewise.
31085         * doc/glibc-functions/lsetxattr.texi: Likewise.
31086         * doc/glibc-functions/removexattr.texi: Likewise.
31087         * doc/glibc-functions/setxattr.texi: Likewise.
31088         * doc/posix-functions/open_memstream.texi: Likewise.
31089
31090 2008-12-15  Eric Blake  <ebb9@byu.net>
31091
31092         Update doc for cygwin 1.7.
31093         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
31094         functions.
31095         * doc/posix-functions/fchmodat.texi: Likewise.
31096         * doc/posix-functions/fchownat.texi: Likewise.
31097         * doc/posix-functions/fdopendir.texi: Likewise.
31098         * doc/posix-functions/fmemopen.texi: Likewise.
31099         * doc/posix-functions/freeaddrinfo.texi: Likewise.
31100         * doc/posix-functions/fstatat.texi: Likewise.
31101         * doc/posix-functions/futimens.texi: Likewise.
31102         * doc/posix-functions/gai_strerror.texi: Likewise.
31103         * doc/posix-functions/getaddrinfo.texi: Likewise.
31104         * doc/posix-functions/getnameinfo.texi: Likewise.
31105         * doc/posix-functions/if_freenameindex.texi: Likewise.
31106         * doc/posix-functions/if_indextoname.texi: Likewise.
31107         * doc/posix-functions/if_nameindex.texi: Likewise.
31108         * doc/posix-functions/if_nametoindex.texi: Likewise.
31109         * doc/posix-functions/insque.texi: Likewise.
31110         * doc/posix-functions/linkat.texi: Likewise.
31111         * doc/posix-functions/llrint.texi: Likewise.
31112         * doc/posix-functions/llrintf.texi: Likewise.
31113         * doc/posix-functions/llrintl.texi: Likewise.
31114         * doc/posix-functions/lockf.texi: Likewise.
31115         * doc/posix-functions/lrintl.texi: Likewise.
31116         * doc/posix-functions/mkdirat.texi: Likewise.
31117         * doc/posix-functions/mkfifoat.texi: Likewise.
31118         * doc/posix-functions/mknodat.texi: Likewise.
31119         * doc/posix-functions/mq_close.texi: Likewise.
31120         * doc/posix-functions/mq_getattr.texi: Likewise.
31121         * doc/posix-functions/mq_notify.texi: Likewise.
31122         * doc/posix-functions/mq_open.texi: Likewise.
31123         * doc/posix-functions/mq_receive.texi: Likewise.
31124         * doc/posix-functions/mq_send.texi: Likewise.
31125         * doc/posix-functions/mq_setattr.texi: Likewise.
31126         * doc/posix-functions/mq_timedreceive.texi: Likewise.
31127         * doc/posix-functions/mq_timedsend.texi: Likewise.
31128         * doc/posix-functions/mq_unlink.texi: Likewise.
31129         * doc/posix-functions/open_memstream.texi: Likewise.
31130         * doc/posix-functions/openat.texi: Likewise.
31131         * doc/posix-functions/posix_fadvise.texi: Likewise.
31132         * doc/posix-functions/posix_fallocate.texi: Likewise.
31133         * doc/posix-functions/posix_madvise.texi: Likewise.
31134         * doc/posix-functions/posix_memalign.texi: Likewise.
31135         * doc/posix-functions/posix_openpt.texi: Likewise.
31136         * doc/posix-functions/readlinkat.texi: Likewise.
31137         * doc/posix-functions/remque.texi: Likewise.
31138         * doc/posix-functions/renameat.texi: Likewise.
31139         * doc/posix-functions/rintl.texi: Likewise.
31140         * doc/posix-functions/sem_unlink.texi: Likewise.
31141         * doc/posix-functions/shm_open.texi: Likewise.
31142         * doc/posix-functions/shm_unlink.texi: Likewise.
31143         * doc/posix-functions/signgam.texi: Likewise.
31144         * doc/posix-functions/sigset.texi: Likewise.
31145         * doc/posix-functions/stpcpy.texi: Likewise.
31146         * doc/posix-functions/stpncpy.texi: Likewise.
31147         * doc/posix-functions/strerror.texi: Likewise.
31148         * doc/posix-functions/strtod.texi: Likewise.
31149         * doc/posix-functions/symlinkat.texi: Likewise.
31150         * doc/posix-functions/unlinkat.texi: Likewise.
31151         * doc/posix-functions/utimensat.texi: Likewise.
31152         * doc/glibc-functions/bindresvport.texi: Likewise.
31153         * doc/glibc-functions/dn_expand.texi: Likewise.
31154         * doc/glibc-functions/exp10.texi: Likewise.
31155         * doc/glibc-functions/exp10f.texi: Likewise.
31156         * doc/glibc-functions/fgetxattr.texi: Likewise.
31157         * doc/glibc-functions/flistxattr.texi: Likewise.
31158         * doc/glibc-functions/fopencookie.texi: Likewise.
31159         * doc/glibc-functions/freeifaddrs.texi: Likewise.
31160         * doc/glibc-functions/fremovexattr.texi: Likewise.
31161         * doc/glibc-functions/fsetxattr.texi: Likewise.
31162         * doc/glibc-functions/getifaddrs.texi: Likewise.
31163         * doc/glibc-functions/getxattr.texi: Likewise.
31164         * doc/glibc-functions/lgetxattr.texi: Likewise.
31165         * doc/glibc-functions/listxattr.texi: Likewise.
31166         * doc/glibc-functions/llistxattr.texi: Likewise.
31167         * doc/glibc-functions/lremovexattr.texi: Likewise.
31168         * doc/glibc-functions/lsetxattr.texi: Likewise.
31169         * doc/glibc-functions/pow10.texi: Likewise.
31170         * doc/glibc-functions/pow10f.texi: Likewise.
31171         * doc/glibc-functions/rcmd_af.texi: Likewise.
31172         * doc/glibc-functions/removexattr.texi: Likewise.
31173         * doc/glibc-functions/res_init.texi: Likewise.
31174         * doc/glibc-functions/res_mkquery.texi: Likewise.
31175         * doc/glibc-functions/res_query.texi: Likewise.
31176         * doc/glibc-functions/res_querydomain.texi: Likewise.
31177         * doc/glibc-functions/res_send.texi: Likewise.
31178         * doc/glibc-functions/rresvport_af.texi: Likewise.
31179         * doc/glibc-functions/setxattr.texi: Likewise.
31180         * doc/glibc-functions/strcasestr.texi: Likewise.
31181
31182 2008-12-15  Bruno Haible  <bruno@clisp.org>
31183
31184         Fix compilation error on OSF/1 4.0.
31185         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
31186         <sys/time.h>, simply delegate to the system header.
31187         Reported by Daniel Richard G. <oss@teragram.com>.
31188
31189 2008-12-15  Bruno Haible  <bruno@clisp.org>
31190
31191         * doc/posix-functions/openat.texi: Mention the 'openat' module.
31192         * doc/posix-functions/fchmodat.texi: Likewise.
31193         * doc/posix-functions/fchownat.texi: Likewise.
31194         * doc/posix-functions/fdopendir.texi: Likewise.
31195         * doc/posix-functions/fstatat.texi: Likewise.
31196         * doc/posix-functions/mkdirat.texi: Likewise.
31197         * doc/posix-functions/unlinkat.texi: Likewise.
31198
31199 2008-12-14  Bruno Haible  <bruno@clisp.org>
31200
31201         Update doc for POSIX:2008.
31202         * doc/posix-functions/faccessat.texi: New file.
31203         * doc/posix-functions/fchmodat.texi: New file.
31204         * doc/posix-functions/fchownat.texi: New file.
31205         * doc/posix-functions/fdopendir.texi: New file.
31206         * doc/posix-functions/fstatat.texi: New file.
31207         * doc/posix-functions/futimens.texi: New file.
31208         * doc/posix-functions/linkat.texi: New file.
31209         * doc/posix-functions/mkdirat.texi: New file.
31210         * doc/posix-functions/mkfifoat.texi: New file.
31211         * doc/posix-functions/mknodat.texi: New file.
31212         * doc/posix-functions/open_wmemstream.texi: New file.
31213         * doc/posix-functions/openat.texi: New file.
31214         * doc/posix-functions/psiginfo.texi: New file.
31215         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
31216         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
31217         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
31218         * doc/posix-functions/readlinkat.texi: New file.
31219         * doc/posix-functions/renameat.texi: New file.
31220         * doc/posix-functions/strerror_l.texi: New file.
31221         * doc/posix-functions/symlinkat.texi: New file.
31222         * doc/posix-functions/unlinkat.texi: New file.
31223         * doc/posix-functions/utimensat.texi: New file.
31224         * doc/gnulib.texi (Function Substitutes): Add these subsections.
31225
31226 2008-12-14  Bruno Haible  <bruno@clisp.org>
31227
31228         Update doc for POSIX:2008.
31229         * doc/posix-functions/alphasort.texi: Renamed from
31230         doc/glibc-functions/alphasort.texi.
31231         * doc/posix-functions/dirfd.texi: Renamed from
31232         doc/glibc-functions/dirfd.texi.
31233         * doc/posix-functions/dprintf.texi: Renamed from
31234         doc/glibc-functions/dprintf.texi.
31235         * doc/posix-functions/duplocale.texi: Renamed from
31236         doc/glibc-functions/duplocale.texi.
31237         * doc/posix-functions/fexecve.texi: Renamed from
31238         doc/glibc-functions/fexecve.texi.
31239         * doc/posix-functions/fmemopen.texi: Renamed from
31240         doc/glibc-functions/fmemopen.texi.
31241         * doc/posix-functions/freelocale.texi: Renamed from
31242         doc/glibc-functions/freelocale.texi.
31243         * doc/posix-functions/getdate_err.texi: Renamed from
31244         doc/glibc-functions/getdate_err.texi.
31245         * doc/posix-functions/isalnum_l.texi: Renamed from
31246         doc/glibc-functions/isalnum_l.texi.
31247         * doc/posix-functions/isalpha_l.texi: Renamed from
31248         doc/glibc-functions/isalpha_l.texi.
31249         * doc/posix-functions/isblank_l.texi: Renamed from
31250         doc/glibc-functions/isblank_l.texi.
31251         * doc/posix-functions/iscntrl_l.texi: Renamed from
31252         doc/glibc-functions/iscntrl_l.texi.
31253         * doc/posix-functions/isdigit_l.texi: Renamed from
31254         doc/glibc-functions/isdigit_l.texi.
31255         * doc/posix-functions/isgraph_l.texi: Renamed from
31256         doc/glibc-functions/isgraph_l.texi.
31257         * doc/posix-functions/islower_l.texi: Renamed from
31258         doc/glibc-functions/islower_l.texi.
31259         * doc/posix-functions/isprint_l.texi: Renamed from
31260         doc/glibc-functions/isprint_l.texi.
31261         * doc/posix-functions/ispunct_l.texi: Renamed from
31262         doc/glibc-functions/ispunct_l.texi.
31263         * doc/posix-functions/isspace_l.texi: Renamed from
31264         doc/glibc-functions/isspace_l.texi.
31265         * doc/posix-functions/isupper_l.texi: Renamed from
31266         doc/glibc-functions/isupper_l.texi.
31267         * doc/posix-functions/iswalnum_l.texi: Renamed from
31268         doc/glibc-functions/iswalnum_l.texi.
31269         * doc/posix-functions/iswalpha_l.texi: Renamed from
31270         doc/glibc-functions/iswalpha_l.texi.
31271         * doc/posix-functions/iswblank_l.texi: Renamed from
31272         doc/glibc-functions/iswblank_l.texi.
31273         * doc/posix-functions/iswcntrl_l.texi: Renamed from
31274         doc/glibc-functions/iswcntrl_l.texi.
31275         * doc/posix-functions/iswctype_l.texi: Renamed from
31276         doc/glibc-functions/iswctype_l.texi.
31277         * doc/posix-functions/iswdigit_l.texi: Renamed from
31278         doc/glibc-functions/iswdigit_l.texi.
31279         * doc/posix-functions/iswgraph_l.texi: Renamed from
31280         doc/glibc-functions/iswgraph_l.texi.
31281         * doc/posix-functions/iswlower_l.texi: Renamed from
31282         doc/glibc-functions/iswlower_l.texi.
31283         * doc/posix-functions/iswprint_l.texi: Renamed from
31284         doc/glibc-functions/iswprint_l.texi.
31285         * doc/posix-functions/iswpunct_l.texi: Renamed from
31286         doc/glibc-functions/iswpunct_l.texi.
31287         * doc/posix-functions/iswspace_l.texi: Renamed from
31288         doc/glibc-functions/iswspace_l.texi.
31289         * doc/posix-functions/iswupper_l.texi: Renamed from
31290         doc/glibc-functions/iswupper_l.texi.
31291         * doc/posix-functions/iswxdigit_l.texi: Renamed from
31292         doc/glibc-functions/iswxdigit_l.texi.
31293         * doc/posix-functions/isxdigit_l.texi: Renamed from
31294         doc/glibc-functions/isxdigit_l.texi.
31295         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
31296         doc/glibc-functions/mbsnrtowcs.texi.
31297         * doc/posix-functions/mkdtemp.texi: Renamed from
31298         doc/glibc-functions/mkdtemp.texi.
31299         * doc/posix-functions/newlocale.texi: Renamed from
31300         doc/glibc-functions/newlocale.texi.
31301         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
31302         doc/glibc-functions/nl_langinfo_l.texi.
31303         * doc/posix-functions/open_memstream.texi: Renamed from
31304         doc/glibc-functions/open_memstream.texi.
31305         * doc/posix-functions/opterr.texi: Renamed from
31306         doc/glibc-functions/opterr.texi.
31307         * doc/posix-functions/optind.texi: Renamed from
31308         doc/glibc-functions/optind.texi.
31309         * doc/posix-functions/optopt.texi: Renamed from
31310         doc/glibc-functions/optopt.texi.
31311         * doc/posix-functions/psignal.texi: Renamed from
31312         doc/glibc-functions/psignal.texi.
31313         * doc/posix-functions/scandir.texi: Renamed from
31314         doc/glibc-functions/scandir.texi.
31315         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
31316         doc/glibc-functions/sched_get_priority_min.texi.
31317         * doc/posix-functions/signgam.texi: Renamed from
31318         doc/glibc-functions/signgam.texi.
31319         * doc/posix-functions/stpcpy.texi: Renamed from
31320         doc/glibc-functions/stpcpy.texi.
31321         * doc/posix-functions/stpncpy.texi: Renamed from
31322         doc/glibc-functions/stpncpy.texi.
31323         * doc/posix-functions/strcasecmp_l.texi: Renamed from
31324         doc/glibc-functions/strcasecmp_l.texi.
31325         * doc/posix-functions/strcoll_l.texi: Renamed from
31326         doc/glibc-functions/strcoll_l.texi.
31327         * doc/posix-functions/strfmon_l.texi: Renamed from
31328         doc/glibc-functions/strfmon_l.texi.
31329         * doc/posix-functions/strftime_l.texi: Renamed from
31330         doc/glibc-functions/strftime_l.texi.
31331         * doc/posix-functions/strncasecmp_l.texi: Renamed from
31332         doc/glibc-functions/strncasecmp_l.texi.
31333         * doc/posix-functions/strndup.texi: Renamed from
31334         doc/glibc-functions/strndup.texi.
31335         * doc/posix-functions/strnlen.texi: Renamed from
31336         doc/glibc-functions/strnlen.texi.
31337         * doc/posix-functions/strsignal.texi: Renamed from
31338         doc/glibc-functions/strsignal.texi.
31339         * doc/posix-functions/strxfrm_l.texi: Renamed from
31340         doc/glibc-functions/strxfrm_l.texi.
31341         * doc/posix-functions/timer_gettime.texi: Renamed from
31342         doc/glibc-functions/timer_gettime.texi.
31343         * doc/posix-functions/tolower_l.texi: Renamed from
31344         doc/glibc-functions/tolower_l.texi.
31345         * doc/posix-functions/toupper_l.texi: Renamed from
31346         doc/glibc-functions/toupper_l.texi.
31347         * doc/posix-functions/towctrans_l.texi: Renamed from
31348         doc/glibc-functions/towctrans_l.texi.
31349         * doc/posix-functions/towlower_l.texi: Renamed from
31350         doc/glibc-functions/towlower_l.texi.
31351         * doc/posix-functions/towupper_l.texi: Renamed from
31352         doc/glibc-functions/towupper_l.texi.
31353         * doc/posix-functions/uselocale.texi: Renamed from
31354         doc/glibc-functions/uselocale.texi.
31355         * doc/posix-functions/vdprintf.texi: Renamed from
31356         doc/glibc-functions/vdprintf.texi.
31357         * doc/posix-functions/wcpcpy.texi:
31358         Renamed from doc/glibc-functions/wcpcpy.texi.
31359         * doc/posix-functions/wcpncpy.texi: Renamed from
31360         doc/glibc-functions/wcpncpy.texi.
31361         * doc/posix-functions/wcscasecmp.texi: Renamed from
31362         doc/glibc-functions/wcscasecmp.texi.
31363         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
31364         doc/glibc-functions/wcscasecmp_l.texi.
31365         * doc/posix-functions/wcscoll_l.texi: Renamed from
31366         doc/glibc-functions/wcscoll_l.texi.
31367         * doc/posix-functions/wcsdup.texi: Renamed from
31368         doc/glibc-functions/wcsdup.texi.
31369         * doc/posix-functions/wcsncasecmp.texi: Renamed from
31370         doc/glibc-functions/wcsncasecmp.texi.
31371         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
31372         doc/glibc-functions/wcsncasecmp_l.texi.
31373         * doc/posix-functions/wcsnlen.texi: Renamed from
31374         doc/glibc-functions/wcsnlen.texi.
31375         * doc/posix-functions/wcsnrtombs.texi: Renamed from
31376         doc/glibc-functions/wcsnrtombs.texi.
31377         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
31378         doc/glibc-functions/wcsxfrm_l.texi.
31379         * doc/posix-functions/wctrans_l.texi: Renamed from
31380         doc/glibc-functions/wctrans_l.texi.
31381         * doc/posix-functions/wctype_l.texi: Renamed from
31382         doc/glibc-functions/wctype_l.texi.
31383         * doc/gnulib.texi (Function Substitutes): Add these subsections.
31384         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
31385         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
31386         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
31387         these subsections.
31388         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
31389         Remove sections.
31390
31391 2008-12-14  Bruno Haible  <bruno@clisp.org>
31392
31393         Update doc for POSIX:2008.
31394         * doc/posix-functions/*.texi: Update URL of POSIX specification.
31395
31396 2008-12-14  Bruno Haible  <bruno@clisp.org>
31397
31398         Update doc for POSIX:2008.
31399         * doc/pastposix-functions/bcmp.texi: Renamed from
31400         doc/posix-functions/bcmp.texi.
31401         * doc/pastposix-functions/bcopy.texi: Renamed from
31402         doc/posix-functions/bcopy.texi.
31403         * doc/pastposix-functions/bsd_signal.texi: Renamed from
31404         doc/posix-functions/bsd_signal.texi.
31405         * doc/pastposix-functions/bzero.texi: Renamed from
31406         doc/posix-functions/bzero.texi.
31407         * doc/pastposix-functions/ecvt.texi: Renamed from
31408         doc/posix-functions/ecvt.texi.
31409         * doc/pastposix-functions/fcvt.texi: Renamed from
31410         doc/posix-functions/fcvt.texi.
31411         * doc/pastposix-functions/ftime.texi: Renamed from
31412         doc/posix-functions/ftime.texi.
31413         * doc/pastposix-functions/gcvt.texi: Renamed from
31414         doc/posix-functions/gcvt.texi.
31415         * doc/pastposix-functions/getcontext.texi: Renamed from
31416         doc/posix-functions/getcontext.texi.
31417         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
31418         doc/posix-functions/gethostbyaddr.texi.
31419         * doc/pastposix-functions/gethostbyname.texi: Renamed from
31420         doc/posix-functions/gethostbyname.texi.
31421         * doc/pastposix-functions/getwd.texi: Renamed from
31422         doc/posix-functions/getwd.texi.
31423         * doc/pastposix-functions/h_errno.texi: Renamed from
31424         doc/posix-functions/h_errno.texi.
31425         * doc/pastposix-functions/index.texi: Renamed from
31426         doc/posix-functions/index.texi.
31427         * doc/pastposix-functions/makecontext.texi: Renamed from
31428         doc/posix-functions/makecontext.texi.
31429         * doc/pastposix-functions/mktemp.texi: Renamed from
31430         doc/posix-functions/mktemp.texi.
31431         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
31432         doc/posix-functions/pthread_attr_getstackaddr.texi.
31433         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
31434         doc/posix-functions/pthread_attr_setstackaddr.texi.
31435         * doc/pastposix-functions/rindex.texi: Renamed from
31436         doc/posix-functions/rindex.texi.
31437         * doc/pastposix-functions/scalb.texi: Renamed from
31438         doc/posix-functions/scalb.texi.
31439         * doc/pastposix-functions/setcontext.texi: Renamed from
31440         doc/posix-functions/setcontext.texi.
31441         * doc/pastposix-functions/swapcontext.texi: Renamed from
31442         doc/posix-functions/swapcontext.texi.
31443         * doc/pastposix-functions/ualarm.texi: Renamed from
31444         doc/posix-functions/ualarm.texi.
31445         * doc/pastposix-functions/usleep.texi: Renamed from
31446         doc/posix-functions/usleep.texi.
31447         * doc/pastposix-functions/vfork.texi: Renamed from
31448         doc/posix-functions/vfork.texi.
31449         * doc/pastposix-functions/wcswcs.texi: Renamed from
31450         doc/posix-functions/wcswcs.texi.
31451         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
31452         (Function Substitutes): Update.
31453
31454 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31455
31456         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
31457         m4/strerror.m4.
31458
31459 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31460             Bruno Haible  <bruno@clisp.org>
31461
31462         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
31463
31464 2008-12-13  Bruno Haible  <bruno@clisp.org>
31465
31466         * modules/strtoull (Depends-on): Remove unistd.
31467
31468 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31469
31470         * modules/strtoull (Depends-on): Add stdlib.
31471
31472 2008-12-11  Simon Josefsson  <simon@josefsson.org>
31473
31474         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
31475
31476 2008-12-10  Jim Meyering  <meyering@redhat.com>
31477
31478         gl_ASSERT: don't say assertions are disabled when they're not
31479         * m4/assert.m4 (gl_ASSERT): Do not make configure report
31480         "checking whether to enable assertions... no", when they are in
31481         fact enabled.  This is solely a bug in the output of configure.
31482         In spite of saying "no", NDEBUG was not defined in that case.
31483         Also, as noted by Eric Blake, leave assertions enabled upon
31484         --enable-assert=INVALID.
31485
31486 2008-12-10  Bruno Haible  <bruno@clisp.org>
31487
31488         Change MODULES.html to refer to POSIX:2008 where possible.
31489         * MODULES.html.sh (POSIX2008_URL): New variable.
31490         (posix_headers): Remove sys/timeb, ucontext.
31491         (posix2001_headers): New variable.
31492         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
31493         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
31494         index, makecontext, mktemp, pthread_attr_getstackaddr,
31495         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
31496         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
31497         (posix2001_functions): New variable.
31498         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
31499         otherwise.
31500
31501 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31502
31503         add missing include to parse-duration.c
31504         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
31505         * modules/parse-duration (Depends-on): Add xalloc.
31506
31507         fix sed script reading maint.mk
31508         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
31509         (syntax-check-rules): Use it.
31510
31511 2008-12-09  Bruno Haible  <bruno@clisp.org>
31512
31513         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
31514         MacOS X 10.4/PowerPC.
31515         Reported by Simon Josefsson.
31516
31517 2008-12-08  Jim Meyering  <meyering@redhat.com>
31518
31519         work around mingw's lack of some S_IF definitions
31520         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
31521         Reported by Simon Josefsson.
31522
31523 2008-12-08  Bruno Haible  <bruno@clisp.org>
31524
31525         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
31526         applied to variables. Needed on MacOS X 10.4/PowerPC.
31527         Reported by Simon Josefsson.
31528
31529 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
31530         and Eric Blake  <ebb9@byu.net>
31531
31532         assert: honor --enable-assert
31533         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
31534         order to honor --enable-assert, rather than treating it as a
31535         synonym for --disable-assert.
31536
31537 2008-12-08  Jim Meyering  <meyering@redhat.com>
31538
31539         * lib/posixtm.c: Remove now-useless declaration of mktime.
31540
31541         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
31542
31543 2008-12-07  Bruno Haible  <bruno@clisp.org>
31544
31545         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
31546         test_once): Mark functions as static.
31547         * tests/test-tls.c (test_tls): Likewise.
31548
31549 2008-12-07  Bruno Haible  <bruno@clisp.org>
31550
31551         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
31552         iconv_register_autodetect.
31553
31554 2008-12-07  Jim Meyering  <meyering@redhat.com>
31555
31556         posixtm.c: avoid a warning
31557         * lib/posixtm.c (posixtime): Don't initialize tm0.
31558         It's no longer needed to placate gcc4's -Wuninitialized,
31559         and the attempt to placate would elicit a new warning.
31560
31561         unicodeio.c: mark unused parameters
31562         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
31563         (fallback_failure_callback): Likewise.
31564
31565 2008-12-07  Bruno Haible  <bruno@clisp.org>
31566
31567         * gnulib-tool (func_create_testdir): When building the tests
31568         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
31569         Reported by Simon Josefsson.
31570
31571 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31572
31573         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
31574
31575 2008-12-06  Bruno Haible  <bruno@clisp.org>
31576
31577         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
31578         Suggested by Eric Blake.
31579
31580 2008-12-06  Bruno Haible  <bruno@clisp.org>
31581
31582         Fix a c-stack test failure on MacOS X.
31583         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
31584         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
31585         handler for SIGBUS as well.
31586         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
31587         install a signal handler for SIGBUS as well.
31588         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
31589
31590 2008-12-06  Bruno Haible  <bruno@clisp.org>
31591
31592         Advocacy documentation.
31593         * doc/gnulib-intro.texi (Benefits): New section.
31594         * doc/gnulib.texi: Update.
31595
31596 2008-12-06  Bruno Haible  <bruno@clisp.org>
31597
31598         Document the 'manywarnings' module.
31599         * doc/manywarnings.texi: New file.
31600         * doc/gnulib.texi: Include it.
31601
31602 2008-12-05  Eric Blake  <ebb9@byu.net>
31603
31604         tests: silence some gcc warnings
31605         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
31606         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
31607         type mismatches.
31608
31609 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31610             Bruno Haible  <bruno@clisp.org>
31611
31612         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
31613
31614 2008-11-29  Jim Meyering  <meyering@redhat.com>
31615
31616         unicodeio.c: mark unused parameters
31617         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
31618         (fallback_failure_callback): Likewise.
31619
31620         fts: fix a thinko
31621         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
31622         (set_stat_type): Return S_IF*-valued "type" directly.
31623         Prompted by James Youngman's spotting a related bug.
31624         Confirmed by further testing through find.
31625
31626         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
31627         * lib/fts.c (D_TYPE): Define.
31628         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
31629         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
31630         (s_ifmt_shift_bits): New function.
31631         (set_stat_type): New function.
31632         (fts_build): When not calling fts_stat, call set_stat_type
31633         to propagate dirent.d_type info to fts_read caller.
31634         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
31635         fts_statp->st_mode type information may be valid.
31636
31637 2008-11-28  Simon Josefsson  <simon@josefsson.org>
31638
31639         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
31640         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
31641         <sds@gnu.org>.
31642
31643 2008-11-20  Bruno Haible  <bruno@clisp.org>
31644
31645         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
31646         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
31647         INCLUDE_NEXT.
31648         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
31649         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
31650         * modules/math (Makefile.am): Substitute
31651         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
31652         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
31653
31654 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
31655             Bruno Haible  <bruno@clisp.org>
31656
31657         * lib/stdint.in.h: Define all type macros so that their expansion is
31658         a single typedef'ed token. Fixes a compilation failure in Boost which
31659         does "using ::int8_t;".
31660
31661 2008-11-18  Simon Josefsson  <simon@josefsson.org>
31662
31663         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
31664         gl_MANYWARN_ALL_GCC.
31665         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
31666         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
31667         * modules/manywarnings: New file.
31668         * MODULES.html.sh: Mention manywarnings module.
31669
31670 2008-11-18  Bruno Haible  <bruno@clisp.org>
31671
31672         * doc/gnulib-tool.texi (Unit tests): New section.
31673
31674 2008-11-18  Simon Josefsson  <simon@josefsson.org>
31675
31676         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
31677         paths like 'lib/po/foo.po'.
31678
31679 2008-11-17  Simon Josefsson  <simon@josefsson.org>
31680
31681         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
31682         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
31683
31684 2008-11-17  Simon Josefsson  <simon@josefsson.org>
31685
31686         * m4/warnings.m4: Use CPPFLAGS to really check whether the
31687         parameter works.
31688
31689 2008-11-17  Simon Josefsson  <simon@josefsson.org>
31690
31691         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
31692
31693 2008-11-17  Bruce Korb  <bkorb@gnu.org>
31694
31695         * modules/parse-duration-tests: New file.
31696         * tests/test-parse-duration.sh: New file.
31697         * tests/test-parse-duration.c: New file.
31698
31699         New module 'parse-duration'.
31700         * lib/parse-duration.h: New file.
31701         * lib/parse-duration.c: New file.
31702         * modules/parse-duration: New file.
31703
31704 2008-11-17  Bruno Haible  <bruno@clisp.org>
31705
31706         * tests/test-select-out.sh: Comment out the first pipe test.
31707         Reported by Simon Josefsson.
31708
31709 2008-11-17  Bruno Haible  <bruno@clisp.org>
31710
31711         * modules/getaddrinfo (Depends-on): Add servent, hostent.
31712         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
31713         gl_HOSTENT.
31714
31715 2008-11-17  Bruno Haible  <bruno@clisp.org>
31716
31717         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
31718         -lnetwork and -lnet. Needed for Haiku and BeOS.
31719
31720 2008-11-16  Bruno Haible  <bruno@clisp.org>
31721
31722         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
31723
31724 2008-11-16  Bruno Haible  <bruno@clisp.org>
31725
31726         Avoid test failure on Haiku.
31727         * tests/test-fsync.c: Include <errno.h>.
31728         (main): Don't require that fsync (0) fails.
31729
31730 2008-11-15  Bruno Haible  <bruno@clisp.org>
31731
31732         New module 'hostent'.
31733         * modules/hostent: New file.
31734         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
31735
31736 2008-11-15  Bruno Haible  <bruno@clisp.org>
31737
31738         New module 'servent'.
31739         * modules/servent: New file.
31740         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
31741
31742 2008-11-15  Bruno Haible  <bruno@clisp.org>
31743
31744         Avoid generating same test program with two different rules.
31745         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
31746         test-frexp to test-frexp-nolibm.
31747         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
31748         test-frexpl to test-frexpl-nolibm.
31749
31750 2008-11-15  Bruno Haible  <bruno@clisp.org>
31751
31752         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
31753         $(FREXPL_LIBM).
31754
31755 2008-11-15  Bruno Haible  <bruno@clisp.org>
31756
31757         * lib/netdb.in.h: Activate the definitions also when the system's
31758         <netdb.h> has 'struct addrinfo'.
31759         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
31760         EAI_OVERFLOW or AI_NUMERICSERV.
31761         * doc/posix-headers/netdb.texi: Document the problem.
31762
31763 2008-11-15  Bruno Haible  <bruno@clisp.org>
31764
31765         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
31766
31767         Make the 'sched' module work on platforms where <sched.h> exists but
31768         is incomplete (such as Haiku).
31769         * lib/sched.in.h; Include the system's <sched.h> if it exists.
31770         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
31771         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
31772         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
31773         HAVE_STRUCT_SCHED_PARAM.
31774         * modules/sched (Depends-on): Add include_next.
31775         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
31776         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
31777         * doc/posix-headers/sched.texi: Document the issue.
31778
31779 2008-11-13  Jim Meyering  <meyering@redhat.com>
31780
31781         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
31782         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
31783         test would fail due to the difference in the Report bugs to ...
31784         line.  The expected address is empty, "<>", while the actual
31785         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
31786
31787 2008-11-12  Bruno Haible  <bruno@clisp.org>
31788
31789         lstat: don't compile lstat.c on systems lacking lstat
31790         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
31791         which don't have lstat; this is handled by lib/sys_stat.in.h already.
31792         Reported by Daniel P. Berrange via Jim Meyering.
31793
31794 2008-11-12  Jim Meyering  <meyering@redhat.com>
31795
31796         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
31797
31798 2008-11-12  Simon Josefsson  <simon@josefsson.org>
31799
31800         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
31801         instead.
31802
31803 2008-11-12  Bruno Haible  <bruno@clisp.org>
31804
31805         * lib/unicodeio.c: Include unistr.h.
31806         (utf8_wctomb): Remove function.
31807         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
31808
31809 2008-11-12  Simon Josefsson  <simon@josefsson.org>
31810
31811         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
31812         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
31813         <bruno@clisp.org>.
31814         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
31815
31816 2008-11-12  Simon Josefsson  <simon@josefsson.org>
31817
31818         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
31819         * doc/gnulib.texi: Add section for warnings.
31820
31821 2008-11-11  Bruno Haible  <bruno@clisp.org>
31822
31823         * lib/sockets.h: Add a comment.
31824
31825 2008-11-11  Karl Berry  <karl@gnu.org>
31826
31827         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
31828
31829 2008-11-11  Eric Blake  <ebb9@byu.net>
31830
31831         fdl.texi: avoid git symlinks
31832         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
31833
31834 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
31835
31836         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
31837
31838 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
31839
31840         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
31841         (gl_WARN_ADD): Substitute $2 if literal.
31842
31843 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
31844
31845         * m4/warning.m4: Remove.
31846
31847 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
31848
31849         * m4/warnings.m4: Almost complete rewrite. :-)
31850
31851 2008-11-10  Simon Josefsson  <simon@josefsson.org>
31852
31853         * modules/warnings: New module.
31854         * m4/warnings.m4: New file.
31855         * MODULES.html.sh: Mention warnings module.
31856         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
31857         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
31858
31859 2008-11-10  Eric Blake  <ebb9@byu.net>
31860
31861         fdl.texi: make a symlink to the latest version
31862         * doc/standards.texi: Revert today's earlier change.
31863         * doc/fdl-1.2.texi: Rename from old fdl.texi...
31864         * doc/fdl.texi: ...and replace this with a symlink to the newer
31865         fdl-1.3.texi.
31866
31867 2008-11-10  Bruno Haible  <bruno@clisp.org>
31868
31869         * tests/test-select-fd.c (main): Accept the result file name as fourth
31870         argument.
31871         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
31872         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
31873
31874 2008-11-10  Bruno Haible  <bruno@clisp.org>
31875
31876         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
31877         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
31878         as autoconf-substituted macros.
31879         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
31880         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
31881         gl_NETDB_H_DEFAULTS. Set these variables.
31882         * modules/netdb (Makefile.am): Substitute these variables.
31883
31884 2008-11-10  Eric Blake  <ebb9@byu.net>
31885
31886         standards.texi: include correct file for FDL 1.3
31887         * doc/standards.texi (GNU Free Documentation License): Change
31888         include file to pull in FDL 1.3, not 1.2.
31889
31890         fdl.texi: revert accidental change to license
31891         * doc/fdl.texi: This is FDL 1.2, not 1.3.
31892
31893 2008-11-10  Bruno Haible  <bruno@clisp.org>
31894
31895         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
31896         cross-compiling guesses also when the native compile gives no result.
31897
31898 2008-11-10  Bruno Haible  <bruno@clisp.org>
31899
31900         * lib/spawni.c (__spawni): Force variable into the stack.
31901
31902 2008-11-10  Bruno Haible  <bruno@clisp.org>
31903
31904         Add support for Haiku.
31905         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
31906         glibc and BeOS, but also on Haiku.
31907         * lib/fpurge.c (fpurge): Likewise.
31908         * lib/freadable.c (freadable): Likewise.
31909         * lib/freadahead.c (freadahead): Likewise.
31910         * lib/freading.c (freading): Likewise.
31911         * lib/freadptr.c (freadptr): Likewise.
31912         * lib/freadseek.c (freadptrinc): Likewise.
31913         * lib/fseeko.c (rpl_fseeko): Likewise.
31914         * lib/fseterr.c (fseterr): Likewise.
31915         * lib/fwritable.c (fwritable): Likewise.
31916         * lib/fwriting.c (fwriting): Likewise.
31917         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
31918
31919 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
31920
31921         * lib/config.charset: Treat Haiku like BeOS.
31922
31923 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
31924
31925         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
31926         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
31927
31928 2008-11-08  Bruno Haible  <bruno@clisp.org>
31929
31930         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
31931         AC_CACHE_CHECK.
31932
31933 2008-11-08  Bruno Haible  <bruno@clisp.org>
31934
31935         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
31936
31937 2008-11-08  Bruno Haible  <bruno@clisp.org>
31938
31939         * tests/test-select-fd.c: New file.
31940         * tests/test-select-in.sh: New file.
31941         * tests/test-select-out.sh: New file.
31942         * tests/test-select-stdin.c: New file.
31943         * modules/select-tests (Files): Add the new files.
31944         (Depends-on): Add gettimeofday.
31945         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
31946         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
31947         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
31948
31949 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
31950             Bruno Haible  <bruno@clisp.org>
31951
31952         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
31953
31954 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
31955
31956         * build-aux/pmccabe2html: Added support for C++ source files.
31957
31958 2008-11-05  Ben Pfaff  <blp@gnu.org>
31959
31960         Fix lib/close.c build on Windows.
31961         * modules/close (Files): Add lib/w32sock.h.
31962
31963 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
31964
31965         Accept Bison's NEWS format.
31966         * build-aux/announce-gen (print_news_deltas): Tweak
31967         $re_prefix.
31968
31969 2008-11-04  Bruno Haible  <bruno@clisp.org>
31970
31971         * modules/random_r (Maintainer): Add glibc.
31972
31973 2008-11-04  Simon Josefsson  <simon@josefsson.org>
31974
31975         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
31976         by karl@freefriends.org (Karl Berry).
31977         * doc/alloca.texi: Likewise.
31978         * doc/c-ctype.texi: Likewise.
31979         * doc/c-strcase.texi: Likewise.
31980         * doc/c-strcaseeq.texi: Likewise.
31981         * doc/c-strcasestr.texi: Likewise.
31982         * doc/c-strstr.texi: Likewise.
31983         * doc/c-strtod.texi: Likewise.
31984         * doc/c-strtold.texi: Likewise.
31985         * doc/ctime.texi: Likewise.
31986         * doc/error.texi: Likewise.
31987         * doc/fdl.texi: Likewise.
31988         * doc/gcd.texi: Likewise.
31989         * doc/getdate.texi: Likewise.
31990         * doc/gnulib-intro.texi: Likewise.
31991         * doc/gnulib-tool.texi: Likewise.
31992         * doc/gnulib.texi: Likewise.
31993         * doc/inet_ntoa.texi: Likewise.
31994         * doc/maintain.texi: Likewise.
31995         * doc/make-stds.texi: Likewise.
31996         * doc/quote.texi: Likewise.
31997         * doc/regexprops-generic.texi: Likewise.
31998         * doc/standards.texi: Likewise.
31999         * doc/verify.texi: Likewise.
32000         * doc/visibility.texi: Likewise.
32001         * doc/gnulib.texi (GNU Free Documentation License): Include
32002         fdl-1.3.texi instead of fdl.texi.
32003
32004 2008-11-04  Simon Josefsson  <simon@josefsson.org>
32005
32006         * doc/fdl-1.3.texi: New file, from
32007         <http://www.gnu.org/licenses/fdl-1.3.texi>.
32008         * modules/fdl-1.3: Add.
32009         * MODULES.html.sh: Add fdl-1.3.
32010
32011 2008-11-03  Bruno Haible  <bruno@clisp.org>
32012
32013         Make determination of absolute name of header file work with AIX xlc.
32014         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
32015         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
32016         preprocessing.
32017         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
32018         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
32019
32020 2008-11-03  Simon Josefsson  <simon@josefsson.org>
32021
32022         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
32023         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
32024         <ludo@gnu.org>.
32025
32026 2008-11-02  Bruno Haible  <bruno@clisp.org>
32027
32028         Mark 'strpbrk' obsolete.
32029         * modules/strpbrk (Status, Notice): New sections.
32030         * modules/strtok_r (Depends-on): Add strpbrk.
32031
32032 2008-11-02  Bruno Haible  <bruno@clisp.org>
32033
32034         Mark 'strdup' obsolete.
32035         * modules/strdup (Status, Notice): New sections.
32036         * modules/findprog (Depends-on): Add strdup.
32037         * modules/getaddrinfo (Depends-on): Likewise.
32038         * modules/localename (Depends-on): Likewise.
32039         * modules/relocatable-lib (Depends-on): Likewise.
32040         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
32041         * modules/relocatable-prog (Depends-on): Likewise.
32042         * modules/trim (Depends-on): Likewise.
32043         * modules/unictype/gen-ctype (Depends-on): Likewise.
32044         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
32045
32046 2008-11-02  Bruno Haible  <bruno@clisp.org>
32047
32048         Mark 'strcspn' obsolete.
32049         * modules/strcspn (Status, Notice): New sections.
32050
32051 2008-11-02  Bruno Haible  <bruno@clisp.org>
32052
32053         Mark 'rmdir' obsolete.
32054         * modules/rmdir (Status, Notice): New sections.
32055         * modules/clean-temp (Depends-on): Add rmdir.
32056         * modules/openat (Depends-on): Likewise.
32057
32058 2008-11-02  Bruno Haible  <bruno@clisp.org>
32059
32060         Mark 'raise' obsolete.
32061         * modules/raise (Status, Notice): New sections.
32062         (Include): Specify <signal.h>.
32063         * modules/stdio (Depends-on): Add raise.
32064         * modules/write (Depends-on): Likewise.
32065
32066 2008-11-02  Bruno Haible  <bruno@clisp.org>
32067
32068         Mark 'memset' obsolete.
32069         * modules/memset (Status, Notice): New sections.
32070
32071 2008-11-02  Bruno Haible  <bruno@clisp.org>
32072
32073         Mark 'memmove' obsolete.
32074         * modules/memmove (Status, Notice): New sections.
32075         * modules/argp (Depends-on): Add memmove.
32076         * modules/argz (Depends-on): Likewise.
32077         * modules/canonicalize (Depends-on): Likewise.
32078         * modules/canonicalize-lgpl (Depends-on): Likewise.
32079         * modules/fts (Depends-on): Likewise.
32080         * modules/getcwd (Depends-on): Likewise.
32081         * modules/human (Depends-on): Likewise.
32082         * modules/regex (Depends-on): Likewise.
32083         * modules/striconveh (Depends-on): Likewise.
32084         * modules/trim (Depends-on): Likewise.
32085         * modules/unistr/u8-move (Depends-on): Likewise.
32086         * modules/unistr/u16-move (Depends-on): Likewise.
32087         * modules/unistr/u32-move (Depends-on): Likewise.
32088
32089 2008-11-02  Bruno Haible  <bruno@clisp.org>
32090
32091         Mark 'memcpy' obsolete.
32092         * modules/memcpy (Status, Notice): New sections.
32093
32094 2008-11-02  Bruno Haible  <bruno@clisp.org>
32095
32096         Mark 'memcmp' obsolete.
32097         * modules/memcmp (Status, Notice): New sections.
32098         * modules/argmatch (Depends-on): Add memchr.
32099         * modules/backupfile (Depends-on): Likewise.
32100         * modules/c-strcasestr (Depends-on): Likewise.
32101         * modules/crypto/des (Depends-on): Likewise.
32102         * modules/csharpcomp (Depends-on): Likewise.
32103         * modules/fnmatch (Depends-on): Likewise.
32104         * modules/git-merge-changelog (Depends-on): Likewise.
32105         * modules/isnand (Depends-on): Likewise.
32106         * modules/isnand-nolibm (Depends-on): Likewise.
32107         * modules/isnanf (Depends-on): Likewise.
32108         * modules/isnanf-nolibm (Depends-on): Likewise.
32109         * modules/isnanl (Depends-on): Likewise.
32110         * modules/isnanl-nolibm (Depends-on): Likewise.
32111         * modules/mbchar (Depends-on): Likewise.
32112         * modules/memcoll (Depends-on): Likewise.
32113         * modules/quotearg (Depends-on): Likewise.
32114         * modules/regex (Depends-on): Likewise.
32115         * modules/relocatable-prog (Depends-on): Likewise.
32116         * modules/same (Depends-on): Likewise.
32117         * modules/signbit (Depends-on): Likewise.
32118         * modules/strcasestr-simple (Depends-on): Likewise.
32119         * modules/unictype/gen-ctype (Depends-on): Likewise.
32120         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
32121         * modules/uniname/uniname (Depends-on): Likewise.
32122         * modules/unistr/u8-cmp (Depends-on): Likewise.
32123
32124 2008-11-02  Bruno Haible  <bruno@clisp.org>
32125
32126         Mark 'memchr' obsolete.
32127         * modules/memchr (Status, Notice): New sections.
32128         * modules/argp (Depends-on): Add memchr.
32129         * modules/base64 (Depends-on): Likewise.
32130         * modules/c-strcasestr (Depends-on): Likewise.
32131         * modules/chdir-long (Depends-on): Likewise.
32132         * modules/fnmatch (Depends-on): Likewise.
32133         * modules/getsubopt (Depends-on): Likewise.
32134         * modules/git-merge-changelog (Depends-on): Likewise.
32135         * modules/glob (Depends-on): Likewise.
32136         * modules/strcasestr-simple (Depends-on): Likewise.
32137         * modules/strnlen (Depends-on): Likewise.
32138
32139 2008-11-02  Bruno Haible  <bruno@clisp.org>
32140
32141         Mark 'atexit' obsolete.
32142         * modules/atexit (Status, Notice): New sections.
32143         * modules/chdir-long (Depends-on): Add atexit.
32144         * modules/wait-process (Depends-on): Likewise.
32145
32146 2008-11-02  Bruno Haible  <bruno@clisp.org>
32147
32148         * gnulib-tool: New option --with-obsolete.
32149         (func_usage): Document it.
32150         (func_modules_transitive_closure): Drop obsolete dependencies if
32151         incobsolete is not true.
32152         (func_import): Read and save the incobsolete variable to the cache.
32153
32154 2008-11-02  Bruno Haible  <bruno@clisp.org>
32155
32156         * modules/TEMPLATE-EXTENDED: New field 'Status'.
32157         * gnulib-tool: New option --extract-status.
32158         (func_usage): Document it.
32159         (sed_extract_prog): Recognize it.
32160         (func_get_status): New function.
32161
32162 2008-10-30  Simon Josefsson  <simon@josefsson.org>
32163
32164         * modules/sockets (License): Change from LGPL to LGPLv2+.
32165
32166 2008-10-28  Simon Josefsson  <simon@josefsson.org>
32167
32168         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
32169
32170 2008-10-28  Simon Josefsson  <simon@josefsson.org>
32171
32172         * MODULES.html.sh (Support for systems lacking POSIX:2001):
32173         Mention times and sys_times.
32174         * modules/sys_times, modules/sys_times-tests: New modules.
32175         * modules/times, modules/times-tests: Likewise
32176         * m4/sys_times_h.m4: New file.
32177         * lib/sys_times.in.h: Likewise
32178         * lib/times.c: Likewise.
32179         * tests/test-sys_times.c: Likewise.
32180         * tests/test-times.c: Likewise.
32181         * doc/posix-headers/sys_times.texi: Update.
32182         * doc/posix-functions/times.texi: Update.
32183
32184 2008-10-28  Jim Meyering  <meyering@redhat.com>
32185
32186         * modules/tempname (Depends-on): Add lstat.
32187
32188         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
32189
32190 2008-10-28  Simon Josefsson  <simon@josefsson.org>
32191
32192         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
32193         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
32194         using idiom used elsewhere in gnulib.
32195
32196 2008-10-27  Jim Meyering  <meyering@redhat.com>
32197
32198         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
32199
32200 2008-10-27  Simon Josefsson  <simon@josefsson.org>
32201
32202         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
32203         TESTS_ENVIRONMENT, for shell scripts that needs to call built
32204         programs.
32205         * tests/test-argp-2.sh: Use $EXEEXT when needed.
32206
32207 2008-10-27  Simon Josefsson  <simon@josefsson.org>
32208
32209         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
32210
32211 2008-10-27  Bruno Haible  <bruno@clisp.org>
32212
32213         * tests/test-lstat.c: Include <stdio.h>.
32214
32215 2008-10-27  Simon Josefsson  <simon@josefsson.org>
32216
32217         * modules/lstat-tests: New module.
32218         * tests/test-lstat.c: New file.
32219
32220 2008-10-26  Jim Meyering  <meyering@redhat.com>
32221
32222         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
32223
32224 2008-10-26  Simon Josefsson  <simon@josefsson.org>
32225             Bruno Haible  <bruno@clisp.org>
32226
32227         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
32228         * modules/configmake (Include): Add a note that the include must come
32229         after all system headers.
32230         * lib/javaversion.c: Include configmake.h after all other includes.
32231
32232 2008-10-26  Bruno Haible  <bruno@clisp.org>
32233
32234         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
32235         HAVE_STRUCT_RANDOM_DATA to 1.
32236         (gl_STDLIB_H): Simplify.
32237
32238 2008-10-26  Simon Josefsson  <simon@josefsson.org>
32239
32240         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
32241         substitute HAVE_STRUCT_RANDOM_DATA.
32242         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
32243         random_data.
32244         * modules/stdlib (Makefile.am): Substitute
32245         HAVE_STRUCT_RANDOM_DATA.
32246
32247 2008-10-26  Simon Josefsson  <simon@josefsson.org>
32248
32249         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
32250         * doc/gnulib-intro.texi (Copyright): Likewise.
32251
32252 2008-10-26  Simon Josefsson  <simon@josefsson.org>
32253
32254         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
32255         findings.
32256
32257 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
32258             Bruno Haible  <bruno@clisp.org>
32259
32260         * lib/unistd.in.h: Include <winsock2.h>.
32261         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
32262         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
32263         Provide dummy declarations.
32264         (gethostname): Override.
32265         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
32266         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
32267         gl_PREREQ_SYS_H_WINSOCK2.
32268         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
32269         * doc/posix-functions/gethostname.texi: More details.
32270
32271 2008-10-25  Bruno Haible  <bruno@clisp.org>
32272
32273         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
32274         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
32275         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
32276
32277         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
32278         here ...
32279         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
32280         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
32281         gl_UNISTD_H_DEFAULTS.
32282
32283 2008-10-25  Eric Blake  <ebb9@byu.net>
32284
32285         signbit: avoid spurious compiler failure
32286         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
32287         declarations inside function.
32288
32289 2008-10-24  Simon Josefsson  <simon@josefsson.org>
32290             Bruno Haible  <bruno@clisp.org>
32291
32292         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
32293         * modules/random_r (Depends-on): Add stdint.
32294
32295 2008-10-24  Bruno Haible  <bruno@clisp.org>
32296
32297         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
32298         Eggert.
32299         * modules/strerror (License): Likewise.
32300
32301 2008-10-24  Jim Meyering  <meyering@redhat.com>
32302
32303         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
32304         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
32305
32306 2008-10-24  Eric Blake  <ebb9@byu.net>
32307
32308         getgroups: fix compilation when getgroups is available
32309         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
32310         but with <config.h> override of getgroups disabled.
32311
32312 2008-10-24  Simon Josefsson  <simon@josefsson.org>
32313
32314         * doc/gnulib.texi (Header files): Add note about C++ problems.
32315         Explained by Bruno Haible <bruno@clisp.org>.
32316
32317 2008-10-23  Bruno Haible  <bruno@clisp.org>
32318
32319         Define a dummy SA_NODEFER macro on Interix.
32320         * lib/signal.in.h (SA_NODEFER): Define fallback.
32321         Reported by Aleksey Cheusov <cheusov@tut.by> via
32322         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
32323
32324 2008-10-23  Bruno Haible  <bruno@clisp.org>
32325
32326         * modules/freadahead (License): Change to LGPLv2+.
32327         Suggested by Simon Josefsson.
32328
32329 2008-10-23  Jim Meyering  <meyering@redhat.com>
32330
32331         random_r: new module
32332         * modules/random_r: New file.
32333         * m4/random_r.m4: New file.
32334         * lib/random_r.c: New file, from glibc.
32335         * modules/random_r-tests: New file.
32336         * tests/test-random_r.c: New file.
32337         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
32338          Declare.
32339         (RAND_MAX): Define.
32340         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
32341         * modules/stdlib: Substitute them, too.
32342         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
32343         * doc/glibc-functions/initstate_r.texi: Mention the new module.
32344         * doc/glibc-functions/random_r.texi: Likewise.
32345         * doc/glibc-functions/setstate_r.texi: Likewise.
32346         * doc/glibc-functions/srandom_r.texi: Likewise.
32347         * config/srclist.txt: Mention it.
32348
32349 2008-10-23  David Lutterkort  <lutter@redhat.com>
32350
32351         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
32352         link requirement
32353
32354 2008-10-23  Jim Meyering  <meyering@redhat.com>
32355
32356         selinux-h: mark parameters of stub functions as intentionally unused
32357         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
32358         * lib/se-context.in.h: Likewise.
32359
32360 2008-10-22  Simon Josefsson  <simon@josefsson.org>
32361
32362         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
32363
32364 2008-10-22  Simon Josefsson  <simon@josefsson.org>
32365
32366         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
32367
32368 2008-10-22  Eric Blake  <ebb9@byu.net>
32369
32370         glthread/thread: avoid compiler warning
32371         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
32372         Add unreachable abort to silence compiler.
32373
32374 2008-10-22  Eric Blake  <ebb9@byu.net>
32375
32376         netdb: also supply struct addrinfo for cygwin 1.5.x
32377         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
32378         older cygwin.
32379         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
32380         cygwin.
32381         * doc/posix-headers/netdb.texi (netdb.h): Document this.
32382
32383 2008-10-22  Bruno Haible  <bruno@clisp.org>
32384
32385         * users.txt: Update entry about pspp.
32386
32387 2008-10-21  Bruno Haible  <bruno@clisp.org>
32388
32389         Simplification.
32390         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
32391         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
32392
32393         Simplification.
32394         * lib/ioctl.c (ioctl): Don't undefine.
32395         * lib/socket.c (socket): Don't undefine.
32396
32397         Remove unused module indicator macros.
32398         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
32399         GNULIB_$1 as a C macro.
32400
32401         * doc/posix-functions/close.texi: Undo last change.
32402         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
32403         Windows platforms.
32404
32405 2008-10-21  Bruno Haible  <bruno@clisp.org>
32406
32407         Add gethostname() declaration to <unistd.h>.
32408         * lib/unistd.in.h (gethostname): New declaration.
32409         * lib/gethostname.c: Include <unistd.h>.
32410         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
32411         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
32412         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
32413         and HAVE_GETHOSTNAME.
32414         * modules/gethostname (Depends-on): Add unistd.
32415         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
32416         (Include): Specify <unistd.h>.
32417         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
32418         HAVE_GETHOSTNAME.
32419         * tests/test-gethostname.c: Include <unistd.h> first.
32420
32421 2008-10-21  Bruno Haible  <bruno@clisp.org>
32422
32423         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
32424         * modules/select-tests (Depends-on): Likewise.
32425         Reported by Simon Josefsson.
32426
32427 2008-10-21  Simon Josefsson  <simon@josefsson.org>
32428
32429         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
32430         * lib/accept.c: New file, based on winsock.c.
32431         * lib/bind.c: New file, based on winsock.c.
32432         * lib/connect.c: New file, based on winsock.c.
32433         * lib/getpeername.c: New file, based on winsock.c.
32434         * lib/getsockname.c: New file, based on winsock.c.
32435         * lib/getsockopt.c: New file, based on winsock.c.
32436         * lib/ioctl.c: New file, based on winsock.c.
32437         * lib/listen.c: New file, based on winsock.c.
32438         * lib/recv.c: New file, based on winsock.c.
32439         * lib/recvfrom.c: New file, based on winsock.c.
32440         * lib/send.c: New file, based on winsock.c.
32441         * lib/sendto.c: New file, based on winsock.c.
32442         * lib/setsockopt.c: New file, based on winsock.c.
32443         * lib/shutdown.c: New file, based on winsock.c.
32444         * lib/socket.c: New file, based on winsock.c.
32445         * lib/w32sock.h: New file, based on winsock.c.
32446         * lib/winsock.c: Remove file.
32447         * modules/accept: Likewise.
32448         * modules/bind: Likewise.
32449         * modules/connect: Likewise.
32450         * modules/getpeername: Likewise.
32451         * modules/getsockname: Likewise.
32452         * modules/getsockopt: Likewise.
32453         * modules/ioctl: Likewise.
32454         * modules/listen: Likewise.
32455         * modules/recv: Likewise.
32456         * modules/recvfrom: Likewise.
32457         * modules/send: Likewise.
32458         * modules/sendto: Likewise.
32459         * modules/setsockopt: Likewise.
32460         * modules/shutdown: Likewise.
32461         * modules/socket: Use socket.c instead of winsock.c.
32462         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
32463         * doc/posix-functions/accept.texi: Doc fix.
32464         * doc/posix-functions/bind.texi: Doc fix.
32465         * doc/posix-functions/close.texi: Doc fix.
32466         * doc/posix-functions/connect.texi: Doc fix.
32467         * doc/posix-functions/getpeername.texi: Doc fix.
32468         * doc/posix-functions/getsockname.texi: Doc fix.
32469         * doc/posix-functions/getsockopt.texi: Doc fix.
32470         * doc/posix-functions/ioctl.texi: Doc fix.
32471         * doc/posix-functions/listen.texi: Doc fix.
32472         * doc/posix-functions/recv.texi: Doc fix.
32473         * doc/posix-functions/recvfrom.texi: Doc fix.
32474         * doc/posix-functions/send.texi: Doc fix.
32475         * doc/posix-functions/sendto.texi: Doc fix.
32476         * doc/posix-functions/setsockopt.texi: Doc fix.
32477         * doc/posix-functions/shutdown.texi: Doc fix.
32478         * doc/posix-functions/socket.texi: Doc fix.
32479
32480 2008-10-20  Bruno Haible  <bruno@clisp.org>
32481
32482         Take into account the role of SIGABRT_COMPAT on Windows 2008.
32483         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
32484         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
32485         as an alias for SIGABRT.
32486         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
32487         (sigaction): Map it to SIGABRT.
32488         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
32489
32490 2008-10-20  Bruno Haible  <bruno@clisp.org>
32491
32492         * lib/fts.c: Don't include lstat.h.
32493         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
32494
32495         Move the lstat() declaration to <sys/stat.h>.
32496         * lib/lstat.h: Remove file.
32497         * lib/sys_stat.in.h: Add special invocation convention.
32498         (lstat): New declaration.
32499         * lib/lstat.c (orig_lstat): New function.
32500         (rpl_lstat): Use orig_lstat instead of lstat.
32501         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
32502         AC_C_INLINE. Set REPLACE_LSTAT.
32503         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
32504         and REPLACE_LSTAT.
32505         * modules/lstat (Files): Remove lib/lstat.h.
32506         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
32507         (Include): Specify <sys/stat.h> instead of lstat.h.
32508         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
32509         REPLACE_LSTAT.
32510         * NEWS: Mention the change.
32511
32512 2008-10-20  Bruno Haible  <bruno@clisp.org>
32513
32514         * modules/posix_spawn-tests: New file.
32515         * tests/test-posix_spawn3.c: New file.
32516
32517 2008-10-20  Bruno Haible  <bruno@clisp.org>
32518
32519         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
32520         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
32521         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
32522         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
32523         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
32524
32525 2008-10-20  Bruno Haible  <bruno@clisp.org>
32526
32527         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
32528         of posix_spawn on AIX 5.3.
32529
32530 2008-10-20  Bruno Haible  <bruno@clisp.org>
32531
32532         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
32533
32534 2008-10-20  Bruno Haible  <bruno@clisp.org>
32535
32536         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
32537         of AC_LANG_PROGRAM.
32538
32539 2008-10-20  Simon Josefsson  <simon@josefsson.org>
32540
32541         * lib/netdb.in.h: Don't define GNU specific constants until they
32542         are supported or needed.  Reported by Bruno Haible
32543         <bruno@clisp.org>.
32544
32545 2008-10-20  Simon Josefsson  <simon@josefsson.org>
32546
32547         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
32548
32549 2008-10-20  Simon Josefsson  <simon@josefsson.org>
32550
32551         * lib/getaddrinfo.h: Remove file.
32552         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
32553         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
32554         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
32555         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
32556         * modules/netdb: Substitute GNULIB_GETADDRINFO.
32557         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
32558         * tests/test-getaddrinfo.c: Likewise.
32559         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
32560         * NEWS: Mention change.
32561
32562 2008-10-19  Bruno Haible  <bruno@clisp.org>
32563
32564         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
32565
32566 2008-10-19  Bruno Haible  <bruno@clisp.org>
32567
32568         * lib/wait-process.c: Include simply <sys/wait.h>.
32569         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
32570         WIFSTOPPED): Remove fallback definitions.
32571         * modules/wait-process (Depends-on): Add sys_wait.
32572
32573         New module 'sys_wait'.
32574         * modules/sys_wait: New file.
32575         * lib/sys_wait.in.h: New file, partially copied from
32576         lib/wait-process.c.
32577         * m4/sys_wait_h.m4: New file.
32578         * doc/posix-headers/sys_wait.texi: Mention the new module.
32579
32580 2008-10-19  Bruno Haible  <bruno@clisp.org>
32581
32582         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
32583
32584 2008-10-19  Bruno Haible  <bruno@clisp.org>
32585
32586         Assume that waitpid() fills an 'int' status, not a 'union wait'.
32587         * lib/wait-process.c (WAIT_T): Remove type.
32588         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
32589         (wait_subprocess): Update.
32590
32591 2008-10-19  Bruno Haible  <bruno@clisp.org>
32592
32593         New module 'atoll'.
32594         * modules/atoll: New file.
32595         * lib/stdlib.in.h (atoll): New declaration.
32596         * lib/atoll.c: New file, from glibc with modifications.
32597         * m4/atoll.m4: New file.
32598         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
32599         HAVE_ATOLL.
32600         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
32601         * doc/posix-functions/atoll.texi: Mention the new module.
32602
32603 2008-10-19  Bruno Haible  <bruno@clisp.org>
32604
32605         Add strtoull() declaration to <stdlib.h>.
32606         * lib/stdlib.in.h (strtoull): New declaration.
32607         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
32608         Set HAVE_STRTOULL.
32609         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
32610         HAVE_STRTOULL.
32611         * modules/strtoull (Depends-on): Add stdlib.
32612         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
32613         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
32614         HAVE_STRTOULL.
32615
32616 2008-10-19  Bruno Haible  <bruno@clisp.org>
32617
32618         Add strtoll() declaration to <stdlib.h>.
32619         * lib/stdlib.in.h (strtoll): New declaration.
32620         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
32621         Set HAVE_STRTOLL.
32622         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
32623         HAVE_STRTOLL.
32624         * modules/strtoll (Depends-on): Add stdlib.
32625         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
32626         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
32627
32628 2008-10-19  Bruno Haible  <bruno@clisp.org>
32629
32630         * modules/bcopy (Depends-on): Add strings.
32631         (Include): Specify <strings.h>.
32632
32633 2008-10-19  Bruno Haible  <bruno@clisp.org>
32634
32635         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
32636
32637 2008-10-19  Bruno Haible  <bruno@clisp.org>
32638
32639         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
32640         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
32641         mingw.
32642
32643 2008-10-19  Bruno Haible  <bruno@clisp.org>
32644
32645         * lib/atanl.c: Don't include isnanl.h.
32646         * lib/cosl.c: Likewise.
32647         * lib/ldexpl.c: Likewise.
32648         * lib/logl.c: Likewise.
32649         * lib/sinl.c: Likewise.
32650         * lib/sqrtl.c: Likewise.
32651         * lib/tanl.c: Likewise.
32652
32653         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
32654         * lib/isnanf.h: Remove file.
32655         * lib/isnand.h: Remove file.
32656         * lib/isnanl.h: Remove file.
32657         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
32658         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
32659         macros.
32660         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
32661         HAVE_ISNANF, don't define it as a C macro.
32662         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
32663         HAVE_ISNAND, don't define it as a C macro.
32664         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
32665         HAVE_ISNANL, don't define it as a C macro.
32666         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
32667         HAVE_ISNAN[FDL].
32668         * modules/isnanf (Files): Remove lib/isnanf.h.
32669         (Depends-on): Add math.
32670         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
32671         (Include): Specify <math.h> instead of isnanf.h.
32672         * modules/isnand (Files): Remove lib/isnand.h.
32673         (Depends-on): Add math.
32674         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
32675         (Include): Specify <math.h> instead of isnand.h.
32676         * modules/isnanl (Files): Remove lib/isnanl.h.
32677         (Depends-on): Add math.
32678         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
32679         (Include): Specify <math.h> instead of isnanl.h.
32680         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
32681         HAVE_ISNAN[FDL].
32682         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
32683         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
32684         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
32685         * NEWS: Mention the change.
32686
32687 2008-10-18  Bruno Haible  <bruno@clisp.org>
32688
32689         Add getusershell(), setusershell(), endusershell() declarations to
32690         <unistd.h>.
32691         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
32692         declarations.
32693         * lib/getusershell.c: Include unistd.h.
32694         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
32695         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
32696         HAVE_GETUSERSHELL.
32697         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
32698         and HAVE_GETUSERSHELL.
32699         * modules/getusershell (Depends-on): Add unistd, extensions.
32700         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
32701         (Include): Specify <unistd.h>.
32702         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
32703         HAVE_GETUSERSHELL.
32704
32705 2008-10-18  Bruno Haible  <bruno@clisp.org>
32706
32707         Add a getloadavg() declaration to <stdlib.h>.
32708         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
32709         getloadavg declaration.
32710         (getloadavg): New declaration.
32711         * lib/getloadavg.c: Include <stdlib.h> first.
32712         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
32713         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
32714         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
32715         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
32716         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
32717         * modules/getloadavg (Depends-on): Add stdlib, extensions.
32718         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
32719         (Include): Specify <stdlib.h>.
32720         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
32721         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
32722
32723 2008-10-18  Bruno Haible  <bruno@clisp.org>
32724
32725         * lib/dirchownmod.c: Don't include lchmod.h.
32726
32727         Move the lchmod() declaration to <sys/stat.h>.
32728         * lib/lchmod.h: Remove file.
32729         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
32730         (lchmod): New declaration, moved here from lib/lchown.h.
32731         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
32732         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
32733         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
32734         and HAVE_LCHMOD.
32735         * modules/lchmod (Files): Remove lib/lchmod.h.
32736         (Depends-on): Add sys_stat, extensions.
32737         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
32738         (Include): Specify <sys/stat.h> instead of lchmod.h.
32739         * modules/sys_stat (Depends-on): Add link-warning.
32740         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
32741         definition of GL_LINK_WARNING.
32742         * NEWS: Mention the change.
32743
32744 2008-10-18  Bruno Haible  <bruno@clisp.org>
32745
32746         * lib/fchdir.c: Don't include dirfd.h.
32747         * lib/fts.c: Likewise.
32748         * lib/getcwd.c: Likewise.
32749         * lib/glob.c: Likewise.
32750
32751         Move the dirfd() declaration to <dirent.h>.
32752         * lib/dirfd.h: Remove file.
32753         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
32754         (dirfd): New declaration.
32755         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
32756         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
32757         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
32758         HAVE_DECL_DIRFD.
32759         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
32760         HAVE_DECL_DIRFD.
32761         * modules/dirfd (Files): Remove lib/dirfd.h.
32762         (Depends-on): Add dirent, extensions.
32763         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
32764         (Include): Specify <dirent.h> instead of dirfd.h.
32765         * modules/dirent (Depends-on): Add link-warning.
32766         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
32767         definition of GL_LINK_WARNING.
32768         * NEWS: Mention the change.
32769
32770 2008-10-18  Bruno Haible  <bruno@clisp.org>
32771
32772         Move the euidaccess() declaration to <unistd.h>.
32773         * lib/euidaccess.h: Remove file.
32774         * lib/unistd.in.h (euidaccess): New declaration.
32775         * lib/euidaccess.c: Don't include euidaccess.h.
32776         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
32777         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
32778         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
32779         and HAVE_EUIDACCESS.
32780         * modules/euidaccess (Files): Remove lib/euidaccess.h.
32781         (Depends-on): Add unistd.
32782         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
32783         (Include): Specify <unistd.h> instead of euidaccess.h.
32784         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
32785         HAVE_EUIDACCESS.
32786         * NEWS: Mention the change.
32787
32788 2008-10-18  Bruno Haible  <bruno@clisp.org>
32789
32790         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
32791
32792         Move the getdomainname() declaration to <unistd.h>.
32793         * lib/getdomainname.h: Remove file.
32794         * lib/unistd.in.h (getdomainname): New declaration.
32795         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
32796         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
32797         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
32798         HAVE_GETDOMAINNAME.
32799         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
32800         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
32801         * modules/getdomainname (Files): Remove lib/getdomainname.h.
32802         (Depends-on): Add unistd, extensions.
32803         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
32804         (Includes): Specify <unistd.h> instead of getdomainname.h.
32805         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
32806         HAVE_GETDOMAINNAME.
32807         * NEWS: Mention the change.
32808
32809 2008-10-18  Bruno Haible  <bruno@clisp.org>
32810
32811         * modules/dirent: New file.
32812         * m4/dirent_h.m4: New file.
32813         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
32814         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
32815         * modules/fchdir (Files): Remove lib/dirent.in.h.
32816         (Depends-on): Add dirent.
32817         (Makefile.am): Move rules to modules/dirent.
32818         * doc/posix-headers/dirent.texi: Mention the new module.
32819
32820 2008-10-18  Bruno Haible  <bruno@clisp.org>
32821
32822         Avoid -Wunused-parameter warnings in public gnulib header files.
32823         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
32824         macro.
32825         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
32826
32827 2008-10-18  Bruno Haible  <bruno@clisp.org>
32828
32829         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
32830         * doc/glibc-functions/error.texi: Mention the module 'error'.
32831         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
32832         * doc/glibc-functions/getdomainname.texi: Mention the module
32833         'getdomainname'.
32834         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
32835         * doc/glibc-functions/getpagesize.texi: Mention the module
32836         'getpagesize'.
32837         * doc/glibc-functions/getusershell.texi: Mention the module
32838         'getusershell'.
32839         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
32840         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
32841         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
32842         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
32843         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
32844         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
32845         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
32846         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
32847         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
32848         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
32849         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
32850         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
32851         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
32852         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
32853
32854 2008-10-17  Bruno Haible  <bruno@clisp.org>
32855
32856         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
32857         HP-UX and IRIX, use -0.0L.
32858         * tests/test-ceill.c (minus_zero): Likewise.
32859         * tests/test-floorl.c (minus_zero): Likewise.
32860         * tests/test-frexpl.c (minus_zero): Likewise.
32861         * tests/test-isnan.c (minus_zerol): Likewise.
32862         * tests/test-isnanl.h (minus_zero): Likewise.
32863         * tests/test-ldexpl.c (minus_zero): Likewise.
32864         * tests/test-roundl.c (minus_zero): Likewise.
32865         * tests/test-signbit.c (minus_zerol): Likewise.
32866         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
32867         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
32868         * tests/test-truncl.c (minus_zero): Likewise.
32869         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
32870         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
32871         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
32872         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
32873
32874 2008-10-17  Bruno Haible  <bruno@clisp.org>
32875
32876         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
32877         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
32878         that it gets activated only for gcc >= 3.0.
32879         * lib/dirent.in.h: Likewise.
32880         * lib/errno.in.h: Likewise.
32881         * lib/fcntl.in.h: Likewise.
32882         * lib/float.in.h: Likewise.
32883         * lib/iconv.in.h: Likewise.
32884         * lib/inttypes.in.h: Likewise.
32885         * lib/locale.in.h: Likewise.
32886         * lib/math.in.h: Likewise.
32887         * lib/netdb.in.h: Likewise.
32888         * lib/netinet_in.in.h: Likewise.
32889         * lib/search.in.h: Likewise.
32890         * lib/signal.in.h: Likewise.
32891         * lib/spawn.in.h: Likewise.
32892         * lib/stdarg.in.h: Likewise.
32893         * lib/stdint.in.h: Likewise.
32894         * lib/stdio.in.h: Likewise.
32895         * lib/stdlib.in.h: Likewise.
32896         * lib/string.in.h: Likewise.
32897         * lib/strings.in.h: Likewise.
32898         * lib/sys_file.in.h: Likewise.
32899         * lib/sys_ioctl.in.h: Likewise.
32900         * lib/sys_select.in.h: Likewise.
32901         * lib/sys_socket.in.h: Likewise.
32902         * lib/sys_stat.in.h: Likewise.
32903         * lib/sys_time.in.h: Likewise.
32904         * lib/sysexits.in.h: Likewise.
32905         * lib/time.in.h: Likewise.
32906         * lib/unistd.in.h: Likewise.
32907         * lib/wchar.in.h: Likewise.
32908         * lib/wctype.in.h: Likewise.
32909         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
32910
32911 2008-10-17  Jim Meyering  <meyering@redhat.com>
32912
32913         ignore-value: don't depend on inline module
32914         * modules/ignore-value (Depends-on): Remove 'inline'.
32915         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
32916         Suggestion from Bruno Haible.
32917
32918 2008-10-17  Bruno Haible  <bruno@clisp.org>
32919
32920         New implementation of condition variables for Win32.
32921         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
32922         (gl_linked_waitqueue_t): New type.
32923         (gl_cond_t): Use it.
32924         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
32925         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
32926         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
32927         (glthread_cond_init_func, glthread_cond_wait_func,
32928         glthread_cond_timedwait_func, glthread_cond_signal_func,
32929         glthread_cond_broadcast_func, glthread_cond_destroy_func):
32930         Reimplemented on the basis of gl_linked_waitqueue_t.
32931         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
32932         gl_waitqueue_t.
32933         (gl_rwlock_t): Update.
32934         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
32935
32936 2008-10-17  Simon Josefsson  <simon@josefsson.org>
32937
32938         * modules/recvfrom (Depends-on): Add dependency on getpeername.
32939         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
32940
32941 2008-10-17  Jim Meyering  <meyering@redhat.com>
32942
32943         ignore-value: new module
32944         * modules/ignore-value: New file.
32945         * lib/ignore-value.h: New file.
32946         * MODULES.html.sh (Compiler warning management): New section,
32947         just for this module.  More to come.
32948
32949 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
32950
32951         open-safer.c: avoid 'signed and unsigned in conditional...' warning
32952         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
32953         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
32954
32955 2008-10-16  Jim Meyering  <meyering@redhat.com>
32956
32957         openat-die.c: avoid 'no previous prototype' warning
32958         * lib/openat-die.c: Include "openat.h".
32959         Reported by Reuben Thomas <rrt@sc3d.org>.
32960
32961 2008-10-16  Simon Josefsson  <simon@josefsson.org>
32962
32963         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
32964         * lib/netdb.in.h: Fix typo.
32965         Reported by Bruno Haible  <bruno@clisp.org>
32966
32967         * lib/netdb.in.h: Include sys/socket.h for platforms without
32968         netdb.h, to get structures like hostent on MinGW.
32969         * modules/netdb (Depends-on): Add sys_socket.
32970
32971 2008-10-15  Simon Josefsson  <simon@josefsson.org>
32972
32973         * modules/netdb, modules/netdb-tests: New file.
32974         * m4/netdb_h.m4: New file.
32975         * lib/netdb.in.h: Add, currently just an empty file pending
32976         definitions.
32977         * tests/test-netdb.c: New file.
32978         * doc/posix-headers/netdb.texi: Mention that we replace it if
32979         needed.
32980         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
32981         netdb.
32982
32983 2008-10-15  Simon Josefsson  <simon@josefsson.org>
32984
32985         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
32986         with code.
32987
32988 2008-10-13  Bruno Haible  <bruno@clisp.org>
32989
32990         * lib/glthread/cond.c (glthread_cond_wait_func,
32991         glthread_cond_timedwait_func): Add a comment.
32992
32993 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
32994
32995         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
32996         * tests/test-select.c: Likewise,
32997
32998 2008-10-13  Bruno Haible  <bruno@clisp.org>
32999
33000         * lib/glthread/cond.c (glthread_cond_wait_func,
33001         glthread_cond_timedwait_func): Fix variable name.
33002         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
33003
33004 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
33005
33006         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
33007         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
33008         struct sockaddr.sa_len.
33009         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
33010
33011 2008-10-13  Simon Josefsson  <simon@josefsson.org>
33012
33013         * build-aux/pmccabe2html: Add css and css_url parameters.
33014
33015 2008-10-12  Bruno Haible  <bruno@clisp.org>
33016
33017         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
33018         calling aclx_get.
33019         Reported by Rainer Tammer <tammer@tammer.net>.
33020
33021 2008-10-12  Bruno Haible  <bruno@clisp.org>
33022
33023         Use msvcrt aware primitives for creation/termination of Win32 threads.
33024         * lib/glthread/thread.c: Include <process.h>.
33025         (glthread_create_func): Use _beginthreadex instead of CreateThread.
33026         (wrapper_func): Update signature.
33027         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
33028
33029 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
33030             Bruno Haible  <bruno@clisp.org>
33031
33032         Provide a Win32 implementation of the 'cond' module.
33033         * lib/glthread/cond.h [USE_WIN32]: New implementation.
33034         * lib/glthread/cond.c (glthread_cond_init_func,
33035         glthread_cond_wait_func, glthread_cond_timedwait_func,
33036         glthread_cond_signal_func, glthread_cond_broadcast_func,
33037         glthread_cond_destroy_func) [USE_WIN32]: New functions.
33038         * modules/cond (Dependencies): Add gettimeofday.
33039
33040 2008-10-11  Bruno Haible  <bruno@clisp.org>
33041
33042         Make sleep work on older versions of mingw.
33043         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
33044         only whether it exists.
33045         * doc/posix-functions/sleep.texi: Mention the problem with older
33046         versions of mingw.
33047
33048 2008-10-11  Bruno Haible  <bruno@clisp.org>
33049
33050         New module 'shutdown'.
33051         * modules/shutdown: New file.
33052         * lib/sys_socket.in.h (shutdown): New declaration.
33053         * lib/winsock.c (shutdown): New function.
33054         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
33055         GNULIB_SHUTDOWN.
33056         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
33057         * doc/posix-functions/shutdown.texi: Document the new module.
33058
33059 2008-10-11  Jim Meyering  <meyering@redhat.com>
33060
33061         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
33062
33063 2008-10-11  Bruno Haible  <bruno@clisp.org>
33064
33065         New module 'fclose'.
33066         * modules/fclose: New file.
33067         * lib/stdio.in.h (fclose): New declaration.
33068         * lib/fclose.c: New file.
33069         * m4/fclose.m4: New file.
33070         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
33071         REPLACE_FCLOSE.
33072         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
33073         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
33074         REPLACE_FCLOSE.
33075         * modules/close (Depends-on): fclose.
33076         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
33077
33078 2008-10-11  Bruno Haible  <bruno@clisp.org>
33079
33080         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
33081         set errno and don't call _close.
33082
33083 2008-10-10  Bruno Haible  <bruno@clisp.org>
33084
33085         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
33086         ACL, not afterwards. Fixes test failure on Cygwin.
33087
33088 2008-10-09  Ben Pfaff  <blp@gnu.org>
33089
33090         * build-aux/announce-gen: Fix gnulib version related part of usage
33091         message.  Die with a useful error message if no tarballs are
33092         found.
33093
33094 2008-10-10  Jim Meyering  <meyering@redhat.com>
33095
33096         bootstrap: use git's --depth=N option only if it's supported
33097         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
33098         recognize the --depth option.  Reported by Pádraig Brady.
33099
33100 2008-10-09  Bruno Haible  <bruno@clisp.org>
33101
33102         New module 'ioctl'.
33103         * modules/ioctl: New file.
33104         * lib/sys_socket.in.h (ioctl): Remove declaration.
33105         * lib/winsock.c: Include <sys/ioctl.h>.
33106         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
33107         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
33108         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
33109         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
33110         * doc/posix-functions/ioctl.texi: Mention the new module.
33111
33112 2008-10-09  Bruno Haible  <bruno@clisp.org>
33113
33114         New module 'sys_ioctl'.
33115         * lib/sys_ioctl.in.h: New file.
33116         * m4/sys_ioctl_h.m4: New file.
33117         * modules/sys_ioctl: New file.
33118         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
33119
33120 2008-10-09  Bruno Haible  <bruno@clisp.org>
33121
33122         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
33123         * lib/winsock.c: Include <stdarg.h>.
33124         (rpl_ioctl): Change to second argument 'int' and then varargs.
33125
33126 2008-10-09  Bruno Haible  <bruno@clisp.org>
33127
33128         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
33129         when the sys_socket module is present and the system has <winsock2.h>.
33130
33131 2008-10-09  Bruno Haible  <bruno@clisp.org>
33132
33133         * doc/posix-functions/close.texi: Mention module 'close' instead of
33134         module 'sys_socket'.
33135
33136 2008-10-09  Bruno Haible  <bruno@clisp.org>
33137
33138         * doc/glibc-headers/sys_ioctl.texi: New file.
33139         * doc/gnulib.texi: Include it.
33140
33141 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
33142             Bruno Haible  <bruno@clisp.org>
33143
33144         Combine the two replacements of 'close'.
33145         * lib/sys_socket.in.h (close): Define to a reminder to include
33146         <unistd.h>.
33147         (_gl_close_fd_maybe_socket): New declaration.
33148         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
33149         * lib/winsock.c (close): Remove undefinition.
33150         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
33151         needed for the gnulib module 'close'.
33152         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
33153         define to an error symbol or to a warning, if suitable.
33154         * lib/close.c: Include <sys/socket.h>.
33155         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
33156         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
33157         UNISTD_H_HAVE_WINSOCK2_H.
33158         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
33159         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
33160         UNISTD_H_HAVE_WINSOCK2_H.
33161         * modules/sys_socket (Files): Add m4/unistd_h.m4.
33162         (configure.ac): Set a module indicator.
33163         (Makefile.am): Substitute GNULIB_CLOSE.
33164         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
33165         * modules/poll-tests (Depends-on): Add close.
33166         * modules/select-tests (Depends-on): Likewise.
33167
33168 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
33169             Bruno Haible  <bruno@clisp.org>
33170
33171         New module 'close'.
33172         * modules/close: New file.
33173         * lib/unistd.in.h (close): Move declaration out of the
33174         FCHDIR_REPLACEMENT scope.
33175         (_gl_unregister_fd): New declaration.
33176         * lib/close.c: New file.
33177         * lib/fchdir.c (rpl_close): Remove function.
33178         * m4/close.m4: New file.
33179         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
33180         close.
33181         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
33182         REPLACE_CLOSE.
33183         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
33184         REPLACE_CLOSE.
33185         * modules/fchdir (Depends-on): Add close.
33186
33187 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
33188             Bruno Haible  <bruno@clisp.org>
33189
33190         * lib/fcntl.in.h (open): Simplify conditionals.
33191         (_gl_register_fd): New declaration.
33192         * lib/fchdir.c (rpl_open): Remove function.
33193         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
33194         also.
33195         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
33196         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
33197         open.
33198
33199 2008-10-09  Jim Meyering  <meyering@redhat.com>
33200
33201         GNUmakefile: use the more name-space-friendly "_version"
33202         * top/GNUmakefile (_dummy): Update.
33203         (_version): Rename from "version".
33204
33205 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
33206             Bruno Haible  <bruno@clisp.org>
33207
33208         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
33209         rpl_close.
33210         (_gl_register_fd): New function, extracted from rpl_open.
33211         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
33212         (rpl_open, rpl_opendir): Use _gl_register_fd.
33213
33214 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
33215
33216         Fix organization of 'open' replacement.
33217         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
33218         (gl_FUNC_OPEN): Use it.
33219         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
33220
33221 2008-10-08  Bruno Haible  <bruno@clisp.org>
33222
33223         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
33224
33225 2008-10-08  Simon Josefsson  <simon@josefsson.org>
33226
33227         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
33228         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
33229         listen).
33230
33231 2008-10-08  Eric Blake  <ebb9@byu.net>
33232
33233         GNUmakefile: add 'make version' target
33234         * top/GNUmakefile (_curr-ver): Split version update rules...
33235         (version): ...into a target.
33236
33237 2008-10-07  Bruno Haible  <bruno@clisp.org>
33238
33239         Use a more portable replacement expression for -0.0L.
33240         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
33241         instead of -0.0L. Fix m4 quotation.
33242
33243         * tests/test-signbit.c: Include <float.h>.
33244         (minus_zero): New variable.
33245         (test_signbitl): Use minus_zero instead of -zero.
33246         * modules/signbit-tests (Depends-on): Add float.
33247
33248         * tests/test-ceill.c: Include <float.h>.
33249         (zero): Remove variable.
33250         (minus_zero): New variable.
33251         (main): Use minus_zero instead of -zero.
33252         * modules/ceill-tests (Depends-on): Add float.
33253
33254         * tests/test-floorl.c: Include <float.h>.
33255         (zero): Remove variable.
33256         (minus_zero): New variable.
33257         (main): Use minus_zero instead of -zero.
33258         * modules/floorl-tests (Depends-on): Add float.
33259
33260         * tests/test-roundl.c: Include <float.h>.
33261         (zero): Remove variable.
33262         (minus_zero): New variable.
33263         (main): Use minus_zero instead of -zero.
33264         * modules/roundl-tests (Depends-on): Add float.
33265
33266         * tests/test-truncl.c: Include <float.h>.
33267         (zero): Remove variable.
33268         (minus_zero): New variable.
33269         (main): Use minus_zero instead of -zero.
33270         * modules/truncl-tests (Depends-on): Add float.
33271
33272         * tests/test-frexpl.c (zero): Remove variable.
33273         (minus_zero): New variable.
33274         (main): Use minus_zero instead of -zero.
33275         * modules/frexpl-tests (Depends-on): Add float.
33276
33277         * tests/test-isnan.c (zerol): Remove variable.
33278         (minus_zerol): New variable.
33279         (test_long_double): Use minus_zerol instead of -zerol.
33280         * modules/isnan-tests (Depends-on): Add float.
33281
33282         * tests/test-isnanl.h (zero): Remove variable.
33283         (minus_zero): New variable.
33284         (main): Use minus_zero instead of -zero.
33285         * modules/isnanl-nolibm-tests (Depends-on): Add float.
33286         * modules/isnanl-tests (Depends-on): Add float.
33287
33288         * tests/test-ldexpl.c (zero): Remove variable.
33289         (minus_zero): New variable.
33290         (main): Use minus_zero instead of -zero.
33291         * modules/ldexpl-tests (Depends-on): Add float.
33292
33293         * tests/test-snprintf-posix.h (zerol): Remove variable.
33294         (minus_zerol): New variable.
33295         (test_function): Use minus_zerol instead of -zerol.
33296         * modules/snprintf-posix-tests (Depends-on): Add float.
33297         * modules/vsnprintf-posix-tests (Depends-on): Add float.
33298
33299         * tests/test-sprintf-posix.h (zerol): Remove variable.
33300         (minus_zerol): New variable.
33301         (test_function): Use minus_zerol instead of -zerol.
33302         * modules/sprintf-posix-tests (Depends-on): Add float.
33303         * modules/vsprintf-posix-tests (Depends-on): Add float.
33304
33305         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
33306         (minus_zerol): New variable.
33307         (test_function): Use minus_zerol instead of -zerol.
33308         * modules/vasnprintf-posix-tests (Depends-on): Add float.
33309
33310         * tests/test-vasprintf-posix.c (zerol): Remove variable.
33311         (minus_zerol): New variable.
33312         (test_function): Use minus_zerol instead of -zerol.
33313         * modules/vasprintf-posix-tests (Depends-on): Add float.
33314
33315 2008-10-07  Simon Josefsson  <simon@josefsson.org>
33316
33317         * MODULES.html.sh (Support for building documentation): Mention
33318         pmccabe2html.  Sort entries.
33319
33320         Add pmccabe2html module, from gnupdf.
33321         * build-aux/pmccabe.css: New file.
33322         * build-aux/pmccabe2html: New file.
33323         * m4/pmccabe2html.m4: New file.
33324         * modules/pmccabe2html: New file.
33325
33326 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
33327
33328         flock: new module
33329         * MODULES.html.sh: Add to list of modules.
33330         * lib/flock.c: flock implementation for Windows and Unix systems
33331         which have fcntl.
33332         * doc/glibc-functions/flock.texi: Update documentation.
33333         * lib/sys_file.in.h: <sys/file.h> header file.
33334         * m4/flock.m4: M4 macros.
33335         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
33336         * modules/flock: flock module.
33337         * modules/flock-tests: flock tests module.
33338         * modules/sys_file: sys/file.h module.
33339         * tests/test-flock.c: test suite for flock.
33340
33341 2008-10-06  Jim Meyering  <meyering@redhat.com>
33342
33343         bootstrap: check for LT_INIT more portably still ;-)
33344         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
33345         Spotted by Bruno Haible.
33346
33347 2008-10-06  Eric Blake  <ebb9@byu.net>
33348
33349         test-signbit: avoid tripping Irix cc bug on -0.0L
33350         * tests/test-signbit.c (minus_zerol): Delete, and replace with
33351         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
33352         entire testsuite consistent and avoids an Irix 6.2 bug.
33353
33354 2008-10-05  Bruno Haible  <bruno@clisp.org>
33355             Jim Meyering  <jim@meyering.net>
33356
33357         Add an option for ignoring EPIPE during close_stdout.
33358         * lib/closeout.h: Include <stdbool.h>.
33359         (close_stdout_set_ignore_EPIPE): New declaration.
33360         * lib/closeout.c: Include <stdbool.h>.
33361         (ignore_EPIPE): New variable.
33362         (close_stdout_set_ignore_EPIPE): New function.
33363         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
33364         * lib/close-stream.c (close_stream): Mention the possible EPIPE
33365         failure.
33366         * modules/closeout (Depends-on): Add stdbool.
33367
33368 2008-10-05  Bruno Haible  <bruno@clisp.org>
33369
33370         * modules/accept: New file.
33371         * modules/bind: New file.
33372         * modules/connect: New file.
33373         * modules/getpeername: New file.
33374         * modules/getsockname: New file.
33375         * modules/getsockopt: New file.
33376         * modules/listen: New file.
33377         * modules/recv: New file.
33378         * modules/recvfrom: New file.
33379         * modules/send: New file.
33380         * modules/sendto: New file.
33381         * modules/setsockopt: New file.
33382         * modules/socket: New file.
33383         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
33384         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
33385         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
33386         the particular module is requested. Add a link warning when the
33387         particular module is not requested.
33388         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
33389         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
33390         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
33391         the particular module is requested.
33392         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
33393         gl_SYS_SOCKET_H_DEFAULTS): New macros.
33394         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
33395         * modules/sys_socket (Depends-on): Add link-warning.
33396         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
33397         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
33398         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
33399         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
33400         GL_LINK_WARNING.
33401         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
33402         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
33403         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
33404         * doc/posix-functions/getpeername.texi: Mention the new module
33405         'getpeername'.
33406         * doc/posix-functions/getsockname.texi: Mention the new module
33407         'getsockname'.
33408         * doc/posix-functions/getsockopt.texi: Mention the new module
33409         'getsockopt'.
33410         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
33411         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
33412         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
33413         * doc/posix-functions/send.texi: Mention the new module 'send'.
33414         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
33415         * doc/posix-functions/setsockopt.texi: Mention the new module
33416         'setsockopt'.
33417         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
33418         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
33419         listen, connect, accept.
33420         * modules/select-tests (Depends-on): Likewise.
33421
33422 2008-10-05  Bruno Haible  <bruno@clisp.org>
33423
33424         * lib/winsock.c (strerror): Remove unused #undef.
33425         (rpl_close): Remove unused local variable.
33426
33427         * modules/sys_socket (Depends-on); Add errno.
33428
33429 2008-10-05  Bruno Haible  <bruno@clisp.org>
33430
33431         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
33432         (select): Add a link warning when the 'select' module is not used.
33433         * modules/sys_select (Depends-on): Add link-warning.
33434         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
33435         Suggested by Paolo Bonzini.
33436
33437 2008-10-05  Jim Meyering  <meyering@redhat.com>
33438
33439         bootstrap: check for LT_INIT more portably
33440         * build-aux/bootstrap: Avoid using grep -E, since it's not
33441         portable enough.  Suggestion from Bruno Haible.
33442
33443 2008-10-05  Bruno Haible  <bruno@clisp.org>
33444
33445         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
33446         as being fixed by gnulib.
33447
33448 2008-10-05  Bruno Haible  <bruno@clisp.org>
33449
33450         * modules/select-tests: New file, mostly copied from
33451         modules/sys_select-tests.
33452         * tests/test-select.c: New file, mostly copied from
33453         tests/test-sys_select.c.
33454         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
33455         * modules/sys_select-tests (Depends-on): Remove all dependencies.
33456         (Makefile.am): Remove test_sys_select_LDADD.
33457
33458         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
33459         to an undefined symbol, for an error message.
33460         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
33461         (gl_SYS_SELECT_H_DEFAULTS): New macro.
33462         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
33463         winsock-select.c here.
33464         * modules/sys_select (Files): Remove lib/winsock-select.c.
33465         (Depends-on): Remove alloca.
33466         (Makefile.am): Substitute GNULIB_SELECT.
33467         * modules/select: New file.
33468         * doc/posix-functions/select.texi: Update.
33469
33470 2008-10-05  Bruno Haible  <bruno@clisp.org>
33471
33472         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
33473         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
33474         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
33475         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
33476         getdtablesize.
33477         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
33478         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
33479
33480 2008-10-05  Bruno Haible  <bruno@clisp.org>
33481
33482         * modules/getdtablesize-tests: New file.
33483         * tests/test-getdtablesize.c: New file.
33484
33485         New module 'getdtablesize'.
33486         * lib/unistd.in.h (getdtablesize): New declaration.
33487         * lib/getdtablesize.c: New file.
33488         * m4/getdtablesize.m4: New file.
33489         * modules/getdtablesize: New file.
33490         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
33491         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
33492         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
33493         HAVE_GETDTABLESIZE.
33494         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
33495
33496 2008-10-05  Bruno Haible  <bruno@clisp.org>
33497
33498         * modules/sched (Makefile.am): Fix typo.
33499         Reported by Simon Josefsson.
33500
33501 2008-10-05  Jim Meyering  <meyering@redhat.com>
33502
33503         bootstrap: check for LT_INIT, too
33504         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
33505         are deprecated.  Suggestion from Ralf Wildenhues.
33506
33507 2008-10-05  Bruno Haible  <bruno@clisp.org>
33508
33509         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
33510         overriding them by ours.
33511         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
33512
33513 2008-10-05  Jim Meyering  <meyering@redhat.com>
33514
33515         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
33516         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
33517         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
33518
33519 2008-10-04  Bruno Haible  <bruno@clisp.org>
33520
33521         * modules/dup2 (License): Change to LGPLv2+.
33522         * modules/sleep (License): Likewise.
33523         * modules/perror (License): Likewise.
33524         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
33525         Blake.
33526         * modules/signal (License): Likewise.
33527         * modules/sigprocmask (License): Likewise.
33528         * modules/raise (License): Change to LGPLv2+, with approval by Jim
33529         Meyering.
33530
33531 2008-10-04  Bruno Haible  <bruno@clisp.org>
33532
33533         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
33534         Reported by Rainer Tammer <tammer@tammer.net>.
33535
33536 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
33537             Bruno Haible  <bruno@clisp.org>
33538
33539         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
33540         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
33541         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
33542
33543 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
33544
33545         filevercmp: new module
33546         * lib/filevercmp.h: New function filevercmp comparing version strings.
33547         * lib/filevercmp.c: Implementation of filevercmp function.
33548         * modules/filevercmp: Module metadata.
33549         * tests/test-filevercmp.c: Unit test for new module.
33550         * modules/filevercmp-tests: Unit test metadata.
33551         * MODULES.html.sh: Add filevercmp module.
33552
33553 2008-10-03  Bruno Haible  <bruno@clisp.org>
33554
33555         * lib/c-ctype.h: Add comment.
33556         Reported by Jim Meyering.
33557
33558 2008-10-02  Bruno Haible  <bruno@clisp.org>
33559
33560         * modules/posix_spawn-internal (Depends-on): Add 'open'.
33561
33562 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
33563
33564         * build-aux/bootstrap: Allow renaming bootstrap, and change the
33565         name of bootstrap.conf accordingly.
33566
33567 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
33568
33569         * build-aux/bootstrap: Install git-merge-changelog configuration
33570         items into .gitconfig if needed.
33571
33572 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
33573
33574         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
33575         git repository, and initialize/update it accordingly.
33576
33577 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
33578
33579         * modules/fsync-tests: New file.
33580         * tests/test-fsync.c: New file.
33581
33582         New module 'fsync'.
33583         * lib/fsync.c: New file.
33584         * m4/fsync.m4: New file.
33585         * modules/fsync: New file.
33586         * lib/unistd.in.h (fsync): New declaration.
33587         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
33588         GNULIB_FSYNC and HAVE_FSYNC.
33589         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
33590         * MODULES.html.sh (posix_functions): Add fsync.
33591         * doc/posix-functions/fsync.texi: Mention the new module.
33592
33593 2008-10-02  Jim Meyering  <meyering@redhat.com>
33594
33595         fts.c: sync with similar code from coreutils' remove.c
33596         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
33597         Guard also with "#if defined __linux__", since for now at least,
33598         this code is Linux-kernel-specific.
33599
33600 2008-10-02  Jim Meyering  <meyering@redhat.com>
33601
33602         fts: bug fixes
33603         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
33604         Include <sys/vfs.h>, not <sys/statfs.h>.
33605
33606         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
33607         Include <sys/vfs.h>, not <sys/statfs.h>.
33608
33609 2008-10-01  Bruno Haible  <bruno@clisp.org>
33610
33611         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
33612         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
33613         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
33614         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
33615         * doc/posix-functions/posix_spawnp.texi: Likewise.
33616         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
33617         whether posix_spawn actually works.
33618         * m4/pipe.m4 (gl_PIPE): Likewise.
33619         * modules/execute (Files): Add m4/posix_spawn.m4.
33620         * modules/pipe (Files): Add m4/posix_spawn.m4.
33621         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
33622
33623 2008-10-01  Jim Meyering  <meyering@redhat.com>
33624
33625         remove trailing spaces
33626         * NEWS: Likewise.
33627         * lib/poll.c (poll): Likewise.
33628         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
33629         * lib/winsock.c (rpl_close): Likewise.
33630         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
33631         * modules/yield: Likewise.
33632         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
33633         * tests/test-sys_select.c (connect_to_socket): Likewise.
33634
33635         fts.c: adjust a new interface to be more generally useful
33636         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
33637         (fts_build): Adjust caller.
33638
33639 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33640
33641         * modules/cond-tests: New file.
33642         * tests/test-cond.c: New file.
33643
33644 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33645             Bruno Haible  <bruno@clisp.org>
33646
33647         * modules/cond (Dependencies): Add errno, time.
33648         * lib/glthread/cond.h: Include <time.h>.
33649         (gl_cond_define, gl_cond_define_initialized): Use the same definition
33650         across platforms.
33651
33652 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33653             Bruno Haible  <bruno@clisp.org>
33654
33655         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
33656
33657 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33658             Bruno Haible  <bruno@clisp.org>
33659
33660         * modules/tls-tests (Depends-on): Add thread, yield.
33661         (configure.ac): Remove all checks.
33662         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
33663         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
33664         gl_thread_self): Remove definitions. Include glthread/thread.h and
33665         glthread/yield.h instead.
33666         (test_tls): Pass an additional NULL argument to gl_thread_join.
33667
33668 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33669             Bruno Haible  <bruno@clisp.org>
33670
33671         * modules/lock-tests (Depends-on): Add thread, yield.
33672         (configure.ac): Remove all checks.
33673         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
33674         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
33675         gl_thread_self): Remove definitions. Include glthread/thread.h and
33676         glthread/yield.h instead.
33677         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
33678         additional NULL argument to gl_thread_join.
33679
33680 2008-09-30  Bruno Haible  <bruno@clisp.org>
33681
33682         Fix the Win32 implementation of the 'thread' module.
33683         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
33684         pointer type.
33685         (gl_thread_self): Invoke gl_thread_self_func.
33686         (gl_thread_self_func): New declaration.
33687         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
33688         (do_init_self_key, init_self_key): New functions.
33689         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
33690         Remove some fields.
33691         (running_threads, running_lock): Remove variables.
33692         (get_current_thread_handle): New function.
33693         (gl_thread_self_func, wrapper_func, glthread_create_func,
33694         glthread_join_func, gl_thread_exit_func): Largely rewritten and
33695         simplified.
33696
33697 2008-09-30  Bruno Haible  <bruno@clisp.org>
33698
33699         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
33700         files.
33701
33702 2008-09-30  Jim Meyering  <meyering@redhat.com>
33703
33704         fts.m4: correct the test for statfs.f_type
33705         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
33706         when checking for statfs.f_type.
33707
33708 2008-09-15  Simon Josefsson  <simon@josefsson.org>
33709
33710         tests: avoid some compiler warnings
33711         * tests/test-memchr.c (main): Pass NULL indirectly.
33712         * tests/test-getdate.c (main): Remove unused variable 'ret'.
33713
33714 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
33715
33716         getdate.y: disallow countable dayshifts like "4 yesterday ago"
33717         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
33718         exactly specified dayshifts.
33719         (dayshift): New rule.
33720         (rel): Add dayshift.
33721         (relative_time_table) [tomorrow, yesterday, today, now]:
33722         Use tDAY_SHIFT in place of tDAY_UNIT.
33723         * tests/test-getdate.c: Add tests for now-disallowed countable
33724         dayshifts, e.g., "4 yesterday ago".
33725
33726 2008-09-29  Bruno Haible  <bruno@clisp.org>
33727
33728         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
33729         * tests/test-posix_spawn1.in.sh: Renamed from
33730         tests/test-posix_spawn.in.sh.
33731         * tests/test-posix_spawn2.c: New file.
33732         * tests/test-posix_spawn2.in.sh: New file.
33733         * modules/posix_spawnp-tests (Files): Update.
33734         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
33735
33736 2008-09-29  Bruno Haible  <bruno@clisp.org>
33737
33738         Propagate effects of putenv/setenv/unsetenv to child processes.
33739         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
33740         * lib/pipe.c (create_pipe): Likewise.
33741
33742 2008-09-29  Bruno Haible  <bruno@clisp.org>
33743
33744         Enable use of shell scripts as executables in mingw.
33745         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
33746         run the program as a shell script.
33747         * lib/pipe.c (create_pipe): Likewise.
33748         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
33749         resulting array.
33750
33751 2008-09-29  Eric Blake  <ebb9@byu.net>
33752
33753         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
33754
33755 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
33756
33757         * doc/posix-functions/accept.texi: Update mingw problems.
33758         * doc/posix-functions/bind.texi: Update mingw problems.
33759         * doc/posix-functions/close.texi: Update mingw problems.
33760         * doc/posix-functions/connect.texi: Update mingw problems.
33761         * doc/posix-functions/getpeername.texi: Update mingw problems.
33762         * doc/posix-functions/getsockname.texi: Update mingw problems.
33763         * doc/posix-functions/getsockopt.texi: Update mingw problems.
33764         * doc/posix-functions/ioctl.texi: Update mingw problems.
33765         * doc/posix-functions/listen.texi: Update mingw problems.
33766         * doc/posix-functions/recv.texi: Update mingw problems.
33767         * doc/posix-functions/recvfrom.texi: Update mingw problems.
33768         * doc/posix-functions/select.texi: Update mingw problems.
33769         * doc/posix-functions/send.texi: Update mingw problems.
33770         * doc/posix-functions/sendto.texi: Update mingw problems.
33771         * doc/posix-functions/setsockopt.texi: Update mingw problems.
33772         * doc/posix-functions/socket.texi: Update mingw problems.
33773
33774 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
33775             Bruno Haible  <bruno@clisp.org>
33776
33777         * lib/sys_select.in.h: Include sys/time.h.
33778         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
33779         * modules/sys_select: Depend on sys_time.
33780         * tests/test-sys_select.c: Test that sys/select.h defines struct
33781         timeval fully.
33782
33783 2008-09-29  Bruno Haible  <bruno@clisp.org>
33784
33785         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
33786         * lib/sys_select.in.h: Likewise.
33787
33788 2008-09-29  Bruno Haible  <bruno@clisp.org>
33789
33790         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
33791
33792 2008-09-29  Bruno Haible  <bruno@clisp.org>
33793
33794         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
33795         Set LIBSOCKET instead of augmenting LIBS.
33796         * modules/sockets (Link): New section.
33797         * modules/sockets-tests (test_sockets_LDADD): New variable.
33798         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
33799         * modules/poll-tests (test_poll_LDADD): New variable.
33800         * NEWS: Document the change.
33801
33802 2008-09-29  Bruno Haible  <bruno@clisp.org>
33803
33804         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
33805         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
33806         ARPA_INET_H directly.
33807         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
33808
33809 2008-09-28  Bruno Haible  <bruno@clisp.org>
33810
33811         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
33812         from gl_HEADER_SYS_SOCKET.
33813         (gl_HEADER_SYS_SOCKET): Invoke it.
33814         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
33815
33816 2008-09-28  Bruno Haible  <bruno@clisp.org>
33817
33818         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
33819         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
33820         Needed on OSF/1 4.0.
33821
33822 2008-09-28  Bruno Haible  <bruno@clisp.org>
33823
33824         Override open more carefully.
33825         * lib/open.c (orig_open): New function.
33826         (rpl_open): Use orig_open instead of open.
33827         * lib/fcntl.in.h: Add special invocation convention.
33828         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
33829         (gl_FUNC_OPEN): Invoke it.
33830
33831         Override freopen more carefully.
33832         * lib/freopen.c (orig_freopen): New function.
33833         (rpl_freopen): Use orig_freopen instead of freopen.
33834         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
33835         (gl_FUNC_FREOPEN): Invoke it.
33836
33837         Override fopen more carefully.
33838         * lib/fopen.c (orig_fopen): New function.
33839         (rpl_fopen): Use orig_fopen instead of fopen.
33840         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
33841         (gl_FUNC_FOPEN): Invoke it.
33842         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
33843
33844 2008-09-28  Bruno Haible  <bruno@clisp.org>
33845
33846         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
33847         SIGPIPE.
33848
33849 2008-09-28  Bruno Haible  <bruno@clisp.org>
33850
33851         * tests/test-sigaction.c (handler, main): Disable the check whether
33852         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
33853         glibc systems with LinuxThreads.
33854
33855 2008-09-28  Bruno Haible  <bruno@clisp.org>
33856
33857         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
33858
33859         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
33860         with AIX xlc.
33861         * lib/fcntl.in.h (open): Likewise.
33862         Reported by Rainer Tammer <tammer@tammer.net>.
33863
33864 2008-09-28  Bruno Haible  <bruno@clisp.org>
33865
33866         * modules/posix_spawnp-tests: New file.
33867         * tests/test-posix_spawn.c: New file.
33868         * tests/test-posix_spawn.in.sh: New file.
33869
33870         New module 'posix_spawnp'.
33871         * modules/posix_spawnp: New file.
33872         * lib/spawnp.c: New file, from GNU libc with modifications.
33873         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
33874
33875         New module 'posix_spawn'.
33876         * modules/posix_spawn: New file.
33877         * lib/spawn.c: New file, from GNU libc with modifications.
33878         * doc/posix-functions/posix_spawn.texi: Mention the new module.
33879
33880         New module 'posix_spawnattr_destroy'.
33881         * modules/posix_spawnattr_destroy: New file.
33882         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
33883         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
33884         module.
33885
33886         New module 'posix_spawnattr_setsigmask'.
33887         * modules/posix_spawnattr_setsigmask: New file.
33888         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
33889         modifications.
33890         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
33891         new module.
33892
33893         New module 'posix_spawnattr_getsigmask'.
33894         * modules/posix_spawnattr_getsigmask: New file.
33895         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
33896         modifications.
33897         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
33898         new module.
33899
33900         New module 'posix_spawnattr_setsigdefault'.
33901         * modules/posix_spawnattr_setsigdefault: New file.
33902         * lib/spawnattr_setdefault.c: New file, from GNU libc with
33903         modifications.
33904         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
33905         new module.
33906
33907         New module 'posix_spawnattr_getsigdefault'.
33908         * modules/posix_spawnattr_getsigdefault: New file.
33909         * lib/spawnattr_getdefault.c: New file, from GNU libc with
33910         modifications.
33911         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
33912         new module.
33913
33914         New module 'posix_spawnattr_setschedpolicy'.
33915         * modules/posix_spawnattr_setschedpolicy: New file.
33916         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
33917         modifications.
33918         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
33919         new module.
33920
33921         New module 'posix_spawnattr_getschedpolicy'.
33922         * modules/posix_spawnattr_getschedpolicy: New file.
33923         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
33924         modifications.
33925         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
33926         new module.
33927
33928         New module 'posix_spawnattr_setschedparam'.
33929         * modules/posix_spawnattr_setschedparam: New file.
33930         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
33931         modifications.
33932         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
33933         new module.
33934
33935         New module 'posix_spawnattr_getschedparam'.
33936         * modules/posix_spawnattr_getschedparam: New file.
33937         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
33938         modifications.
33939         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
33940         new module.
33941
33942         New module 'posix_spawnattr_setpgroup'.
33943         * modules/posix_spawnattr_setpgroup: New file.
33944         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
33945         modifications.
33946         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
33947         module.
33948
33949         New module 'posix_spawnattr_getpgroup'.
33950         * modules/posix_spawnattr_getpgroup: New file.
33951         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
33952         modifications.
33953         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
33954         module.
33955
33956         New module 'posix_spawnattr_setflags'.
33957         * modules/posix_spawnattr_setflags: New file.
33958         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
33959         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
33960         module.
33961
33962         New module 'posix_spawnattr_getflags'.
33963         * modules/posix_spawnattr_getflags: New file.
33964         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
33965         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
33966         module.
33967
33968         New module 'posix_spawnattr_init'.
33969         * modules/posix_spawnattr_init: New file.
33970         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
33971         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
33972         module.
33973
33974         New module 'posix_spawn_file_actions_destroy'.
33975         * modules/posix_spawn_file_actions_destroy: New file.
33976         * lib/spawn_faction_destroy.c: New file, from GNU libc with
33977         modifications.
33978         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
33979         the new module.
33980
33981         New module 'posix_spawn_file_actions_addopen'.
33982         * modules/posix_spawn_file_actions_addopen: New file.
33983         * lib/spawn_faction_addopen.c: New file, from GNU libc with
33984         modifications.
33985         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
33986         the new module.
33987
33988         New module 'posix_spawn_file_actions_adddup2'.
33989         * modules/posix_spawn_file_actions_adddup2: New file.
33990         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
33991         modifications.
33992         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
33993         the new module.
33994
33995         New module 'posix_spawn_file_actions_addclose'.
33996         * modules/posix_spawn_file_actions_addclose: New file.
33997         * lib/spawn_faction_addclose.c: New file, from GNU libc with
33998         modifications.
33999         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
34000         the new module.
34001
34002         New module 'posix_spawn_file_actions_init'.
34003         * modules/posix_spawn_file_actions_init: New file.
34004         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
34005         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
34006         new module.
34007
34008         New module 'posix_spawn-internal'.
34009         * modules/posix_spawn-internal: New file.
34010         * lib/spawn_int.h: New file, from GNU libc with modifications.
34011         * lib/spawni.c: New file, from GNU libc with modifications.
34012         * m4/posix_spawn.m4: New file.
34013
34014         New module 'spawn'.
34015         * modules/spawn: New file.
34016         * lib/spawn.in.h: New file, from GNU libc with modifications.
34017         * m4/spawn_h.m4: New file.
34018         * doc/posix-headers/spawn.texi: Mention the new module.
34019
34020 2008-09-28  Bruno Haible  <bruno@clisp.org>
34021
34022         * modules/sched-tests: New file.
34023         * tests/test-sched.c: New file.
34024
34025         New module 'sched'.
34026         * modules/sched: New file.
34027         * lib/sched.in.h: New file.
34028         * m4/sched_h.m4: New file.
34029         * doc/posix-headers/sched.texi: Mention the new module.
34030
34031 2008-09-27  Eric Blake  <ebb9@byu.net>
34032
34033         Fix previous patch, and tweak references to $0.
34034         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
34035         (func_version, func_gnulib_dir): Don't call this program
34036         gnulib-tool.
34037         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
34038         with using $0 in function.
34039         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
34040         (func_fatal_error): Reuse the name the user invoked us with.
34041
34042 2008-09-27  Bruno Haible  <bruno@clisp.org>
34043
34044         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
34045         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
34046         (gl_ICONV_H): Not here.
34047         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
34048         instead of assigning ICONV_H directly.
34049
34050         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
34051         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
34052         WCHAR_H directly.
34053
34054 2008-09-27  Bruno Haible  <bruno@clisp.org>
34055
34056         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
34057         * modules/arpa_inet (Depends-on): Add link-warning.
34058         (Makefile.am): Insert the definition of GL_LINK-WARNING.
34059         * modules/unistd (Makefile.am): Likewise.
34060
34061 2008-09-26  Bruno Haible  <bruno@clisp.org>
34062
34063         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
34064         variables.
34065         (func_version): Essentially copied from gnulib-tool.
34066         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
34067         func_readlink): Copied from gnulib-tool.
34068
34069 2008-09-26  Bruno Haible  <bruno@clisp.org>
34070
34071         * gnulib-tool (func_version): Change directory to $gnulib_dir before
34072         invoking git-version-gen.
34073
34074 2008-09-26  Bruno Haible  <bruno@clisp.org>
34075
34076         * posix-modules: Update to directory names changed on 2008-01-19.
34077         Remove commas in output before splitting into words. No more need to
34078         avoid 'ftruncate' since 2007-02-19.
34079
34080 2008-09-26  Bruno Haible  <bruno@clisp.org>
34081
34082         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
34083
34084 2008-09-26  Bruno Haible  <bruno@clisp.org>
34085
34086         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
34087         * modules/fwriteerror (Depends-on): Add errno.
34088
34089 2008-09-26  Bruno Haible  <bruno@clisp.org>
34090
34091         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
34092         * tests/test-vc-list-files-cvs.sh: Likewise.
34093
34094 2008-09-26  Bruno Haible  <bruno@clisp.org>
34095
34096         * doc/posix-headers/sys_resource.texi: Reorder items.
34097
34098 2008-09-26  Jim Meyering  <meyering@redhat.com>
34099
34100         fts: tweak inode comparison function
34101         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
34102         inode numbers, as documented.
34103
34104         fts: sort dirent entries on inode number before traversing
34105         This avoids a quadratic, seek-related performance penalty when
34106         operating on a directory containing many entries (measurable at 10k;
34107         3.5 hours at 2 million entries with a cold cache) on certain types
34108         of file systems, including ext3 and ext4, but not tmpfs.
34109         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
34110         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
34111         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
34112         (fs_handles_readdir_ordered_dirents_efficiently): New function.
34113         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
34114         (fts_build): Set the stat.st_ino member from D_INO.
34115         If it is likely to be useful, sort dirent entries on inode number.
34116
34117         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
34118         and the struct statfs.f_type member.
34119         * modules/fts (Depends-on): Add d-ino.
34120
34121 2008-09-26  Bruno Haible  <bruno@clisp.org>
34122
34123         * modules/sigpipe-die (Depends-on): Add sigpipe.
34124
34125         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
34126         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
34127         and GNULIB_STDIO_H_SIGPIPE are set.
34128         * lib/stdio-write.c: New file.
34129         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
34130         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
34131         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
34132         REPLACE_STDIO_WRITE_FUNCS.
34133         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
34134         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
34135         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
34136         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
34137         * modules/stdio (Files): Add lib/stdio-write.c.
34138         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
34139         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
34140         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
34141         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
34142         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
34143         REPLACE_FPRINTF_POSIX.
34144         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
34145         REPLACE_PRINTF_POSIX.
34146         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
34147         REPLACE_VFPRINTF_POSIX.
34148         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
34149         REPLACE_VPRINTF_POSIX.
34150         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
34151         SIGPIPE issue.
34152         * doc/posix-functions/fputc.texi: Likewise.
34153         * doc/posix-functions/fputs.texi: Likewise.
34154         * doc/posix-functions/fwrite.texi: Likewise.
34155         * doc/posix-functions/printf.texi: Likewise.
34156         * doc/posix-functions/putc.texi: Likewise.
34157         * doc/posix-functions/putchar.texi: Likewise.
34158         * doc/posix-functions/puts.texi: Likewise.
34159         * doc/posix-functions/vfprintf.texi: Likewise.
34160         * doc/posix-functions/vprintf.texi: Likewise.
34161
34162         * modules/safe-write (Depends-on): Add write.
34163
34164         * modules/sigpipe-tests: New file.
34165         * tests/test-sigpipe.c: New file.
34166         * tests/test-sigpipe.sh: New file.
34167
34168         * modules/write: New file.
34169         * lib/unistd.in.h: Include <sys/types.h>.
34170         (write): New declaration.
34171         * lib/write.c: New file.
34172         * m4/write.m4: New file.
34173         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
34174         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
34175         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
34176         GNULIB_WRITE, REPLACE_WRITE.
34177         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
34178         and the SIGPIPE issue.
34179
34180         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
34181         (raise): New declaration.
34182         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
34183         (ext_signal): New function.
34184         (rpl_raise): New function.
34185         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
34186         GNULIB_SIGNAL_H_SIGPIPE.
34187         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
34188         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
34189
34190         * modules/sigpipe: New file.
34191         * m4/sigpipe.m4: New file.
34192
34193 2008-09-25  Derek Price  <derek@ximbiot.com>
34194             Bruno Haible  <bruno@clisp.org>
34195
34196         * gnulib-tool (func_import): Report all license incompatibilities, not
34197         just the first one.
34198
34199 2008-09-25  Bruno Haible  <bruno@clisp.org>
34200
34201         * gnulib-tool (func_import): When computing the edits, consider not
34202         only the Makefile.ams that exist but also those that will be generated.
34203
34204 2008-09-25  Simon Josefsson  <simon@josefsson.org>
34205
34206         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
34207         fixes gnulib-tool --test warning about duplicate dependency.
34208
34209 2008-09-25  Bruno Haible  <bruno@clisp.org>
34210
34211         * gnulib-tool: Don't ask the user to perform edits in the generated
34212         Makefile.ams.
34213         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
34214         apply to the Makefile.am being generated.
34215         (func_emit_tests_Makefile_am): Execute edits that apply to the
34216         Makefile.am being generated.
34217         (func_import): Setup list of Makefile.am edits before emitting the
34218         Makefile.ams, not at the end.
34219         (func_create_testdir): Update.
34220         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
34221
34222 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
34223
34224         * gnulib-tool (func_import): Store the --tests-base option in the
34225         comment in gnulib-cache.m4.
34226
34227 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
34228
34229         * NEWS: Document increased portability that sys_select now provides.
34230
34231         * lib/sys_select.in.h: Install select wrapper.
34232         * lib/sys_socket.in.h: Use more descriptive name when there is no
34233         select wrapper.
34234         * lib/winsock-select.c: New.
34235         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
34236         Require gl_HEADER_SYS_SOCKET.
34237         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
34238         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
34239         * tests/test-sys_select.c: Add functional tests.
34240
34241 2008-09-24  Eric Blake  <ebb9@byu.net>
34242
34243         open, fopen: close fd leak in last patch
34244         * lib/open.c (rpl_open): Close fd before returning error.
34245         * lib/fopen.c (rpl_fopen): Close fd before returning error.
34246         * doc/posix-functions/open.texi (open): Document that Irix also
34247         has the bug.
34248         * doc/posix-functions/fopen.texi (fopen): Likewise.
34249         Reported by Paolo Bonzini.
34250
34251 2008-09-24  Bruno Haible  <bruno@clisp.org>
34252
34253         Ensure that a filename ending in a slash cannot be used to access a
34254         non-directory.
34255         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
34256         to check whether it's really a directory.
34257         * lib/fopen.c: Include fcntl.h, unistd.h.
34258         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
34259         and fdopen().
34260         * modules/fopen (Depends-on): Add unistd.
34261         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
34262         * tests/test-fopen.c (main): Likewise.
34263         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
34264         * doc/posix-functions/fopen.texi: Likewise.
34265         Reported by Eric Blake.
34266
34267 2008-09-23  Eric Blake  <ebb9@byu.net>
34268
34269         c-stack: avoid compiler optimizations when provoking overflow
34270         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
34271         recursion harder to optimize, to ensure a stack overflow occurs.
34272         * tests/test-c-stack.c (recurse): Likewise.
34273         Borrowed from libsigsegv.
34274
34275         c-stack: work around Irix sigaltstack bug
34276         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
34277         whether sigaltstack uses wrong end of stack_t (copied in part from
34278         libsigsegv).
34279         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
34280         Irix bug, without requiring an over-allocation.
34281         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
34282         bug.
34283
34284         fopen: document mingw bug on directories
34285         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
34286         not allowing a stream visiting a directory, even though reading
34287         from such a stream is not portable.
34288
34289 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
34290
34291         * lib/poll.c: Rewrite.
34292         * modules/poll: Depend on alloca.
34293
34294 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
34295
34296         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
34297         instead define prototypes for a full set of wrappers.  Ensure
34298         that Cygwin does not use the compatibility code, which is only
34299         for MinGW.
34300         * lib/winsock.c: New.
34301         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
34302         * modules/sys_socket: Add lib/winsock.c.
34303
34304         * modules/poll-tests: Add errno and perror.
34305         * tests/test-poll.c: Use ioctl, not ioctlsocket.
34306
34307 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
34308
34309         * tests/test-poll.c: Downgrade minimum needed Winsock version.
34310
34311 2008-09-23  Bruno Haible  <bruno@clisp.org>
34312
34313         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
34314         * doc/glibc-functions/*: Likewise.
34315
34316 2008-09-23  Simon Josefsson  <simon@josefsson.org>
34317
34318         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
34319         success.
34320
34321 2008-09-22  Eric Blake  <ebb9@byu.net>
34322             Bruno Haible  <bruno@clisp.org>
34323
34324         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
34325         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
34326         supply %A but mishandle pseudo-NaN.
34327         Reported by Simon Josefsson.
34328
34329 2008-09-21  Bruno Haible  <bruno@clisp.org>
34330
34331         * tests/test-lock.c (main): Tweak skip message.
34332         * tests/test-tls.c (main): Likewise.
34333
34334 2008-09-21  Bruno Haible  <bruno@clisp.org>
34335
34336         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
34337         whether 'struct sigaction' has sa_sigaction here...
34338         (gl_PREREQ_SIG_HANDLER_H): ... not here.
34339         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
34340
34341 2008-09-21  Bruno Haible  <bruno@clisp.org>
34342
34343         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
34344         section.
34345         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
34346         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
34347         the new section.
34348         (Support for obsolete systems lacking POSIX:2001): New section.
34349         (String handling <string.h>): Move strdup to the new section.
34350         Suggested by Simon Josefsson and Paolo Bonzini.
34351
34352 2008-09-21  Bruno Haible  <bruno@clisp.org>
34353
34354         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
34355         exponents in %e and %g results on 'long double'. Needed for mingw's
34356         improved *printf functions.
34357         * tests/test-vasprintf-posix.c (test_function): Likewise.
34358         * tests/test-snprintf-posix.h (test_function): Likewise.
34359         * tests/test-sprintf-posix.h (test_function): Likewise.
34360         Reported by Eric Blake.
34361
34362 2008-09-21  Bruno Haible  <bruno@clisp.org>
34363
34364         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
34365         * tests/test-sprintf-posix.h (test_function): Likewise.
34366
34367 2008-09-21  Bruno Haible  <bruno@clisp.org>
34368
34369         * modules/getpass (Depends-on): Add strdup-posix.
34370
34371         New module 'strdup-posix'.
34372         * modules/strdup-posix: New file.
34373         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
34374         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
34375         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
34376         REPLACE_STRDUP.
34377         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
34378         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
34379         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
34380         strdup-posix.
34381
34382         * modules/strdup (Depends-on): Remove malloc-posix.
34383
34384 2008-09-20  Bruno Haible  <bruno@clisp.org>
34385
34386         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
34387         Wildenhues.
34388
34389 2008-09-20  Bruno Haible  <bruno@clisp.org>
34390
34391         Ensure that wint_t gets defined on IRIX 5.3.
34392         * lib/wchar.in.h (wint_t): Define if not defined by the system.
34393         * lib/wctype.in.h (wint_t): Likewise.
34394         (__wctype_wint_t): Remove type.
34395         (isw*): Use wint_t instead of __wctype_wint_t.
34396         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
34397         * modules/wchar (Files): Add m4/wint_t.m4.
34398         (Makefile.am): Substitute HAVE_WINT_T.
34399         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
34400         * tests/test-wctype.c: Check that wint_t is defined.
34401         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
34402         * doc/posix-headers/wctype.texi: Likewise.
34403         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
34404
34405 2008-09-18  Bruno Haible  <bruno@clisp.org>
34406
34407         * gnulib-tool (func_exit): Update comment.
34408
34409 2008-09-18  Simon Josefsson  <simon@josefsson.org>
34410
34411         * modules/getaddrinfo (Depends-on): Remove strdup, this module
34412         assumes strdup exists and does not depend on strdup to return
34413         ENOMEM on out of memory conditions.
34414
34415 2008-09-18  Bruno Haible  <bruno@clisp.org>
34416
34417         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
34418         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
34419         digits for the exponent.
34420
34421 2008-09-18  Jim Meyering  <meyering@redhat.com>
34422             Bruno Haible  <bruno@clisp.org>
34423
34424         * lib/vasnprintf.c (decimal_point_char): Define also if
34425         NEED_PRINTF_INFINITE_LONG_DOUBLE.
34426
34427 2008-09-16  Bruno Haible  <bruno@clisp.org>
34428         and Eric Blake  <ebb9@byu.net>
34429
34430         vasnprintf: support Irix 5.3
34431         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
34432         that mishandle long double infinity.
34433         Reported by Tom G. Christensen.
34434
34435 2008-09-16  Bruno Haible  <bruno@clisp.org>
34436
34437         * doc/glibc-functions/scandir.texi: Mention the function is missing on
34438         Solaris 9.
34439         * doc/glibc-functions/alphasort.texi: Likewise.
34440         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
34441
34442 2008-09-16  Jim Meyering  <meyering@redhat.com>
34443
34444         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
34445         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
34446         a umask modification leak out of a subshell.  Otherwise, the
34447         opensolaris /bin/sh would be accepted and thus cause unwarranted
34448         failures in the coreutils test suite.
34449
34450 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
34451
34452         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
34453         to succeed.
34454
34455 2008-09-16  Jim Meyering  <meyering@redhat.com>
34456
34457         avoid spurious test failure when library is built without ACL support
34458         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
34459         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
34460         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
34461         * tests/test-copy-acl.sh: Likewise.
34462
34463 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34464
34465         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
34466         based on character occurrence counts.
34467
34468 2008-09-15  Eric Blake  <ebb9@byu.net>
34469
34470         tests: avoid some compiler warnings
34471         * tests/test-memchr.c (main): Pass NULL indirectly.
34472         * tests/test-closein.c (main): Avoid unused variable.
34473
34474 2008-09-15  Bruno Haible  <bruno@clisp.org>
34475
34476         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
34477         are missing on OpenBSD 4.0 individually.
34478         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
34479
34480 2008-09-15  Bruno Haible  <bruno@clisp.org>
34481
34482         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
34483         * doc/posix-functions/strerror.texi: Mention also Cygwin.
34484         * doc/posix-functions/perror.texi: Likewise.
34485         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
34486         is missing.
34487         Reported by Eric Blake.
34488
34489         * lib/errno.in.h: Use replacement values >= 2000.
34490         Reported by Eric Blake.
34491
34492 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34493
34494         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
34495         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
34496         limit.
34497         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
34498         compareseq was aborted.
34499
34500 2008-09-14  Bruno Haible  <bruno@clisp.org>
34501
34502         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
34503         yvec_edit_count.
34504         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
34505         (fstrcmp_bounded): Simplify result computation accordingly.
34506
34507 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34508
34509         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
34510         (fstrcmp): Define in terms of fstrcmp_bounded.
34511         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
34512         lower_bound argument.
34513         Return quickly if the result is certainly < lower_bound.
34514         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
34515
34516 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34517
34518         * lib/diffseq.h (EARLY_ABORT): New macro.
34519         (compareseq): Change return type to bool. Return true when EARLY_ABORT
34520         evaluates to true.
34521
34522 2008-09-14  Bruno Haible  <bruno@clisp.org>
34523
34524         * modules/perror-tests: New file.
34525         * tests/test-perror.sh: New file.
34526         * tests/test-perror.c: New file.
34527
34528         New module 'perror'.
34529         * lib/stdio.in.h (perror): New declaration.
34530         * lib/perror.c: New file.
34531         * m4/perror.m4: New file.
34532         * modules/perror: New file.
34533         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
34534         * doc/posix-functions/perror.texi: Mention the perror module.
34535         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
34536         REPLACE_PERROR.
34537         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
34538         REPLACE_PERROR.
34539
34540 2008-09-14  Bruno Haible  <bruno@clisp.org>
34541
34542         * modules/stdio (Makefile.am): Reorder to match the order in
34543         lib/stdio.in.h.
34544         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
34545
34546 2008-09-13  Bruno Haible  <bruno@clisp.org>
34547
34548         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
34549
34550 2008-09-13  Bruno Haible  <bruno@clisp.org>
34551
34552         Extend strerror to cover the added errno values.
34553         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
34554         (rpl_strerror): Provide error messages for the added errno values and
34555         for the WSA* values.
34556         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
34557         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
34558         strerror.
34559         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
34560         * modules/strerror (Depends-on): Add errno.
34561         * doc/posix-functions/strerror.texi: Document the change.
34562         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
34563         and EOVERFLOW.
34564
34565 2008-09-13  Bruno Haible  <bruno@clisp.org>
34566
34567         * modules/EOVERFLOW: Remove file.
34568         * m4/eoverflow.m4: Remove file.
34569         * modules/EOVERFLOW-tests: Remove file.
34570         * tests/test-EOVERFLOW.c: Remove file.
34571         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
34572         * modules/ftell (Depends-on): Likewise.
34573         * modules/getdelim (Depends-on): Likewise.
34574         * modules/getugroups (Depends-on): Likewise.
34575         * modules/poll (Depends-on): Likewise.
34576         * modules/snprintf (Depends-on): Likewise.
34577         * modules/sprintf-posix (Depends-on): Likewise.
34578         * modules/vasnprintf (Depends-on): Likewise.
34579         * modules/vasprintf (Depends-on): Likewise.
34580         * modules/vfprintf-posix (Depends-on): Likewise.
34581         * modules/vsnprintf (Depends-on): Likewise.
34582         * modules/vsprintf-posix (Depends-on): Likewise.
34583         * modules/xvasprintf (Depends-on): Likewise.
34584         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
34585         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
34586         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
34587         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
34588         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
34589         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
34590         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
34591         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
34592         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
34593         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
34594         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
34595         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
34596         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
34597         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
34598         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
34599         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
34600         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
34601         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
34602         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
34603         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
34604         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
34605         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
34606         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
34607         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
34608         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
34609         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
34610         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
34611         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
34612         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
34613         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
34614         * MODULES.html.sh: Remove EOVERFLOW.
34615         * NEWS: Mention the change.
34616
34617 2008-09-13  Bruno Haible  <bruno@clisp.org>
34618
34619         * modules/errno-tests: New file.
34620         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
34621
34622         * lib/errno.in.h: New file.
34623         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
34624         * modules/errno: New file.
34625         * doc/posix-headers/errno.texi: Update documentation.
34626         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
34627
34628 2008-09-13  Bruno Haible  <bruno@clisp.org>
34629
34630         * tests/test-poll.c: Use #if for native Windows, rather than testing
34631         __MSVCRT__.
34632
34633 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
34634             Bruno Haible  <bruno@clisp.org>
34635
34636         * lib/glob.c: Don't include <pwd.h> on native Windows.
34637         (WINDOWS32): New macro.
34638         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
34639
34640 2008-09-13  Bruno Haible  <bruno@clisp.org>
34641
34642         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
34643         (ETIMEDOUT): Remove macro.
34644         (glthread_cond_timedwait_multithreaded): New declaration.
34645         (glthread_cond_timedwait): Use it.
34646         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
34647         (glthread_cond_timedwait_multithreaded): New function.
34648
34649 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
34650
34651         * modules/poll-tests: Do not check for io.h.
34652         * tests/test-poll.c: Check for __MSVCRT__ instead.
34653
34654 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
34655
34656         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
34657         * modules/poll-tests: Add inet_pton, stdbool, sockets.
34658         * tests/test-poll.c: Use them.  Use _pipe on Windows.
34659
34660 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
34661
34662         * modules/poll-tests: New.
34663         * tests/test-poll.c: New.
34664
34665 2008-09-12  Eric Blake  <ebb9@byu.net>
34666
34667         frexp: test for NetBSD failure on -0.0
34668         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
34669         not all, bugs from NetBSD 3.0 have been fixed.
34670         * doc/posix-functions/frexp.texi (frexp): Document bug.
34671         Reported by Thomas Klausner.
34672
34673         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
34674         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
34675         literal -0.0.
34676         Reported by Jonathan C. Patschke <jp@centtech.com>.
34677
34678 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
34679
34680         * lib/glthread/cond.h: Use dummy implementation also if
34681         USE_WIN32_THREADS.
34682
34683 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
34684
34685         * modules/fnmatch-posix (License): Change to LGPLv2+.
34686         * modules/fnmatch-gnu (License): Likewise.
34687
34688 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
34689
34690         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
34691
34692 2008-09-11  Jim Meyering  <meyering@redhat.com>
34693
34694         * users.txt: Add gtk-vnc.
34695
34696 2008-09-08  Simon Josefsson  <simon@josefsson.org>
34697
34698         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
34699         rotate amounts.
34700
34701         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
34702         required for 16-bit and 8-bit rotates.
34703         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
34704         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
34705         UINT8_MAX instead of hard-coded constants.
34706         Suggested by Paul Eggert.
34707
34708 2008-09-07  Bruno Haible  <bruno@clisp.org>
34709
34710         * tests/test-striconveh.c (main): Check behaviour when converting from
34711         UTF-7.
34712
34713         Make striconveh work better with stateful encodings.
34714         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
34715         that iconv does not increment the inptr when returning -1/EINVAL.
34716
34717 2008-09-07  Bruno Haible  <bruno@clisp.org>
34718
34719         * build-aux/config.rpath: Update according to libtool-2.2.6.
34720         * build-aux/config.libpath: Likewise.
34721
34722 2008-09-06  Bruno Haible  <bruno@clisp.org>
34723
34724         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
34725         * lib/freadptr.c (freadptr): Likewise.
34726         * lib/freadseek.c (freadptrinc): Likewise.
34727         Reported by Simon Josefsson.
34728
34729 2008-09-06  Bruno Haible  <bruno@clisp.org>
34730
34731         * modules/freadptr (License): Change to LGPLv2+.
34732         * modules/freadseek (License): Likewise.
34733         Suggested by Eric Blake.
34734
34735         * modules/memchr2 (License): Change to LGPLv2+.
34736         Approved by Eric Blake.
34737
34738 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34739             Bruno Haible  <bruno@clisp.org>
34740
34741         Make gnulib-tool work with native 'sed' on AIX.
34742         * gnulib-tool (sed_noop): New variable.
34743         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
34744         func_add_or_update, func_create_testdir): Use it to initialize sed
34745         script variables.
34746         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
34747
34748 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
34749             Bruno Haible  <bruno@clisp.org>
34750
34751         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
34752         also works after #include directives.
34753
34754 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
34755
34756         getdate.y: reject an out-of-range timezone value
34757         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
34758         the range [-24...+24].  When specified with only one or two digits,
34759         * tests/test-getdate.c: Tests for the fix.
34760         * doc/getdate.texi: Document this change.
34761
34762 2008-09-03  Bruno Haible  <bruno@clisp.org>
34763
34764         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
34765
34766 2008-09-02  Simon Josefsson  <simon@josefsson.org>
34767
34768         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
34769         <bruce.korb@gmail.com> with ideas from Ben Pfaff
34770         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
34771         Blake <ebb9@byu.net>.
34772
34773         * tests/test-bitrotate.c: Add more test vectors.
34774
34775 2008-09-02  Eric Blake  <ebb9@byu.net>
34776
34777         vasnprintf-posix: handle large precision via %.*d
34778         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
34779         when handling it ourselves.
34780         * tests/test-vasnprintf-posix.c (test_function): Add test.
34781         * tests/test-snprintf-posix.h (test_function): Likewise.
34782         * tests/test-sprintf-posix.h (test_function): Likewise.
34783         * tests/test-vasprintf-posix.c (test_function): Likewise.
34784         Reported by Alain Guibert.
34785
34786 2008-09-01  Eric Blake  <ebb9@byu.net>
34787
34788         c-stack: make configure-time check more robust
34789         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
34790         successful sigaction call.
34791         Reported by Tom G. Christensen.
34792
34793 2008-09-01  Bruno Haible  <bruno@clisp.org>
34794
34795         New module 'findprog-lgpl'.
34796         * modules/findprog-lgpl: New file.
34797         * lib/findprog-lgpl.c: New file.
34798         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
34799         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
34800         to decide whether to use strdup or xstrdup, concatenated_filename or
34801         xconcatenated_filename.
34802
34803 2008-09-01  Bruno Haible  <bruno@clisp.org>
34804
34805         Split module 'concat-filename' into 'concat-filename' (LGPL) and
34806         'xconcat-filename' (GPL).
34807         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
34808         (License): Change to LGPLv2+.
34809         * modules/xconcat-filename: New file.
34810         * lib/concat-filename.h (concatenated_filename): Change specification.
34811         (xconcatenated_filename): New declaration.
34812         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
34813         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
34814         memory situations.
34815         * lib/xconcat-filename.c: New file.
34816         * NEWS: Mention the change.
34817         * lib/findprog.c: Include concat-filename.h, not filename.h.
34818         (find_in_path): Use xconcatenated_filename instead of
34819         concatenated_filename.
34820         * lib/javacomp.c: Include concat-filename.h, not filename.h.
34821         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
34822         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
34823         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
34824         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
34825         instead of concatenated_filename.
34826         * lib/javaexec.c: Include concat-filename.h, not filename.h.
34827         (execute_java_class): Use xconcatenated_filename instead of
34828         concatenated_filename.
34829         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
34830         * modules/javacomp (Depends-on): Likewise.
34831         * modules/javaexec (Depends-on): Likewise.
34832
34833 2008-09-01  Bruno Haible  <bruno@clisp.org>
34834
34835         Split module 'filename' into 'filename' and 'concat-filename'.
34836         * modules/filename: Keep only lib/filename.h.
34837         (License): Change to LGPLv2+.
34838         * modules/concat-filename: New file, extracted from modules/filename.
34839         * lib/filename.h (concatenated_filename): Remove declaration.
34840         * lib/concat-filename.h: New file, extracted from lib/filename.h.
34841         * lib/concat-filename.c: Include concat-filename.h.
34842         * NEWS: Mention the change.
34843
34844 2008-09-01  Simon Josefsson  <simon@josefsson.org>
34845
34846         * lib/bitrotate.h (rotl8, rotr8): Add.
34847
34848         * modules/bitrotate (configure.ac): Need
34849         AC_REQUIRE([AC_C_INLINE]).
34850         (Description): Mention stdint.h.  Reported by Bruno Haible
34851         <bruno@clisp.org>.
34852
34853         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
34854         Paolo Bonzini <bonzini@gnu.org>.
34855
34856 2008-08-31  Bruno Haible  <bruno@clisp.org>
34857
34858         Assume Solaris specific bi-arch conventions on Solaris systems.
34859         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
34860         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
34861         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
34862         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
34863         like acl_libdirstem.
34864         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
34865         acl_libdirstem.
34866         * NEWS: Mention the change.
34867         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
34868
34869 2008-08-31  Jim Meyering  <meyering@redhat.com>
34870
34871         * lib/strftime.h: Add comments describing the two added arguments.
34872
34873         remove duplicate #include directives
34874         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
34875         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
34876
34877 2008-08-31  Bruno Haible  <bruno@clisp.org>
34878
34879         New module 'sigpipe-die'.
34880         * modules/sigpipe-die: New file.
34881         * lib/sigpipe-die.h: New file.
34882         * lib/sigpipe-die.c: New file.
34883         * MODULES.html.sh (Signal handling): Add sigpipe-die.
34884
34885 2008-08-31  Bruno Haible  <bruno@clisp.org>
34886
34887         Don't override previously installed signal handlers.
34888         * lib/fatal-signal.c (saved_sigactions): New variable.
34889         (uninstall_handlers): Reset the signal to the saved handler, not
34890         to SIG_DFL (except when ignored).
34891         (install_handlers): Save the previous handlers.
34892
34893 2008-08-30  Bruno Haible  <bruno@clisp.org>
34894
34895         * gnulib-tool (func_reset_sigpipe): New function.
34896         (func_get_automake_snippet, func_modules_transitive_closure,
34897         func_import): Invoke it before a join command that reads from stdin,
34898         to avoid "echo: write error: Broken pipe" error messages on stderr.
34899         Reported by Sam Steingold <sds@gnu.org>.
34900
34901 2008-08-30  Bruno Haible  <bruno@clisp.org>
34902
34903         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
34904         Code copied from m4/open.m4.
34905         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
34906         access and the filename ends in a slash. Code copied from lib/open.c.
34907         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
34908         * tests/test-fopen.c (main): Check against bug with trailing slash.
34909
34910 2008-08-29  Bruno Haible  <bruno@clisp.org>
34911
34912         Avoid some "gcc -pedantic" warnings.
34913         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
34914         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
34915         * lib/dirent.in.h: Likewise.
34916         * lib/fcntl.in.h: Likewise.
34917         * lib/float.in.h: Likewise.
34918         * lib/iconv.in.h: Likewise.
34919         * lib/inttypes.in.h: Likewise.
34920         * lib/locale.in.h: Likewise.
34921         * lib/math.in.h: Likewise.
34922         * lib/netinet_in.in.h: Likewise.
34923         * lib/search.in.h: Likewise.
34924         * lib/signal.in.h: Likewise.
34925         * lib/stdarg.in.h: Likewise.
34926         * lib/stdint.in.h: Likewise.
34927         * lib/stdio.in.h: Likewise.
34928         * lib/stdlib.in.h: Likewise.
34929         * lib/string.in.h: Likewise.
34930         * lib/strings.in.h: Likewise.
34931         * lib/sys_select.in.h: Likewise.
34932         * lib/sys_socket.in.h: Likewise.
34933         * lib/sys_stat.in.h: Likewise.
34934         * lib/sys_time.in.h: Likewise.
34935         * lib/sysexits.in.h: Likewise.
34936         * lib/time.in.h: Likewise.
34937         * lib/unistd.in.h: Likewise.
34938         * lib/wchar.in.h: Likewise.
34939         * lib/wctype.in.h: Likewise.
34940         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
34941         * modules/fchdir (Makefile.am): Likewise.
34942         * modules/fcntl (Makefile.am): Likewise.
34943         * modules/float (Makefile.am): Likewise.
34944         * modules/iconv_open (Makefile.am): Likewise.
34945         * modules/inttypes (Makefile.am): Likewise.
34946         * modules/locale (Makefile.am): Likewise.
34947         * modules/math (Makefile.am): Likewise.
34948         * modules/netinet_in (Makefile.am): Likewise.
34949         * modules/search (Makefile.am): Likewise.
34950         * modules/signal (Makefile.am): Likewise.
34951         * modules/stdarg (Makefile.am): Likewise.
34952         * modules/stdint (Makefile.am): Likewise.
34953         * modules/stdio (Makefile.am): Likewise.
34954         * modules/stdlib (Makefile.am): Likewise.
34955         * modules/string (Makefile.am): Likewise.
34956         * modules/strings (Makefile.am): Likewise.
34957         * modules/sys_select (Makefile.am): Likewise.
34958         * modules/sys_socket (Makefile.am): Likewise.
34959         * modules/sys_stat (Makefile.am): Likewise.
34960         * modules/sys_time (Makefile.am): Likewise.
34961         * modules/sysexits (Makefile.am): Likewise.
34962         * modules/time (Makefile.am): Likewise.
34963         * modules/unistd (Makefile.am): Likewise.
34964         * modules/wchar (Makefile.am): Likewise.
34965         * modules/wctype (Makefile.am): Likewise.
34966         Reported by Reuben Thomas <rrt@sc3d.org>.
34967
34968 2008-08-29  Bruno Haible  <bruno@clisp.org>
34969
34970         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
34971         any more.
34972
34973 2008-08-29  Simon Josefsson  <simon@josefsson.org>
34974
34975         * MODULES.html.sh (Misc): Add bitrotate.
34976
34977         * modules/bitrotate: New file.
34978
34979         * lib/bitrotate.h: New file.
34980
34981         * modules/bitrotate-tests: New file.
34982
34983         * tests/test-bitrotate.c: New file.
34984
34985         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
34986         on the bitrotate module.
34987
34988         * lib/arctwo.c: Use new bitrotate module.
34989
34990 2008-08-29  Jim Meyering  <meyering@redhat.com>
34991
34992         bootstrap: merge changes from coreutils
34993         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
34994         of copied files.  Remove a kludge, now that this is fixed.
34995         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
34996         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
34997         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
34998
34999 2008-08-29  Bruno Haible  <bruno@clisp.org>
35000
35001         * MODULES.html.sh: Remove --cvs-urls option.
35002
35003 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
35004
35005         maint.mk: adjust to file name change
35006         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
35007
35008 2008-08-28  Jim Meyering  <meyering@redhat.com>
35009
35010         * modules/getndelim2 (License): Relicense to LGPLv2+.
35011         Approved by Richard Stallman for the version of 1995, and by
35012         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
35013
35014 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
35015
35016         * lib/getdelim.c (flockfile, funlockfile): Make all of them
35017         dummy if one is not available.  Do not touch them if
35018         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
35019         (getc_maybe_unlocked): New.
35020         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
35021
35022 2008-08-26  Eric Blake  <ebb9@byu.net>
35023
35024         doc/INSTALL: resync from autoconf
35025         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
35026         (INSTALL_PRELUDE): Delete; this is done more efficiently by
35027         moving...
35028         * install.texi [!autoconf]: ...here.  Resync from autoconf.
35029         * INSTALL: Regenerate.
35030         * INSTALL.ISO: New file.
35031         * INSTALL.UTF-8: Likewise.
35032
35033 2008-08-26  Jim Meyering  <meyering@redhat.com>
35034
35035         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
35036         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
35037         these definitions conditional, so that they may be overridden, too.
35038
35039 2008-08-26  Bruno Haible  <bruno@clisp.org>
35040
35041         Generate INSTALL file variants with prettier quotes.
35042         * doc/Makefile (INSTALL_PRELUDE): New macro.
35043         (INSTALL): Use it.
35044         (INSTALL.ISO, INSTALL.UTF-8): New rules.
35045
35046 2008-08-26  Bruno Haible  <bruno@clisp.org>
35047
35048         Run makeinfo in an English locale.
35049         * doc/Makefile (MAKEINFO): New variable.
35050
35051 2008-08-26  Bruno Haible  <bruno@clisp.org>
35052
35053         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
35054         Suggested by Eric Blake.
35055
35056 2008-08-25  Bruno Haible  <bruno@clisp.org>
35057
35058         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
35059
35060 2008-08-25  Eric Blake  <ebb9@byu.net>
35061
35062         c-stack: test that stack overflow can be caught
35063         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
35064         that platform allows handling stack overflow; at least OS/2 EMX
35065         has sigaltstack, but crashes before transferring control to
35066         handler on stack overflow.
35067         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
35068         check for HAVE_STACK_OVERFLOW_HANDLING.
35069         Reported by Elbert Pol.
35070
35071 2008-08-25  Bruno Haible  <bruno@clisp.org>
35072
35073         * doc/posix-functions/strftime.texi: Fix description of strftime
35074         module.
35075
35076 2008-08-24  Bruno Haible  <bruno@clisp.org>
35077
35078         * tests/uniwidth/test-uc_width2.c: New file.
35079         * tests/uniwidth/test-uc_width2.sh: New file.
35080         * modules/uniwidth/width-tests (Files): Add the new files.
35081         (TESTS): Add uniwidth/test-uc_width2.sh.
35082         (TESTS_ENVIRONMENT): New variable.
35083         (check_PROGRAMS): Add test-uc_width2.
35084         (test_uc_width2_SOURCES): New variable.
35085
35086         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
35087         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
35088         not 0x00AB.
35089         Reported by Alexander V. Lukyanov <lav@netis.ru>.
35090
35091 2008-08-22  Eric Blake  <ebb9@byu.net>
35092
35093         test-lock, test-tls: mention why a test is skipped
35094         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
35095         skipped.
35096         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
35097
35098         count-one-bits: relax license
35099         * modules/count-one-bits (License): Relicense to LGPLv2+.
35100         Suggested by Ludovic Courtès, approved by Ben Pfaff.
35101
35102 2008-08-22  Andreas Schwab  <schwab@suse.de>
35103
35104         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
35105         Remove spurious space in assignment.
35106
35107 2008-08-21  Simon Josefsson  <simon@josefsson.org>
35108
35109         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
35110         Paul Eggert <eggert@CS.UCLA.EDU>.
35111
35112 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
35113
35114         * modules/gettext: Add m4/threadlib.m4.
35115
35116 2008-08-19  Eric Blake  <ebb9@byu.net>
35117
35118         test-c-stack: fix compilation failure on FreeBSD 5.0
35119         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
35120         headers before <sys/resource.h>.
35121         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
35122         the bug.
35123         Reported by Nelson H. F. Beebe.
35124
35125         strverscmp: migrate from "strverscmp.h" to <string.h>
35126         * modules/string (Makefile.am): Add new hooks.
35127         * modules/strverscmp (Files): Remove strverscmp.h.
35128         (Depends-on): Add string.
35129         (configure.ac): Add indicator.
35130         (Include): Mention new header.
35131         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
35132         defaults.
35133         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
35134         results.
35135         * lib/strverscmp.h: Delete.
35136         * lib/string.in.h (strverscmp): Provide declaration, when needed.
35137         * tests/test-strverscmp.c (includes): Adjust client.
35138         * lib/check-version.c (includes): Likewise.
35139         * NEWS: Document the change.
35140
35141         strverscmp: add unit test
35142         * modules/strverscmp-tests: New file.
35143         * tests/test-strverscmp.c: Likewise.
35144
35145 2008-08-19  Simon Josefsson  <simon@josefsson.org>
35146
35147         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
35148         regarding Windows crypto stuff, from Mono.
35149
35150 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
35151
35152         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
35153         if present, for intel RND.  Return error on failures.
35154
35155 2008-08-18  Ben Pfaff  <blp@gnu.org>
35156
35157         gitlog-to-changelog: give better diagnostic for failed pipe-open
35158         * build-aux/gitlog-to-changelog: Improve error message: suggest
35159         that the version of Git may be too old.
35160
35161 2008-08-18  Simon Josefsson  <simon@josefsson.org>
35162
35163         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
35164         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
35165
35166 2008-08-18  Bruno Haible  <bruno@clisp.org>
35167
35168         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
35169         pthread_in_use().
35170
35171 2008-08-18  Bruno Haible  <bruno@clisp.org>
35172
35173         * lib/glthread/threadlib.c: Include <pthread.h>.
35174
35175 2008-08-18  Bruno Haible  <bruno@clisp.org>
35176
35177         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
35178         glthread_recursive_lock_* macros.
35179         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
35180         Fix syntax error.
35181
35182 2008-08-18  Bruno Haible  <bruno@clisp.org>
35183
35184         * lib/glthread/thread.c: Avoid forcing a context switch right after
35185         thread creation.
35186
35187 2008-08-17  Bruno Haible  <bruno@clisp.org>
35188
35189         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
35190         * lib/glthread/thread.h: Provide Win32 specific implementation.
35191         * modules/thread (Files): Add lib/glthread/thread.c.
35192         (Depends-on): Add lock.
35193         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
35194
35195 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35196
35197         New module 'yield'.
35198         * modules/yield: New file.
35199         * lib/glthread/yield.h: New file.
35200         * m4/yield.m4: New file.
35201         * MODULES.html.sh (Multithreading): Add yield.
35202
35203 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35204
35205         New module 'thread'.
35206         * modules/thread: New file.
35207         * lib/glthread/thread.h: New file.
35208         * m4/thread.m4: New file.
35209         * MODULES.html.sh (Multithreading): Add thread.
35210
35211 2008-08-17  Bruno Haible  <bruno@clisp.org>
35212
35213         * lib/glthread/lock.h: Include <stdlib.h> always.
35214         * lib/glthread/tls.h: Likewise.
35215         * lib/glthread/cond.h: Likewise.
35216
35217 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35218
35219         New module 'cond'.
35220         * modules/cond: New file.
35221         * lib/glthread/cond.h: New file.
35222         * lib/glthread/cond.c: New file.
35223         * m4/cond.m4: New file.
35224         * MODULES.html.sh (Multithreading): Add cond.
35225
35226 2008-08-16  Eric Blake  <ebb9@byu.net>
35227
35228         c-stack: fix regression on Irix 5.3 from 2008-06-21
35229         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
35230         sa_sigaction...
35231         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
35232         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
35233         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
35234         * modules/signal (Makefile.am): Use the value.
35235         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
35236         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
35237         * doc/posix-headers/signal.texi (signal.h): Document this
35238         portability issue.
35239         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
35240         Reported by Tom G. Christensen.
35241
35242 2008-08-17  Bruno Haible  <bruno@clisp.org>
35243
35244         New module 'threadlib'.
35245         * modules/threadlib: New file.
35246         * lib/glthread/threadlib.c: New file, extracted from
35247         lib/glthread/lock.c.
35248         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
35249         functions.
35250         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
35251         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
35252         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
35253         macros.
35254         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
35255         (gl_DISABLE_THREADS): Remove macro.
35256         * modules/lock (Files): Remove build-aux/config.rpath.
35257         (Depends-on): Remove havelib. Add threadlib.
35258         (configure.ac-early): Remove section.
35259         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
35260         * modules/tls (Depends-on): Remove lock. Add threadlib.
35261         (Link): New section, copied from threadlib.
35262         * MODULES.html.sh (Multithreading): Add threadlib.
35263
35264 2008-08-14  Bruno Haible  <bruno@clisp.org>
35265
35266         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
35267         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
35268         glthread_rwlock_unlock, glthread_rwlock_destroy,
35269         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
35270         glthread_recursive_lock_destroy): Define as macros always.
35271         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
35272         glthread_lock_lock.
35273         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
35274         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
35275         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
35276         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
35277         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
35278         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
35279         (glthread_recursive_lock_lock_func): Renamed from
35280         glthread_recursive_lock_lock.
35281         (glthread_recursive_lock_unlock_func): Renamed from
35282         glthread_recursive_lock_unlock.
35283         (glthread_recursive_lock_destroy_func): Renamed from
35284         glthread_recursive_lock_destroy.
35285
35286 2008-08-14  Bruno Haible  <bruno@clisp.org>
35287
35288         * lib/glthread/lock.h: Renamed from lib/lock.h.
35289         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
35290         * lib/glthread/tls.h: Renamed from lib/tls.h.
35291         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
35292         * lib/fstrcmp.c: Update includes.
35293         * lib/strsignal.c: Update includes.
35294         * modules/lock (Files, Makefile.am): Update.
35295         (Include): Change to "glthread/lock.h".
35296         * modules/tls (Files, Makefile.am): Update.
35297         (Include): Change to "glthread/tls.h".
35298         * tests/test-lock.c: Update includes.
35299         * tests/test-tls.c: Update includes.
35300         * NEWS: Mention the renamed header files.
35301
35302 2008-08-11  Jim Meyering  <meyering@redhat.com>
35303
35304         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
35305
35306 2008-08-11  Eric Blake  <ebb9@byu.net>
35307
35308         test-c-stack: avoid C99-ism
35309         * tests/test-c-stack.c (main): Fix whitespace, move declaration
35310         before statement.
35311         Reported by Alain Guibert.
35312
35313 2008-08-10  Jim Meyering  <meyering@redhat.com>
35314
35315         ensure that return value of uinttostr et al are not ignored
35316         * lib/inttostr.h (__GNUC_PREREQ): Define.
35317         (__attribute_warn_unused_result__): Define.
35318         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
35319
35320 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
35321
35322         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
35323         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
35324
35325 2008-08-07  Jim Meyering  <meyering@redhat.com>
35326
35327         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
35328
35329         * modules/mkstemp (License): Relicense under LGPLv2+.
35330         * modules/tempname (License): Likewise.
35331
35332 2008-08-06  Bruno Haible  <bruno@clisp.org>
35333
35334         * lib/poll.c (poll): Further micro-optimization.
35335
35336 2008-08-06  Jim Meyering  <meyering@redhat.com>
35337
35338         inet_pton.c: use locale-independent tolower
35339         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
35340         (inet_pton6): Use c_tolower rather than tolower.
35341         * modules/inet_pton (Depends-on): Add c-ctype.
35342
35343 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
35344
35345         * lib/poll.c (poll): Avoid division when timeout is 0, cache
35346         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
35347
35348 2008-08-06  Jim Meyering  <meyering@redhat.com>
35349
35350         * modules/inet_pton (License): Relicense under LGPLv2+.
35351
35352 2008-08-03  Bruno Haible  <bruno@clisp.org>
35353
35354         Additional non-aborting API for lock and tls.
35355         * lib/lock.h: Include <errno.h>.
35356         (glthread_lock_init): New macro/function.
35357         (gl_lock_init): Define as wrapper around glthread_lock_init.
35358         (glthread_lock_lock): New macro/function.
35359         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
35360         (glthread_lock_unlock): New macro/function.
35361         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
35362         (glthread_lock_destroy): New macro/function.
35363         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
35364         (glthread_rwlock_init): New macro/function.
35365         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
35366         (glthread_rwlock_rdlock): New macro/function.
35367         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
35368         (glthread_rwlock_wrlock): New macro/function.
35369         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
35370         (glthread_rwlock_unlock): New macro/function.
35371         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
35372         (glthread_rwlock_destroy): New macro/function.
35373         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
35374         (glthread_recursive_lock_init): New macro/function.
35375         (gl_recursive_lock_init): Define as wrapper around
35376         glthread_recursive_lock_init.
35377         (glthread_recursive_lock_lock): New macro/function.
35378         (gl_recursive_lock_lock): Define as wrapper around
35379         glthread_recursive_lock_lock.
35380         (glthread_recursive_lock_unlock): New macro/function.
35381         (gl_recursive_lock_unlock): Define as wrapper around
35382         glthread_recursive_lock_unlock.
35383         (glthread_recursive_lock_destroy): New macro/function.
35384         (gl_recursive_lock_destroy): Define as wrapper around
35385         glthread_recursive_lock_destroy.
35386         (glthread_once): New macro/function.
35387         (gl_once): Define as wrapper around glthread_once.
35388         Update function declarations.
35389         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
35390         glthread_rwlock_init. Return error code.
35391         (glthread_rwlock_rdlock_multithreaded): Renamed from
35392         glthread_rwlock_rdlock. Return error code.
35393         (glthread_rwlock_wrlock_multithreaded): Renamed from
35394         glthread_rwlock_wrlock. Return error code.
35395         (glthread_rwlock_unlock_multithreaded): Renamed from
35396         glthread_rwlock_unlock. Return error code.
35397         (glthread_rwlock_destroy_multithreaded): Renamed from
35398         glthread_rwlock_destroy. Return error code.
35399         (glthread_recursive_lock_init_multithreaded): Renamed from
35400         glthread_recursive_lock_init. Return error code.
35401         (glthread_recursive_lock_lock_multithreaded): Renamed from
35402         glthread_recursive_lock_lock. Return error code.
35403         (glthread_recursive_lock_unlock_multithreaded): Renamed from
35404         glthread_recursive_lock_unlock. Return error code.
35405         (glthread_recursive_lock_destroy_multithreaded): Renamed from
35406         glthread_recursive_lock_destroy. Return error code.
35407         (glthread_once_call): Make static.
35408         (glthread_once_multithreaded): Renamed from glthread_once.
35409         * lib/tls.h: Include <errno.h>.
35410         (glthread_tls_key_init): New macro/function.
35411         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
35412         (glthread_tls_set): New macro/function.
35413         (gl_tls_set): Define as wrapper around glthread_tls_set.
35414         (glthread_tls_key_destroy): New macro/function.
35415         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
35416         Update function declarations.
35417         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
35418         glthread_tls_get.
35419         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
35420
35421 2008-08-04  Eric Blake  <ebb9@byu.net>
35422
35423         gnumakefile: use space, not TAB, outside of targets
35424         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
35425
35426 2008-08-02  Jim Meyering  <meyering@redhat.com>
35427
35428         getdate.y: avoid locale-dependent date parsing failure
35429         In Turkish locales, getdate would fail to recognize keywords
35430         containing a lowercase "i".  The solution is not to rely on
35431         locale-sensitive case-conversion.
35432         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
35433         (lookup_word): Use c_toupper in place of toupper.
35434         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
35435         Reported by Vefa Bicakci <bicave@superonline.com> in
35436         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
35437         * modules/getdate (Depends-on): Add c-ctype.
35438
35439 2008-08-02  Bruno Haible  <bruno@clisp.org>
35440
35441         * gnulib-tool (func_import): When updating or creating a .gitignore
35442         file, prepend each added line with a slash, and ignore leading slashes
35443         from the existing lines.
35444         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
35445
35446 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35447
35448         Portability fix for GNU make 3.79.1.
35449         * top/GNUmakefile: Avoid 'else COND', which older GNU make
35450         versions do not understand.
35451
35452 2008-08-01  Bruno Haible  <bruno@clisp.org>
35453
35454         Work around bug of HP-UX 10.20 cc with -0.0 literal.
35455         * tests/test-isnanf.h (zero): New variable.
35456         (main): Avoid literal -0.0f.
35457         * tests/test-isnand.h (zero): New variable.
35458         (main): Avoid literal -0.0.
35459         * tests/test-isnanl.h (zero): New variable.
35460         (main): Avoid literal -0.0L.
35461         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
35462         (test_float, test_double, test_long_double): Avoid literals -0.0f,
35463         -0.0, -0.0L.
35464         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
35465         (test_signbitd): Avoid literal -0.0.
35466         (test_signbitl): Avoid literal -0.0L.
35467         * tests/test-ceilf1.c (zero): New variable.
35468         (main): Avoid literal -0.0f.
35469         * tests/test-ceill.c (zero): New variable.
35470         (main): Avoid literal -0.0L.
35471         * tests/test-floorf1.c (zero): New variable.
35472         (main): Avoid literal -0.0f.
35473         * tests/test-floorl.c (zero): New variable.
35474         (main): Avoid literal -0.0L.
35475         * tests/test-roundf1.c (zero): New variable.
35476         (main): Avoid literal -0.0f.
35477         * tests/test-round1.c (zero): New variable.
35478         (main): Avoid literal -0.0.
35479         * tests/test-roundl.c (zero): New variable.
35480         (main): Avoid literal -0.0L.
35481         * tests/test-truncf1.c (zero): New variable.
35482         (main): Avoid literal -0.0f.
35483         * tests/test-trunc1.c (zero): New variable.
35484         (main): Avoid literal -0.0.
35485         * tests/test-truncl.c (zero): New variable.
35486         (main): Avoid literal -0.0L.
35487         * tests/test-frexp.c (zero): New variable.
35488         (main): Avoid literal -0.0.
35489         * tests/test-frexpl.c (zero): New variable.
35490         (main): Avoid literal -0.0L.
35491         * tests/test-ldexpl.c (zero): New variable.
35492         (main): Avoid literal -0.0L.
35493         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
35494         (zerod, zerol): New variables.
35495         (test_function): Avoid literals -0.0, -0.0L.
35496         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
35497         (zerod, zerol): New variables.
35498         (test_function): Avoid literals -0.0, -0.0L.
35499         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
35500         (zerod, zerol): New variables.
35501         (test_function): Avoid literals -0.0, -0.0L.
35502         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
35503         (zerod, zerol): New variables.
35504         (test_function): Avoid literals -0.0, -0.0L.
35505         * tests/test-strtod.c (zero): New variable.
35506         (main): Avoid literal -0.0.
35507         Reported by Jonathan C. Patschke <jp@centtech.com>.
35508
35509 2008-07-31  Jim Meyering  <meyering@redhat.com>
35510
35511         sha256.h: correct definition of SHA224_DIGEST_SIZE
35512         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
35513         Reported by Paulie Pena IV <paulie4@gmail.com>.
35514         Define as 224 / 8, rather than as a literal.
35515         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
35516         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
35517         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
35518
35519 2008-07-31  Bruno Haible  <bruno@clisp.org>
35520
35521         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
35522         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
35523         Reported by Jonathan Patschke <jp@centtech.com>.
35524
35525 2008-07-31  Bruno Haible  <bruno@clisp.org>
35526
35527         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
35528         Reported by Paolo Bonzini <bonzini@gnu.org>.
35529
35530 2008-07-30  Eric Blake  <ebb9@byu.net>
35531
35532         test-strtod: allow compilation without -lm
35533         * tests/test-strtod.c (main): Avoid link dependence on fabs.
35534         Reported by Dennis Clarke <blastwave@gmail.com>.
35535
35536 2008-07-28  Jim Meyering  <meyering@redhat.com>
35537
35538         bootstrap: work also when there are no .po files in po/
35539         * build-aux/bootstrap (update_po_files): Complete the change
35540         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
35541
35542 2008-07-27  Jim Meyering  <meyering@redhat.com>
35543
35544         * users.txt: Add zile.
35545
35546 2008-07-26  Ben Pfaff  <blp@gnu.org>
35547
35548         Add missing dependencies on new m4/exponent[fdl].m4 files.
35549         * modules/isnanf-nolibm: Add m4/exponentf.m4.
35550         * modules/isnand-nolibm: Add m4/exponentd.m4.
35551         * modules/isnanl-nolibm: Add m4/exponentl.m4.
35552         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
35553         m4/isnan[fdl].m4, because the macros actually used moved.
35554         Reported by Jim Meyering.
35555
35556 2008-07-14  Ben Pfaff  <blp@gnu.org>
35557
35558         Add isinf module.
35559         * lib/isinf.c: New file.
35560         * lib/math.in.h: Define isinf macro if we have decided to replace
35561         it.
35562         * m4/isinf.m4: New file.
35563         * m4/math_h.m4: Initialize and substitute variables for isinf
35564         module.
35565         * modules/isinf: New file.
35566         * modules/isinf-tests: New file.
35567         * modules/math: Add substitutions for new module.
35568         * tests/test-isinf.c: New file.
35569         * doc/posix-functions/isinf.texi: Mention new module.
35570         * MODULES.html.sh: Mention new module.
35571
35572 2008-07-14  Ben Pfaff  <blp@gnu.org>
35573
35574         Factor out some macros for use by additional modules.
35575         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
35576         exponentf.m4.
35577         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
35578         exponentd.m4.
35579         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
35580         file exponentl.m4.
35581         * m4/exponentf.m4: New file.
35582         * m4/exponentd.m4: New file.
35583         * m4/exponentl.m4: New file.
35584         * modules/isnanf: Use new file m4/exponentf.m4.
35585         * modules/isnand: Use new file m4/exponentd.m4.
35586         * modules/isnanl: Use new file m4/exponentl.m4.
35587
35588 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
35589
35590         mktime.c: normalize tp->tm_isdst value to -1/0/1.
35591         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
35592         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
35593         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
35594
35595         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
35596         readlink on platforms without PATH_MAX.
35597
35598 2008-07-21  Eric Blake  <ebb9@byu.net>
35599
35600         Warn, not fail, on stale version.
35601         * top/GNUmakefile (_curr-ver): Tone down previous patch.
35602
35603         Don't allow installation with stale devel version number.
35604         * top/GNUmakefile (_is-install-target): New macro.
35605         (_curr-ver): Forbid installation with stale version number.
35606
35607 2008-07-20  Bruno Haible  <bruno@clisp.org>
35608
35609         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
35610         TESTS_ENVIRONMENT.
35611         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
35612
35613 2008-07-20  Bruno Haible  <bruno@clisp.org>
35614
35615         * lib/c-stack.h (c_stack_action): Add documentation.
35616         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
35617
35618 2008-07-20  Bruno Haible  <bruno@clisp.org>
35619
35620         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
35621         * modules/readlink (License): Likewise.
35622
35623 2008-07-17  Eric Blake  <ebb9@byu.net>
35624
35625         * modules/c-stack (Link): Fix typo.
35626
35627         Make c-stack use libsigsegv, when available.
35628         * modules/c-stack (Depends-on): Add libsigsegv.
35629         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
35630         needed.
35631         * lib/c-stack.c (SIGSTKSZ): Define fallback.
35632         (segv_handler, overflow_handler, c_stack_action)
35633         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
35634         implementation when libsigsegv is available, but only when using
35635         the library is necessary.
35636         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
35637         comment, explaining why XSI check fails on Linux.
35638         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
35639         * tests/test-c-stack2.sh: Tweak skip message.
35640         * NEWS: Document new link-time requirements.
35641
35642 2008-07-16  Eric Blake  <ebb9@byu.net>
35643
35644         c-stack: Expose false positives when not using libsigsegv.
35645         * modules/c-stack-tests (Files): Expand test.
35646         * tests/test-c-stack.c (main): Add means to conditionally trigger
35647         non-overflow SIGSEGV.
35648         * tests/test-c-stack2.sh: New file.
35649
35650 2008-07-14  Bruno Haible  <bruno@clisp.org>
35651
35652         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
35653         Reported by Eric Blake.
35654
35655 2008-07-14  Sam Steingold  <sds@gnu.org>
35656             Bruno Haible  <bruno@clisp.org>
35657
35658         New module libsigsegv.
35659         * modules/libsigsegv: New file.
35660         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
35661         modifications.
35662         * MODULES.html.sh (Signal handling): New section.
35663
35664 2008-07-14  Bruno Haible  <bruno@clisp.org>
35665
35666         * modules/unictype/ctype-* (Description): Add the word "function".
35667         Improves the resulting doc in MODULES.html.
35668
35669 2008-07-12  Ben Pfaff  <blp@gnu.org>
35670
35671         Add longlong module.
35672         * modules/longlong: New file.
35673
35674 2008-07-12  Bruno Haible  <bruno@clisp.org>
35675
35676         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
35677         to empty.
35678
35679 2008-07-10  Ben Pfaff  <blp@gnu.org>
35680
35681         Add isnan module.
35682         * doc/posix-functions/isnan.texi: Mention new module.
35683         * lib/math.in.h: Define isnan macro if we have decided to replace
35684         it.
35685         * m4/isnan.m4: New file.
35686         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
35687         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
35688         also.
35689         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
35690         redundancy.
35691         * m4/math_h.m4: Initialize and substitute variables for isnan
35692         module.
35693         * modules/isnan: New file.
35694         * modules/isnan-tests: New file.
35695         * modules/math: Add substitutions for new module.
35696         * tests/test-isnan.c: New file.
35697         * MODULES.html.sh: Mention new module.
35698
35699 2008-07-10  Ben Pfaff  <blp@gnu.org>
35700
35701         Add isnanf module.
35702         * lib/isnanf.m4: New file.
35703         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
35704         (gl_HAVE_ISNANF_IN_LIBM): New macro.
35705         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
35706         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
35707         * modules/isnanf: New file.
35708         * modules/isnanf-tests: New file.
35709         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
35710         files.
35711         * tests/test-isnanf-nolibm.c: factored most of its contents into
35712         new file tests/test-isnanf.h.
35713         * tests/test-isnanf.h: New file.
35714         * tests/test-isnanf.c: New file.
35715         * MODULES.html.sh: Mention new module.
35716         * doc/glibc-functions/isnanf.texi: Mention new module.
35717
35718 2008-07-10  Ben Pfaff  <blp@gnu.org>
35719
35720         Add isnand module.
35721         * lib/isnand.h: New file.
35722         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
35723         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
35724         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
35725         functionality also.
35726         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
35727         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
35728         (gl_HAVE_ISNAND_IN_LIBM): New macro.
35729         * modules/isnand: New file.
35730         * modules/isnand-tests: New file.
35731         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
35732         files.
35733         * tests/test-isnand-nolibm.c: factored most of its contents into
35734         new file tests/test-isnand.h.
35735         * tests/test-isnand.h: New file.
35736         * tests/test-isnand.c: New file.
35737         * MODULES.html.sh: Mention new module.
35738
35739 2008-07-10  Ben Pfaff  <blp@gnu.org>
35740
35741         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
35742         * lib/isnand.h: Rename lib/isnand-nolibm.h.
35743         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
35744         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
35745         * modules/isnanf-nolibm: Update references to renamed files.
35746         * modules/isnand-nolibm: Likewise.
35747         * modules/isnanf-nolibm-tests: Likewise.
35748         * modules/isnand-nolibm-tests: Likewise.
35749         * lib/frexp.c: Likewise.
35750         * lib/isfinite.c: Likewise.
35751         * lib/signbitd.c: Likewise.
35752         * lib/signbitf.c: Likewise.
35753         * lib/vasnprintf.c: Likewise.
35754         * tests/test-ceilf1.c: Likewise.
35755         * tests/test-ceilf2.c: Likewise.
35756         * tests/test-floorf1.c: Likewise.
35757         * tests/test-floorf2.c: Likewise.
35758         * tests/test-frexp.c: Likewise.
35759         * tests/test-round1.c: Likewise.
35760         * tests/test-round2.c: Likewise.
35761         * tests/test-roundf1.c: Likewise.
35762         * tests/test-strtod.c: Likewise.
35763         * tests/test-trunc1.c: Likewise.
35764         * tests/test-trunc2.c: Likewise.
35765         * tests/test-truncf1.c: Likewise.
35766         * tests/test-truncf2.c: Likewise.
35767         * NEWS: Mention the renamed header files.
35768
35769 2008-07-11  Jim Meyering  <meyering@redhat.com>
35770
35771         vc-list-files: make the last-resort awk code more portable
35772         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
35773         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
35774         does not support it.
35775
35776 2008-07-10  Eric Blake  <ebb9@byu.net>
35777
35778         Work with tar's bootstrap.
35779         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
35780         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
35781         an m4 comment.
35782
35783 2008-07-09  Jim Meyering  <meyering@redhat.com>
35784
35785         posix-shell.m4: fix typo that made this test malfunction
35786         * m4/posix-shell.m4: Remove capitalization in variable name.
35787
35788 2008-07-08  Bruno Haible  <bruno@clisp.org>
35789
35790         * m4/onceonly.m4: Update comments.
35791         Reported by Ben Pfaff <blp@cs.stanford.edu>.
35792
35793 2008-07-04  Jim Meyering  <meyering@redhat.com>
35794
35795         * users.txt: Add vc-dwim.
35796         (bison, coreutils): Use the gitweb URL.
35797
35798 2008-07-03  Jim Meyering  <meyering@redhat.com>
35799
35800         * users.txt: Add libffcall.  From Sam Steingold.
35801
35802 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
35803
35804         getdate.y: do not ignore TZ with relative day, month or year offset
35805         * lib/getdate.y (get_date): Move the tz-handling block to follow the
35806         relative-date-handling, since otherwise, the latter would clobber the
35807         sole output (an updated Start value) of the tz-handling block.
35808         * tests/test-getdate.c: Tests for the fix
35809
35810 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35811
35812         Recognize 'foo_LIBRARIES += libgnu.a'.
35813         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
35814         makefile snippet has already specified an installation location,
35815         also using '+='.
35816
35817 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
35818
35819         getdate.y: factor out common actions
35820         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
35821         Use them in place of open-coded actions.
35822
35823 2008-07-01  Simon Josefsson  <simon@josefsson.org>
35824
35825         Add self-test for getdate module.
35826         * modules/getdate-tests: New file.
35827         * tests/test-getdate.c: New file.
35828
35829 2008-06-29  Bruno Haible  <bruno@clisp.org>
35830
35831         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
35832         .gitignore.
35833         Reported by Sylvain Beucler <beuc@beuc.net>.
35834
35835 2008-06-29  Bruno Haible  <bruno@clisp.org>
35836
35837         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
35838         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
35839
35840 2008-06-29  Bruno Haible  <bruno@clisp.org>
35841
35842         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
35843         EXTRA_DIST.
35844         Reported by Sylvain Beucler <beuc@beuc.net>.
35845
35846 2008-06-26  Jim Meyering  <meyering@redhat.com>
35847
35848         make several modules depend on the "open" module
35849         This provides slightly increased consistency when opening-for-write
35850         the name of a non-directory spelled with a trailing slash.
35851         * modules/chdir-safer: Likewise.
35852         * modules/chown: Likewise.
35853         * modules/clean-temp: Likewise.
35854         * modules/copy-file: Likewise.
35855         * modules/fchdir: Likewise.
35856         * modules/fcntl-safer: Likewise.
35857         * modules/pipe: Likewise.
35858         * modules/utime: Likewise.
35859         Prompted by Eric Blake and Bruno Haible.
35860
35861 2008-06-24  Andreas Schwab  <schwab@suse.de>
35862
35863         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
35864         literals can be used as initializers for global variables.
35865
35866 2008-06-23  Eric Blake  <ebb9@byu.net>
35867
35868         Make gnulib-cache.m4 easier to diff.
35869         * gnulib-tool (func_import): Allow newlines when reading cached
35870         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
35871
35872 2008-06-23  Bruno Haible  <bruno@clisp.org>
35873
35874         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
35875         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
35876         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
35877         m4/signalblocking.m4.
35878         (gl_PREREQ_SIGACTION): Don't invoke it.
35879         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
35880         gl_PREREQ_SIG_HANDLER_H.
35881         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
35882         Don't check for sigaction here.
35883
35884 2008-06-23  Bruno Haible  <bruno@clisp.org>
35885
35886         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
35887         (install_handlers): Don't set the SA_RESETHAND flag.
35888
35889 2008-06-23  Bruno Haible  <bruno@clisp.org>
35890
35891         * m4/sigaction.m4: Comment fixes.
35892         * lib/signal.in.h: Likewise.
35893
35894 2008-06-23  Eric Blake  <ebb9@byu.net>
35895
35896         Fix typo.
35897         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
35898
35899         Avoid SA_ namespace.
35900         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
35901         Reported by Ralf Wildenhues.
35902
35903         Avoid test failure due to SA_RESTORER.
35904         * tests/test-sigaction.c (SA_MASK): New macro.
35905         (main): Avoid failing due to extension flags being set.
35906         Reported by Jim Meyering.
35907
35908         Revert use of sig-handler.h in sigprocmask.c.
35909         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
35910         it requires the existence of struct sigaction.
35911         * lib/sigprocmask.c (handler_t): Restore typedef.
35912         (rpl_signal, old_handlers): Use local type.
35913
35914 2008-06-22  Bruno Haible  <bruno@clisp.org>
35915
35916         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
35917         conditionally.
35918         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
35919
35920 2008-06-22  Bruno Haible  <bruno@clisp.org>
35921
35922         * doc/posix-functions/siginterrupt.texi: Move note.
35923
35924         * lib/signal.in.h (SA_RESTART): New macro.
35925         * lib/sigaction.c: Update comment.
35926
35927         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
35928
35929         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
35930         (gl_PREREQ_SIGPROCMASK): Invoke it.
35931         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
35932
35933         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
35934
35935         * lib/sigprocmask.c: Update a comment.
35936
35937 2008-06-21  Eric Blake  <ebb9@byu.net>
35938
35939         Use sigaction module rather than signal().
35940         * modules/c-stack (Depends-on): Add sigaction.
35941         * modules/fatal-signal (Depends-on): Likewise.
35942         * modules/nanosleep (Depends-on): Likewise.
35943         * modules/sigprocmask (Files): Add sig-handler.h.
35944         * modules/sigaction (Files): Likewise.
35945         * lib/sig-handler.h (get_handler): New file, suggested by Paul
35946         Eggert.
35947         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
35948         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
35949         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
35950         (init_fatal_signals): Likewise.
35951         * lib/nanosleep.c (rpl_nanosleep): Likewise.
35952         (siginterrupt): Delete fallback.
35953         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
35954         instead.
35955         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
35956         siginterrupt.
35957
35958         New module sigaction, for mingw.
35959         * modules/sigaction: New module...
35960         * modules/sigaction-tests: ...and its test.
35961         * m4/sigaction.m4: New file.
35962         * lib/sigaction.c: Likewise.
35963         * tests/test-sigaction.c: Likewise.
35964         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
35965         * modules/signal (Makefile.am): Likewise.
35966         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
35967         needed.
35968         * doc/posix-headers/signal.texi (signal.h): Mention provided
35969         types.
35970         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
35971         that sigaction is preferable.
35972         * doc/posix-functions/sigaction.texi (sigaction): Mention new
35973         module.
35974         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
35975         sigaction.
35976
35977         Improve robustness of sigprocmask by overriding signal.
35978         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
35979         is in use.
35980         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
35981         (SIGKILL, SIGSTOP): Provide fallbacks.
35982         (rpl_signal): Implement.
35983         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
35984         signal can be called inside handlers.
35985
35986         Fix nanosleep module on mingw.
35987         * modules/nanosleep (Depends-on): Add sys_select.
35988         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
35989
35990         Fix licensing of sigprocmask.
35991         * modules/raise (License): Relicense as LGPL.
35992
35993 2008-06-21  Bruno Haible  <bruno@clisp.org>
35994
35995         * lib/propername.c (proper_name_utf8): Don't use the transliterated
35996         result if it contains question marks.
35997         Reported by Michael Geng <linux@michaelgeng.de>.
35998
35999 2008-06-19  Bruno Haible  <bruno@clisp.org>
36000
36001         Fix CVS-ism.
36002         * doc/gnulib.texi: Include updated-stamp.texi.
36003         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
36004         (updated-stamp.texi): New rule.
36005         (gnulib.info): Depend on it.
36006         * doc/.gitignore: Add updated-stamp.texi.
36007         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
36008
36009 2008-06-19  Bruno Haible  <bruno@clisp.org>
36010
36011         * doc/Makefile (gnulib.info): Update and simplify dependencies.
36012         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
36013
36014 2008-06-19  Eric Blake  <ebb9@byu.net>
36015
36016         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
36017         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
36018         Reported by Stepan Kasal.
36019
36020 2008-06-18  Bruno Haible  <bruno@clisp.org>
36021
36022         * lib/fatal-signal.c (init_fatal_signals): Add comment.
36023         Reported by Eric Blake.
36024
36025 2008-06-18  Eric Blake  <ebb9@byu.net>
36026
36027         Work around cygwin 1.5.25 strsignal bug.
36028         * tests/test-strsignal.c: Allow for const char *.
36029         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
36030
36031 2008-06-18  Simon Josefsson  <simon@josefsson.org>
36032
36033         * users.txt: Update URL to article and add author/date
36034         information.
36035
36036 2008-06-17  Bruno Haible  <bruno@clisp.org>
36037
36038         New macro gl_DISABLE_THREADS.
36039         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
36040         if the user did not pass --enable-threads or --disable-threads option.
36041         (gl_DISABLE_THREADS): New macro.
36042         Reported by Eric Blake <ebb9@byu.net>.
36043
36044 2008-06-17  Bruno Haible  <bruno@clisp.org>
36045
36046         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
36047         when the macro ignores it.
36048         Based on a patch by Eric Blake <ebb9@byu.net>.
36049
36050 2008-06-17  Bruno Haible  <bruno@clisp.org>
36051
36052         * modules/tls (License): Change to LGPLv2+.
36053         Reported by Eric Blake.
36054
36055 2008-06-17  Eric Blake  <ebb9@byu.net>
36056
36057         Simplify c-stack prerequisites.
36058         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
36059         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
36060         no longer requires <ucontext.h> to exist.  Optimize setrlimit
36061         check.
36062         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
36063         <sys/resource.h>.
36064
36065         Move c-stack test into testsuite.
36066         * modules/c-stack-tests: New file.
36067         * lib/c-stack.c [DEBUG]: Move test program...
36068         * tests/test-c-stack.c: ...into this new file.  Skip rather than
36069         fail test if sigaltstack is lacking.
36070         * tests/test-c-stack.sh: New driver file.
36071
36072 2008-06-16  Eric Blake  <ebb9@byu.net>
36073
36074         Use raise module consistently.
36075         * modules/fatal-signal (Depends-on): Add raise.
36076         * modules/sigprocmask (Depends-on): Likewise.
36077         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
36078         * lib/sigprocmask.c (sigprocmask): Likewise.
36079         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
36080         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
36081
36082         Fix compliance bug in sigpending.
36083         * lib/sigprocmask.c (sigpending): Return pending array via
36084         parameter, not return value.
36085
36086 2008-06-14  Eric Blake  <ebb9@byu.net>
36087
36088         Improve obstack-printf test code.
36089         * tests/test-obstack-printf.c (test_function): Fix comment, and
36090         simplify usage of obstack_* in macros.  Add a test for coverage.
36091         Reported by Bruno Haible.
36092
36093 2008-06-14  Bruno Haible  <bruno@clisp.org>
36094
36095         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
36096         array size as a constant, not as a const variable.
36097         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
36098         AC_USE_SYSTEM_EXTENSIONS.
36099         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
36100         Test whether the obstack_printf function actually exists.
36101         * modules/obstack-printf (Depends-on): Add extensions.
36102         (Include): Remove obstack.h.
36103         * modules/obstack-printf-posix (Depends-on): Add extensions.
36104         (Include): Remove obstack.h.
36105
36106 2008-06-13  Eric Blake  <ebb9@byu.net>
36107
36108         Add obstack-printf and obstack-printf-posix modules.
36109         * modules/obstack-printf: New file.
36110         * modules/obstack-printf-posix: Likewise.
36111         * MODULES.html.sh (Misc): Mention them.
36112         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
36113         Likewise.
36114         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
36115         Likewise.
36116         * modules/stdio (Makefile.am): Accomodate new modules.
36117         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
36118         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
36119         Declare.
36120         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
36121         functions.
36122         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
36123         (gl_REPLACE_OBSTACK_PRINTF): New macros
36124         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
36125         * tests/test-obstack-printf.c: New file.
36126         * modules/obstack-printf-tests: Likewise.
36127         * modules/obstack-printf-posix-tests: Likewise.
36128
36129 2008-06-11  Bruno Haible  <bruno@clisp.org>
36130
36131         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
36132         * lib/open.c: Include errno.h.
36133         (open): Fail when attempting to write to a file that has a trailing
36134         slash.
36135         * tests/test-open.c (main): Test against trailing slash bug.
36136         * doc/posix-functions/open.texi: Mention the trailing slash bug.
36137
36138 2008-06-10  Bruno Haible  <bruno@clisp.org>
36139
36140         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
36141         for $? to work inside the trap command, with various /bin/sh-s.
36142         * tests/test-vc-list-files-cvs.sh: Likewise.
36143
36144 2008-06-10  Bruno Haible  <bruno@clisp.org>
36145
36146         * lib/acl-internal.h: Don't include gettext.h here.
36147         * lib/set-mode-acl.c: Include gettext.h here.
36148         * lib/copy-acl.c: Likewise.
36149
36150 2008-06-10  Bruno Haible  <bruno@clisp.org>
36151
36152         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
36153         * lib/wait-process.c (wait_subprocess): Likewise.
36154         * lib/execute.h (execute): Add termsigp argument.
36155         * lib/execute.c (execute): Likewise.
36156         * lib/csharpcomp.c (compile_csharp_using_pnet,
36157         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
36158         * lib/csharpexec.c (execute_csharp_using_pnet,
36159         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
36160         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
36161         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
36162         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
36163         is_jikes_present): Update.
36164         * lib/javaexec.c (execute_java_class): Update.
36165         * lib/javaversion.c (execute_and_read_line): Update.
36166         * NEWS: Document the changes.
36167         Reported by Eric Blake.
36168
36169 2008-06-10  Eric Blake  <ebb9@byu.net>
36170
36171         Add missing include.
36172         * tests/test-strstr.c (includes): Add <signal.h>.
36173         * tests/test-strcasestr.c (includes): Likewise.
36174         * tests/test-memmem.c (includes): Likewise.
36175
36176 2008-06-10  Bruno Haible  <bruno@clisp.org>
36177
36178         * lib/wait-process.c (wait_subprocess): Add an assertion.
36179
36180 2008-06-10  Bruno Haible  <bruno@clisp.org>
36181
36182         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
36183
36184 2008-06-10  Bruno Haible  <bruno@clisp.org>
36185
36186         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
36187         using alarm().
36188         * tests/test-strcasestr.c (main): Likewise.
36189         * tests/test-strstr.c (main): Likewise.
36190
36191 2008-06-09  Bruno Haible  <bruno@clisp.org>
36192
36193         Work around the Solaris 10 ACE ACLs ABI change.
36194         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
36195         declare if ACL_NO_TRIVIAL is present.
36196         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
36197         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
36198         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
36199         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
36200         define if ACL_NO_TRIVIAL is present.
36201         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
36202         and use the current ABI.
36203         (file_has_acl): Use same #if condition as elsewhere.
36204         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
36205         in use, and use the current ABI.
36206         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
36207         Reported by Jim Meyering.
36208
36209 2008-06-09  Eric Blake  <ebb9@byu.net>
36210
36211         Work around environments that (stupidly) ignore SIGALRM.
36212         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
36213         before using alarm().
36214         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
36215         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
36216         Reported by Ian Beckwith <ianb@erislabs.net>.
36217
36218         Produce autobuild blurb earlier in log.
36219         * modules/autobuild (configure.ac-early): Move AB_INIT here.
36220
36221 2008-06-09  Jim Meyering  <meyering@redhat.com>
36222         and OndÅ™ej Vašík  <ovasik@redhat.com>
36223
36224         utimens.c: correct kernel bug work-around
36225         OndÅ™ej Vašík found that the invalid return value of 280 indicates
36226         failure, not success, and the kernel bug we're trying to work
36227         around affects not just the utimensat call, but also the fallback
36228         futimens call.
36229         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
36230         not success.
36231         [HAVE_FUTIMENS]: Use the same work-around, here.
36232
36233 2008-06-09  Jim Meyering  <meyering@redhat.com>
36234
36235         add more guards around definition of ACE_-related code
36236         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
36237         ALLOW and ACE_OWNER are also defined.
36238
36239 2008-06-08  Bruno Haible  <bruno@clisp.org>
36240
36241         * lib/acl-internal.h: Add me as co-author.
36242         * lib/file-has-acl.c: Likewise.
36243         * lib/set-mode-acl.c: Likewise.
36244         * lib/copy-acl.c: Likewise.
36245
36246 2008-06-08  Bruno Haible  <bruno@clisp.org>
36247
36248         Add support for AIX ACLs.
36249         * lib/acl-internal.h (acl_nontrivial): New declaration.
36250         * lib/file-has-acl.c (acl_nontrivial): New function.
36251         (file_has_acl): Add implementation using AIX 4 ACL API.
36252         * lib/set-mode-acl.c (qset_acl): Likewise.
36253         * lib/copy-acl.c (qcopy_acl): Likewise.
36254
36255 2008-06-08  Bruno Haible  <bruno@clisp.org>
36256
36257         Add support for HP-UX ACLs.
36258         * lib/acl-internal.h (acl_nontrivial): New declaration.
36259         * lib/file-has-acl.c (acl_nontrivial): New function.
36260         (file_has_acl): Add implementation using HP-UX 11 ACL API.
36261         * lib/set-mode-acl.c (qset_acl): Likewise.
36262         * lib/copy-acl.c (qcopy_acl): Likewise.
36263
36264 2008-06-08  Bruno Haible  <bruno@clisp.org>
36265
36266         Add support for Cygwin ACLs.
36267         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
36268         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
36269         the chmod_or_fchmod call.
36270         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
36271
36272 2008-06-08  Bruno Haible  <bruno@clisp.org>
36273
36274         Fix bug with setuid modes in Solaris 10+ code.
36275         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
36276         succeeded, when the mode contains some special bits.
36277
36278 2008-06-08  Bruno Haible  <bruno@clisp.org>
36279
36280         Add support for Solaris 7..10 ACLs.
36281         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
36282         declarations.
36283         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
36284         functions.
36285         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
36286         * lib/set-mode-acl.c (qset_acl): Likewise.
36287         * lib/copy-acl.c (qcopy_acl): Likewise.
36288
36289 2008-06-08  Bruno Haible  <bruno@clisp.org>
36290
36291         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
36292         declaration.
36293         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
36294         (acl_access_nontrivial): Remove MacOS X case.
36295         (file_has_acl): Use acl_extended_nontrivial.
36296         * lib/copy-acl.c (qcopy_acl): Likewise.
36297
36298 2008-06-08  Bruno Haible  <bruno@clisp.org>
36299
36300         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
36301
36302 2008-06-08  Jim Meyering  <meyering@redhat.com>
36303
36304         * modules/acl (Maintainer): Add Bruno Haible.
36305
36306 2008-06-07  Bruno Haible  <bruno@clisp.org>
36307
36308         Improve support for Tru64 ACLs.
36309         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
36310         ACL on OSF/1.
36311
36312 2008-06-07  Bruno Haible  <bruno@clisp.org>
36313
36314         Add support for MacOS X ACLs.
36315         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
36316         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
36317         * lib/set-mode-acl.c (qset_acl): Likewise.
36318         * lib/copy-acl.c (qcopy_acl): Likewise.
36319
36320 2008-06-07  Bruno Haible  <bruno@clisp.org>
36321
36322         Fix memory leak introduced on 2008-05-22.
36323         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
36324         use.
36325
36326 2008-06-07  Bruno Haible  <bruno@clisp.org>
36327
36328         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
36329         to construct an empty ACL.
36330
36331 2008-06-07  Bruno Haible  <bruno@clisp.org>
36332
36333         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
36334         precisely.
36335         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
36336
36337 2008-06-07  Bruno Haible  <bruno@clisp.org>
36338
36339         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
36340         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
36341
36342 2008-06-07  Bruno Haible  <bruno@clisp.org>
36343
36344         * doc/posix-functions/_setjmp.texi: Explain the use of this function
36345         regardless of POSIX.
36346         * doc/posix-functions/_longjmp.texi: Likewise.
36347         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
36348         SystemV platform in this case.
36349
36350 2008-06-06  Eric Blake  <ebb9@byu.net>
36351
36352         Document abort() bugs.
36353         * doc/posix-functions/abort.texi (abort): Mention anomalies.
36354
36355         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
36356         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
36357         sigsetjmp.
36358         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
36359         siglongjmp, but only as a macro.
36360         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
36361         is obsolete.
36362         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
36363
36364         Tweak documentation to cover cygwin argz bugs.
36365         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
36366         argz bug fix; no code change needed since no cygwin releases
36367         occurred between the last fix and the bug being tested.
36368         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
36369         module and recently fixed cygwin bugs.
36370         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
36371         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
36372         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
36373         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
36374         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
36375         Likewise.
36376         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
36377         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
36378         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
36379         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
36380         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
36381         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
36382         Likewise.
36383
36384         Avoid gcc warning on cygwin.
36385         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
36386         !ACL_NO_TRIVIAL]: Avoid unused variable.
36387
36388 2008-06-05  Eric Blake  <ebb9@byu.net>
36389
36390         Be tolerant of UNKNOWN version in gnulib-tool test dir.
36391         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
36392         git-version-gen fails to come up with a version.
36393         Reported by Simon Josefsson.
36394
36395 2008-06-05  Jim Meyering  <meyering@redhat.com>
36396             Paul Eggert  <eggert@cs.ucla.edu>
36397
36398         utimens.c: work around a probable Linux kernel bug
36399         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
36400         appears to be a kernel bug that causes utimensat to return 280
36401         instead of 0, indicating success.
36402
36403 2008-06-04  Bruno Haible  <bruno@clisp.org>
36404
36405         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
36406         2008-06-01 commit.
36407
36408 2008-06-04  Bruno Haible  <bruno@clisp.org>
36409
36410         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
36411         * lib/file-has-acl.c (acl_access_nontrivial): New function.
36412         (file_has_acl): Use it. Save errno afterwards.
36413         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
36414
36415 2008-06-03  Bruno Haible  <bruno@clisp.org>
36416
36417         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
36418         draft code. Simplify #ifs.
36419         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
36420         Put Solaris code after POSIX-draft code. Fix comments regarding
36421         Solaris 10, HP-UX. Mention Cygwin.
36422         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
36423
36424 2008-06-03  Eric Blake  <ebb9@byu.net>
36425
36426         Provide fallback for older kernels.
36427         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
36428         Provide runtime fallback if kernel lacks support.
36429         Reported by Mike Frysinger.
36430
36431 2008-06-02  Bruno Haible  <bruno@clisp.org>
36432
36433         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
36434         it exists.
36435
36436 2008-06-02  Bruno Haible  <bruno@clisp.org>
36437
36438         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
36439         * lib/copy-acl.c (qcopy_acl): Update comment.
36440
36441 2008-06-02  Bruno Haible  <bruno@clisp.org>
36442
36443         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
36444         like ACL APIs.
36445
36446 2008-06-02  Bruno Haible  <bruno@clisp.org>
36447
36448         * tests/test-file-has-acl.sh: Use different code for Cygwin.
36449         * tests/test-set-mode-acl.sh: Likewise.
36450         * tests/test-copy-acl.sh: Likewise.
36451         * tests/test-copy-file.sh: Likewise.
36452
36453 2008-06-02  Bruno Haible  <bruno@clisp.org>
36454
36455         * tests/test-file-has-acl.sh: Remove unused code.
36456
36457 2008-06-01  Bruno Haible  <bruno@clisp.org>
36458
36459         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
36460         (copy_acl): Just a wrapper around qcopy_acl that emits the error
36461         messages.
36462         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
36463
36464 2008-06-01  Bruno Haible  <bruno@clisp.org>
36465
36466         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
36467         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
36468         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
36469         APIs.
36470         * modules/acl-tests (configure.ac): Remove tests now contained in
36471         m4/acl.m4.
36472
36473 2008-06-02  Jim Meyering  <meyering@redhat.com>
36474
36475         announce-gen: use a better key-server host name
36476         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
36477         it may be more consistently reliable.  Suggested by Werner Koch
36478         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
36479
36480 2008-06-01  Bruno Haible  <bruno@clisp.org>
36481
36482         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
36483         Reported by Voroskoi Andras <voroskoi@gmail.com>.
36484
36485 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
36486
36487         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
36488
36489 2008-06-01  Bruno Haible  <bruno@clisp.org>
36490
36491         New ACL tests.
36492         * tests/test-file-has-acl.sh: New file.
36493         * tests/test-file-has-acl.c: New file.
36494         * tests/test-set-mode-acl.sh: New file.
36495         * tests/test-set-mode-acl.c: New file.
36496         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
36497         * tests/test-copy-acl.c: New file.
36498         * modules/acl-tests: New file, based on modules/copy-file-tests.
36499         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
36500         (Depends-on): Add acl-tests.
36501         (configure.ac): Remove checks.
36502         (Makefile.am): Don't create test-sameacls program here any more.
36503
36504 2008-06-01  Bruno Haible  <bruno@clisp.org>
36505
36506         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
36507         * tests/test-sameacls.c: Include progname.h.
36508         (main): Invoke set_program_name. Portability fixes for MacOS X,
36509         Solaris, HP-UX.
36510
36511 2008-06-01  Bruno Haible  <bruno@clisp.org>
36512
36513         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
36514         function.
36515         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
36516
36517 2008-06-01  Bruno Haible  <bruno@clisp.org>
36518
36519         * modules/rpmatch (Depends-on): Add strdup.
36520
36521 2008-06-01  Bruno Haible  <bruno@clisp.org>
36522
36523         * lib/pipe.c: Include unistd-safer.h.
36524         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
36525         * modules/pipe (Depends-on): Add unistd-safer.
36526
36527 2008-05-30  Simon Josefsson  <simon@josefsson.org>
36528
36529         * modules/autobuild (configure.ac): Call AB_INIT.
36530
36531 2008-05-30  Simon Josefsson  <simon@josefsson.org>
36532
36533         * tests/test-getaddrinfo.c: Don't print debug messages by default.
36534         Suggested by Bruno Haible <bruno@clisp.org>.
36535
36536 2008-05-30  Simon Josefsson  <simon@josefsson.org>
36537
36538         * tests/test-base64.c: Cast size_t to unsigned long when invoking
36539         printf.  Use %lu instead of %d.  Reported by Bruno Haible
36540         <bruno@clisp.org>.
36541
36542 2008-05-29  Eric Blake  <ebb9@byu.net>
36543
36544         Prefer new POSIX 200x interfaces over futimesat.
36545         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
36546         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
36547         when available.
36548         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
36549
36550 2008-05-28  Bruno Haible  <bruno@clisp.org>
36551
36552         * modules/stpcpy (License): Change to LGPLv2+.
36553         Requested by David Lutterkort <dlutter@redhat.com>.
36554
36555 2008-05-27  Bruno Haible  <bruno@clisp.org>
36556
36557         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
36558         current mingw.
36559         Reported by Jose E. Marchesi <jemarch@gnu.org>.
36560
36561 2008-05-27  Bruno Haible  <bruno@clisp.org>
36562
36563         * modules/iconv_open (Link): New section, from module 'iconv'.
36564         * modules/striconv (Link): Likewise.
36565         * modules/striconveh (Link): Likewise.
36566         * modules/xstriconv (Link): Likewise.
36567         * modules/unicodeio (Link): Likewise.
36568         * modules/propername (Link): Likewise.
36569         Reported by Jim Meyering.
36570
36571 2008-05-26  Jim Meyering  <meyering@redhat.com>
36572
36573         sha256: do not artificially restrict buffer length to be < 2^32
36574         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
36575         uint32_t to size_t.
36576         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
36577         to match.
36578
36579         avoid unaligned access errors, e.g., on sparc
36580         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
36581         direct access through a possibly-unaligned uint64* pointer.
36582         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
36583         direct access through a possibly-unaligned uint32* pointer.
36584         Prompted by this patch from Tom "spot" Callaway:
36585         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
36586
36587         sha512.c: fix typo in comment
36588         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
36589
36590 2008-05-25  Bruno Haible  <bruno@clisp.org>
36591
36592         * lib/set-mode-acl.c: Renamed from lib/acl.c.
36593         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
36594         (Makefile.am): Update lib_SOURCES.
36595
36596 2008-05-25  Bruno Haible  <bruno@clisp.org>
36597
36598         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
36599
36600 2008-05-25  Jim Meyering  <meyering@redhat.com>
36601
36602         useless-if-before-free: freed expr may have white-space differences
36603         * build-aux/useless-if-before-free: Recognize cases in which the
36604         freed expression differs from the tested one in embedded white
36605         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
36606         $1 was used, so we can't make any regexp shy.  Improved tests now
36607         detect this.
36608
36609         useless-if-before-free: accept white space in the expression.
36610         * build-aux/useless-if-before-free: For now, any white space
36611         in the expression must be identical in the free argument.
36612
36613         useless-if-before-free: efficiency tweak
36614         * build-aux/useless-if-before-free: Make the expression-matching
36615         regexp "shy".
36616         Make the *outer* regexp shy, not the expr-matching one.
36617
36618         update code-in-comment to accept cast of free arg
36619         * build-aux/useless-if-before-free: Update regexp.
36620
36621 2008-05-25  Bruno Haible  <bruno@clisp.org>
36622
36623         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
36624         * modules/copy-file-tests (Files, Makefile.am): Update.
36625         * tests/test-copy-file.c (func_test_copy): Update.
36626
36627 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
36628
36629         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
36630
36631 2008-05-23  Bruno Haible  <bruno@clisp.org>
36632
36633         Improve support for ACLs on OSF/1.
36634         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
36635         Remove fallback for unknown flavors of ACLs.
36636
36637 2008-05-22  Bruno Haible  <bruno@clisp.org>
36638
36639         Add support for ACLs on OSF/1.
36640         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
36641         replacements.
36642         (acl_free_text): New macro fallback.
36643         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
36644         acl_free.
36645         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
36646         acl_free_text function. Require AC_C_INLINE.
36647
36648 2008-05-22  Bruno Haible  <bruno@clisp.org>
36649
36650         Make copy_acl work on MacOS X 10.5.
36651         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
36652         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
36653         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
36654         If MODE_INSIDE_ACL, don't assume that every system has the same text
36655         representation for ACLs as FreeBSD.
36656         * lib/copy-acl.c (copy_acl): Add support for platforms with
36657         !MODE_INSIDE_ACL.
36658         * lib/file-has-acl.c (file_has_acl): Likewise.
36659         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
36660         FreeBSD, MacOS X, or IRIX, respectively.
36661
36662 2008-05-22  Bruno Haible  <bruno@clisp.org>
36663
36664         * lib/acl.h: Don't include <sys/acl.h>.
36665         (GETACLCNT): Move fallback to lib/acl-internal.h.
36666         * lib/acl-internal.h: Include <sys/acl.h> here.
36667         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
36668
36669 2008-05-22  Bruno Haible  <bruno@clisp.org>
36670
36671         Split off copy_acl function to separate file.
36672         * lib/copy-acl.c: New file, extracted from lib/acl.c.
36673         * lib/acl.c (copy_acl): Moved function to separate file.
36674         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
36675         * modules/acl (Files): Add lib/copy-acl.c.
36676         (Makefiles.am): Augment lib_SOURCES.
36677
36678 2008-05-22  Bruno Haible  <bruno@clisp.org>
36679
36680         * modules/copy-file-tests: New file.
36681         * tests/test-copy-file.sh: New file.
36682         * tests/test-copy-file.c: New file.
36683         * tests/test-copy-file-sameacls.c: New file.
36684
36685 2008-05-22  Eric Blake  <ebb9@byu.net>
36686
36687         Avoid gcc warning.
36688         * tests/test-memcmp.c (main): Pass NULL indirectly.
36689
36690 2008-05-21  Bruno Haible  <bruno@clisp.org>
36691
36692         Add reference doc about ACLs.
36693         * doc/acl-resources.txt: New file.
36694         * doc/acl-cygwin.txt: New file.
36695
36696 2008-05-21  Bruno Haible  <bruno@clisp.org>
36697
36698         Avoid one more warning from gcc.
36699         * lib/vasnprintf.c (IF_LINT): Update comments.
36700         (VASNPRINTF): Use it also for the 'prefix' array initializer.
36701
36702 2008-05-21  Jim Meyering  <meyering@redhat.com>
36703
36704         avoid a warning from gcc
36705         * lib/vasnprintf.c (IF_LINT): Define.
36706         (scale10_round_decimal_long_double):
36707         Use it to avoid a "may be used uninitialized" warning.
36708         (scale10_round_decimal_double): Likewise.
36709
36710 2008-05-21  Simon Josefsson  <simon@josefsson.org>
36711
36712         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
36713         declared.
36714
36715 2008-05-20  Bruno Haible  <bruno@clisp.org>
36716
36717         * tests/test-memcmp.c (main): Test also the sign of the result. Test
36718         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
36719
36720 2008-05-20  Simon Josefsson  <simon@josefsson.org>
36721
36722         * modules/memcmp-tests: New file.
36723         * tests/test-memcmp.c: New file.
36724
36725 2008-05-19  Bruno Haible  <bruno@clisp.org>
36726
36727         * modules/propername (Notice, configure.ac): Put quoted "..." into
36728         --keyword option.
36729         * lib/propername.h: Update comments accordingly.
36730         Reported by Eric Blake.
36731
36732 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
36733
36734         * modules/getpass-gnu (Depends-on): Add fseeko.
36735
36736 2008-05-19  Simon Josefsson  <simon@josefsson.org>
36737
36738         * modules/base64-tests: New file.
36739
36740 2008-05-19  Bo Borgerson <gigabo@gmail.com>
36741
36742         * lib/base64.c (base64_decode_ctx): If a decode context structure
36743         was passed in use it to ignore newlines.  If a context structure
36744         was _not_ passed in, continue to treat newlines as garbage (this
36745         is the historical behavior).  Formerly base64_decode.
36746         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
36747         takes a decode context structure.
36748         * lib/base64.h (base64_decode): Macro for four-argument calls.
36749         (base64_decode_alloc): Likewise.
36750         * lib/base64.c (base64_decode_ctx): If a decode context structure
36751         was passed in use it to ignore newlines.  If a context structure
36752         was _not_ passed in, continue to treat newlines as garbage (this
36753         is the historical behavior).  Formerly base64_decode.
36754         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
36755         takes a decode context structure.
36756         * lib/base64.h (base64_decode): Macro for four-argument calls.
36757         (base64_decode_alloc): Likewise.
36758
36759 2008-05-19  Jim Meyering  <meyering@redhat.com>
36760
36761         avoid a warning from gcc
36762         * lib/trim.c (IF_LINT): Define.
36763         (trim2): Use it to avoid a "may be used uninitialized" warning.
36764
36765         Fix doc typo.
36766         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
36767
36768 2008-05-19  Bruno Haible  <bruno@clisp.org>
36769
36770         * doc/glibc-functions/getpass.texi: Document limits of other
36771         implementations.
36772
36773 2008-05-19  Simon Josefsson  <simon@josefsson.org>
36774             Bruno Haible <bruno@clisp.org>
36775
36776         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
36777
36778 2008-05-18  Bruno Haible  <bruno@clisp.org>
36779
36780         * modules/propername: New file, from GNU gettext.
36781         * lib/propername.h: New file, from GNU gettext.
36782         * lib/propername.c: New file, from GNU gettext.
36783         * MODULES.html.sh (Internationalization functions): Add propername.
36784
36785 2008-05-16  Jim Meyering  <meyering@redhat.com>
36786             Bruno Haible  <bruno@clisp.org>
36787
36788         Avoid some warnings from "gcc -Wshadow".
36789         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
36790
36791 2008-05-15  Eric Blake  <ebb9@byu.net>
36792
36793         Extend previous patch to cygwin 1.7.0.
36794         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
36795         fast implementation in cygwin >= 1.7.0.
36796         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
36797         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
36798
36799 2008-05-15  Bruno Haible  <bruno@clisp.org>
36800
36801         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
36802         implementation in glibc >= 2.9.
36803         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
36804         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
36805
36806 2008-05-15  Bruno Haible  <bruno@clisp.org>
36807
36808         * MODULES.html.sh (Internationalization functions): Remove linebreak.
36809         (Unicode string functions): Add unilbrk/*.
36810         Reported by Karl Berry.
36811
36812 2008-05-15  Eric Blake  <ebb9@byu.net>
36813
36814         Fix violation of <stdbool.h> replacement in regex.
36815         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
36816         * lib/regexec.c (re_search_internal): Likewise.
36817         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
36818
36819 2008-05-15  Jim Meyering  <meyering@redhat.com>
36820
36821         avoid distracting test output when git or cvs is not found
36822         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
36823         * tests/test-vc-list-files-git.sh: Likewise.
36824
36825 2008-05-15  Eric Blake  <ebb9@byu.net>
36826
36827         Glibc finally accepted the memmem speedup code, bugzilla #5514.
36828         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
36829         glibc version.
36830         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
36831         * doc/posix-functions/strstr.texi (strstr): Likewise.
36832         * lib/str-two-way.h (MAX): Sychronize with glibc.
36833
36834 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
36835
36836         * lib/regcomp.c (optimize_utf8): Add a note on why we test
36837         opr.ctx_type.
36838         (calc_first): Initialize constraint field.
36839         (duplicate_node_closure): Use it instead of special casing ANCHORS.
36840         Fix grammar.
36841         (duplicate_node): Merge constraint field for all node types.
36842         (calc_eclosure_iter): Look at constraint field for all node types.
36843         * lib/regex_internal.c (create_cd_newstate): Don't look at
36844         opr.ctx_type.
36845
36846 2008-05-14  Bruno Haible  <bruno@clisp.org>
36847
36848         Help GCC to do better code generation.
36849         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
36850         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
36851         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
36852         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
36853         Declare with attribute 'malloc' if supported.
36854
36855 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
36856
36857         use "echo STR|wc -c" rather than unportable "expr length STR"
36858         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
36859         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
36860
36861 2008-05-14  Jim Meyering  <meyering@redhat.com>
36862
36863         use dd ibs=$n count=1 ... rather than less-portable head -c$n
36864         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
36865         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
36866         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
36867         via Collin Lasse.
36868
36869 2008-05-14  Eric Blake  <ebb9@byu.net>
36870
36871         Avoid quadratic growth in gl_LIBSOURCES.
36872         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
36873         Suggested by Bruno Haible.
36874
36875         Test xmemdup0.
36876         * modules/xmemdup0-tests: New file.
36877         * tests/test-xmemdup0.c: Likewise.
36878
36879 2008-05-13  Eric Blake  <ebb9@byu.net>
36880
36881         Split xmemdup0 into its own module.
36882         * modules/xmemdup0: New file.
36883         * lib/xmemdup0.h: Likewise.
36884         * lib/xmemdup0.c: Likewise.
36885         * MODULES.html.sh (Memory management functions): Add xmemdup0.
36886         * lib/xalloc.h (xmemdup0): Remove.
36887         * lib/xmalloc.c (xmemdup0): Likewise.
36888
36889 2008-05-13  Eric Blake  <ebb9@byu.net>
36890             Bruno Haible  <bruno@clisp.org>
36891
36892         Reduce number of forks required during autoconf.
36893         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
36894         and gl_LIBSOURCES_DIR.
36895         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
36896         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
36897         m4_syscmd per file.
36898         <m4_foreach_w>: Move...
36899         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
36900
36901 2008-05-13  Eric Blake  <ebb9@byu.net>
36902
36903         * gnulib-tool: Fix various comment typos.
36904
36905 2008-05-12  Bruno Haible  <bruno@clisp.org>
36906
36907         Tailor the linebreaking algorithm.
36908         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
36909
36910 2008-05-12  Bruno Haible  <bruno@clisp.org>
36911
36912         Update to Unicode 5.0.0.
36913         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
36914         LBP_JV, LBP_JT. Redistribute values.
36915         (unilbrk_table): Change size.
36916         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
36917         Unicode TR#14 rev. 22.
36918         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
36919         LBP_JV, LBP_JT. Redistribute values.
36920         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
36921         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
36922         Update.
36923         * lib/unilbrk/lbrkprop1.h: Regenerated.
36924         * lib/unilbrk/lbrkprop2.h: Regenerated.
36925         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
36926         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
36927         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
36928         Likewise.
36929         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
36930         Likewise.
36931         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
36932         result.
36933         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
36934         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
36935         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
36936         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
36937         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
36938         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
36939
36940 2008-05-11  Bruno Haible  <bruno@clisp.org>
36941
36942         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
36943
36944 2008-05-11  Bruno Haible  <bruno@clisp.org>
36945
36946         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
36947         * modules/unilbrk/gen-lbrk: New file.
36948
36949 2008-05-11  Bruno Haible  <bruno@clisp.org>
36950
36951         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
36952         * m4/sha512.m4 (gl_SHA512): Likewise.
36953
36954 2008-05-11  Jim Meyering  <meyering@redhat.com>
36955
36956         New modules: crypto/sha256, crypto/sha512 (from coreutils)
36957         * modules/crypto/sha256: New file.
36958         * modules/crypto/sha512: Likewise.
36959         * lib/sha256.c: Likewise.
36960         * lib/sha256.h: Likewise.
36961         * lib/sha512.c: Likewise.
36962         * lib/sha512.h: Likewise.
36963         * lib/u64.h: Likewise.
36964         * m4/sha256.m4: Likewise.
36965         * m4/sha512.m4: Likewise.
36966         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
36967
36968 2008-05-10  Bruno Haible  <bruno@clisp.org>
36969
36970         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
36971         (Input/Output <stdio.h>): Add xprintf.
36972         (Signal handling <signal.h>): Add strsignal.
36973         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
36974         (Core language properties): Add func.
36975         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
36976         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
36977         strings.
36978         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
36979         (Input/output): New section.
36980         (File system functions): Add openat-die, stat-macros.
36981         (Networking functions): Add sockets.
36982         (Unicode string functions): Add unictype/*.
36983         (Support for building libraries and executables): Add gperf.
36984         (Support for building documentation): Add agpl-3.0.
36985         (Misc): Add nocrash.
36986
36987 2008-05-10  Bruno Haible  <bruno@clisp.org>
36988
36989         * modules/unictype/gen-ctype: New file.
36990
36991 2008-05-10  Jim Meyering  <meyering@redhat.com>
36992
36993         Make chdir-safer.c more efficient on a system with no symlinks.
36994         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
36995         also if ELOOP is zero.  Suggested by Bruno Haible.
36996
36997         Make chdir-safer.c slightly safer.
36998         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
36999         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
37000
37001         Avoid compile failure on systems without ELOOP (like mingw).
37002         * lib/chdir-safer.c (ELOOP): Define if not already defined.
37003         Reported by Bruno Haible.
37004
37005 2008-05-10  Bruno Haible  <bruno@clisp.org>
37006
37007         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
37008         (is_utf8_encoding): Use a case-insensitive comparison.
37009         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
37010         streq.
37011
37012 2008-05-10  Bruno Haible  <bruno@clisp.org>
37013
37014         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
37015         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
37016         * lib/unilbrk/ulc-common.h (iconv_string_length,
37017         iconv_string_keeping_offsets): Remove declarations.
37018         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
37019         Don't include <iconv.h>, streq.h, xsize.h.
37020         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
37021         conversion.
37022         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
37023         <iconv.h>, streq.h, xsize.h.
37024         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
37025         conversion.
37026         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
37027         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
37028         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
37029         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
37030
37031 2008-05-10  Bruno Haible  <bruno@clisp.org>
37032
37033         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
37034         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
37035
37036         * modules/unilbrk/u32-width-linebreaks-tests: New file.
37037         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
37038
37039         * modules/unilbrk/u16-width-linebreaks-tests: New file.
37040         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
37041
37042         * modules/unilbrk/u8-width-linebreaks-tests: New file.
37043         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
37044
37045         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
37046         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
37047
37048         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
37049         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
37050
37051         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
37052         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
37053
37054         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
37055         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
37056
37057 2008-05-10  Bruno Haible  <bruno@clisp.org>
37058
37059         Split up 'linebreak' module.
37060         * lib/unilbrk.h: New file, based on lib/linebreak.h.
37061         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
37062         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
37063         modifications.
37064         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
37065         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
37066         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
37067         lib/linebreak.c.
37068         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
37069         lib/linebreak.c.
37070         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
37071         lib/linebreak.c.
37072         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
37073         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
37074         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
37075         lib/linebreak.c.
37076         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
37077         lib/linebreak.c.
37078         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
37079         lib/linebreak.c.
37080         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
37081         lib/linebreak.c.
37082         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
37083         lib/linebreak.c.
37084         * modules/unilbrk/base: New file.
37085         * modules/unilbrk/tables: New file.
37086         * modules/unilbrk/u8-possible-linebreaks: New file.
37087         * modules/unilbrk/u16-possible-linebreaks: New file.
37088         * modules/unilbrk/u32-possible-linebreaks: New file.
37089         * modules/unilbrk/ulc-common: New file.
37090         * modules/unilbrk/ulc-possible-linebreaks: New file.
37091         * modules/unilbrk/u8-width-linebreaks: New file.
37092         * modules/unilbrk/u16-width-linebreaks: New file.
37093         * modules/unilbrk/u32-width-linebreaks: New file.
37094         * modules/unilbrk/ulc-width-linebreaks: New file.
37095         * lib/linebreak.h: Remove file.
37096         * lib/linebreak.c: Remove file.
37097         * m4/linebreak.m4: Remove file.
37098         * modules/linebreak: Remove file.
37099         * NEWS: Mention the changes.
37100
37101 2008-05-09  Eric Blake  <ebb9@byu.net>
37102
37103         Add xmemdup0.
37104         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
37105         implementation.
37106         * lib/xmalloc.c (xmemdup0): New C implementation.
37107
37108 2008-05-08  Bruno Haible  <bruno@clisp.org>
37109
37110         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
37111
37112 2008-05-07  Eric Blake  <ebb9@byu.net>
37113
37114         Support cross-compilation of <wctype.h>.
37115         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
37116         AC_CACHE_CHECK.
37117
37118 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
37119
37120         * build-aux/vc-list-files: Add support for bzr.
37121
37122 2008-05-03  Jim Meyering  <meyering@redhat.com>
37123
37124         avoid failed assertion with tight malloc
37125         * tests/test-getndelim2.c: Correct an off-by-one assertion.
37126
37127 2008-05-03  Simon Josefsson  <simon@josefsson.org>
37128
37129         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
37130         are needed from arpa/inet.h.
37131         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
37132         Reported by Bruno Haible.
37133
37134 2008-05-02  Jim Meyering  <meyering@redhat.com>
37135
37136         avoid compilation error on FreeBSD 6
37137         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
37138
37139 2008-05-01  Jim Meyering  <meyering@redhat.com>
37140
37141         useless-if-before-free: correct --help's exit status description
37142         * build-aux/useless-if-before-free (usage): Like grep, exit 0
37143         for one or more matches, etc.  Reported by Bruno Haible.
37144
37145         vc-list-files: make the stand-alone gnulib test work
37146         * modules/vc-list-files-tests (configure.ac):
37147         Define and AC_SUBST abs_aux_dir.
37148         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
37149         $(abs_top_srcdir) to each script and having each of them
37150         duplicate the work of setting PATH, set PATH here, using
37151         the new variable, abs_aux_dir instead.
37152         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
37153         * tests/test-vc-list-files-git.sh: Likewise.
37154         Reported by Bruno Haible.
37155
37156 2008-05-01  Bruno Haible  <bruno@clisp.org>
37157
37158         * lib/getndelim2.c (getndelim2): Fix newsize computation during
37159         reallocation. Rename 'done' to 'found_delimiter'.
37160
37161 2008-05-01  Jim Meyering  <meyering@redhat.com>
37162
37163         vc-list-files: accommodate /bin/sh like the one from Solaris 10
37164         * build-aux/vc-list-files: Use `...`, not $(...).
37165
37166 2008-04-30  Jim Meyering  <meyering@redhat.com>
37167
37168         add tests for vc-list-files
37169         * modules/vc-list-files-tests: New module.
37170         * tests/test-vc-list-files-cvs.sh: New file.
37171         * tests/test-vc-list-files-git.sh: New file.
37172
37173         avoid a warning from gcc
37174         * lib/getndelim2.c (IF_LINT): Define.
37175         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
37176
37177         vc-list-files: work properly with build-aux/cvsu, too
37178         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
37179         to all cvs-based clauses.
37180
37181         vc-list-files: work properly in the CVS+awk case, too
37182         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
37183
37184         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
37185         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
37186         take more than one file argument, so .  Add quotes, just in case $dir
37187         ever contains a shell meta-character.  Prompted by Soren Hansen in
37188         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
37189
37190 2008-04-29  Eric Blake  <ebb9@byu.net>
37191
37192         Optimize getndelim2 to use block operations when possible.
37193         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
37194         freadseek, and memchr2.
37195         * lib/getndelim2.c (getndelim2): Use them for block reads.
37196
37197 2008-04-29  Bruno Haible  <bruno@clisp.org>
37198
37199         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
37200         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
37201         * modules/inet_ntop (Depends-on): Add extensions.
37202         * modules/inet_pton (Depends-on): Likewise.
37203         Reported by Simon Josefsson.
37204
37205 2008-04-29  Jim Meyering  <meyering@redhat.com>
37206
37207         When the is more than one match in a block, match all of them.
37208         * build-aux/useless-if-before-free: Iterate through each block
37209         until there are no more matches.
37210
37211         Fix broken useless-if-before-free script.
37212         * build-aux/useless-if-before-free: Fix typo: missing "?" after
37213         the expression to match cast of argument to free-like function.
37214
37215 2008-04-29  Eric Blake  <ebb9@byu.net>
37216
37217         Use new header.
37218         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
37219
37220 2008-04-29  Jim Meyering  <meyering@redhat.com>
37221
37222         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
37223         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
37224         by gnulib to exist and to declare e.g., inet_ntop.
37225         Don't include "inet_ntop.h", now removed.
37226
37227         * m4/arpa_inet_h.m4: Remove trailing blanks.
37228
37229 2008-04-29  Eric Blake  <ebb9@byu.net>
37230
37231         Silence valgrind on safe reads beyond potential array bounds.
37232         * lib/rawmemchr.valgrind: New file.
37233         * lib/strchrnul.valgrind: Likewise.
37234         * modules/rawmemchr (Files): Distribute new file.
37235         * modules/strchrnul (Files): Likewise.
37236         Suggested by Bruno Haible.
37237
37238 2008-04-29  Bruno Haible  <bruno@clisp.org>
37239
37240         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
37241         (inet_ntop, inet_pton): Change portability warning's wording.
37242         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
37243         Invoke gl_CHECK_NEXT_HEADERS.
37244         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
37245         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
37246         set ARPA_INET_H.
37247         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
37248         * modules/arpa_inet (Description): No longer only for systems that
37249         lack it.
37250         (Depends-on): Add include_next.
37251         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
37252         HAVE_ARPA_INET_H.
37253
37254 2008-04-29  Jim Meyering  <meyering@redhat.com>
37255
37256         * modules/mkdir (License): Re-license as LGPLv2+.
37257
37258 2008-04-29  Bruno Haible  <bruno@clisp.org>
37259
37260         * modules/rawmemchr (Maintainer): Set to Eric.
37261         * modules/strchrnul (Maintainer): Likewise.
37262
37263 2008-04-29  Simon Josefsson  <simon@josefsson.org>
37264
37265         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
37266         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
37267
37268         * modules/arpa_inet (arpa/inet.h): Use them.
37269
37270 2008-04-28  Eric Blake  <ebb9@byu.net>
37271
37272         Test getndelim2.
37273         * modules/getndelim2-tests: New file.
37274         * tests/test-getndelim2.c: Likewise.
37275         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
37276         stream.
37277         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
37278
37279         * MODULES.html.sh: Document new module.
37280
37281 2008-04-20  Bruno Haible  <bruno@clisp.org>
37282
37283         * lib/c-stack.c (die): Use raise.
37284         * modules/c-stack (Depends-on): Add raise.
37285
37286 2008-04-28  Bruno Haible  <bruno@clisp.org>
37287
37288         Expect rpmatch to be declared.
37289         * lib/yesno.c (rpmatch): Remove declaration.
37290
37291         Declare rpmatch.
37292         * lib/stdlib.in.h (rpmatch): New declaration.
37293         * lib/rpmatch.c: Include <stdlib.h> first.
37294         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
37295         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
37296         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
37297         HAVE_RPMATCH.
37298         * modules/rpmatch (Depends-on): Add stdlib, extensions.
37299         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
37300         (Include): Set to <stdlib.h>.
37301         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
37302         HAVE_RPMATCH.
37303         * NEWS: Document the change.
37304
37305 2008-04-28  Bruno Haible  <bruno@clisp.org>
37306
37307         Change rpmatch to use nl_langinfo when appropriate.
37308         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
37309         (N_): New macro.
37310         (localized_pattern): New function/macro.
37311         (try): Remove match, nomatch arguments. Copy the pattern into safe
37312         memory before caching it.
37313         (rpmatch): Use localized_pattern. Add translator comments.
37314         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
37315         Suggested by Eric Blake.
37316         * modules/rpmatch (Depends-on): Add stdbool.
37317
37318 2008-04-28  Eric Blake  <ebb9@byu.net>
37319
37320         Add rawmemchr module, matching glibc.
37321         * modules/string (Makefile.am): New indicator.
37322         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
37323         * lib/string.in.h (rawmemchr): Declare when appropriate.
37324         * modules/rawmemchr: New file.
37325         * m4/rawmemchr.m4: Likewise.
37326         * lib/rawmemchr.c: Likewise.
37327         * modules/rawmemchr-tests: Likewise.
37328         * tests/test-rawmemchr.c: Likewise.
37329         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
37330         module.
37331         * modules/strchrnul (Depends-on): Add rawmemchr.
37332         * lib/strchrnul.c (strchrnul): Optimize a corner case.
37333
37334         Whitespace cleanup.
37335         * tests/test-strchrnul.c: Reindent.
37336         * lib/strchrnul.c: Likewise.
37337
37338         Optimize and test strchrnul.
37339         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
37340         * modules/strchrnul-tests: New file.
37341         * tests/test-strchrnul.c: Likewise.
37342
37343         Remove intprops dependency.
37344         * modules/memchr (Depends-on): Remove intprops.
37345         * modules/memrchr (Depends-on): Likewise.
37346         * modules/memchr2 (Depends-on): Likewise.
37347         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
37348         * lib/memrchr.c (__memrchr): Likewise.
37349         * lib/memrchr2.c (memchr2): Likewise.
37350         Reported by Simon Josefsson.
37351
37352 2008-04-28  Simon Josefsson  <simon@josefsson.org>
37353
37354         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
37355         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37356
37357 2008-04-28  Simon Josefsson  <simon@josefsson.org>
37358
37359         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
37360
37361         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
37362
37363         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
37364
37365         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
37366         declarations.
37367         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
37368
37369         * m4/inet_pton.m4: Don't check for header files.
37370
37371         * m4/inet_ntop.m4: Don't check for header files.
37372
37373 2008-04-28  Simon Josefsson  <simon@josefsson.org>
37374
37375         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
37376         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
37377         trigger for cygwin).
37378         Reported by Bruno Haible  <bruno@clisp.org>.
37379
37380 2008-04-28  Bruno Haible  <bruno@clisp.org>
37381
37382         * doc/posix-functions/strdup.texi: Mention mingw problem.
37383
37384 2008-04-27  Bruno Haible  <bruno@clisp.org>
37385
37386         * modules/stat-time-tests (Depends-on): Add sleep.
37387         * tests/test-stat-time.c (force_unlink): New function.
37388         (cleanup): Use it.
37389         (test_mtime): Remove the ctime related tests.
37390         (test_ctime): New function, containing the ctime related tests.
37391         (main): Call test_ctime, except on native Windows platforms.
37392
37393 2008-04-27  Bruno Haible  <bruno@clisp.org>
37394
37395         * lib/rpmatch.c (rpmatch): Add some comments.
37396         Reported by James Youngman <jay@gnu.org>.
37397
37398 2008-04-27  Bruno Haible  <bruno@clisp.org>
37399
37400         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
37401         quiet NaNs.
37402
37403 2008-04-27  Bruno Haible  <bruno@clisp.org>
37404
37405         Make test-yesno.sh work on mingw.
37406         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
37407         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
37408         (main): Set stdin to binary mode.
37409         * modules/yesno-tests (Depends-on): Add binary-io.
37410
37411 2008-04-27  Bruno Haible  <bruno@clisp.org>
37412
37413         Fix 'isfinite' on x86, x86_64, ia64 platforms.
37414         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
37415         argument that lie outside the IEEE 854 domain.
37416         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
37417         (gl_ISFINITE): Use it.
37418         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
37419
37420 2008-04-27  Bruno Haible  <bruno@clisp.org>
37421
37422         Allow local renaming in config.h.
37423         * lib/memrchr.c (memrchr): Don't undefine outside libc.
37424
37425 2008-04-27  Bruno Haible  <bruno@clisp.org>
37426
37427         * lib/memchr.c (__memchr): Change type of 'i'.
37428         * lib/memchr2.c (memchr2): Likewise.
37429
37430 2008-04-26  Eric Blake  <ebb9@byu.net>
37431         and Bruno Haible  <bruno@clisp.org>
37432
37433         Optimize and test memrchr.
37434         * modules/memrchr (Depends-on): Add intprops.
37435         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
37436         * modules/memrchr-tests: New file.
37437         * tests/test-memrchr.c: New file.
37438
37439 2008-04-26  Bruno Haible  <bruno@clisp.org>
37440
37441         Add tentative support for DragonFly BSD.
37442         * lib/stdio-impl.h: Add macros for DragonFly BSD.
37443         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
37444         fp.
37445         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
37446         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
37447         * lib/fpurge.c (fpurge): Likewise.
37448         * lib/freadable.c (freaadable): Likewise.
37449         * lib/freadahead.c (freadahead): Likewise.
37450         * lib/freading.c (freading): Likewise.
37451         * lib/freadptr.c (freadptr): Likewise.
37452         * lib/freadseek.c (freadptrinc): Likewise.
37453         * lib/fseeko.c (fseeko): Likewise.
37454         * lib/fseterr.c (fseterr): Likewise.
37455         * lib/fwritable.c (fwritable): Likewise.
37456         * lib/fwriting.c (fwriting): Likewise.
37457
37458 2008-04-26  Bruno Haible  <bruno@clisp.org>
37459
37460         * lib/stdio-impl.h: New file.
37461         * lib/fbufmode.c: Include stdio-impl.h.
37462         (fbufmode): Use fp_, remove redundant #defines.
37463         * lib/fflush.c: Include stdio-impl.h.
37464         (clear_ungetc_buffer): Remove redundant #defines.
37465         * lib/fpurge.c: Include stdio-impl.h.
37466         (fpurge): Remove redundant #defines.
37467         * lib/freadable.c: Include stdio-impl.h.
37468         (freadable): Remove redundant #defines.
37469         * lib/freadahead.c: Include stdio-impl.h.
37470         (freadahead): Remove redundant #defines.
37471         * lib/freading.c: Include stdio-impl.h.
37472         (freading): Remove redundant #defines.
37473         * lib/freadptr.c: Include stdio-impl.h.
37474         (freadptr): Remove redundant #defines.
37475         * lib/freadseek.c: Include stdio-impl.h.
37476         (freadptrinc): Remove redundant #defines.
37477         * lib/fseeko.c: Include stdio-impl.h.
37478         (rpl_fseeko): Remove redundant #defines.
37479         * lib/fseterr.c: Include stdio-impl.h.
37480         (fseterr): Remove redundant #defines.
37481         * lib/fwritable.c: Include stdio-impl.h.
37482         (fwritable: Remove redundant #defines.
37483         * lib/fwriting.c: Include stdio-impl.h.
37484         (fwriting): Remove redundant #defines.
37485         * modules/fbufmode (Files): Add lib/stdio-impl.h.
37486         * modules/fflush (Files): Likewise.
37487         * modules/fpurge (Files): Likewise.
37488         * modules/freadable (Files): Likewise.
37489         * modules/freadahead (Files): Likewise.
37490         * modules/freading (Files): Likewise.
37491         * modules/freadptr (Files): Likewise.
37492         * modules/freadseek (Files): Likewise.
37493         * modules/fseeko (Files): Likewise.
37494         * modules/fseterr (Files): Likewise.
37495         * modules/fwritable (Files): Likewise.
37496         * modules/fwriting (Files): Likewise.
37497
37498 2008-04-26  Bruno Haible  <bruno@clisp.org>
37499
37500         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
37501         restore_seek_optimization, update_fpos_cache): New functions, extracted
37502         from rpl_fflush.
37503         (rpl_fflush): Use them.
37504         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
37505         (gl_REPLACE_FFLUSH): Use it.
37506
37507 2008-04-26  Bruno Haible  <bruno@clisp.org>
37508
37509         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
37510         on Solaris.
37511         * tests/test-xstrtoimax.sh: Likewise.
37512         * tests/test-xstrtoumax.sh: Likewise.
37513         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37514
37515 2008-04-26  Bruno Haible  <bruno@clisp.org>
37516
37517         * modules/memchr-tests: New file.
37518         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
37519
37520 2008-04-26  Eric Blake  <ebb9@byu.net>
37521             Bruno Haible  <bruno@clisp.org>
37522
37523         * lib/memchr.c: Include intprops.h.
37524         (__memchr): Optimize parallel detection of matching bytes. Rename local
37525         variables. Add explanatory comments.
37526
37527 2008-04-26  Bruno Haible  <bruno@clisp.org>
37528
37529         Fix module 'memchr', broken since 2000-10-28.
37530         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
37531
37532 2008-04-26  Bruno Haible  <bruno@clisp.org>
37533
37534         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
37535         comments.
37536
37537 2008-04-25  Eric Blake  <ebb9@byu.net>
37538
37539         Use native fstatat on cygwin 1.7.0.
37540         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
37541         first.
37542
37543 2008-04-23  Eric Blake  <ebb9@byu.net>
37544
37545         Improve memchr2 performance.
37546         * lib/memchr2.c (memchr2): Further optimize parallel detection of
37547         NUL bytes.
37548         * modules/memchr2 (Depends-on): Use intprops.h.
37549
37550 2008-04-23  Simon Josefsson  <simon@josefsson.org>
37551
37552         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
37553         an inline function instead of a CPP macro.  Patch by Ben Pfaff
37554         <blp@cs.stanford.edu>.
37555
37556 2008-04-23  Simon Josefsson  <simon@josefsson.org>
37557
37558         * lib/arpa_inet.in.h: New file.
37559
37560         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
37561         (Makefile.am): Sed in substitute header file.
37562
37563         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
37564         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
37565
37566         * modules/inet_ntop (configure.ac): Use
37567         gl_ARPA_INET_MODULE_INDICATOR.
37568
37569         * modules/inet_pton (configure.ac): Use
37570         gl_ARPA_INET_MODULE_INDICATOR.
37571
37572 2008-04-22  Jim Meyering  <meyering@redhat.com>
37573
37574         * modules/verify (License): Re-license as LGPLv2+.
37575
37576 2008-04-22  Simon Josefsson  <simon@josefsson.org>
37577
37578         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
37579         parameter to void* as per POSIX standard (MinGW uses char*).
37580
37581 2008-04-21  Bruno Haible  <bruno@clisp.org>
37582
37583         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
37584         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
37585         Define to replacements if REPLACE_ISWCNTRL is 1.
37586         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
37587         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
37588         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
37589         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
37590         what it fixes.
37591         * doc/posix-functions/iswalpha.texi: Likewise.
37592         * doc/posix-functions/iswblank.texi: Likewise.
37593         * doc/posix-functions/iswcntrl.texi: Likewise.
37594         * doc/posix-functions/iswdigit.texi: Likewise.
37595         * doc/posix-functions/iswgraph.texi: Likewise.
37596         * doc/posix-functions/iswlower.texi: Likewise.
37597         * doc/posix-functions/iswprint.texi: Likewise.
37598         * doc/posix-functions/iswpunct.texi: Likewise.
37599         * doc/posix-functions/iswspace.texi: Likewise.
37600         * doc/posix-functions/iswupper.texi: Likewise.
37601         * doc/posix-functions/iswxdigit.texi: Likewise.
37602         Reported by Alain Guibert.
37603
37604 2008-04-21  Bruno Haible  <bruno@clisp.org>
37605
37606         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
37607         Patch by Alain Guibert.
37608
37609 2008-04-21  Bruno Haible  <bruno@clisp.org>
37610
37611         Fix test failures on mingw.
37612         * tests/test-xstrtol.c (print_no_progname): New function.
37613         (main): Install it in error_print_progname hook.
37614         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
37615         * tests/test-xstrtoimax.sh: Likewise.
37616         * tests/test-xstrtoumax.sh: Likewise.
37617
37618 2008-04-21  Bruno Haible  <bruno@clisp.org>
37619
37620         Fix test failure on mingw.
37621         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
37622
37623 2008-04-21  Bruno Haible  <bruno@clisp.org>
37624
37625         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
37626         Actually assign a value.
37627
37628 2008-04-20  Bruno Haible  <bruno@clisp.org>
37629
37630         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
37631         take 2.
37632         * lib/canonicalize.c (canonicalize_file_name): Elide if the
37633         'canonicalize-lgpl' module is also used.
37634         * lib/canonicalize-lgpl.c: Undo last change.
37635         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
37636
37637 2008-04-20  Bruno Haible  <bruno@clisp.org>
37638
37639         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
37640         config.h. Provide _mkdir based fallback for mingw.
37641         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
37642         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
37643         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
37644         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
37645         rather than defining mkdir in config.h.
37646         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
37647         (gl_SYS_STAT_H_DEFAULTS): New macro.
37648         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
37649         HAVE_IO_H any more.
37650         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
37651         HAVE_DECL_MKDIR and HAVE_IO_H.
37652
37653 2008-04-20  Bruno Haible  <bruno@clisp.org>
37654
37655         * lib/isapipe.c: Port to native Windows platforms.
37656
37657 2008-04-20  Bruno Haible  <bruno@clisp.org>
37658
37659         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
37660
37661 2008-04-21  Eric Blake  <ebb9@byu.net>
37662
37663         Work around preprocessors that don't handle UINTMAX_MAX.
37664         * lib/memchr2.c (memchr2): Avoid embedded #if.
37665         Reported by Alain Guibert, fix suggested by Bruno Haible.
37666
37667 2008-04-21  Simon Josefsson  <simon@josefsson.org>
37668
37669         * doc/posix-functions/strftime.texi (strftime): Explain better
37670         Windows incompatibility.  Suggested by Micah Cowan
37671         <micah@cowan.name>.
37672
37673 2008-04-20  Bruno Haible  <bruno@clisp.org>
37674
37675         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
37676         unistr/u8-mblen.
37677
37678 2008-04-20  Bruno Haible  <bruno@clisp.org>
37679
37680         Fix test failure on platforms with non-GNU iconv.
37681         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
37682         (U_TO_U8): Use it, rather than u16_to_u8.
37683         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
37684         units at the end of the input string.
37685         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
37686
37687 2008-04-20  Bruno Haible  <bruno@clisp.org>
37688
37689         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
37690         when the resulting length is 0.
37691         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
37692
37693 2008-04-20  Bruno Haible  <bruno@clisp.org>
37694
37695         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
37696         works.
37697         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
37698
37699 2008-04-20  Bruno Haible  <bruno@clisp.org>
37700
37701         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
37702         * modules/tsearch-tests (configure.ac): Test for initstate function.
37703
37704 2008-04-20  Bruno Haible  <bruno@clisp.org>
37705
37706         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
37707         for nlink_t if missing.
37708         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
37709
37710 2008-04-19  Bruno Haible  <bruno@clisp.org>
37711
37712         Work around snprintf bug on Linux libc5.
37713         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
37714         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
37715         gl_SNPRINTF_SIZE1.
37716         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
37717         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
37718         that test failed.
37719         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
37720         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
37721         * modules/snprintf (Files): Add m4/printf.m4.
37722         * modules/vsnprintf (Files): Likewise.
37723         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
37724         * doc/posix-functions/vsnprintf.texi: Likewise.
37725
37726 2008-04-19  Bruno Haible  <bruno@clisp.org>
37727
37728         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
37729         from 0.0058 to less than 10^-7.
37730
37731 2008-04-19  Bruno Haible  <bruno@clisp.org>
37732
37733         Fix rounding when a precision is given.
37734         * lib/vasnprintf.c (is_borderline): New function.
37735         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
37736         9...9x.
37737         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
37738         %e, %g.
37739         * tests/test-vasprintf-posix.c (test_function): Likewise.
37740         * tests/test-snprintf-posix.h (test_function): Likewise.
37741         * tests/test-sprintf-posix.h (test_function): Likewise.
37742         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
37743         * tests/test-printf-posix.h (test_function): Likewise.
37744         * tests/test-printf-posix.output: Update.
37745         Reported by John Darrington <john@darrington.wattle.id.au> via
37746         Ben Pfaff <blp@cs.stanford.edu>.
37747
37748 2008-04-18  Simon Josefsson  <simon@josefsson.org>
37749
37750         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
37751         Suggested by Bruno Haible <bruno@clisp.org>.
37752
37753 2008-04-17  Bruno Haible  <bruno@clisp.org>
37754
37755         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
37756         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
37757         implementation.
37758         Patch by Bruce Merry <bmerry@gmail.com>.
37759
37760 2008-04-17  Simon Josefsson  <simon@josefsson.org>
37761
37762         * doc/posix-functions/strftime.texi (strftime): Mention that %e
37763         doesn't work under Windows.
37764
37765 2008-04-16  Bruno Haible  <bruno@clisp.org>
37766
37767         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
37768         New macros.
37769         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
37770         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
37771         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
37772         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
37773         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
37774         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
37775         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
37776         macros.
37777         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
37778         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
37779         Northern Sotho, Uighur.
37780
37781 2008-04-16  Bruno Haible  <bruno@clisp.org>
37782
37783         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
37784         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
37785         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
37786         Reported by Daniel Bergström <daniel@octocode.com>.
37787
37788 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
37789             Bruno Haible  <bruno@clisp.org>
37790
37791         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
37792         function.
37793         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
37794         New functions, mostly extracted from gl_locale_name_default.
37795         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
37796
37797 2008-04-16  Eric Blake  <ebb9@byu.net>
37798
37799         Adjust strtod detection to catch glibc 2.7 bug.
37800         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
37801         Reported by John Gatewood Ham.
37802
37803 2008-04-16  Bruno Haible  <bruno@clisp.org>
37804
37805         Add tentative support for Linux libc5.
37806         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
37807         * lib/fpurge.c (fpurge): Likewise.
37808         * lib/freadable.c (freadable): Likewise.
37809         * lib/freadahead.c (freadahead): Likewise.
37810         * lib/freading.c (freading): Likewise.
37811         * lib/freadptr.c (freadptr): Likewise.
37812         * lib/freadseek.c (freadptrinc): Likewise.
37813         * lib/fseeko.c (rpl_fseeko): Likewise.
37814         * lib/fseterr.c (fseterr): Likewise.
37815         * lib/fwritable.c (fwritable): Likewise.
37816         * lib/fwriting.c (fwriting): Likewise.
37817         Reported by Alain Guibert <alguibert+bts@free.fr>.
37818
37819 2008-04-15  Bruno Haible  <bruno@clisp.org>
37820
37821         * modules/mathl (configure.ac): Define module indicator.
37822
37823 2008-04-15  Bruno Haible  <bruno@clisp.org>
37824
37825         * lib/logl.c (logl): Remove unused variables.
37826
37827 2008-04-15  Bruno Haible  <bruno@clisp.org>
37828
37829         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
37830         fails.
37831
37832 2008-04-15  Bruno Haible  <bruno@clisp.org>
37833
37834         * lib/trim.c (trim2): Fix argument of isspace() macro.
37835
37836 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
37837
37838         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
37839         to 0.
37840         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
37841
37842 2008-04-14  Bruno Haible  <bruno@clisp.org>
37843
37844         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
37845         AC_LANG_PROGRAM argument.
37846         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
37847         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
37848         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
37849         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
37850         * m4/math_h.m4 (gl_MATH_H): Likewise.
37851         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
37852         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
37853         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
37854         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
37855         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
37856         * m4/regex.m4 (gl_REGEX): Likewise.
37857         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
37858         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
37859         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
37860         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
37861         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
37862         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
37863         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
37864         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
37865
37866 2008-04-14  Jim Meyering  <meyering@redhat.com>
37867
37868         test-strtod: fix typos: s/abs/fabs/
37869         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
37870
37871 2008-04-13  Bruno Haible  <bruno@clisp.org>
37872
37873         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
37874         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
37875         module is also used and while not building the reloc-wrapper.
37876
37877 2008-04-13  Bruno Haible  <bruno@clisp.org>
37878
37879         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
37880
37881 2008-04-13  Bruno Haible  <bruno@clisp.org>
37882
37883         Fix AIX compilation failure introduced on 2008-04-02.
37884         * tests/test-frexp.c (exp): Undefine before redefining.
37885         * tests/test-frexpl.c (exp): Likewise.
37886
37887 2008-04-13  Bruno Haible  <bruno@clisp.org>
37888
37889         Work around a HP-UX stdio bug.
37890         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
37891         * tests/test-ftello.c (main): Likewise.
37892         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
37893         * doc/posix-functions/ftello.texi: Likewise.
37894
37895 2008-04-13  Bruno Haible  <bruno@clisp.org>
37896
37897         Make test-signbit pass on HP-UX/hppa.
37898         * tests/test-signbit.c (minus_zerol): New variable.
37899         (test_signbitl): Use it.
37900
37901 2008-04-13  Bruno Haible  <bruno@clisp.org>
37902
37903         Make truncl work on OSF/1 4.0.
37904         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
37905         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
37906         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
37907         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
37908         HAVE_DECL_TRUNCL.
37909         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
37910         HAVE_DECL_TRUNCL.
37911         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
37912
37913 2008-04-13  Bruno Haible  <bruno@clisp.org>
37914
37915         * lib/unictype.h: Remove trailing comma from enumeration definitions.
37916
37917 2008-04-13  Bruno Haible  <bruno@clisp.org>
37918
37919         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
37920         expression, so as to avoid HP-UX 11 cc compiler bug.
37921
37922 2008-04-13  Bruno Haible  <bruno@clisp.org>
37923
37924         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
37925
37926 2008-04-13  Bruno Haible  <bruno@clisp.org>
37927
37928         * lib/git-merge-changelog.c: Remove empty declaration outside of
37929         functions.
37930
37931 2008-04-13  Bruno Haible  <bruno@clisp.org>
37932
37933         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
37934
37935 2008-04-13  Bruno Haible  <bruno@clisp.org>
37936
37937         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
37938         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
37939         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
37940         also if it exists but lacks definitions of the SHUT_* macros.
37941         * modules/sys_socket (Description): Update.
37942         Reported by Elbert Pol <e.pol@chello.nl>.
37943
37944 2008-04-13  Bruno Haible  <bruno@clisp.org>
37945
37946         * lib/localcharset.c (OS2): Don't redefine if already defined.
37947         Reported by Elbert Pol <e.pol@chello.nl>.
37948
37949 2008-04-13  Bruno Haible  <bruno@clisp.org>
37950
37951         * lib/binary-io.h [__EMX__]: Include <io.h>.
37952         Reported by Elbert Pol <e.pol@chello.nl>.
37953
37954 2008-04-12  Bruno Haible  <bruno@clisp.org>
37955
37956         * lib/fpucw.h: Enable the definitions also for x86_64.
37957         Needed for NetBSD/x86_64.
37958         Reported by Thomas Klausner <tk@giga.or.at>.
37959
37960 2008-04-12  Bruno Haible  <bruno@clisp.org>
37961
37962         * tests/test-strtod.c: Include isnand.h.
37963         (main): Use isnand instead of isnan.
37964         Reported by Jim Meyering.
37965
37966 2008-04-12  Bruno Haible  <bruno@clisp.org>
37967
37968         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
37969         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
37970
37971 2008-04-12  Jim Meyering  <meyering@redhat.com>
37972
37973         * m4/math_h.m4 (gl_MATH_H): Fix typos.
37974
37975 2008-04-12  Bruno Haible  <bruno@clisp.org>
37976
37977         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
37978         Reported by Elbert Pol <e.pol@chello.nl>.
37979
37980 2008-04-12  Eric Blake  <ebb9@byu.net>
37981
37982         Work around Solaris 10 math.h bug.
37983         * m4/math_h.m4 (gl_MATH_H): Check for bug.
37984         (gl_MATH_H_DEFAULTS): Set up default.
37985         * modules/math (Makefile.am): Replace new indicators.
37986         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
37987         * tests/test-math.c (main): Test this.
37988         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
37989         * doc/posix-headers/math.texi (math.h): Mention bug.
37990         Reported by Nelson H. F. Beebe and Jim Meyering.
37991
37992 2008-04-11  Bruno Haible  <bruno@clisp.org>
37993
37994         Adapt to future versions of Apple GCC.
37995         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
37996         Reported by Peter O'Gorman <peter@pogma.com>.
37997
37998 2008-04-11  Bruno Haible  <bruno@clisp.org>
37999
38000         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
38001
38002 2008-04-11  Bruno Haible  <bruno@clisp.org>
38003
38004         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
38005
38006         * modules/getaddrinfo-tests (Makefile.am): Define
38007         test_getaddrinfo_LDADD.
38008
38009 2008-04-11  Bruno Haible  <bruno@clisp.org>
38010
38011         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
38012         (init): Fix syntax error.
38013         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
38014         is declared.
38015
38016 2008-04-11  Bruno Haible  <bruno@clisp.org>
38017
38018         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
38019         * modules/glob (Depends-on): Add stdbool.
38020
38021 2008-04-11  Bruno Haible  <bruno@clisp.org>
38022
38023         * lib/trim.c: Include <string.h>.
38024
38025 2008-04-11  Eric Blake  <ebb9@byu.net>
38026
38027         Avoid compile failure on OS/2.
38028         * lib/regex_internal.h (internal_function): Disable optimization
38029         on OS/2 (__EMX__), where it caused compiler error.
38030         Reported by Elbert Pol.
38031
38032 2008-04-11  Bruno Haible  <bruno@clisp.org>
38033
38034         Flush the standard error stream before aborting. Needed on mingw.
38035         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
38036         * tests/test-array_list.c (ASSERT): Likewise.
38037         * tests/test-array_oset.c (ASSERT): Likewise.
38038         * tests/test-avltree_list.c (ASSERT): Likewise.
38039         * tests/test-avltree_oset.c (ASSERT): Likewise.
38040         * tests/test-avltreehash_list.c (ASSERT): Likewise.
38041         * tests/test-binary-io.c (ASSERT): Likewise.
38042         * tests/test-byteswap.c (ASSERT): Likewise.
38043         * tests/test-c-ctype.c (ASSERT): Likewise.
38044         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
38045         * tests/test-c-strcasestr.c (ASSERT): Likewise.
38046         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
38047         * tests/test-c-strstr.c (ASSERT): Likewise.
38048         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
38049         * tests/test-canonicalize.c (ASSERT): Likewise.
38050         * tests/test-carray_list.c (ASSERT): Likewise.
38051         * tests/test-ceilf1.c (ASSERT): Likewise.
38052         * tests/test-ceilf2.c (ASSERT): Likewise.
38053         * tests/test-ceill.c (ASSERT): Likewise.
38054         * tests/test-count-one-bits.c (ASSERT): Likewise.
38055         * tests/test-fbufmode.c (ASSERT): Likewise.
38056         * tests/test-fflush2.c (ASSERT): Likewise.
38057         * tests/test-floorf1.c (ASSERT): Likewise.
38058         * tests/test-floorf2.c (ASSERT): Likewise.
38059         * tests/test-floorl.c (ASSERT): Likewise.
38060         * tests/test-fopen.c (ASSERT): Likewise.
38061         * tests/test-fpending.c (ASSERT): Likewise.
38062         * tests/test-fprintf-posix.c (ASSERT): Likewise.
38063         * tests/test-fpurge.c (ASSERT): Likewise.
38064         * tests/test-freadable.c (ASSERT): Likewise.
38065         * tests/test-freadahead.c (ASSERT): Likewise.
38066         * tests/test-freading.c (ASSERT): Likewise.
38067         * tests/test-freadptr.c (ASSERT): Likewise.
38068         * tests/test-freadptr2.c (ASSERT): Likewise.
38069         * tests/test-freadseek.c (ASSERT): Likewise.
38070         * tests/test-freopen.c (ASSERT): Likewise.
38071         * tests/test-frexp.c (ASSERT): Likewise.
38072         * tests/test-frexpl.c (ASSERT): Likewise.
38073         * tests/test-fseek.c (ASSERT): Likewise.
38074         * tests/test-fseeko.c (ASSERT): Likewise.
38075         * tests/test-fstrcmp.c (ASSERT): Likewise.
38076         * tests/test-ftell.c (ASSERT): Likewise.
38077         * tests/test-ftello.c (ASSERT): Likewise.
38078         * tests/test-func.c (ASSERT): Likewise.
38079         * tests/test-fwritable.c (ASSERT): Likewise.
38080         * tests/test-fwriting.c (ASSERT): Likewise.
38081         * tests/test-getdelim.c (ASSERT): Likewise.
38082         * tests/test-getline.c (ASSERT): Likewise.
38083         * tests/test-i-ring.c (ASSERT): Likewise.
38084         * tests/test-iconv-utf.c (ASSERT): Likewise.
38085         * tests/test-iconv.c (ASSERT): Likewise.
38086         * tests/test-isfinite.c (ASSERT): Likewise.
38087         * tests/test-isnand.c (ASSERT): Likewise.
38088         * tests/test-isnanf.c (ASSERT): Likewise.
38089         * tests/test-isnanl.h (ASSERT): Likewise.
38090         * tests/test-ldexpl.c (ASSERT): Likewise.
38091         * tests/test-linked_list.c (ASSERT): Likewise.
38092         * tests/test-linkedhash_list.c (ASSERT): Likewise.
38093         * tests/test-localename.c (ASSERT): Likewise.
38094         * tests/test-lseek.c (ASSERT): Likewise.
38095         * tests/test-mbscasecmp.c (ASSERT): Likewise.
38096         * tests/test-mbscasestr1.c (ASSERT): Likewise.
38097         * tests/test-mbscasestr2.c (ASSERT): Likewise.
38098         * tests/test-mbscasestr3.c (ASSERT): Likewise.
38099         * tests/test-mbscasestr4.c (ASSERT): Likewise.
38100         * tests/test-mbschr.c (ASSERT): Likewise.
38101         * tests/test-mbscspn.c (ASSERT): Likewise.
38102         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
38103         * tests/test-mbspbrk.c (ASSERT): Likewise.
38104         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
38105         * tests/test-mbsrchr.c (ASSERT): Likewise.
38106         * tests/test-mbsspn.c (ASSERT): Likewise.
38107         * tests/test-mbsstr1.c (ASSERT): Likewise.
38108         * tests/test-mbsstr2.c (ASSERT): Likewise.
38109         * tests/test-mbsstr3.c (ASSERT): Likewise.
38110         * tests/test-memchr2.c (ASSERT): Likewise.
38111         * tests/test-memmem.c (ASSERT): Likewise.
38112         * tests/test-open.c (ASSERT): Likewise.
38113         * tests/test-printf-frexp.c (ASSERT): Likewise.
38114         * tests/test-printf-frexpl.c (ASSERT): Likewise.
38115         * tests/test-printf-posix.c (ASSERT): Likewise.
38116         * tests/test-quotearg.c (ASSERT): Likewise.
38117         * tests/test-rbtree_list.c (ASSERT): Likewise.
38118         * tests/test-rbtree_oset.c (ASSERT): Likewise.
38119         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
38120         * tests/test-round1.c (ASSERT): Likewise.
38121         * tests/test-roundf1.c (ASSERT): Likewise.
38122         * tests/test-roundl.c (ASSERT): Likewise.
38123         * tests/test-signbit.c (ASSERT): Likewise.
38124         * tests/test-sleep.c (ASSERT): Likewise.
38125         * tests/test-snprintf-posix.c (ASSERT): Likewise.
38126         * tests/test-snprintf.c (ASSERT): Likewise.
38127         * tests/test-sprintf-posix.c (ASSERT): Likewise.
38128         * tests/test-stat-time.c (ASSERT): Likewise.
38129         * tests/test-strcasestr.c (ASSERT): Likewise.
38130         * tests/test-strerror.c (ASSERT): Likewise.
38131         * tests/test-striconv.c (ASSERT): Likewise.
38132         * tests/test-striconveh.c (ASSERT): Likewise.
38133         * tests/test-striconveha.c (ASSERT): Likewise.
38134         * tests/test-strsignal.c (ASSERT): Likewise.
38135         * tests/test-strstr.c (ASSERT): Likewise.
38136         * tests/test-strtod.c (ASSERT): Likewise.
38137         * tests/test-trunc1.c (ASSERT): Likewise.
38138         * tests/test-trunc2.c (ASSERT): Likewise.
38139         * tests/test-truncf1.c (ASSERT): Likewise.
38140         * tests/test-truncf2.c (ASSERT): Likewise.
38141         * tests/test-truncl.c (ASSERT): Likewise.
38142         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
38143         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
38144         * tests/test-vasnprintf.c (ASSERT): Likewise.
38145         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
38146         * tests/test-vasprintf.c (ASSERT): Likewise.
38147         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
38148         * tests/test-vprintf-posix.c (ASSERT): Likewise.
38149         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
38150         * tests/test-vsnprintf.c (ASSERT): Likewise.
38151         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
38152         * tests/test-wcwidth.c (ASSERT): Likewise.
38153         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
38154         * tests/test-xprintf-posix.c (ASSERT): Likewise.
38155         * tests/test-xvasprintf.c (ASSERT): Likewise.
38156         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
38157         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
38158         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
38159         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
38160         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
38161         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
38162         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
38163         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
38164         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
38165         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
38166         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
38167         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
38168         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
38169         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
38170         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
38171         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
38172         * tests/unictype/test-block_list.c (ASSERT): Likewise.
38173         * tests/unictype/test-block_of.c (ASSERT): Likewise.
38174         * tests/unictype/test-block_test.c (ASSERT): Likewise.
38175         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
38176         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
38177         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
38178         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
38179         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
38180         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
38181         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
38182         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
38183         * tests/unictype/test-combining.c (ASSERT): Likewise.
38184         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
38185         * tests/unictype/test-digit.c (ASSERT): Likewise.
38186         * tests/unictype/test-mirror.c (ASSERT): Likewise.
38187         * tests/unictype/test-numeric.c (ASSERT): Likewise.
38188         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
38189         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
38190         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
38191         * tests/unictype/test-scripts.c (ASSERT): Likewise.
38192         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
38193         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
38194         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
38195         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
38196         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
38197         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
38198         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
38199         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
38200         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
38201         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
38202         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
38203         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
38204         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
38205         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
38206         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
38207         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
38208         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
38209         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
38210         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
38211         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
38212         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
38213         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
38214         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
38215         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
38216         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
38217         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
38218         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
38219         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
38220         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
38221         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
38222         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
38223         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
38224         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
38225         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
38226         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
38227         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
38228         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
38229         Reported by Eric Blake.
38230
38231 2008-04-11  Bruno Haible  <bruno@clisp.org>
38232
38233         * lib/wchar.in.h: Tweak comment.
38234
38235 2008-04-11  Bruno Haible  <bruno@clisp.org>
38236
38237         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
38238         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
38239         gl_COMMON.
38240         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
38241
38242 2008-04-11  Bruno Haible  <bruno@clisp.org>
38243
38244         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
38245
38246 2008-04-11  Simon Josefsson  <simon@josefsson.org>
38247
38248         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
38249         of attempting to use non-existing /dev/*random.  Based on patch
38250         from Adam Strzelecki <ono@java.pl> in
38251         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
38252
38253 2008-04-08  Bruno Haible  <bruno@clisp.org>
38254
38255         Add tentative support for emx+gcc.
38256         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
38257         * lib/fpurge.c (fpurge): Likewise.
38258         * lib/freadable.c (freadable): Likewise.
38259         * lib/freadahead.c (freadahead): Likewise.
38260         * lib/freading.c (freading): Likewise.
38261         * lib/freadptr.c (freadptr): Likewise.
38262         * lib/freadseek.c (freadptrinc): Likewise.
38263         * lib/fseeko.c (rpl_fseeko): Likewise.
38264         * lib/fseterr.c (fseterr): Likewise.
38265         * lib/fwritable.c (fwritable): Likewise.
38266         * lib/fwriting.c (fwriting): Likewise.
38267         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
38268
38269 2008-04-09  Eric Blake  <ebb9@byu.net>
38270
38271         Avoid some autoconf warnings.
38272         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
38273         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
38274         * m4/afs.m4 (gl_AFS): Likewise.
38275         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
38276         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
38277         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
38278         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
38279         (gl_INTEGER_TYPE_SUFFIX): Likewise.
38280         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
38281         (AC_CHECK_DECLS_ONCE): Likewise.
38282         Rename file...
38283         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
38284         gnulib-tool requires autoconf 2.59 or better.
38285         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
38286
38287 2008-04-08  Eric Blake  <ebb9@byu.net>
38288
38289         Use 'git describe --match' if present (added in git 1.5.5).
38290         * build-aux/git-version-gen: Limit result to tags that match 'v*'
38291         if possible.
38292
38293 2008-04-08  Bruno Haible  <bruno@clisp.org>
38294
38295         Add tentative support for OpenServer.
38296         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
38297         _ptr, _cnt.
38298         * lib/fpurge.c (fpurge): Likewise.
38299         * lib/freadable.c (freadable): Likewise.
38300         * lib/freadahead.c (freadahead): Likewise.
38301         * lib/freading.c (freading): Likewise.
38302         * lib/freadptr.c (freadptr): Likewise.
38303         * lib/freadseek.c (freadptrinc): Likewise.
38304         * lib/fseeko.c (rpl_fseeko): Likewise.
38305         * lib/fseterr.c (fseterr): Likewise.
38306         * lib/fwritable.c (fwritable): Likewise.
38307         * lib/fwriting.c (fwriting): Likewise.
38308         Reported by Roger Cornelius <rac@tenzing.org> and
38309         Brian K. White <brian@aljex.com>.
38310
38311 2008-04-06  Jim Meyering  <meyering@redhat.com>
38312
38313         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
38314
38315 2008-04-06  Bruno Haible  <bruno@clisp.org>
38316
38317         Avoid possible error with non-ASCII bytes in UTF-8 locales.
38318         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
38319         * tests/test-printf-posix.sh: Likewise.
38320         * tests/test-vfprintf-posix.sh: Likewise.
38321         * tests/test-vprintf-posix.sh: Likewise.
38322         * tests/test-xprintf-posix.sh: Likewise.
38323
38324 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38325
38326         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
38327         hide error from 'ls', needed on OS/2.
38328         Report by Elbert Pol <elbert.pol@gmail.com>.
38329
38330 2008-04-04  Eric Blake  <ebb9@byu.net>
38331
38332         Make test-fseeko.c failures meaningful.
38333         * tests/test-fseeko.c: Print line number on failure.
38334         * tests/test-fseek.c: Likewise.
38335         Reported by Nelson H. F. Beebe.
38336
38337         Improve strtod bug detection check.
38338         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
38339         required for Solaris 10.
38340         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
38341
38342 2008-04-04  Bruno Haible  <bruno@clisp.org>
38343
38344         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
38345         by m4/setenv.m4.
38346
38347 2008-04-03  Eric Blake  <ebb9@byu.net>
38348
38349         Ensure sane .version contents.
38350         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
38351         version string.
38352         * build-aux/git-version-gen: Improve documentation.
38353
38354         Make GNU make output nicer.
38355         * top/GNUmakefile [!_have-Makefile]: Add dependency on
38356         MAKECMDGOALS to enforce message for all command line targets.  Set
38357         srcdir for use in maint.mk.
38358
38359         Another maintainer tweak.
38360         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
38361         a target that regenerates version.
38362
38363 2008-04-03  Jim Meyering  <meyering@redhat.com>
38364
38365         vc-list-files: don't cause coreutils "make po-check" failure
38366         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
38367
38368 2008-04-03  Eric Blake  <ebb9@byu.net>
38369
38370         Allow VPATH usage of vc-list-files.
38371         * build-aux/vc-list-files (scriptversion): Add timestamp.
38372         (options): Add --help, --version, -C.
38373         (CVS): Support installed cvsu.
38374
38375 2008-04-02  Bruno Haible  <bruno@clisp.org>
38376
38377         Avoid some "statement with no effect" warnings from gcc.
38378         * tests/test-wctype.c (main): Explicitly ignore unused values.
38379         Reported by Jim Meyering.
38380
38381 2008-04-02  Jim Meyering  <meyering@redhat.com>
38382
38383         Avoid some warnings from "gcc -Wshadow".
38384         * tests/test-frexp.c (exp): Define to a different identifier.
38385         * tests/test-frexpl.c (exp): Likewise.
38386
38387 2008-04-03  Jim Meyering  <meyering@redhat.com>
38388
38389         bootstrap: remove dangling *.[ch] symlinks from lib
38390         * build-aux/bootstrap [dangling symlink removal]: Move find's
38391         -depth option to precede all others, to avoid a warning.
38392         Remove *.[ch] files too, and from "$source_base" (usually lib/).
38393
38394 2008-04-02  Bruno Haible  <bruno@clisp.org>
38395
38396         Avoid some warnings from "gcc -Wshadow".
38397         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
38398         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
38399         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
38400         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
38401         Reported by Jim Meyering.
38402
38403 2008-04-01  Bruno Haible  <bruno@clisp.org>
38404
38405         Fix test to work on IRIX 6.5 with cc.
38406         * tests/test-math.c (numeric_equal): New function.
38407         (main): Use it.
38408
38409 2008-04-01  Bruno Haible  <bruno@clisp.org>
38410
38411         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
38412
38413 2008-04-01  Bruno Haible  <bruno@clisp.org>
38414
38415         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
38416         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
38417         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
38418         (Depends-on): Remove math.
38419
38420         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
38421         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
38422         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
38423         (Depends-on): Remove math.
38424
38425         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
38426         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
38427         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
38428         (Depends-on): Remove math.
38429         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
38430         (Depends-on): Remove math.
38431
38432         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
38433         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
38434         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
38435         (Depends-on): Remove math.
38436         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
38437         (Depends-on): Remove math.
38438
38439         * tests/test-round1.c: Include nan.h.
38440         (main): Use NaNd instead of NAN.
38441         * modules/round-tests (Files): Add tests/nan.h.
38442
38443         * tests/test-trunc1.c: Include nan.h.
38444         (main): Use NaNd instead of NAN.
38445         * modules/trunc-tests (Files): Add tests/nan.h.
38446
38447         * tests/test-roundf1.c: Include nan.h.
38448         (main): Use NaNf instead of NAN.
38449         * modules/roundf-tests (Files): Add tests/nan.h.
38450
38451         * tests/test-truncf1.c: Include nan.h.
38452         (main): Use NaNf instead of NAN.
38453         * modules/truncf-tests (Files): Add tests/nan.h.
38454
38455         * tests/test-ceilf1.c: Include nan.h.
38456         (main): Use NaNf instead of NAN.
38457         * modules/ceilf-tests (Files): Add tests/nan.h.
38458
38459         * tests/test-floorf1.c: Include nan.h.
38460         (main): Use NaNf instead of NAN.
38461         * modules/floorf-tests (Files): Add tests/nan.h.
38462
38463         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
38464         (main): Use NaNf instead of NAN.
38465         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
38466
38467         * tests/test-isnand.c: Include nan.h instead of <math.h>.
38468         (main): Use NaNd instead of NAN.
38469         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
38470
38471         * tests/test-frexp.c: Include nan.h.
38472         (main): Use NaNd instead of NAN.
38473         * modules/frexp-tests (Files): Add tests/nan.h.
38474
38475         * lib/isnan.c: Don't include <math.h>.
38476         (FUNC): Don't use NAN macro.
38477         * modules/isnand-nolibm (Depends-on): Remove math.
38478         * modules/isnanf-nolibm (Depends-on): Remove math.
38479         * modules/isnanl (Depends-on): Remove math.
38480         * modules/isnanl-nolibm (Depends-on): Remove math.
38481
38482         * tests/nan.h: New file.
38483
38484 2008-04-01  Eric Blake  <ebb9@byu.net>
38485
38486         Fix typos.
38487         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
38488         values to be the right type.
38489
38490         For now, cater to gnulib strtod inaccuracies.
38491         * tests/test-strtod.c (main): Allow 1-ulp error on expected
38492         fractional results.  While not as nice from a QoI perspective, it
38493         is a quicker patch than correctly implementing decimal to binary
38494         rounding.
38495
38496 2008-03-31  Eric Blake  <ebb9@byu.net>
38497
38498         Guarantee a definition of NAN.
38499         * lib/math.in.h (NAN): Define if missing.
38500         * tests/test-math.c (main): Test it.
38501         * doc/posix-headers/math.texi (math.h): Document this.
38502         * lib/isnan.c (rpl_isnand): Use it.
38503         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
38504         * tests/test-floorf1.c (NaN): Likewise.
38505         * tests/test-frexp.c (NaN): Likewise.
38506         * tests/test-isnand.c (NaN): Likewise.
38507         * tests/test-isnanf.c (NaN): Likewise.
38508         * tests/test-round1.c (NaN): Likewise.
38509         * tests/test-roundf1.c (NaN): Likewise.
38510         * tests/test-snprintf-posix.h (NaN): Likewise.
38511         * tests/test-sprintf-posix.h (NaN): Likewise.
38512         * tests/test-trunc1.c (NaN): Likewise.
38513         * tests/test-truncf1.c (NaN): Likewise.
38514         * tests/test-vasnprintf-posix.c (NaN): Likewise.
38515         * tests/test-vasprintf-posix.c (NaN): Likewise.
38516         * modules/isnand-nolibm (Depends-on): Add math.
38517         * modules/isnanf-nolibm (Depends-on): Likewise.
38518         * modules/isnanl (Depends-on): Likewise.
38519         * modules/isnanl-nolibm (Depends-on): Likewise.
38520         * modules/snprintf-posix-tests (Depends-on): Likewise.
38521         * modules/sprintf-posix-tests (Depends-on): Likewise.
38522         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
38523         * modules/vsprintf-posix-tests (Depends-on): Likewise.
38524         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
38525         * modules/vasprintf-posix-tests (Depends-on): Likewise.
38526
38527 2008-03-31  Bruno Haible  <bruno@clisp.org>
38528
38529         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
38530         * doc/posix-functions/strtod.texi: Likewise.
38531
38532 2008-03-31  Bruno Haible  <bruno@clisp.org>
38533
38534         * tests/test-strtod.c (main): Don't use C99 syntax.
38535
38536 2008-03-31  Bruno Haible  <bruno@clisp.org>
38537
38538         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
38539         Reported by Eric Blake.
38540
38541 2008-03-31  Jim Meyering  <meyering@redhat.com>
38542
38543         Don't compare actual signbit return values.
38544         * tests/test-strtod.c (main): Rather, compare only their
38545         zero/non-zero nature.
38546
38547 2008-03-31  Eric Blake  <ebb9@byu.net>
38548
38549         More strtod documentation.
38550         * doc/posix-functions/strtod.texi (strtod): Interpret more test
38551         failures as distinct bugs.
38552
38553 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
38554
38555         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
38556         Problem reported by Erik Benada in
38557         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
38558
38559 2008-03-30  Bruno Haible  <bruno@clisp.org>
38560
38561         * tests/test-strtod.c: Add comments about which assertion fails on which
38562         platform.
38563         * doc/posix-functions/strtod.texi: Add info about many more platforms.
38564
38565 2008-03-30  Eric Blake  <ebb9@byu.net>
38566
38567         Test signbit behavior on zeros.
38568         * tests/test-signbit.c (test_signbitf): Add tests for zero.
38569         (test_signbitd, test_signbitl): Likewise.
38570
38571         More strtod touchups.
38572         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
38573         sign of negative underflow, for now.  Use .5, not .1.
38574         * doc/posix-functions/strtod.texi (strtod): Mention these
38575         limitations.
38576         Reported by Jim Meyering.
38577
38578 2008-03-30  Bruno Haible  <bruno@clisp.org>
38579
38580         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
38581         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
38582
38583 2008-03-30  Bruno Haible  <bruno@clisp.org>
38584
38585         Avoid failure when attempting to return empty iconv results on some
38586         platforms.
38587         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
38588         allocation, don't report ENOMEM when the resulting string is empty.
38589
38590 2008-03-30  Bruno Haible  <bruno@clisp.org>
38591
38592         Fix buffer overrun.
38593         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
38594         Don't consider the width for tmp_length. Check count against tmp_length
38595         before doing the padding. Ensure enough allocation during padding.
38596
38597 2008-03-30  Eric Blake  <ebb9@byu.net>
38598
38599         strtod touchups.
38600         * lib/strtod.c (strtod): Avoid compiler warnings.
38601         Reported by Jim Meyering.
38602
38603 2008-03-30  Bruno Haible  <bruno@clisp.org>
38604
38605         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
38606         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
38607         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
38608         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
38609         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
38610         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
38611         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
38612         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
38613
38614         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
38615         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
38616         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
38617         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
38618         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
38619         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
38620         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
38621         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
38622
38623         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
38624         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
38625         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
38626         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
38627         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
38628         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
38629         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
38630         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
38631
38632         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
38633         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
38634
38635         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
38636         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
38637
38638         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
38639         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
38640
38641         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
38642         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
38643         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
38644
38645         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
38646         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
38647         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
38648
38649         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
38650         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
38651         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
38652
38653         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
38654         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
38655         * modules/vasprintf (Depends-on): Add EOVERFLOW.
38656
38657         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
38658         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
38659         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
38660         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
38661         (Depends-on): Add EOVERFLOW.
38662         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
38663         (Depends-on): Add EOVERFLOW.
38664         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
38665         (Depends-on): Add EOVERFLOW.
38666         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
38667         (Depends-on): Add EOVERFLOW.
38668         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
38669         (Depends-on): Add EOVERFLOW.
38670         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
38671         (Depends-on): Add EOVERFLOW.
38672         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
38673         (Depends-on): Add EOVERFLOW.
38674         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
38675         (Depends-on): Add EOVERFLOW.
38676
38677         * lib/sprintf.c (EOVERFLOW): Remove fallback.
38678         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
38679         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
38680
38681         * lib/snprintf.c (EOVERFLOW): Remove fallback.
38682         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
38683         * modules/snprintf (Depends-on): Add EOVERFLOW.
38684
38685         * lib/poll.c (EOVERFLOW): Remove fallback.
38686         * modules/poll (Depends-on): Add EOVERFLOW.
38687
38688         * lib/getugroups.c (EOVERFLOW): Remove fallback.
38689         * modules/getugroups (Depends-on): Add EOVERFLOW.
38690
38691         * lib/getdelim.c (EOVERFLOW): Remove fallback.
38692         * modules/getdelim (Depends-on): Add EOVERFLOW.
38693
38694         * lib/ftell.c (EOVERFLOW): Remove fallback.
38695         * modules/ftell (Depends-on): Add EOVERFLOW.
38696
38697         * lib/fprintf.c (EOVERFLOW): Remove fallback.
38698         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
38699         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
38700
38701         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
38702
38703         * modules/EOVERFLOW-tests: New file.
38704         * tests/test-EOVERFLOW.c: New file.
38705
38706         * modules/EOVERFLOW: New file.
38707         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
38708
38709 2008-03-30  Bruno Haible  <bruno@clisp.org>
38710
38711         Fix bug introduced on 2007-06-10.
38712         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
38713         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
38714
38715 2008-03-30  Bruno Haible  <bruno@clisp.org>
38716
38717         Improve freadseek's efficiency after ungetc.
38718         * lib/freadseek.c: Include freadahead.h.
38719         (freadptrinc): New function, extracted from freadseek.
38720         (freadseek): Use it in a loop. Use freadahead to determine the number
38721         of loop iterations.
38722         * modules/freadseek (Depends-on): Add freadahead.
38723         (configure.ac): Require AC_C_INLINE.
38724
38725 2008-03-30  Bruno Haible  <bruno@clisp.org>
38726
38727         * lib/freadseek.c (freadseek): Don't ignore the return value of
38728         freadptr.
38729
38730 2008-03-29  Eric Blake  <ebb9@byu.net>
38731
38732         Add hex float support.
38733         * modules/strtod (Depends-on): Add c-ctype.
38734         (Link): Mention POW_LIB.
38735         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
38736         whitespace between 'e' and exponent.
38737         * tests/test-strtod.c (main): Enable hex float tests.
38738         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
38739         now provides.
38740
38741         Document various strtod bugs, with some fixes.
38742         * doc/posix-functions/strtod.texi (strtod): Document bugs with
38743         "-0x", "inf", "nan", and hex constants.
38744         * doc/posix-functions/atof.texi (atof): Likewise.
38745         * modules/stdlib (Makefile.am): Support strtod.
38746         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
38747         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
38748         detect additional strtod bugs.
38749         * lib/stdlib.in.h (rpl_strtod): Add declarations.
38750         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
38751         bool where appropriate.  Parse 'inf' and 'nan'.
38752         * tests/test-strtod.c: New file.
38753         * modules/strtod (Depends-on): Add stdbool, stdlib.
38754         (configure.ac): Turn on module indicator.
38755         * modules/strtod-tests: New module.
38756
38757 2008-03-29  Eric Blake  <ebb9@byu.net>
38758
38759         Fix ftell on mingw.
38760         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
38761         * modules/ftell-tests (Depends-on): Add binary-io.
38762         * modules/ftello-tests (Depends-on): Likewise.
38763         * tests/test-ftell.c (main): Enhance test to cover behavior after
38764         ungetc.  Enforce binary mode.
38765         * tests/test-ftello.c (main): Likewise.
38766
38767         Pass test-freadseek on cygwin.
38768         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
38769         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
38770         ungetc buffer.
38771
38772         * tests/test-fflush2.c (main): Fix typo.
38773
38774 2008-03-29  Bruno Haible  <bruno@clisp.org>
38775
38776         * tests/test-fflush2.c (main): Temporarily disable the contents of
38777         this test.
38778         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
38779         Reported by Eric Blake.
38780
38781 2008-03-28  Simon Josefsson  <simon@josefsson.org>
38782
38783         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
38784         (GC_SHA224_DIGEST_SIZE): Add.
38785
38786         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
38787         (gc_hash_digest_length): Likewise.
38788         (gc_hash_buffer): Likewise.
38789
38790 2008-03-25  Bruno Haible  <bruno@clisp.org>
38791
38792         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
38793         detail which gettext release to use.
38794         Reported by Simon Josefsson.
38795
38796 2008-03-26  Jim Meyering  <meyering@redhat.com>
38797
38798         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
38799         * modules/gnumakefile (clean-GNUmakefile): Also, use
38800         test ... && ... || : syntax rather than if-then ... fi.
38801
38802         gnumakefile: Don't double-quote-expand $(VPATH) value.
38803         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
38804
38805 2008-03-24  Eric Blake  <ebb9@byu.net>
38806
38807         Alter GNUmakefile to install into top directory.
38808         * modules/maintainer-makefile: Split, and add dependency...
38809         * modules/gnumakefile: to this new module.
38810         * build-aux/GNUmakefile: Move...
38811         * top/GNUmakefile: ...here.
38812         * build-aux/maint.mk: Move...
38813         * top/maint.mk: ...here.
38814         * MODULES.html.sh (Support for maintaining...): Document new
38815         module.
38816
38817 2008-03-23  Bruno Haible  <bruno@clisp.org>
38818
38819         * gnulib-tool: New options --vc-files, --no-vc-files.
38820         (func_usage): Document them.
38821         (vc_files): New variable.
38822         (func_import): Consider vc_files.
38823         (func_create_testdir): Set vc_files to empty.
38824         Suggested by Jim Meyering and Karl Berry.
38825
38826 2008-03-23  Bruno Haible  <bruno@clisp.org>
38827
38828         Fix regex compilation error on HP-UX 11.
38829         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
38830         * modules/regex (Files): Add m4/mbstate_t.m4.
38831         Reported by Ton Voon <ton.voon@altinity.com>.
38832
38833 2008-03-23  Bruno Haible  <bruno@clisp.org>
38834
38835         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
38836
38837 2008-03-23  Eric Blake  <ebb9@byu.net>
38838             Bruno Haible  <bruno@clisp.org>
38839
38840         Install files from top/ in the destination directory.
38841         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
38842         augmentation also for the files from top/.
38843         (func_import, func_create_testdir): Rewrite file names:
38844         top/filename -> filename.
38845
38846 2008-03-23  Bruno Haible  <bruno@clisp.org>
38847
38848         Tweak "gnulib --version" output.
38849         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
38850
38851 2008-03-23  Bruno Haible  <bruno@clisp.org>
38852
38853         Tweak "gnulib --version" output.
38854         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
38855         rather than contents of ChangeLog, when possible.
38856
38857 2008-03-21  Eric Blake  <ebb9@byu.net>
38858
38859         More --version tweaks.
38860         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
38861         date of last ChangeLog entry.
38862
38863 2008-03-21  Jim Meyering  <meyering@redhat.com>
38864
38865         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
38866
38867 2008-03-20  Eric Blake  <ebb9@byu.net>
38868
38869         VPATH fix.
38870         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
38871
38872 2008-03-20  Simon Josefsson  <simon@josefsson.org>
38873
38874         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
38875         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
38876
38877 2008-03-20  Eric Blake  <ebb9@byu.net>
38878
38879         Sync GNUmakefile with coreutils.
38880         * build-aux/GNUmakefile (have-Makefile): Rename...
38881         (_have-Makefile): ...to this, for namespace consideration.
38882         (GNUmakefile.cfg): Include, if present.
38883         (_autoreconf): Define a default.
38884         (_is-dist-target): New rule for rebuilds to pick up intra-release
38885         version.
38886         (maint-cfg.mk): Rename...
38887         (cfg.mk): ...to this.
38888
38889 2008-03-18  Jim Meyering  <meyering@redhat.com>
38890
38891         New script and module: mktempd
38892         * MODULES.html.sh (maint+release support): Add mktempd.
38893         * build-aux/mktempd: New file.
38894         * modules/mktempd: New file.
38895
38896 2008-03-15  Jim Meyering  <meyering@redhat.com>
38897
38898         Undo last change.
38899         * lib/sha1.c, lib/md5.c: 63 != ~63.
38900         Reported by Andreas Schwab.
38901
38902         sha1.c, md5.c: Hoist a redundant expression.
38903         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
38904         "ctx->buflen" only once, before calling *_process_block.
38905         * lib/md5.c (md5_process_bytes): Likewise.
38906
38907 2008-03-14  Eric Blake  <ebb9@byu.net>
38908
38909         Bump copyright year in files generated by gnulib-tool.
38910         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
38911         gnulib-tool, rather than hard-coding it.
38912
38913         Fix 'gnulib-tool --version' output to work with git.
38914         * gnulib-tool (func_gnulib_dir): New function, extracted from...
38915         (startup): ...here.
38916         (func_version): Use it to invoke git-version-gen, rather than
38917         relying on CVS keyword expansion.  Modernize wording.
38918         (cvsdatestamp, last_checkin_date, version): Kill unused
38919         variables.
38920
38921 2008-03-12  Jim Meyering  <meyering@redhat.com>
38922
38923         Recognize optional cast of the argument to free.
38924         * build-aux/useless-if-before-free: Update regexps.
38925
38926         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
38927
38928 2008-03-11  Bruno Haible  <bruno@clisp.org>
38929
38930         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
38931         by a single package.
38932         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
38933         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
38934         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
38935         Reported by Sam Steingold <sds@gnu.org>.
38936
38937 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
38938
38939         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
38940         repositories.
38941
38942 2008-03-11  Bruno Haible  <bruno@clisp.org>
38943
38944         Avoid conflicts between local macro definitions.
38945         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
38946         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
38947
38948 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
38949             Bruno Haible  <bruno@clisp.org>
38950
38951         Make va_copy work with some version of xlc on AIX 5.1.
38952         * lib/stdarg.in.h: New file.
38953         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
38954         On AIX, use a <stdarg.h> file substitute.
38955         * modules/stdarg (Files): Add lib/stdarg.in.h.
38956         (Depends-on): Add include_next.
38957         (Makefile.am): Build a stdarg.h substitute if requested.
38958         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
38959
38960 2008-03-10  Bruno Haible  <bruno@clisp.org>
38961
38962         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
38963         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
38964         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
38965
38966 2008-03-10  Bruno Haible  <bruno@clisp.org>
38967
38968         * modules/stdlib (Depends-on): Add include_next, remove
38969         absolute-header.
38970
38971 2008-03-09  Bruno Haible  <bruno@clisp.org>
38972
38973         * lib/freadahead.h (freadahead): Document more precisely.
38974         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
38975         the sum of both buffer sizes.
38976         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
38977         * NEWS: Document the change.
38978
38979 2008-03-09  Bruno Haible  <bruno@clisp.org>
38980
38981         Extend freadptr to return also the buffer size.
38982         * lib/freadptr.h (freadptr): Add sizep argument.
38983         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
38984         (freadptr): Add sizep argument. Determine buffer size like freadahead
38985         does.
38986         * tests/test-freadptr.c: Don't include freadahead.h.
38987         (main): Adapt for new calling convention of freadptr.
38988         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
38989         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
38990         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
38991         tests/test-freadptr2.sh.
38992         (Depends): Remove freadahead.
38993         (TESTS): Add test-freadptr2.sh.
38994         (check_PROGRAMS): Add test-freadptr2.
38995
38996 2008-03-09  Bruno Haible  <bruno@clisp.org>
38997
38998         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
38999         Report and solution by Simon Josefsson.
39000
39001 2008-03-06  Bruno Haible  <bruno@clisp.org>
39002
39003         Make fflush after ungetc work on BSD platforms.
39004         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
39005         * tests/test-fflush2.c: New file.
39006         * tests/test-fflush2.sh: New file.
39007         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
39008         tests/test-fflush2.c.
39009         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
39010         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
39011
39012 2008-03-06  Eric Blake  <ebb9@byu.net>
39013
39014         Likewise for ftello.
39015         * modules/ftello (Dependencies): Add extensions.
39016         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
39017
39018 2008-03-06  Bruno Haible  <bruno@clisp.org>
39019
39020         * modules/fseeko (Dependencies): Add extensions.
39021         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
39022         Needed on glibc systems.
39023
39024 2008-03-06  Bruno Haible  <bruno@clisp.org>
39025
39026         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
39027         email address.
39028         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
39029
39030 2008-03-06  Bruno Haible  <bruno@clisp.org>
39031
39032         * users.txt: Add libgnupdf.
39033
39034 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
39035
39036         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
39037         (Header File Substitutes, Function Substitutes,
39038         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
39039         (Build robot for gnulib): Fix typo.
39040
39041 2008-03-06  Bruno Haible  <bruno@clisp.org>
39042
39043         * doc/gnulib-tool.texi (VCS Issues): Small updates.
39044         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
39045
39046 2008-03-06  Bruno Haible  <bruno@clisp.org>
39047
39048         * doc/func.texi: New file, extracted from doc/gnulib.texi.
39049         * doc/gnulib.texi: Include it.
39050
39051 2008-03-06  Simon Josefsson  <simon@josefsson.org>
39052
39053         * modules/func (License): Change license to unlimited; there was
39054         no LGPL parts in the module anyway.
39055
39056 2008-03-06  Simon Josefsson  <simon@josefsson.org>
39057
39058         * modules/__func__: Renamed to modules/func.
39059         * modules/__func__-tests: Renamed to modules/func-tests.
39060         * tests/test-__func__.c: Renamed to tests/test-func.c.
39061         * m4/__func__.m4: Renamed to m4/func.m4.
39062         * doc/gnulib.texi (__func__): Section renamed to func.
39063         Suggested by Eric Blake <ebb9@byu.net>.
39064
39065 2008-03-06  Simon Josefsson  <simon@josefsson.org>
39066
39067         * doc/gnulib.texi (__func__): Use C99 terminology when talking
39068         about __func__.  Make example self-contained.  Suggested by Eric
39069         Blake <ebb9@byu.net>.
39070
39071         * tests/test-__func__.c (main): Avoid extraneous () around __func.
39072         Suggested by Eric Blake <ebb9@byu.net>.
39073
39074 2008-03-06  Simon Josefsson  <simon@josefsson.org>
39075
39076         * modules/__func__: New file.
39077         * modules/__func__-tests: New file.
39078         * tests/test-__func__.c: New file.
39079         * m4/__func__.m4: New file.
39080         * doc/gnulib.texi (__func__): Document __func__ module.
39081
39082 2008-03-05  Simon Josefsson  <simon@josefsson.org>
39083
39084         * modules/byteswap (License): Re-license as LGPLv2+.
39085
39086 2008-03-05  Simon Josefsson  <simon@josefsson.org>
39087
39088         * doc/Makefile: Add pdf target.
39089
39090 2008-03-05  Simon Josefsson  <simon@josefsson.org>
39091
39092         * modules/inline (License): Use 'unlimited', since there are only
39093         *.m4 files in this module.
39094
39095 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
39096             Bruno Haible  <bruno@clisp.org>
39097
39098         Add support for HP C 7.1 on OpenVMS 8.3.
39099         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
39100
39101 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
39102
39103         Update VMS specifics.
39104         * lib/getopt.c [VMS]: Remove include of unixlib.h.
39105
39106 2008-03-02  Jim Meyering  <meyering@redhat.com>
39107
39108         Remove the last dependency on the "free" module.
39109         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
39110         Reported by Bob Proulx.
39111
39112         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
39113
39114         Remove useless "if" tests before free.  Deprecate "free" module.
39115         * doc/posix-functions/free.texi: Mention that this
39116         module is no longer useful.
39117         * modules/free (Notice): Say this module is obsolete.
39118         * modules/readutmp (Depends-on): Remove free.
39119         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
39120         * lib/putenv.c (putenv): Likewise.
39121         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
39122         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
39123         * tests/test-c-strcasestr.c (main): Likewise.
39124         * tests/test-c-strstr.c (main): Likewise.
39125         * tests/test-mbscasestr1.c (main): Likewise.
39126         * tests/test-mbscasestr2.c (main): Likewise.
39127         * tests/test-mbsstr1.c (main): Likewise.
39128         * tests/test-mbsstr2.c (main): Likewise.
39129         * tests/test-memmem.c (main): Likewise.
39130         * tests/test-strcasestr.c (main): Likewise.
39131         * tests/test-striconv.c (main): Likewise.
39132         * tests/test-striconveh.c (main): Likewise.
39133         * tests/test-striconveha.c (main): Likewise.
39134         * tests/test-strstr.c (main): Likewise.
39135
39136         * build-aux/git-version-gen: Adjust a comment and the Usage string.
39137
39138         bootstrap: sync from coreutils again
39139         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
39140
39141 2008-03-01  Jim Meyering  <meyering@redhat.com>
39142
39143         bootstrap: sync from coreutils
39144         * build-aux/bootstrap (update_po_files): Copy a .po file into place
39145         also when the target doesn't exist.
39146
39147 2008-03-01  Eric Blake  <ebb9@byu.net>
39148
39149         Fix bugs in last patch.
39150         * lib/memchr2.c (memchr2): Fix typo.
39151         * tests/test-memchr2.c: Test previous bug, and don't use GNU
39152         extension.
39153         Reported by Bruce Korb.
39154
39155         New module 'memchr2'.
39156         * modules/memchr2: New file.
39157         * modules/memchr2-tests: Likewise.
39158         * lib/memchr2.h: Likewise.
39159         * lib/memchr2.c: Likewise, based on memchr.c.
39160         * tests/test-memchr2.c: New test.
39161         * MODULES.html.sh (String handling): Add memchr2.
39162
39163 2008-02-29  Bruno Haible  <bruno@clisp.org>
39164
39165         * modules/freadseek-tests: New file.
39166         * tests/test-freadseek.sh: New file.
39167         * tests/test-freadseek.c: New file.
39168
39169         New module 'freadseek'.
39170         * modules/freadseek: New file.
39171         * lib/freadseek.h: New file.
39172         * lib/freadseek.c: New file.
39173         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
39174
39175 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
39176
39177         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
39178         wydawca.
39179
39180         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
39181         program_invocation_name and program_invocation_short_name are
39182         present.
39183
39184 2008-02-28  Bruno Haible  <bruno@clisp.org>
39185
39186         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
39187         * tests/test-freadptr.sh: Also test non-seekable stdin.
39188
39189 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
39190
39191         * build-aux/bootstrap (source_base, m4_base)
39192         (doc_base, tests_base): New variables.
39193         (gnulib_tool_options): Do not hardcode base directories, use
39194         the above variables instead.
39195
39196 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
39197
39198         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
39199
39200 2008-02-28  Bruno Haible  <bruno@clisp.org>
39201
39202         * modules/freadptr-tests: New file.
39203         * tests/test-freadptr.sh: New file.
39204         * tests/test-freadptr.c: New file.
39205
39206         New module 'freadptr'.
39207         * modules/freadptr: New file.
39208         * lib/freadptr.h: New file.
39209         * lib/freadptr.c: New file.
39210         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
39211
39212 2008-02-26  Karl Berry  <karl@freefriends.org>
39213
39214         Sync from Libtool:
39215         * libltdl/argz.c (argz_add, argz_count): New functions.
39216         * libltdl/argz.in.h: Declare them.
39217         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
39218
39219 2008-02-22  Bruno Haible  <bruno@clisp.org>
39220
39221         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
39222         is a pointer type.  Needed for HP-UX 10.
39223         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
39224         * doc/posix-functions/gmtime_r.texi: Likewise.
39225         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
39226
39227 2008-02-24  Bruno Haible  <bruno@clisp.org>
39228
39229         * modules/environ-tests: New file.
39230         * tests/test-environ.c: New file.
39231
39232         New module 'environ'.
39233         * modules/environ: New file.
39234         * lib/unistd.in.h (environ): New declaration.
39235         * m4/environ.m4: New file.
39236         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
39237         after use.
39238         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
39239         HAVE_DECL_ENVIRON.
39240         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
39241         HAVE_DECL_ENVIRON.
39242         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
39243         wrong claim that 'environ' is missing on some systems.
39244         * modules/execute (Depends-on): Add environ.
39245         * lib/execute.c (environ): Remove fallback declaration.
39246         * modules/pipe (Depends-on): Add environ.
39247         * lib/pipe.c (environ): Remove fallback declaration.
39248         * modules/setenv (Depends-on): Add environ.
39249         * lib/setenv.c (environ): Remove fallback declaration.
39250         * modules/unsetenv (Depends-on): Add environ.
39251         * lib/unsetenv.c (environ): Remove fallback declaration.
39252         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
39253         m4/environ.m4.
39254         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
39255         (gl_PREREQ_UNSETENV): Likewise.
39256
39257 2008-02-24  Bruno Haible  <bruno@clisp.org>
39258
39259         * doc/posix-functions/environ.texi: Document the MacOS X problem.
39260
39261 2008-02-20  Bob Proulx  <bob@proulx.com>
39262
39263         Enable use of older two part flavor 'git describe'.
39264         * build-aux/git-version-gen: If using the older two part flavor of
39265         git version then recreate the third part now present in the
39266         newer three part flavor of git describe.
39267
39268 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
39269
39270         * lib/fts.c (fts_build): Typo correction to comment.
39271
39272 2008-02-17  Bruno Haible  <bruno@clisp.org>
39273
39274         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
39275         generating no-op conflicts.
39276
39277 2008-02-17  Bruno Haible  <bruno@clisp.org>
39278
39279         Speed up by 10%.
39280         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
39281         result_entries, rather than an index-based loop.
39282
39283 2008-02-17  Bruno Haible  <bruno@clisp.org>
39284
39285         Speed up by 25%.
39286         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
39287         'hashcode_cached'.
39288         (entry_create): New function.
39289         (entry_hashcode): Use the cached hashcode if possible.
39290         (read_changelog_file, try_split_merged_entry): Use entry_create.
39291
39292 2008-02-17  Bruno Haible  <bruno@clisp.org>
39293
39294         Speed up from O(n^2) to O(n) for long ChangeLog files.
39295         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
39296         (read_changelog_file): Change implementation of entries_reversed list
39297         to rbtreehash.
39298         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
39299
39300 2008-02-17  Bruno Haible  <bruno@clisp.org>
39301
39302         New option --split-merged-entry.
39303         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
39304         (find_paragraph_end, try_split_merged_entry): New functions.
39305         (long_options): Add option --split-merged-entry.
39306         (usage): Document option --split-merged-entry.
39307         (main): Implement option --split-merged-entry.
39308         Reported by Eric Blake.
39309
39310 2008-02-17  Bruno Haible  <bruno@clisp.org>
39311
39312         * lib/git-merge-changelog.c: Include c-strstr.h.
39313         (main): Support the "git pull --rebase" situation.
39314         * modules/git-merge-changelog (Depends-on): Add c-strstr.
39315         Reported by Eric Blake.
39316
39317 2008-02-16  Eric Blake  <ebb9@byu.net>
39318
39319         Avoid doubling \ in common case of "c-maybe" quoting style.
39320         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
39321         eliding outer quotes.
39322         * lib/quotearg.h: Document this.
39323         * tests/test-quotearg.c (result_strings, inputs, results_g)
39324         (flag_results, locale_results): Test it by adding a new string to
39325         each test group.
39326         (compare_strings): Test new string.
39327
39328 2008-02-13  Eric Blake  <ebb9@byu.net>
39329
39330         Avoid trigraph quoting in default output.
39331         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
39332         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
39333         unless explicitly requested.
39334         * tests/test-quotearg.c (flag_results, main): Add additional tests.
39335
39336 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
39337
39338         Don't rely on signed integer overflowing to negative value.
39339         * lib/getugroups.c (getugroups): Include <limits.h>.
39340         Instead, compare against INT_MAX, and increment only if the test passes.
39341
39342 2008-02-13  Jim Meyering  <meyering@redhat.com>
39343         and Eric Blake  <ebb9@byu.net>
39344
39345         Avoid shadowing warning and compile errors on Linux.
39346         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
39347         forwarding macros on Linux.
39348         (dcgettext): Define a stub, for Linux.
39349         (results_g, main): Avoid warnings.
39350
39351 2008-02-12  Eric Blake  <ebb9@byu.net>
39352
39353         Silence warning in last patch.
39354         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
39355
39356         Quotearg part 4: add tests, fix c-maybe colon quoting.
39357         * lib/quotearg.h: Improve documentation.
39358         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
39359         escapes when adding outer quotes.  When quoting trigraphs, use
39360         valid C notation.  When quoting NUL, omit extra characters if next
39361         character is not digit.  Alter prototype.
39362         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
39363         callers.
39364         * modules/quotearg-tests: New module.
39365         * tests/test-quotearg.c: New test.
39366
39367 2008-02-07  Eric Blake  <ebb9@byu.net>
39368
39369         Quotearg part 3: add flag to control outer quote elision.
39370         * lib/quotearg.h (c_maybe_quoting_style): New style.
39371         (enum quoting_flags): Better documentation of flags.
39372         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
39373         c-maybe style.
39374         (quotearg_buffer_restyled): Handle new flag to elide outer
39375         quotes.
39376
39377         Quotearg part 2: add flag that can control NUL elision.
39378         * lib/quotearg.h (set_quoting_flags): New prototype.
39379         * lib/quotearg.c (struct quoting_options): Add flag field.
39380         (set_quoting_flags): New function.
39381         (quotearg_buffer_restyled): Add flags parameter.
39382         (quotearg_alloc_mem): Set the flag if length cannot be returned.
39383         (quotearg_n_options): Set the flag, since length cannot be
39384         returned.
39385         (quoting_options_from_style): Default flags correctly.
39386
39387         Quotearg part 1: more wrappers, restore quotearg_char state.
39388         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
39389         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
39390         (quotearg_colon_mem): New wrappers.
39391         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
39392         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
39393         functions.
39394         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
39395         (quotearg_colon_mem): New functions.
39396
39397 2008-02-11  Bruno Haible  <bruno@clisp.org>
39398
39399         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
39400         library in the current directory: it does not work with parallel make.
39401         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39402
39403 2008-02-11  Bruno Haible  <bruno@clisp.org>
39404
39405         * .gitattributes: New file.
39406
39407 2008-02-11  Jim Meyering  <meyering@redhat.com>
39408
39409         useless-if-before-free: Fix reversed exit values.
39410         * build-aux/useless-if-before-free: Use correct values
39411         for EXIT_MATCH and EXIT_NO_MATCH.
39412
39413         * build-aux/useless-if-before-free: Close stdout carefully.
39414
39415 2008-02-10  Bruno Haible  <bruno@clisp.org>
39416
39417         New module 'git-merge-changelog'.
39418         * modules/git-merge-changelog: New file.
39419         * lib/git-merge-changelog.c: New file.
39420
39421 2008-02-10  Jim Meyering  <meyering@redhat.com>
39422
39423         useless-if-before-free: New option: --list (-l).
39424
39425         useless-if-before-free: Don't exit immediately upon open failure.
39426         * build-aux/useless-if-before-free: Exit 2 for errors.
39427         Upon failure to open a file, don't exit immediately.
39428         Rather, just warn and continue with any remaining files.
39429
39430 2008-02-10  Bruno Haible  <bruno@clisp.org>
39431
39432         New abstract list operation 'node_set_value'.
39433         * lib/gl_list.h (gl_list_node_set_value): New function.
39434         (struct gl_list_implementation): New field node_set_value.
39435         * lib/gl_list.c (gl_list_node_set_value): New function.
39436         * lib/gl_array_list.c (gl_array_node_set_value): New function.
39437         (gl_array_list_implementation): Update.
39438         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
39439         (gl_carray_list_implementation): Update.
39440         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
39441         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
39442         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
39443         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
39444         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
39445         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
39446         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
39447         Update.
39448         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
39449         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
39450         (gl_sublist_list_implementation): Update.
39451
39452 2008-02-10  Bruno Haible  <bruno@clisp.org>
39453
39454         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
39455         Needed when ELEMENT is #defined to 'some_type *'.
39456
39457 2008-02-10  Jim Meyering  <meyering@redhat.com>
39458
39459         New script and module: useless-if-before-free
39460         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
39461         * build-aux/useless-if-before-free: New file.
39462         * modules/useless-if-before-free: New file.
39463
39464         * build-aux/gitlog-to-changelog: Use committer date, not author date.
39465
39466         xstrtol_error: Fix typo.
39467         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
39468         s/exit_failure/exit_status/.
39469
39470 2008-02-09  Jim Meyering  <meyering@redhat.com>
39471
39472         New script and module: gitlog-to-changelog
39473         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
39474         * modules/gitlog-to-changelog: New file.
39475         * build-aux/gitlog-to-changelog: New file.
39476
39477 2008-02-08  Jim Meyering  <meyering@redhat.com>
39478
39479         Avoid two "parameter unused" warnings.
39480         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
39481         Mark "st" as used.
39482
39483         Use "git COMMAND", not "git-COMMAND".
39484         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
39485         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
39486         * build-aux/git-version-gen: Use "git status", not "git-status".
39487
39488 2008-02-07  Bruno Haible  <bruno@clisp.org>
39489
39490         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
39491         Avoids a crash on Windows Vista.
39492         Reported by Adam Strzelecki <ono@java.pl> via
39493         Simon Josefsson <simon@josefsson.org>.
39494
39495 2008-02-06  Bruno Haible  <bruno@clisp.org>
39496
39497         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
39498         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
39499         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
39500         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
39501         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
39502         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
39503         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
39504         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
39505         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
39506         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
39507         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
39508         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
39509         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
39510         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39511         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
39512         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
39513         left-adjust flag.
39514         * tests/test-snprintf-posix.h (test_function): Likewise.
39515         * tests/test-sprintf-posix.h (test_function): Likewise.
39516         * tests/test-vasprintf-posix.c (test_function): Likewise.
39517         * doc/posix-functions/fprintf.texi: Update.
39518         * doc/posix-functions/printf.texi: Update.
39519         * doc/posix-functions/snprintf.texi: Update.
39520         * doc/posix-functions/sprintf.texi: Update.
39521         * doc/posix-functions/vfprintf.texi: Update.
39522         * doc/posix-functions/vprintf.texi: Update.
39523         * doc/posix-functions/vsnprintf.texi: Update.
39524         * doc/posix-functions/vsprintf.texi: Update.
39525         Reported by Peter Fales <psfales@alcatel-lucent.com>.
39526
39527 2008-02-06  Bruno Haible  <bruno@clisp.org>
39528
39529         Fix bug introduced on 2008-01-26.
39530         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
39531
39532 2008-02-06  Bruno Haible  <bruno@clisp.org>
39533
39534         Fix bug introduced on 2007-06-10.
39535         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
39536         !NEED_PRINTF_FLAG_ZERO.
39537
39538 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
39539
39540         getloadavg: use libperfstat on AIX5
39541         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
39542
39543 2008-02-03  Bruno Haible  <bruno@clisp.org>
39544
39545         * lib/diffseq.h: Add comments about required #includes.
39546         Reported by Michael Biggs <gnulib@doubleplum.net>.
39547
39548 2008-02-01  Bruno Haible  <bruno@clisp.org>
39549
39550         * users.txt: Add gnuit.
39551
39552 2008-01-31  Bruno Haible  <bruno@clisp.org>
39553
39554         * lib/md4.c (set_uint32): Mark as inline.
39555         * lib/md5.c (set_uint32): Likewise.
39556         * lib/sha1.c (set_uint32): Likewise.
39557         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
39558         * m4/md5.m4 (gl_MD5): Likewise.
39559         * m4/sha1.m4 (gl_SHA1): Likewise.
39560
39561 2008-01-31  Jim Meyering  <meyering@redhat.com>
39562
39563         Use "sizeof VAR", rather than a literal "4".
39564         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
39565         * lib/md4.c (md4_read_ctx): Likewise.
39566         * lib/sha1.c (sha1_read_ctx): Likewise.
39567
39568 2008-01-31  Simon Josefsson  <simon@josefsson.org>
39569
39570         * tests/test-sha1.c: New file, based on test-md5.c.
39571
39572         * modules/crypto/sha1-tests: New file.
39573
39574 2008-01-31  Simon Josefsson  <simon@josefsson.org>
39575
39576         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
39577
39578 2008-01-31  Jim Meyering  <meyering@redhat.com>
39579
39580         Prefer "sizeof v" over the equivalent "4".
39581         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
39582         * lib/md5.c (set_uint32): Likewise.
39583         * lib/sha1.c (set_uint32): Likewise.
39584
39585 2008-01-31  Simon Josefsson  <simon@josefsson.org>
39586
39587         * lib/sha1.c (set_uint32): Mark function as static.
39588
39589 2008-01-31  Simon Josefsson  <simon@josefsson.org>
39590
39591         md2: clarify comments to say that alignment is not required.
39592         * lib/md2.h: Remove warning about alignment in comment.
39593         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
39594         never been required.
39595
39596 2008-01-31  Simon Josefsson  <simon@josefsson.org>
39597
39598         md4: adapt alignment constraint fix from sha1.
39599         * lib/md4.c (set_uint32): New function, from sha1.c
39600         (md4_read_ctx): Use it.
39601         (md4_finish_ctx): Doc fix.
39602         * lib/md4.h: Doc fix.
39603
39604 2008-01-31  Simon Josefsson  <simon@josefsson.org>
39605
39606         md5: adapt alignment constraint fix from sha1.
39607         * lib/md5.c (set_uint32): New function, from sha1.c
39608         (md5_read_ctx): Use it.
39609         (md5_finish_ctx): Doc fix.
39610         * lib/md5.h: Doc fix.
39611
39612 2008-01-30  Peter Palfrader  <weasel@debian.org>
39613
39614         sha1: remove the result buffer alignment constraint
39615         * lib/sha1.c (set_uint32): New function.
39616         (sha1_read_ctx): Rewrite to remove the result buffer alignment
39617         constraint.
39618         (sha1_finish_ctx): Remove comment warning about alignment constraint.
39619         * lib/sha1.h: Likewise.
39620
39621 2008-01-30  Andreas Schwab  <schwab@suse.de>
39622             Bruno Haible  <bruno@clisp.org>
39623
39624         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
39625         correct definition of LDBL_MIN_EXP.
39626
39627 2008-01-30  Karl Berry  <karl@gnu.org>
39628
39629         * config/srclist-update: try to preserve x bit on updates.
39630         * config/srclistvars.sh: update for karl.
39631
39632 2008-01-29  Jim Meyering  <meyering@redhat.com>
39633
39634         vasnprintf.c: Avoid warning about unused label
39635         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
39636         "overflow" label definition and associated code with the
39637         same cpp condition that guards the sole use of that label.
39638
39639 2008-01-26  Bruno Haible  <bruno@clisp.org>
39640
39641         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
39642         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
39643         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
39644         * lib/isnanl-nolibm.h (isnanl): Likewise.
39645         Reported by Paul Eggert <eggert@cs.ucla.edu>.
39646
39647 2008-01-26  Bruno Haible  <bruno@clisp.org>
39648
39649         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
39650         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
39651
39652 2008-01-26  Bruno Haible  <bruno@clisp.org>
39653
39654         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
39655         GCC >= 4.0 built-in.
39656         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
39657
39658 2008-01-26  Bruno Haible  <bruno@clisp.org>
39659
39660         Rename isnan, applicable to 'double' only, to isnand.
39661         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
39662         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
39663         (configure.ac): Update.
39664         (Include): Replace "isnan.h" with "isnand.h".
39665         * m4/isnand.m4: Renamed from m4/isnan.m4.
39666         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
39667         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
39668         instead of isnan.c.
39669         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
39670         instead of HAVE_ISNAN_IN_LIBC.
39671         (isnand): Renamed from isnan.
39672         * lib/isnand.c: New file.
39673         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
39674         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
39675         (Makefile.am): Update.
39676         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
39677         Include isnand.h instead of isnan.h.
39678         (main): Test isnand instead of isnan.
39679         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
39680         isnan-nolibm.
39681         * modules/frexp (Depends-on): Likewise.
39682         * modules/frexp-tests (Depends-on): Likewise.
39683         * modules/frexp-nolibm (Depends-on): Likewise.
39684         * modules/frexp-nolibm-tests (Depends-on): Likewise.
39685         * modules/isfinite (Depends-on): Likewise.
39686         * modules/round-tests (Depends-on): Likewise.
39687         * modules/signbit (Depends-on): Likewise.
39688         * modules/signbit-tests (Depends-on): Likewise.
39689         * modules/snprintf-posix (Depends-on): Likewise.
39690         * modules/sprintf-posix (Depends-on): Likewise.
39691         * modules/trunc-tests (Depends-on): Likewise.
39692         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
39693         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
39694         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
39695         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
39696         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
39697         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
39698         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
39699         * modules/vasnprintf-posix (Depends-on): Likewise.
39700         * modules/vasprintf-posix (Depends-on): Likewise.
39701         * modules/vfprintf-posix (Depends-on): Likewise.
39702         * modules/vsnprintf-posix (Depends-on): Likewise.
39703         * modules/vsprintf-posix (Depends-on): Likewise.
39704         * lib/frexp.c: Include isnand.h instead of isnan.h.
39705         (ISNAN): Set to isnand instead of isnan.
39706         * lib/isfinite.c: Include isnand.h instead of isnan.h.
39707         (gl_isfinited): Use isnand instead of isnan.
39708         * lib/signbitd.c: Include isnand.h instead of isnan.h.
39709         (gl_signbitd): Use isnand instead of isnan.
39710         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
39711         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
39712         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
39713         (main): Use isnand instead of isnan.
39714         * tests/test-round1.c: Include isnand.h.
39715         (main): Use isnand instead of isnan.
39716         * tests/test-round2.c: Include isnand.h instead of isnan.h.
39717         (ISNAN): Set to isnand instead of isnan.
39718         * tests/test-trunc1.c: Include isnand.h.
39719         (main): Use isnand instead of isnan.
39720         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
39721         (equal): Use isnand instead of isnan.
39722         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
39723         isnand-nolibm.
39724         * NEWS: Mention the change.
39725
39726 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
39727             Bruno Haible  <bruno@clisp.org>
39728
39729         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
39730         the GCC builtins for signbits are present and set
39731         REPLACE_SIGNBIT_USING_GCC if so.
39732         * lib/math.in.h (signbit): Define using GCC builtins if
39733         REPLACE_SIGNBIT_USING_GCC is set.
39734         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
39735         REPLACE_SIGNBIT_USING_GCC.
39736         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
39737
39738 2008-01-25  Jim Meyering  <meyering@redhat.com>
39739
39740         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
39741         * lib/poll.c: Include <config.h>, not "config.h".
39742         * tests/test-getaddrinfo.c: Likewise.
39743
39744 2008-01-25  Simon Josefsson  <simon@josefsson.org>
39745
39746         * modules/sockets-tests: New file.
39747
39748 2008-01-24  Simon Josefsson  <simon@josefsson.org>
39749
39750         * modules/sockets: New module, can be used to call WSA_Startup and
39751         WSA_Cleanup when needed.
39752
39753         * lib/sockets.h, lib/sockets.c: New files.
39754
39755         * m4/sockets.m4: New file.
39756
39757         * tests/test-sockets.c: New file.
39758
39759 2008-01-19  Bruno Haible  <bruno@clisp.org>
39760
39761         * doc/posix-headers: Renamed from doc/headers.
39762         * doc/posix-functions: Renamed from doc/functions.
39763         * doc/gnulib.texi: Update.
39764
39765 2008-01-19  Bruno Haible  <bruno@clisp.org>
39766
39767         * doc/glibc-functions/strcasestr.texi: Include contents of
39768         doc/functions/strcasestr.texi, fixing the list of platforms.
39769         * doc/functions/strcasestr.texi: Remove file.
39770
39771 2008-01-19  Bruno Haible  <bruno@clisp.org>
39772
39773         * doc/glibc-functions/memmem.texi: Include contents of
39774         doc/functions/memmem.texi.
39775         * doc/functions/memmem.texi: Remove file.
39776
39777 2008-01-18  Bruno Haible  <bruno@clisp.org>
39778
39779         * doc/glibc-functions/*.texi: New files.
39780         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
39781         to use the new files.
39782
39783 2008-01-17  Bruno Haible  <bruno@clisp.org>
39784
39785         * tests/test-gethostname.c (main): Fix printf statement.
39786
39787 2008-01-17  Simon Josefsson  <simon@josefsson.org>
39788
39789         * modules/gethostname-tests: New file.
39790
39791         * tests/test-gethostname.c: New file.
39792
39793 2008-01-17  Simon Josefsson  <simon@josefsson.org>
39794
39795         * lib/gethostname.c: Include string.h unconditionally, strncpy is
39796         used by the UNAME case.  Reported by Bruno Haible
39797         <bruno@clisp.org>.
39798
39799 2008-01-17  Eric Blake  <ebb9@byu.net>
39800
39801         Convert c-strcasestr to be more efficient.
39802         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
39803         (Depends-on): Add c-strcase, remove malloca, strnlen.
39804         * tests/test-c-strcasestr.c (main): Enhance test.
39805         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
39806
39807 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
39808
39809         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
39810         Use it in creating po/Makevars.
39811
39812 2008-01-15  Simon Josefsson  <simon@josefsson.org>
39813
39814         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
39815         Applications that requires it should initialize libgcrypt
39816         manually.
39817
39818 2008-01-16  Simon Josefsson  <simon@josefsson.org>
39819
39820         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
39821
39822 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
39823
39824         Fix problem with getdate on mingw32 reported by Simon Josefsson
39825         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
39826         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
39827         tzname", when deciding whether to declare tzname.
39828         * lib/strftime.c (tzname): Likewise.
39829
39830 2008-01-15  Bruno Haible  <bruno@clisp.org>
39831
39832         Work around a MacOS X 10.5 bug in frexpl().
39833         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
39834         * doc/functions/frexpl.texi: Document the bug.
39835         Reported by Elias Pipping <pipping@gentoo.org>.
39836
39837 2008-01-14  Eric Blake  <ebb9@byu.net>
39838
39839         Touch up previous patch.
39840         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
39841         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
39842
39843         Convert strcasestr module to use Two-Way algorithm.
39844         * modules/strcasestr-simple: New module, based on the old
39845         strcasestr, but with Two-Way rather than KMP.
39846         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
39847         * lib/string.in.h (rpl_strcasestr): Declare.
39848         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
39849         performance.
39850         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
39851         * modules/string (Makefile.am): Support strcasestr.
39852         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
39853         * modules/strcasestr-tests (Depends-on): Check for alarm.
39854         * tests/test-strcasestr.c: Augment test.
39855         * lib/str-two-way.h: Clean up stray macro.
39856         * NEWS: Document new module.
39857         * MODULES.html.sh (string handling): Likewise.
39858         * doc/functions/strcasestr.texi: New file.
39859         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
39860         here, since it is not a POSIX function.
39861
39862 2008-01-14  Colin Watson  <cjwatson@debian.org>
39863             Bruno Haible  <bruno@clisp.org>
39864
39865         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
39866         works fine; if not, set REPLACE_STRSIGNAL.
39867         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
39868         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
39869         REPLACE_STRSIGNAL.
39870         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
39871         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
39872         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
39873
39874 2008-01-14  Bruno Haible  <bruno@clisp.org>
39875
39876         * modules/strsignal (Include): Change to <string.h>.
39877
39878 2008-01-14  Colin Watson  <cjwatson@debian.org>
39879
39880         * modules/argp (Notice): Add a notice recommending to change
39881         XGETTEXT_OPTIONS.
39882         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
39883
39884 2008-01-13  Colin Watson  <cjwatson@debian.org>
39885
39886         * modules/strsignal-tests: New file.
39887         * tests/test-strsignal.c: New file.
39888
39889         * lib/strsignal.c: New file, from glibc with modifications.
39890         * lib/siglist.h: New file, from glibc with modifications.
39891         * lib/string.in.h (strsignal): New declaration.
39892         * m4/strsignal.m4: New file.
39893         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
39894         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
39895         * modules/strsignal: New file.
39896         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
39897         HAVE_DECL_STRSIGNAL.
39898
39899 2008-01-13  Bruno Haible  <bruno@clisp.org>
39900
39901         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
39902         locale encoding is not ASCII. Needed for OpenBSD 4.0.
39903         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
39904         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
39905
39906 2008-01-13  Bruno Haible  <bruno@clisp.org>
39907
39908         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
39909         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
39910         * lib/argp.h (__attribute__): Likewise.
39911         * lib/c-stack.c (__attribute__): Likewise.
39912         * lib/error.h (__attribute__): Likewise.
39913         * lib/fts.c (__attribute__): Likewise.
39914         * lib/openat.h (__attribute__): Likewise.
39915         * lib/stdio.in.h (__attribute__): Likewise.
39916         * lib/string.in.h (__attribute__): Likewise.
39917         * lib/utimens.c (__attribute__): Likewise.
39918         * lib/vasnprintf.h (__attribute__): Likewise.
39919         * lib/xalloc.h (__attribute__): Likewise.
39920         * lib/xprintf.h (__attribute__): Likewise.
39921         * lib/xstrtol.h (__attribute__): Likewise.
39922         * lib/xvasprintf.h (__attribute__): Likewise.
39923
39924 2008-01-12  Bruno Haible  <bruno@clisp.org>
39925
39926         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
39927         * doc/glibc-headers/a.out.texi: New file.
39928         * doc/glibc-headers/aliases.texi: New file.
39929         * doc/glibc-headers/alloca.texi: New file.
39930         * doc/glibc-headers/ar.texi: New file.
39931         * doc/glibc-headers/argp.texi: New file.
39932         * doc/glibc-headers/argz.texi: New file.
39933         * doc/glibc-headers/byteswap.texi: New file.
39934         * doc/glibc-headers/crypt.texi: New file.
39935         * doc/glibc-headers/endian.texi: New file.
39936         * doc/glibc-headers/envz.texi: New file.
39937         * doc/glibc-headers/err.texi: New file.
39938         * doc/glibc-headers/error.texi: New file.
39939         * doc/glibc-headers/execinfo.texi: New file.
39940         * doc/glibc-headers/fpu_control.texi: New file.
39941         * doc/glibc-headers/fstab.texi: New file.
39942         * doc/glibc-headers/fts.texi: New file.
39943         * doc/glibc-headers/getopt.texi: New file.
39944         * doc/glibc-headers/ieee754.texi: New file.
39945         * doc/glibc-headers/ifaddrs.texi: New file.
39946         * doc/glibc-headers/libintl.texi: New file.
39947         * doc/glibc-headers/mcheck.texi: New file.
39948         * doc/glibc-headers/mntent.texi: New file.
39949         * doc/glibc-headers/obstack.texi: New file.
39950         * doc/glibc-headers/paths.texi: New file.
39951         * doc/glibc-headers/printf.texi: New file.
39952         * doc/glibc-headers/pty.texi: New file.
39953         * doc/glibc-headers/resolv.texi: New file.
39954         * doc/glibc-headers/shadow.texi: New file.
39955         * doc/glibc-headers/sysexits.texi: New file.
39956         * doc/glibc-headers/ttyent.texi: New file.
39957
39958 2008-01-12  Jim Meyering  <meyering@redhat.com>
39959
39960         announce-gen: emit Gnulib's git-based version string.
39961         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
39962         New option --gnulib-version=V, where V is expected to be
39963         the output of running git describe in the gnulib directory.
39964         (get_tool_versions): Request feedback on xdelta.  I suspect it's
39965         not useful, and plan to stop publishing an xdelta file with each
39966         coreutils release.
39967
39968         * build-aux/announce-gen: Also check for lzma-compressed files.
39969
39970 2008-01-11  Bruno Haible  <bruno@clisp.org>
39971
39972         * tests/test-memmem.c (main): Increase maximum allowed time.
39973         * tests/test-strstr.c (main): Likewise.
39974
39975 2008-01-11  Bruno Haible  <bruno@clisp.org>
39976
39977         * doc/functions/memmem.texi: Add more precisions about platforms.
39978         * doc/functions/strstr.texi: Likewise.
39979
39980 2008-01-10  Eric Blake  <ebb9@byu.net>
39981
39982         * m4/strstr.m4: Delete cruft from copy-n-paste.
39983         Reported by Bruno Haible.
39984
39985 2008-01-10  Bruno Haible  <bruno@clisp.org>
39986
39987         Make c-strstr rely on strstr.
39988         * lib/c-strstr.c: Don't include str-kmp.h.
39989         (c_strstr): Define in terms of strstr.
39990         * modules/c-strstr (Files): Remove lib/str-kmp.h.
39991         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
39992
39993 2008-01-10  Bruno Haible  <bruno@clisp.org>
39994
39995         * doc/gnulib.texi (String Functions in C Locale): New section.
39996         * doc/c-ctype.texi: New file.
39997         * doc/c-strcase.texi: New file.
39998         * doc/c-strcaseeq.texi: New file.
39999         * doc/c-strcasestr.texi: New file.
40000         * doc/c-strstr.texi: New file.
40001         * doc/c-strtod.texi: New file.
40002         * doc/c-strtold.texi: New file.
40003
40004 2008-01-10  Eric Blake  <ebb9@byu.net>
40005
40006         * lib/relocatable.h: Fix a comment.
40007
40008 2008-01-10  Eric Blake  <ebb9@byu.net>
40009
40010         Share two-way algorithm.
40011         * lib/str-two-way.h: New file, merged from...
40012         * lib/memmem.c: ...here...
40013         * lib/strstr.c: ...and here.
40014         * modules/memmem (Files): Use it.
40015         * modules/strstr (Files): Likewise.
40016
40017         Avoid quadratic strstr implementations.
40018         * lib/strstr.c: New file.
40019         * m4/strstr.m4: Likewise.
40020         * modules/strstr: Likewise.
40021         * modules/strstr-tests: Likewise.
40022         * tests/test-strstr.c: Likewise.
40023         * lib/string.in.h (rpl_strstr): Declare.
40024         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
40025         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
40026         * modules/string (Makefile.am): Likewise.
40027         * MODULES.html.sh (string handling): Mention new module.
40028         * doc/functions/strstr.texi (strstr): Document the bug.
40029
40030 2008-01-10  Bruno Haible  <bruno@clisp.org>
40031
40032         * lib/relocatable.h (relocate): State whether result is freshly
40033         allocated or not.
40034         * lib/relocatable.c (relocate): Return a freshly allocated string
40035         instead of a pointer to a privately held string.
40036         Reported by Sylvain Beucler <beuc@gnu.org>.
40037
40038 2008-01-10  Colin Watson  <cjwatson@debian.org>
40039
40040         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
40041         s/S_ISNLK/S_ISLNK/.
40042
40043 2008-01-09  Bruno Haible  <bruno@clisp.org>
40044
40045         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
40046         and other files.
40047         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
40048         if it's only a guess.
40049         * modules/memmem: Simplify by depending on memmem-simple.
40050
40051 2008-01-09  Bruno Haible  <bruno@clisp.org>
40052
40053         Work around OpenBSD 4.0 tdelete() bug.
40054         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
40055         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
40056         macros and don't redefine the enum values.
40057         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
40058         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
40059         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
40060
40061 2008-01-09  Bruno Haible  <bruno@clisp.org>
40062
40063         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
40064         (main): Don't perform the tests if setlocale did not install a UTF-8
40065         locale. Needed on OpenBSD 4.0.
40066         * modules/wcwidth-tests (Depends-on): Add localcharset.
40067
40068 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
40069
40070         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
40071         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
40072         * NEWS: announce this.
40073         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
40074
40075 2008-01-09  Simon Josefsson  <simon@josefsson.org>
40076         and Eric Blake  <ebb9@byu.net>
40077
40078         Add memmem-simple module.
40079         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
40080         (gl_FUNC_MEMMEM): Separate performance from presence checks.
40081         * modules/memmem-simple: New file.
40082         * modules/memmem (Description): Tweak.
40083         * MODULES.html.sh (string handling): Mention new module.
40084         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
40085         addressed by memmem-simple.
40086         * NEWS: Document the difference.
40087
40088 2008-01-09  Eric Blake  <ebb9@byu.net>
40089
40090         Give gcc some memmem optimization hints.
40091         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
40092         (strcasestr): Declare as pure.
40093         * modules/memmem (Maintainer): Claim my implementation.
40094
40095 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40096
40097         Support AIX 6.1 and higher.
40098         * build-aux/config.libpath: Likewise.
40099         * build-aux/config.rpath: Likewise.
40100
40101 2008-01-08  Jim Meyering  <meyering@redhat.com>
40102             Bruno Haible  <bruno@clisp.org>
40103
40104         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
40105         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
40106         Reported by Peter Fales in
40107         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
40108
40109 2008-01-08  Bruno Haible  <bruno@clisp.org>
40110
40111         * modules/unictype/category-of (Depends-on): Add
40112         unictype/category-none.
40113         * modules/unictype/category-and-tests (Depends-on): Add
40114         unictype/category-{L,N,Lu,Nd}.
40115         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
40116         * modules/unictype/category-or-tests (Depends-on): Add
40117         unictype/category-{L,N}.
40118         * modules/unictype/category-name-tests (Depends-on): Add
40119         unictype/category-{Z,Nl}.
40120         Reported by Simon Josefsson.
40121
40122 2008-01-08  Bruno Haible  <bruno@clisp.org>
40123
40124         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
40125         convention better.
40126         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
40127         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
40128         Reported by Peter Miller <millerp@canb.auug.org.au>.
40129
40130 2008-01-08  Eric Blake  <ebb9@byu.net>
40131
40132         Rewrite memmem to guarantee linear complexity without malloc.
40133         * lib/memmem.c (memmem): Use Two-Way rather than
40134         Knuth-Morris-Pratt, to allow O(1) space usage.
40135         (critical_factorization, two_way_short_needle)
40136         (two_way_long_needle): New functions.
40137         (knuth_morris_pratt): Delete.
40138         * modules/memmem (Depends-on): No longer need malloca or stdbool.
40139         Add stdint.
40140         * tests/test-memmem.c (main): Add tests for periodic needle and
40141         sublinear performance.
40142         * doc/functions/memmem.texi (memmem): Document other deficiencies
40143         in cygwin and older glibc.
40144
40145 2008-01-08  Bruno Haible  <bruno@clisp.org>
40146
40147         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
40148         augmentation.
40149
40150 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
40151
40152         Add a configure time option: --disable-acl.
40153         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
40154         AC_ARG_ENABLE(acl).
40155
40156 2008-01-06  Simon Josefsson  <simon@josefsson.org>
40157
40158         * tests/test-localename.c: Don't include obsolete "setenv.h".
40159
40160         * modules/localename-tests (Depends-on): Need unsetenv.
40161
40162 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40163
40164         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
40165
40166 2008-01-06  Colin Watson  <cjwatson@debian.org>
40167
40168         * users.txt: Add man-db.
40169
40170 2008-01-07  Bruno Haible  <bruno@clisp.org>
40171
40172         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
40173         previous section name.
40174
40175 2008-01-07  Bruno Haible  <bruno@clisp.org>
40176
40177         * lib/progname.c (set_program_name): Don't strip off a leading
40178         "lt-" prefix outside a .libs directory.
40179         Suggested by Paul Eggert.
40180
40181 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
40182             Bruno Haible  <bruno@clisp.org>
40183
40184         Improve memory cleanup in 'relocatable' module.
40185         * lib/relocatable.h (compute_curr_prefix): Change return type to
40186         'char *'.
40187         * lib/relocatable.c (compute_curr_prefix): Change return type to
40188         'char *'. Free curr_installdir after use.
40189         (relocate): Free curr_prefix_better after use.
40190         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
40191
40192 2008-01-01  Bruno Haible  <bruno@clisp.org>
40193
40194         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
40195         failure on older glibc systems.
40196         Reported by Peter Fales <psfales@alcatel-lucent.com>.
40197
40198 2008-01-05  Eric Blake  <ebb9@byu.net>
40199
40200         Avoid quadratic system memmem.
40201         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
40202         Reported by Ralf Wildenhues.
40203
40204         Fix memmem test for mingw.
40205         * modules/memmem-tests (configure.ac): Check for alarm.
40206         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
40207         it.
40208         * doc/functions/memmem.texi: New file.
40209         * doc/gnulib.texi (Function Substitutes): Add memmem.
40210         Reported by Bruno Haible.
40211
40212 2008-01-04  Bruno Haible  <bruno@clisp.org>
40213
40214         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
40215         Require gl_HEADER_STRINGS_H_DEFAULTS, not
40216         gl_HEADER_STRING_H_DEFAULTS.
40217
40218 2008-01-04  Eric Blake  <ebb9@byu.net>
40219
40220         Shorten duration of memmem test.
40221         * tests/test-memmem.c (main): Use alarm to declare failure if test
40222         is taking too long.
40223         Reported by Ralf Wildenhues.
40224
40225 2007-12-21  Simon Josefsson  <simon@josefsson.org>
40226
40227         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
40228         string, needed by strerror.
40229
40230 2008-01-03  Colin Watson  <cjwatson@debian.org>
40231             Bruno Haible  <bruno@clisp.org>
40232
40233         * doc/gnulib-tool.texi (Localization): New section.
40234
40235 2008-01-02  Bruno Haible  <bruno@clisp.org>
40236
40237         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
40238         variables to 'unsigned char *' type.
40239         Reported by Paul Eggert.
40240
40241 2008-01-02  Jim Meyering  <jim@meyering.net>
40242
40243         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
40244
40245 2007-12-31  Jim Meyering  <jim@meyering.net>
40246
40247         Avoid use of private FTS type name.
40248         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
40249
40250 2007-12-30  Karl Berry  <karl@gnu.org>
40251
40252         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
40253         work around defect in Texinfo and/or the standalone Info browser.
40254
40255 2007-12-30  Bruno Haible  <bruno@clisp.org>
40256
40257         Unify 5 copies of the KMP code.
40258         * lib/str-kmp.h: New file.
40259         * lib/c-strcasestr.c: Include str-kmp.h.
40260         (knuth_morris_pratt): Remove function.
40261         (c_strcasestr): Update.
40262         * lib/c-strstr.c: Include str-kmp.h.
40263         (knuth_morris_pratt): Remove function.
40264         (c_strcasestr): Update.
40265         * lib/mbscasestr.c: Include str-kmp.h.
40266         (knuth_morris_pratt_unibyte): Remove function.
40267         * lib/mbsstr.c: Include str-kmp.h.
40268         (knuth_morris_pratt_unibyte): Remove function.
40269         * lib/strcasestr.c: Include str-kmp.h.
40270         (knuth_morris_pratt): Remove function.
40271         (strcasestr): Update.
40272         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
40273         * modules/c-strstr (Files): Likewise.
40274         * modules/mbscasestr (Files): Likewise.
40275         * modules/mbsstr (Files): Likewise.
40276         * modules/strcasestr (Files): Likewise.
40277         Suggested by Paul Eggert.
40278
40279 2007-12-30  Bruno Haible  <bruno@clisp.org>
40280
40281         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
40282         defined.
40283
40284 2007-12-30  Bruno Haible  <bruno@clisp.org>
40285
40286         * lib/xmalloca.h: Include xalloc.h.
40287         (xnmalloca): New macro.
40288
40289 2007-12-30  Bruno Haible  <bruno@clisp.org>
40290
40291         * lib/malloca.h (nmalloca): New macro.
40292         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
40293         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
40294         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
40295         knuth_morris_pratt_multibyte): Likewise.
40296         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
40297         knuth_morris_pratt_multibyte): Likewise.
40298         * lib/memmem.c (knuth_morris_pratt): Likewise.
40299         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
40300
40301 2007-12-25  Bruno Haible  <bruno@clisp.org>
40302
40303         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
40304         * lib/glob.c: Don't include openat.h.
40305         (link_exists2_p): Add back the code that deals with the
40306         !GLOB_ALTDIRFUNC case.
40307         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
40308         let it do the filename concatenation.
40309         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
40310         * modules/glob (Depends-on): Remove openat.
40311
40312 2007-12-31  Bruno Haible  <bruno@clisp.org>
40313
40314         * modules/dirfd (License): Change to LGPLv2+.
40315         Approved by Jim Meyering.
40316
40317 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
40318
40319         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
40320         when multiplying M by sizeof (size_t).
40321
40322 2007-12-10  Martin Lambers  <marlam@marlam.de>
40323
40324         Override getpagesize on mingw.
40325         * lib/getpagesize.c: New file.
40326         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
40327         * modules/getpagesize (Files): Add lib/getpagesize.c.
40328         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
40329         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
40330         REPLACE_GETPAGESIZE.
40331         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
40332
40333 2007-12-25  Bruno Haible  <bruno@clisp.org>
40334
40335         * modules/localcharset (Notice): New field.
40336         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
40337         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
40338
40339 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
40340             Bruno Haible  <bruno@clisp.org>
40341
40342         Avoid using the syntax symbol() in formatted documentation.
40343         * MODULES.html.sh (func_module): When replacing symbol() with a
40344         hyperlink, remove the parentheses. Show an error if some remain.
40345         Recognize and render the '...' syntax.
40346         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
40347         Rework. Add paragraph about GCC's inlining.
40348         * doc/alloca.texi: Likewise.
40349         * doc/error.texi: Remove parentheses from symbol reference.
40350         * doc/gnulib-intro.texi: Likewise.
40351         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
40352         * modules/fnmatch (Description): Reword to say "the ... function".
40353         * modules/full-read (Description): Likewise.
40354         * modules/full-write (Description): Likewise.
40355         * modules/safe-read (Description): Likewise.
40356         * modules/safe-write (Description): Likewise.
40357         * modules/strchrnul (Description): Likewise.
40358         * modules/trim (Description): Likewise.
40359         * modules/error (Description): Remove parentheses from symbol
40360         references.
40361         * modules/verror (Description): Likewise.
40362         Reported by Karl Berry.
40363
40364 2007-12-25  Bruno Haible  <bruno@clisp.org>
40365
40366         Fixup after 2007-10-16 commit.
40367         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
40368
40369 2007-12-24  Bruno Haible  <bruno@clisp.org>
40370
40371         Make --enable-relocatable work with DESTDIR.
40372         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
40373         to compute installdir from destprog.
40374         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
40375         also set the RELOC_DESTDIR variable.
40376         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
40377
40378 2007-12-24  Bruno Haible  <bruno@clisp.org>
40379
40380         Fix link error due to xalloc_die().
40381         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
40382         of xreadlink.
40383         * lib/relocwrapper.c: Update comments.
40384         * build-aux/install-reloc: Remove xreadlink.c from file list.
40385         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
40386         xreadlink.c.
40387         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
40388
40389 2007-12-24  Bruno Haible  <bruno@clisp.org>
40390
40391         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
40392         * lib/setenv.h: Remove file.
40393         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
40394         lib/setenv.h.
40395         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
40396         (Depends-on): Add stdlib.
40397         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
40398         gl_FUNC_UNSETENV.
40399         (Include): Replace setenv.h with <stdlib.h>.
40400         * modules/unsetenv: New file.
40401         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
40402         * lib/unsetenv.c: Include <stdlib.h> first.
40403         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
40404         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
40405         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
40406         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
40407         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
40408         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
40409         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
40410         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
40411         * doc/functions/unsetenv.texi: Update.
40412         * modules/xsetenv (Depends-on): Add unsetenv.
40413         * modules/getdate (Depends-on): Likewise.
40414         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
40415         * lib/xsetenv.c: Don't include setenv.h.
40416         * lib/getdate.y: Likewise.
40417         * lib/relocwrapper.c: Likewise.
40418         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
40419         (Depends-on): Add stdlib.
40420         * NEWS: Mention the changes.
40421         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
40422
40423 2007-12-23  Bruno Haible  <bruno@clisp.org>
40424
40425         * lib/memmem.c (memmem): Use lowercase variable names. Tab
40426         indentation.
40427
40428 2007-12-23  Bruno Haible  <bruno@clisp.org>
40429
40430         * lib/c-strcasestr.c: Add more comments.
40431         * lib/c-strstr.c: Likewise.
40432         * lib/mbscasestr.c: Likewise.
40433         * lib/mbsstr.c: Likewise.
40434         * lib/strcasestr.c: Likewise.
40435         * lib/memmem.c: Likewise.
40436
40437 2007-12-23  Bruno Haible  <bruno@clisp.org>
40438
40439         * tests/test-memmem.c: Include <string.h> first.
40440
40441 2007-12-22  Bruno Haible  <bruno@clisp.org>
40442
40443         * gnulib-tool (func_create_testdir): Change $auxdir while generating
40444         the contents of $testsbase.
40445         Reported by Ralf Wildenhues.
40446
40447 2007-12-22  Bruno Haible  <bruno@clisp.org>
40448
40449         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
40450         two variables local_ldadd_before, local_ldadd_last.
40451
40452 2007-12-20  Eric Blake  <ebb9@byu.net>
40453
40454         Work around circular library issue when cross-compiling.
40455         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
40456         that progname.o does not need to pull in rpl_memcmp.
40457
40458 2007-12-19  Eric Blake  <ebb9@byu.net>
40459
40460         Fix memmem to avoid O(n^2) worst-case complexity.
40461         * lib/memmem.c (knuth_morris_pratt): New function.
40462         (memmem): Use it if first few naive iterations fail.
40463         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
40464         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
40465         * modules/memchr (License): Likewise.
40466         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
40467         malloca.
40468         * tests/test-memmem.c: Rewrite, borrowing ideas from
40469         test-mbsstr1.c; the old version wouldn't even compile!
40470         * modules/memmem-tests: New file.
40471         * lib/string.in.h (rpl_memmem): Add declaration.
40472         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
40473         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
40474         REPLACE_MEMMEM.
40475
40476 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
40477
40478         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
40479         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
40480         before any system include files, and undef after them all.  This
40481         should fix a problem on VMS reported by John E. Malmberg in
40482         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
40483
40484 2007-12-17  Eric Blake  <ebb9@byu.net>
40485
40486         Revert addition of verify, for BSD/OS.
40487         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
40488         can't handle large files, for the sake of obsolete platforms.
40489         * modules/fseeko (Depends-on): Remove verify.
40490         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
40491         * doc/functions/ftello.texi (ftello): Likewise.
40492         * doc/functions/fgetpos.texi (fgetpos): Likewise.
40493         Reported by Larry Jones.
40494
40495 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
40496
40497         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
40498         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
40499
40500 2007-12-17  Jim Meyering  <meyering@redhat.com>
40501
40502         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
40503         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
40504         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
40505         * modules/getcwd (Depends-on): Add openat.
40506         Reported by Petr Salinger.
40507
40508 2007-12-17  Bruno Haible  <bruno@clisp.org>
40509
40510         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
40511         avoid a segmentation fault of the configure test on x86_64 systems.
40512
40513 2007-12-15  Jim Meyering  <meyering@redhat.com>
40514
40515         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
40516
40517 2007-12-13  Eric Blake  <ebb9@byu.net>
40518
40519         Another fseek test.
40520         * tests/test-fseek.c (main): Also test ungetc handling.
40521         * tests/test-fseeko.c (main): Likewise.
40522         * modules/fseeko (Depends-on): Add verify.
40523         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
40524         large.
40525         Reported by Larry Jones.
40526
40527         Fix fseeko on mingw.
40528         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
40529         seek.
40530
40531         Beef up fseek tests.
40532         * tests/test-fseek.c (main): Also test eof handling.
40533         * tests/test-fseeko.c (main): Likewise.
40534         Reported by Larry Jones.
40535
40536 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
40537
40538         Fix fseeko on BSD-based platforms.
40539         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
40540         successful seek.
40541
40542 2007-12-12  Eric Blake  <ebb9@byu.net>
40543
40544         Allow circular dependency of separate libtests.a
40545         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
40546         when use_libtests.
40547
40548 2007-12-11  Eric Blake  <ebb9@byu.net>
40549
40550         Fix bug with -0.0L in previous patch.
40551         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
40552         * tests/test-isnan.c (main): Also test on zeroes.
40553         * tests/test-isnanf.c (main): Likewise.
40554         * tests/test-isnanl.h (main): Likewise.
40555
40556         Detect pseudo-denormals on x86 even when cross-compiling.
40557         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
40558         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
40559         invalid bit patterns that happen to satisfy ==.
40560
40561         Avoid link failures with separate libtests.a.
40562         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
40563         last, to satisfy circular dependencies.
40564
40565 2007-12-11  Eric Blake  <ebb9@byu.net>
40566         and Bruno Haible  <bruno@clisp.org>
40567
40568         Fix OpenBSD 4.0 <float.h> handling of long double.
40569         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
40570         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
40571         * doc/headers/float.texi (float.h): Document OpenBSD bug.
40572
40573 2007-12-11  Jim Meyering  <meyering@redhat.com>
40574
40575         * users.txt: Add libvirt.
40576
40577         Support versions of autoconf prior to 2.59c.
40578         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
40579         if it is not already defined.
40580
40581 2007-12-09  Bruno Haible  <bruno@clisp.org>
40582
40583         Let 'gnulib-tool --import' collect sources needed for the tests in
40584         tests/ rather than in lib/.
40585         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
40586         argument. If true, add rules to generate libtests.a, and put libtests.a
40587         into $(LDADD). Consider source files in subdirectories and set
40588         uses_subdirs.
40589         (func_emit_initmacro_start, func_emit_initmacro_end,
40590         func_emit_initmacro_done): Pass all arguments explicitly.
40591         (func_import): Determine two module lists main_modules,
40592         testsrelated_modules. Determine use_libtests. Determine two variables
40593         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
40594         instead of just sed_transform_lib_file. Determine two variables
40595         main_files and testsrelated_files. Compute 'files' as the union of
40596         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
40597         func_add_or_update. In the generated gnulib-comp.m4, collect the
40598         object files for tests/ in different variables than those for lib/.
40599         Substitute LIBTESTS_LIBDEPS.
40600         (func_create_testdir): Combine the uses_subdirs results from
40601         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
40602
40603 2007-12-09  Bruno Haible  <bruno@clisp.org>
40604
40605         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
40606         the build-aux directory.
40607
40608 2007-12-09  Bruno Haible  <bruno@clisp.org>
40609
40610         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
40611         introduced on 2006-09-09.
40612
40613 2007-12-07  Jim Meyering  <meyering@redhat.com>
40614
40615         Let these macros work also with autoconf-2.59.
40616         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
40617         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
40618         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
40619
40620 2007-12-06  Jim Meyering  <meyering@redhat.com>
40621
40622         Avoid a configure-time syntax error in gl_FUNC_ACL.
40623         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
40624         function in each branch, before testing the cache variable.
40625
40626 2007-12-04  Eric Blake  <ebb9@byu.net>
40627
40628         Make scripts executable.
40629         * build-aux/config.guess: Add execute permissions.
40630         * build-aux/config.sub: Likewise.
40631         * build-aux/gendocs.sh: Likewise.
40632
40633         Fix frexp on mingw.
40634         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
40635         cross-compiling.
40636         * doc/functions/frexp.texi (frexp): Document the bug.
40637
40638         Make cygwin fseeko check more reliable.
40639         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
40640         version numbers, rather than unrelated feature check.
40641         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
40642         * doc/functions/ftello.texi (ftello): Likewise.
40643         Reported by Bruno Haible.
40644
40645         * m4/strerror.m4: Bump version number.
40646
40647 2007-12-03  Bruno Haible  <bruno@clisp.org>
40648
40649         * doc/functions/mprotect.texi: Mention the mingw problem.
40650
40651 2007-12-03  Eric Blake  <ebb9@byu.net>
40652
40653         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
40654         REPLACE_STRERROR is initialized before this macro.
40655
40656 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
40657
40658         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
40659         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
40660         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
40661         put -lsec in even for programs other than 'ls'.  This fixes a problem
40662         for gettext reported by Bruno Haible in
40663         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
40664         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
40665         Add support for Solaris 10.  This isn't efficient, but should get the
40666         job done for now.
40667
40668 2007-12-03  James Youngman  <jay@gnu.org>
40669
40670         * doc/regexprops-generic.texi: change "an close-group" to "a
40671         close-group" and "illegal" to "not allowed".
40672
40673 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40674
40675         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
40676         pr_byname.h. Needed for the rare case when the maintainer has done
40677         "make maintainer-clean" in the source directory and then attempts a
40678         build outside the source directory.
40679         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
40680         scripts_byname.h.
40681
40682 2007-12-02  Martin Lambers <marlam@marlam.de>
40683             Bruno Haible  <bruno@clisp.org>
40684
40685         * lib/getpagesize.h: Remove file.
40686         * lib/unistd.in.h: Include declaration of getpagesize here.
40687         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
40688         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
40689         HAVE_SYS_PARAM_H.
40690         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
40691         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
40692         * modules/getpagesize (Files): Remove lib/getpagesize.h.
40693         (Depends-on): Add unistd.
40694         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
40695         (Include): Use <unistd.h> instead of getpagesize.h.
40696         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
40697         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
40698         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
40699         gl_GETPAGESIZE invocation, already handled by module dependency.
40700         * lib/pagealign_alloc.c: Don't include getpagesize.h.
40701
40702 2007-12-02  Bruno Haible  <bruno@clisp.org>
40703
40704         * modules/strings-tests: New file.
40705         * tests/test-strings.c: New file.
40706
40707         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
40708         * lib/strings.in.h: New file.
40709         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
40710         * m4/strings_h.m4: New file.
40711         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
40712         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
40713         * modules/strings: New file.
40714         * modules/string (Makefile.am): Update.
40715         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
40716         Reported by Karl Berry.
40717
40718 2007-12-01  Eric Blake  <ebb9@byu.net>
40719
40720         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
40721         accomodate fix in cygwin 1.5.25.
40722
40723 2007-12-01  Jim Meyering  <meyering@redhat.com>
40724
40725         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
40726         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
40727         that would inhibit utf8-optimization of a regexp containing line-
40728         or buffer-anchors, e.g., `^', `$'.
40729
40730 2007-11-30  Bruno Haible  <bruno@clisp.org>
40731
40732         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
40733         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
40734         glthread_recursive_lock_init.
40735         * lib/lock.c (glthread_recursive_lock_init)
40736         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
40737         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
40738
40739 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
40740
40741         New function qset_acl, like set_acl but with syscall semantics.
40742         * lib/acl.h (qset_acl): New decl.
40743         * lib/acl.c (qset_acl): New function.
40744         (set_acl): Use new function.  Use more-consistent diagnostics.
40745
40746 2007-11-28  Jim Meyering  <meyering@redhat.com>
40747
40748         * modules/physmem (License): Change from GPL to LGPLv2+.
40749
40750 2007-11-26  Bruno Haible  <bruno@clisp.org>
40751
40752         * lib/vasnprintf.c (decode_long_double): Don't abort if the
40753         'long double' type has excess precision.
40754         Reported by Jim Meyering in
40755         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
40756
40757 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40758
40759         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
40760         Sync from <http://gnu.org/licenses>.
40761         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
40762         with license text from same location.
40763         * doc/maintain.texi, doc/standards.texi:  Sync from
40764         <http://savannah.gnu.org/projects/gnustandards>.
40765
40766 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
40767         and Jim Meyering  <meyering@redhat.com>
40768
40769         Adjust getdate' grammar to accept a slightly more regular language.
40770         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
40771         Before, the former was rejected.
40772         * lib/getdate.y (digits_to_date_time): New function, factored
40773         out of ...
40774         (number): ...here.  Just call digits_to_date_time.
40775         (hybrid): New non-terminal to handle an <unsigned number,
40776         signed relative offset> sequence consistently.
40777
40778 2007-11-18  Jim Meyering  <meyering@redhat.com>
40779
40780         Pull my changes from coreutils:
40781         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
40782         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
40783         use of $gnulib_tool_option_extras, so that it's separated from the
40784         preceding argument.
40785
40786         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
40787         * build-aux/bootstrap (cp_mark_as_generated): Create any required
40788         parent destination directories before copying a file into place.
40789
40790 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
40791
40792         bootstrap: work also with 4-argument variant of AC_INIT
40793         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
40794
40795 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
40796
40797         Port test-getaddrinfo to Solaris.
40798         Problem reported by Bruno Haible in
40799         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
40800         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
40801         explanation of setting 'hints'.
40802         Don't reject an implementation merely because it returns EAI_SERVICE.
40803         (EAI_SERVICE): Define to 0 if not defined.
40804
40805 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
40806
40807         The license of gnu-make and posix-shell is now "GPLed build tool".
40808         * modules/gnu-make (License): Likewise.
40809         * modules/posix-shell (License): Likewise.
40810
40811         New module posix-shell, for determining a POSIX shell
40812         or perhaps something that is close enough to a POSIX shell.
40813         * m4/posix-shell.m4: New file.
40814         * modules/posix-shell: New file.
40815
40816         * MODULES.html.sh: Mention new module.
40817
40818         New module gnu-make, for determining whether we're using GNU Make.
40819         * m4/gnu-make.m4: New file.
40820         * modules/gnu-make: New file.
40821         * MODULES.html.sh: Mention new module.
40822
40823 2007-11-14  Jim Meyering  <meyering@redhat.com>
40824
40825         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
40826         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
40827         use this macro to create a function _definition_.
40828         Remove useless "#undef ARGMATCH_DIE".
40829
40830 2007-11-14  Bruno Haible  <bruno@clisp.org>
40831
40832         * lib/config.charset: Update for OpenBSD 4.1.
40833         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
40834
40835 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
40836
40837         Document 64-bit #if problems in stdint.texi.
40838         * doc/headers/stdint.texi (stdint.h): Mention problems with
40839         64-bit-#if, and how to work around them.
40840
40841         Don't insist on 'long long int' support in the preprocessor.  It
40842         breaks too many things.  For example, PRIdMAX still uses a 'long
40843         long int' format with the latest Sun compiler, even though
40844         HAVE_LONG_LONG_INT isn't defined due to that compiler's
40845         preprocessor problem.  This causes the latest coreutils to dump
40846         core on Solaris 10 sparc with the Sun C compiler.
40847         Instead, fix the 2007-10-16 problem in a different way, by evaluating
40848         the troublesome expressions at configure-time, not at #if-time.
40849         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
40850         preprocessor.
40851         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
40852         compile-time C checks, done at 'configure'-time.
40853         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
40854         * modules/inttypes (Makefile): Substitute the new symbols that
40855         gl_INTTYPES_H now generates.
40856         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
40857
40858 2007-11-12  Bruno Haible  <bruno@clisp.org>
40859
40860         Tests for Unicode character classification functions.
40861
40862         * modules/unictype/bidicategory-byname-tests: New file.
40863         * modules/unictype/bidicategory-name-tests: New file.
40864         * modules/unictype/bidicategory-of-tests: New file.
40865         * modules/unictype/bidicategory-test-tests: New file.
40866         * modules/unictype/block-list-tests: New file.
40867         * modules/unictype/block-of-tests: New file.
40868         * modules/unictype/block-test-tests: New file.
40869         * modules/unictype/category-C-tests: New file.
40870         * modules/unictype/category-Cc-tests: New file.
40871         * modules/unictype/category-Cf-tests: New file.
40872         * modules/unictype/category-Cn-tests: New file.
40873         * modules/unictype/category-Co-tests: New file.
40874         * modules/unictype/category-Cs-tests: New file.
40875         * modules/unictype/category-L-tests: New file.
40876         * modules/unictype/category-Ll-tests: New file.
40877         * modules/unictype/category-Lm-tests: New file.
40878         * modules/unictype/category-Lo-tests: New file.
40879         * modules/unictype/category-Lt-tests: New file.
40880         * modules/unictype/category-Lu-tests: New file.
40881         * modules/unictype/category-M-tests: New file.
40882         * modules/unictype/category-Mc-tests: New file.
40883         * modules/unictype/category-Me-tests: New file.
40884         * modules/unictype/category-Mn-tests: New file.
40885         * modules/unictype/category-N-tests: New file.
40886         * modules/unictype/category-Nd-tests: New file.
40887         * modules/unictype/category-Nl-tests: New file.
40888         * modules/unictype/category-No-tests: New file.
40889         * modules/unictype/category-P-tests: New file.
40890         * modules/unictype/category-Pc-tests: New file.
40891         * modules/unictype/category-Pd-tests: New file.
40892         * modules/unictype/category-Pe-tests: New file.
40893         * modules/unictype/category-Pf-tests: New file.
40894         * modules/unictype/category-Pi-tests: New file.
40895         * modules/unictype/category-Po-tests: New file.
40896         * modules/unictype/category-Ps-tests: New file.
40897         * modules/unictype/category-S-tests: New file.
40898         * modules/unictype/category-Sc-tests: New file.
40899         * modules/unictype/category-Sk-tests: New file.
40900         * modules/unictype/category-Sm-tests: New file.
40901         * modules/unictype/category-So-tests: New file.
40902         * modules/unictype/category-Z-tests: New file.
40903         * modules/unictype/category-Zl-tests: New file.
40904         * modules/unictype/category-Zp-tests: New file.
40905         * modules/unictype/category-Zs-tests: New file.
40906         * modules/unictype/category-and-not-tests: New file.
40907         * modules/unictype/category-and-tests: New file.
40908         * modules/unictype/category-byname-tests: New file.
40909         * modules/unictype/category-name-tests: New file.
40910         * modules/unictype/category-none-tests: New file.
40911         * modules/unictype/category-of-tests: New file.
40912         * modules/unictype/category-or-tests: New file.
40913         * modules/unictype/category-test-withtable-tests: New file.
40914         * modules/unictype/combining-class-tests: New file.
40915         * modules/unictype/ctype-alnum-tests: New file.
40916         * modules/unictype/ctype-alpha-tests: New file.
40917         * modules/unictype/ctype-blank-tests: New file.
40918         * modules/unictype/ctype-cntrl-tests: New file.
40919         * modules/unictype/ctype-digit-tests: New file.
40920         * modules/unictype/ctype-graph-tests: New file.
40921         * modules/unictype/ctype-lower-tests: New file.
40922         * modules/unictype/ctype-print-tests: New file.
40923         * modules/unictype/ctype-punct-tests: New file.
40924         * modules/unictype/ctype-space-tests: New file.
40925         * modules/unictype/ctype-upper-tests: New file.
40926         * modules/unictype/ctype-xdigit-tests: New file.
40927         * modules/unictype/decimal-digit-tests: New file.
40928         * modules/unictype/digit-tests: New file.
40929         * modules/unictype/mirror-tests: New file.
40930         * modules/unictype/numeric-tests: New file.
40931         * modules/unictype/property-alphabetic-tests: New file.
40932         * modules/unictype/property-ascii-hex-digit-tests: New file.
40933         * modules/unictype/property-bidi-arabic-digit-tests: New file.
40934         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
40935         * modules/unictype/property-bidi-block-separator-tests: New file.
40936         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
40937         * modules/unictype/property-bidi-common-separator-tests: New file.
40938         * modules/unictype/property-bidi-control-tests: New file.
40939         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
40940         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
40941         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
40942         * modules/unictype/property-bidi-european-digit-tests: New file.
40943         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
40944         * modules/unictype/property-bidi-left-to-right-tests: New file.
40945         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
40946         * modules/unictype/property-bidi-other-neutral-tests: New file.
40947         * modules/unictype/property-bidi-pdf-tests: New file.
40948         * modules/unictype/property-bidi-segment-separator-tests: New file.
40949         * modules/unictype/property-bidi-whitespace-tests: New file.
40950         * modules/unictype/property-byname-tests: New file.
40951         * modules/unictype/property-combining-tests: New file.
40952         * modules/unictype/property-composite-tests: New file.
40953         * modules/unictype/property-currency-symbol-tests: New file.
40954         * modules/unictype/property-dash-tests: New file.
40955         * modules/unictype/property-decimal-digit-tests: New file.
40956         * modules/unictype/property-default-ignorable-code-point-tests: New file.
40957         * modules/unictype/property-deprecated-tests: New file.
40958         * modules/unictype/property-diacritic-tests: New file.
40959         * modules/unictype/property-extender-tests: New file.
40960         * modules/unictype/property-format-control-tests: New file.
40961         * modules/unictype/property-grapheme-base-tests: New file.
40962         * modules/unictype/property-grapheme-extend-tests: New file.
40963         * modules/unictype/property-grapheme-link-tests: New file.
40964         * modules/unictype/property-hex-digit-tests: New file.
40965         * modules/unictype/property-hyphen-tests: New file.
40966         * modules/unictype/property-id-continue-tests: New file.
40967         * modules/unictype/property-id-start-tests: New file.
40968         * modules/unictype/property-ideographic-tests: New file.
40969         * modules/unictype/property-ids-binary-operator-tests: New file.
40970         * modules/unictype/property-ids-trinary-operator-tests: New file.
40971         * modules/unictype/property-ignorable-control-tests: New file.
40972         * modules/unictype/property-iso-control-tests: New file.
40973         * modules/unictype/property-join-control-tests: New file.
40974         * modules/unictype/property-left-of-pair-tests: New file.
40975         * modules/unictype/property-line-separator-tests: New file.
40976         * modules/unictype/property-logical-order-exception-tests: New file.
40977         * modules/unictype/property-lowercase-tests: New file.
40978         * modules/unictype/property-math-tests: New file.
40979         * modules/unictype/property-non-break-tests: New file.
40980         * modules/unictype/property-not-a-character-tests: New file.
40981         * modules/unictype/property-numeric-tests: New file.
40982         * modules/unictype/property-other-alphabetic-tests: New file.
40983         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
40984         * modules/unictype/property-other-grapheme-extend-tests: New file.
40985         * modules/unictype/property-other-id-continue-tests: New file.
40986         * modules/unictype/property-other-id-start-tests: New file.
40987         * modules/unictype/property-other-lowercase-tests: New file.
40988         * modules/unictype/property-other-math-tests: New file.
40989         * modules/unictype/property-other-uppercase-tests: New file.
40990         * modules/unictype/property-paired-punctuation-tests: New file.
40991         * modules/unictype/property-paragraph-separator-tests: New file.
40992         * modules/unictype/property-pattern-syntax-tests: New file.
40993         * modules/unictype/property-pattern-white-space-tests: New file.
40994         * modules/unictype/property-private-use-tests: New file.
40995         * modules/unictype/property-punctuation-tests: New file.
40996         * modules/unictype/property-quotation-mark-tests: New file.
40997         * modules/unictype/property-radical-tests: New file.
40998         * modules/unictype/property-sentence-terminal-tests: New file.
40999         * modules/unictype/property-soft-dotted-tests: New file.
41000         * modules/unictype/property-space-tests: New file.
41001         * modules/unictype/property-terminal-punctuation-tests: New file.
41002         * modules/unictype/property-test-tests: New file.
41003         * modules/unictype/property-titlecase-tests: New file.
41004         * modules/unictype/property-unassigned-code-value-tests: New file.
41005         * modules/unictype/property-unified-ideograph-tests: New file.
41006         * modules/unictype/property-uppercase-tests: New file.
41007         * modules/unictype/property-variation-selector-tests: New file.
41008         * modules/unictype/property-white-space-tests: New file.
41009         * modules/unictype/property-xid-continue-tests: New file.
41010         * modules/unictype/property-xid-start-tests: New file.
41011         * modules/unictype/property-zero-width-tests: New file.
41012         * modules/unictype/scripts-tests: New file.
41013         * modules/unictype/syntax-c-ident-tests: New file.
41014         * modules/unictype/syntax-c-whitespace-tests: New file.
41015         * modules/unictype/syntax-java-ident-tests: New file.
41016         * modules/unictype/syntax-java-whitespace-tests: New file.
41017         * tests/unictype/test-bidi_byname.c: New file.
41018         * tests/unictype/test-bidi_name.c: New file.
41019         * tests/unictype/test-bidi_of.c: New file.
41020         * tests/unictype/test-bidi_test.c: New file.
41021         * tests/unictype/test-block_list.c: New file.
41022         * tests/unictype/test-block_of.c: New file.
41023         * tests/unictype/test-block_test.c: New file.
41024         * tests/unictype/test-categ_and.c: New file.
41025         * tests/unictype/test-categ_and_not.c: New file.
41026         * tests/unictype/test-categ_byname.c: New file.
41027         * tests/unictype/test-categ_name.c: New file.
41028         * tests/unictype/test-categ_none.c: New file.
41029         * tests/unictype/test-categ_of.c: New file.
41030         * tests/unictype/test-categ_or.c: New file.
41031         * tests/unictype/test-categ_test_withtable.c: New file.
41032         * tests/unictype/test-combining.c: New file.
41033         * tests/unictype/test-decdigit.c: New file.
41034         * tests/unictype/test-digit.c: New file.
41035         * tests/unictype/test-mirror.c: New file.
41036         * tests/unictype/test-numeric.c: New file.
41037         * tests/unictype/test-pr_byname.c: New file.
41038         * tests/unictype/test-pr_test.c: New file.
41039         * tests/unictype/test-predicate-part1.h: New file.
41040         * tests/unictype/test-predicate-part2.h: New file.
41041         * tests/unictype/test-scripts.c: New file.
41042         * tests/unictype/test-sy_c_ident.c: New file.
41043         * tests/unictype/test-sy_java_ident.c: New file.
41044
41045         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
41046         for Unicode 5.0.0.
41047         * tests/unictype/test-categ_Cc.c: Likewise.
41048         * tests/unictype/test-categ_Cf.c: Likewise.
41049         * tests/unictype/test-categ_Cn.c: Likewise.
41050         * tests/unictype/test-categ_Co.c: Likewise.
41051         * tests/unictype/test-categ_Cs.c: Likewise.
41052         * tests/unictype/test-categ_L.c: Likewise.
41053         * tests/unictype/test-categ_Ll.c: Likewise.
41054         * tests/unictype/test-categ_Lm.c: Likewise.
41055         * tests/unictype/test-categ_Lo.c: Likewise.
41056         * tests/unictype/test-categ_Lt.c: Likewise.
41057         * tests/unictype/test-categ_Lu.c: Likewise.
41058         * tests/unictype/test-categ_M.c: Likewise.
41059         * tests/unictype/test-categ_Mc.c: Likewise.
41060         * tests/unictype/test-categ_Me.c: Likewise.
41061         * tests/unictype/test-categ_Mn.c: Likewise.
41062         * tests/unictype/test-categ_N.c: Likewise.
41063         * tests/unictype/test-categ_Nd.c: Likewise.
41064         * tests/unictype/test-categ_Nl.c: Likewise.
41065         * tests/unictype/test-categ_No.c: Likewise.
41066         * tests/unictype/test-categ_P.c: Likewise.
41067         * tests/unictype/test-categ_Pc.c: Likewise.
41068         * tests/unictype/test-categ_Pd.c: Likewise.
41069         * tests/unictype/test-categ_Pe.c: Likewise.
41070         * tests/unictype/test-categ_Pf.c: Likewise.
41071         * tests/unictype/test-categ_Pi.c: Likewise.
41072         * tests/unictype/test-categ_Po.c: Likewise.
41073         * tests/unictype/test-categ_Ps.c: Likewise.
41074         * tests/unictype/test-categ_S.c: Likewise.
41075         * tests/unictype/test-categ_Sc.c: Likewise.
41076         * tests/unictype/test-categ_Sk.c: Likewise.
41077         * tests/unictype/test-categ_Sm.c: Likewise.
41078         * tests/unictype/test-categ_So.c: Likewise.
41079         * tests/unictype/test-categ_Z.c: Likewise.
41080         * tests/unictype/test-categ_Zl.c: Likewise.
41081         * tests/unictype/test-categ_Zp.c: Likewise.
41082         * tests/unictype/test-categ_Zs.c: Likewise.
41083         * tests/unictype/test-ctype_alnum.c: Likewise.
41084         * tests/unictype/test-ctype_alpha.c: Likewise.
41085         * tests/unictype/test-ctype_blank.c: Likewise.
41086         * tests/unictype/test-ctype_cntrl.c: Likewise.
41087         * tests/unictype/test-ctype_digit.c: Likewise.
41088         * tests/unictype/test-ctype_graph.c: Likewise.
41089         * tests/unictype/test-ctype_lower.c: Likewise.
41090         * tests/unictype/test-ctype_print.c: Likewise.
41091         * tests/unictype/test-ctype_punct.c: Likewise.
41092         * tests/unictype/test-ctype_space.c: Likewise.
41093         * tests/unictype/test-ctype_upper.c: Likewise.
41094         * tests/unictype/test-ctype_xdigit.c: Likewise.
41095         * tests/unictype/test-decdigit.h: Likewise.
41096         * tests/unictype/test-digit.h: Likewise.
41097         * tests/unictype/test-numeric.h: Likewise.
41098         * tests/unictype/test-pr_alphabetic.c: Likewise.
41099         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
41100         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
41101         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
41102         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
41103         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
41104         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
41105         * tests/unictype/test-pr_bidi_control.c: Likewise.
41106         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
41107         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
41108         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
41109         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
41110         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
41111         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
41112         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
41113         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
41114         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
41115         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
41116         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
41117         * tests/unictype/test-pr_combining.c: Likewise.
41118         * tests/unictype/test-pr_composite.c: Likewise.
41119         * tests/unictype/test-pr_currency_symbol.c: Likewise.
41120         * tests/unictype/test-pr_dash.c: Likewise.
41121         * tests/unictype/test-pr_decimal_digit.c: Likewise.
41122         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
41123         * tests/unictype/test-pr_deprecated.c: Likewise.
41124         * tests/unictype/test-pr_diacritic.c: Likewise.
41125         * tests/unictype/test-pr_extender.c: Likewise.
41126         * tests/unictype/test-pr_format_control.c: Likewise.
41127         * tests/unictype/test-pr_grapheme_base.c: Likewise.
41128         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
41129         * tests/unictype/test-pr_grapheme_link.c: Likewise.
41130         * tests/unictype/test-pr_hex_digit.c: Likewise.
41131         * tests/unictype/test-pr_hyphen.c: Likewise.
41132         * tests/unictype/test-pr_id_continue.c: Likewise.
41133         * tests/unictype/test-pr_id_start.c: Likewise.
41134         * tests/unictype/test-pr_ideographic.c: Likewise.
41135         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
41136         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
41137         * tests/unictype/test-pr_ignorable_control.c: Likewise.
41138         * tests/unictype/test-pr_iso_control.c: Likewise.
41139         * tests/unictype/test-pr_join_control.c: Likewise.
41140         * tests/unictype/test-pr_left_of_pair.c: Likewise.
41141         * tests/unictype/test-pr_line_separator.c: Likewise.
41142         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
41143         * tests/unictype/test-pr_lowercase.c: Likewise.
41144         * tests/unictype/test-pr_math.c: Likewise.
41145         * tests/unictype/test-pr_non_break.c: Likewise.
41146         * tests/unictype/test-pr_not_a_character.c: Likewise.
41147         * tests/unictype/test-pr_numeric.c: Likewise.
41148         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
41149         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
41150         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
41151         * tests/unictype/test-pr_other_id_continue.c: Likewise.
41152         * tests/unictype/test-pr_other_id_start.c: Likewise.
41153         * tests/unictype/test-pr_other_lowercase.c: Likewise.
41154         * tests/unictype/test-pr_other_math.c: Likewise.
41155         * tests/unictype/test-pr_other_uppercase.c: Likewise.
41156         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
41157         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
41158         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
41159         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
41160         * tests/unictype/test-pr_private_use.c: Likewise.
41161         * tests/unictype/test-pr_punctuation.c: Likewise.
41162         * tests/unictype/test-pr_quotation_mark.c: Likewise.
41163         * tests/unictype/test-pr_radical.c: Likewise.
41164         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
41165         * tests/unictype/test-pr_soft_dotted.c: Likewise.
41166         * tests/unictype/test-pr_space.c: Likewise.
41167         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
41168         * tests/unictype/test-pr_titlecase.c: Likewise.
41169         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
41170         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
41171         * tests/unictype/test-pr_uppercase.c: Likewise.
41172         * tests/unictype/test-pr_variation_selector.c: Likewise.
41173         * tests/unictype/test-pr_white_space.c: Likewise.
41174         * tests/unictype/test-pr_xid_continue.c: Likewise.
41175         * tests/unictype/test-pr_xid_start.c: Likewise.
41176         * tests/unictype/test-pr_zero_width.c: Likewise.
41177         * tests/unictype/test-sy_c_whitespace.c: Likewise.
41178         * tests/unictype/test-sy_java_whitespace.c: Likewise.
41179
41180 2007-11-12  Bruno Haible  <bruno@clisp.org>
41181
41182         Unicode character classification functions.
41183         * lib/unictype.h: New file.
41184         * modules/unictype/base: New file.
41185         * modules/unictype/category-L: New file.
41186         * modules/unictype/category-Lu: New file.
41187         * modules/unictype/category-Ll: New file.
41188         * modules/unictype/category-Lt: New file.
41189         * modules/unictype/category-Lm: New file.
41190         * modules/unictype/category-Lo: New file.
41191         * modules/unictype/category-M: New file.
41192         * modules/unictype/category-Mn: New file.
41193         * modules/unictype/category-Mc: New file.
41194         * modules/unictype/category-Me: New file.
41195         * modules/unictype/category-N: New file.
41196         * modules/unictype/category-Nd: New file.
41197         * modules/unictype/category-Nl: New file.
41198         * modules/unictype/category-No: New file.
41199         * modules/unictype/category-P: New file.
41200         * modules/unictype/category-Pc: New file.
41201         * modules/unictype/category-Pd: New file.
41202         * modules/unictype/category-Ps: New file.
41203         * modules/unictype/category-Pe: New file.
41204         * modules/unictype/category-Pi: New file.
41205         * modules/unictype/category-Pf: New file.
41206         * modules/unictype/category-Po: New file.
41207         * modules/unictype/category-S: New file.
41208         * modules/unictype/category-Sm: New file.
41209         * modules/unictype/category-Sc: New file.
41210         * modules/unictype/category-Sk: New file.
41211         * modules/unictype/category-So: New file.
41212         * modules/unictype/category-Z: New file.
41213         * modules/unictype/category-Zs: New file.
41214         * modules/unictype/category-Zl: New file.
41215         * modules/unictype/category-Zp: New file.
41216         * modules/unictype/category-C: New file.
41217         * modules/unictype/category-Cc: New file.
41218         * modules/unictype/category-Cf: New file.
41219         * modules/unictype/category-Cs: New file.
41220         * modules/unictype/category-Co: New file.
41221         * modules/unictype/category-Cn: New file.
41222         * modules/unictype/category-or: New file.
41223         * modules/unictype/category-of: New file.
41224         * modules/unictype/category-test: New file.
41225         * modules/unictype/category-test-withtable: New file.
41226         * modules/unictype/category-byname: New file.
41227         * modules/unictype/category-none: New file.
41228         * modules/unictype/category-and: New file.
41229         * modules/unictype/category-and-not: New file.
41230         * modules/unictype/category-name: New file.
41231         * modules/unictype/combining-class: New file.
41232         * modules/unictype/category-all: New file.
41233         * modules/unictype/bidicategory-all: New file.
41234         * modules/unictype/bidicategory-byname: New file.
41235         * modules/unictype/bidicategory-name: New file.
41236         * modules/unictype/bidicategory-of: New file.
41237         * modules/unictype/bidicategory-test: New file.
41238         * modules/unictype/decimal-digit: New file.
41239         * modules/unictype/digit: New file.
41240         * modules/unictype/numeric: New file.
41241         * modules/unictype/mirror: New file.
41242         * modules/unictype/property-white-space: New file.
41243         * modules/unictype/property-alphabetic: New file.
41244         * modules/unictype/property-other-alphabetic: New file.
41245         * modules/unictype/property-not-a-character: New file.
41246         * modules/unictype/property-default-ignorable-code-point: New file.
41247         * modules/unictype/property-other-default-ignorable-code-point: New
41248         file.
41249         * modules/unictype/property-deprecated: New file.
41250         * modules/unictype/property-logical-order-exception: New file.
41251         * modules/unictype/property-variation-selector: New file.
41252         * modules/unictype/property-private-use: New file.
41253         * modules/unictype/property-unassigned-code-value: New file.
41254         * modules/unictype/property-uppercase: New file.
41255         * modules/unictype/property-other-uppercase: New file.
41256         * modules/unictype/property-lowercase: New file.
41257         * modules/unictype/property-other-lowercase: New file.
41258         * modules/unictype/property-titlecase: New file.
41259         * modules/unictype/property-soft-dotted: New file.
41260         * modules/unictype/property-id-start: New file.
41261         * modules/unictype/property-other-id-start: New file.
41262         * modules/unictype/property-id-continue: New file.
41263         * modules/unictype/property-other-id-continue: New file.
41264         * modules/unictype/property-xid-start: New file.
41265         * modules/unictype/property-xid-continue: New file.
41266         * modules/unictype/property-pattern-white-space: New file.
41267         * modules/unictype/property-pattern-syntax: New file.
41268         * modules/unictype/property-join-control: New file.
41269         * modules/unictype/property-grapheme-base: New file.
41270         * modules/unictype/property-grapheme-extend: New file.
41271         * modules/unictype/property-other-grapheme-extend: New file.
41272         * modules/unictype/property-grapheme-link: New file.
41273         * modules/unictype/property-bidi-control: New file.
41274         * modules/unictype/property-bidi-left-to-right: New file.
41275         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
41276         * modules/unictype/property-bidi-arabic-right-to-left: New file.
41277         * modules/unictype/property-bidi-european-digit: New file.
41278         * modules/unictype/property-bidi-eur-num-separator: New file.
41279         * modules/unictype/property-bidi-eur-num-terminator: New file.
41280         * modules/unictype/property-bidi-arabic-digit: New file.
41281         * modules/unictype/property-bidi-common-separator: New file.
41282         * modules/unictype/property-bidi-block-separator: New file.
41283         * modules/unictype/property-bidi-segment-separator: New file.
41284         * modules/unictype/property-bidi-whitespace: New file.
41285         * modules/unictype/property-bidi-non-spacing-mark: New file.
41286         * modules/unictype/property-bidi-boundary-neutral: New file.
41287         * modules/unictype/property-bidi-pdf: New file.
41288         * modules/unictype/property-bidi-embedding-or-override: New file.
41289         * modules/unictype/property-bidi-other-neutral: New file.
41290         * modules/unictype/property-hex-digit: New file.
41291         * modules/unictype/property-ascii-hex-digit: New file.
41292         * modules/unictype/property-ideographic: New file.
41293         * modules/unictype/property-unified-ideograph: New file.
41294         * modules/unictype/property-radical: New file.
41295         * modules/unictype/property-ids-binary-operator: New file.
41296         * modules/unictype/property-ids-trinary-operator: New file.
41297         * modules/unictype/property-zero-width: New file.
41298         * modules/unictype/property-space: New file.
41299         * modules/unictype/property-non-break: New file.
41300         * modules/unictype/property-iso-control: New file.
41301         * modules/unictype/property-format-control: New file.
41302         * modules/unictype/property-dash: New file.
41303         * modules/unictype/property-hyphen: New file.
41304         * modules/unictype/property-punctuation: New file.
41305         * modules/unictype/property-line-separator: New file.
41306         * modules/unictype/property-paragraph-separator: New file.
41307         * modules/unictype/property-quotation-mark: New file.
41308         * modules/unictype/property-sentence-terminal: New file.
41309         * modules/unictype/property-terminal-punctuation: New file.
41310         * modules/unictype/property-currency-symbol: New file.
41311         * modules/unictype/property-math: New file.
41312         * modules/unictype/property-other-math: New file.
41313         * modules/unictype/property-paired-punctuation: New file.
41314         * modules/unictype/property-left-of-pair: New file.
41315         * modules/unictype/property-combining: New file.
41316         * modules/unictype/property-composite: New file.
41317         * modules/unictype/property-decimal-digit: New file.
41318         * modules/unictype/property-numeric: New file.
41319         * modules/unictype/property-diacritic: New file.
41320         * modules/unictype/property-extender: New file.
41321         * modules/unictype/property-ignorable-control: New file.
41322         * modules/unictype/property-test: New file.
41323         * modules/unictype/property-byname: New file.
41324         * modules/unictype/property-all: New file.
41325         * modules/unictype/scripts: New file.
41326         * modules/unictype/scripts-all: New file.
41327         * modules/unictype/block-of: New file.
41328         * modules/unictype/block-test: New file.
41329         * modules/unictype/block-list: New file.
41330         * modules/unictype/block-all: New file.
41331         * modules/unictype/syntax-c-whitespace: New file.
41332         * modules/unictype/syntax-java-whitespace: New file.
41333         * modules/unictype/syntax-c-ident: New file.
41334         * modules/unictype/syntax-java-ident: New file.
41335         * modules/unictype/ctype-alnum: New file.
41336         * modules/unictype/ctype-alpha: New file.
41337         * modules/unictype/ctype-cntrl: New file.
41338         * modules/unictype/ctype-digit: New file.
41339         * modules/unictype/ctype-graph: New file.
41340         * modules/unictype/ctype-lower: New file.
41341         * modules/unictype/ctype-print: New file.
41342         * modules/unictype/ctype-punct: New file.
41343         * modules/unictype/ctype-space: New file.
41344         * modules/unictype/ctype-upper: New file.
41345         * modules/unictype/ctype-xdigit: New file.
41346         * modules/unictype/ctype-blank: New file.
41347         * lib/unictype/bidi_byname.c: New file.
41348         * lib/unictype/bidi_name.c: New file.
41349         * lib/unictype/bidi_of.c: New file.
41350         * lib/unictype/bidi_test.c: New file.
41351         * lib/unictype/bitmap.h: New file.
41352         * lib/unictype/block_test.c: New file.
41353         * lib/unictype/blocks.c: New file.
41354         * lib/unictype/categ_C.c: New file.
41355         * lib/unictype/categ_Cc.c: New file.
41356         * lib/unictype/categ_Cf.c: New file.
41357         * lib/unictype/categ_Cn.c: New file.
41358         * lib/unictype/categ_Co.c: New file.
41359         * lib/unictype/categ_Cs.c: New file.
41360         * lib/unictype/categ_L.c: New file.
41361         * lib/unictype/categ_Ll.c: New file.
41362         * lib/unictype/categ_Lm.c: New file.
41363         * lib/unictype/categ_Lo.c: New file.
41364         * lib/unictype/categ_Lt.c: New file.
41365         * lib/unictype/categ_Lu.c: New file.
41366         * lib/unictype/categ_M.c: New file.
41367         * lib/unictype/categ_Mc.c: New file.
41368         * lib/unictype/categ_Me.c: New file.
41369         * lib/unictype/categ_Mn.c: New file.
41370         * lib/unictype/categ_N.c: New file.
41371         * lib/unictype/categ_Nd.c: New file.
41372         * lib/unictype/categ_Nl.c: New file.
41373         * lib/unictype/categ_No.c: New file.
41374         * lib/unictype/categ_P.c: New file.
41375         * lib/unictype/categ_Pc.c: New file.
41376         * lib/unictype/categ_Pd.c: New file.
41377         * lib/unictype/categ_Pe.c: New file.
41378         * lib/unictype/categ_Pf.c: New file.
41379         * lib/unictype/categ_Pi.c: New file.
41380         * lib/unictype/categ_Po.c: New file.
41381         * lib/unictype/categ_Ps.c: New file.
41382         * lib/unictype/categ_S.c: New file.
41383         * lib/unictype/categ_Sc.c: New file.
41384         * lib/unictype/categ_Sk.c: New file.
41385         * lib/unictype/categ_Sm.c: New file.
41386         * lib/unictype/categ_So.c: New file.
41387         * lib/unictype/categ_Z.c: New file.
41388         * lib/unictype/categ_Zl.c: New file.
41389         * lib/unictype/categ_Zp.c: New file.
41390         * lib/unictype/categ_Zs.c: New file.
41391         * lib/unictype/categ_and.c: New file.
41392         * lib/unictype/categ_and_not.c: New file.
41393         * lib/unictype/categ_byname.c: New file.
41394         * lib/unictype/categ_name.c: New file.
41395         * lib/unictype/categ_none.c: New file.
41396         * lib/unictype/categ_of.c: New file.
41397         * lib/unictype/categ_or.c: New file.
41398         * lib/unictype/categ_test.c: New file.
41399         * lib/unictype/combining.c: New file.
41400         * lib/unictype/ctype_alnum.c: New file.
41401         * lib/unictype/ctype_alpha.c: New file.
41402         * lib/unictype/ctype_blank.c: New file.
41403         * lib/unictype/ctype_cntrl.c: New file.
41404         * lib/unictype/ctype_digit.c: New file.
41405         * lib/unictype/ctype_graph.c: New file.
41406         * lib/unictype/ctype_lower.c: New file.
41407         * lib/unictype/ctype_print.c: New file.
41408         * lib/unictype/ctype_punct.c: New file.
41409         * lib/unictype/ctype_space.c: New file.
41410         * lib/unictype/ctype_upper.c: New file.
41411         * lib/unictype/ctype_xdigit.c: New file.
41412         * lib/unictype/decdigit.c: New file.
41413         * lib/unictype/digit.c: New file.
41414         * lib/unictype/identsyntaxmap.h: New file.
41415         * lib/unictype/mirror.c: New file.
41416         * lib/unictype/numeric.c: New file.
41417         * lib/unictype/pr_alphabetic.c: New file.
41418         * lib/unictype/pr_ascii_hex_digit.c: New file.
41419         * lib/unictype/pr_bidi_arabic_digit.c: New file.
41420         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
41421         * lib/unictype/pr_bidi_block_separator.c: New file.
41422         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
41423         * lib/unictype/pr_bidi_common_separator.c: New file.
41424         * lib/unictype/pr_bidi_control.c: New file.
41425         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
41426         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
41427         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
41428         * lib/unictype/pr_bidi_european_digit.c: New file.
41429         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
41430         * lib/unictype/pr_bidi_left_to_right.c: New file.
41431         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
41432         * lib/unictype/pr_bidi_other_neutral.c: New file.
41433         * lib/unictype/pr_bidi_pdf.c: New file.
41434         * lib/unictype/pr_bidi_segment_separator.c: New file.
41435         * lib/unictype/pr_bidi_whitespace.c: New file.
41436         * lib/unictype/pr_byname.c: New file.
41437         * lib/unictype/pr_byname.gperf: New file.
41438         * lib/unictype/pr_combining.c: New file.
41439         * lib/unictype/pr_composite.c: New file.
41440         * lib/unictype/pr_currency_symbol.c: New file.
41441         * lib/unictype/pr_dash.c: New file.
41442         * lib/unictype/pr_decimal_digit.c: New file.
41443         * lib/unictype/pr_default_ignorable_code_point.c: New file.
41444         * lib/unictype/pr_deprecated.c: New file.
41445         * lib/unictype/pr_diacritic.c: New file.
41446         * lib/unictype/pr_extender.c: New file.
41447         * lib/unictype/pr_format_control.c: New file.
41448         * lib/unictype/pr_grapheme_base.c: New file.
41449         * lib/unictype/pr_grapheme_extend.c: New file.
41450         * lib/unictype/pr_grapheme_link.c: New file.
41451         * lib/unictype/pr_hex_digit.c: New file.
41452         * lib/unictype/pr_hyphen.c: New file.
41453         * lib/unictype/pr_id_continue.c: New file.
41454         * lib/unictype/pr_id_start.c: New file.
41455         * lib/unictype/pr_ideographic.c: New file.
41456         * lib/unictype/pr_ids_binary_operator.c: New file.
41457         * lib/unictype/pr_ids_trinary_operator.c: New file.
41458         * lib/unictype/pr_ignorable_control.c: New file.
41459         * lib/unictype/pr_iso_control.c: New file.
41460         * lib/unictype/pr_join_control.c: New file.
41461         * lib/unictype/pr_left_of_pair.c: New file.
41462         * lib/unictype/pr_line_separator.c: New file.
41463         * lib/unictype/pr_logical_order_exception.c: New file.
41464         * lib/unictype/pr_lowercase.c: New file.
41465         * lib/unictype/pr_math.c: New file.
41466         * lib/unictype/pr_non_break.c: New file.
41467         * lib/unictype/pr_not_a_character.c: New file.
41468         * lib/unictype/pr_numeric.c: New file.
41469         * lib/unictype/pr_other_alphabetic.c: New file.
41470         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
41471         * lib/unictype/pr_other_grapheme_extend.c: New file.
41472         * lib/unictype/pr_other_id_continue.c: New file.
41473         * lib/unictype/pr_other_id_start.c: New file.
41474         * lib/unictype/pr_other_lowercase.c: New file.
41475         * lib/unictype/pr_other_math.c: New file.
41476         * lib/unictype/pr_other_uppercase.c: New file.
41477         * lib/unictype/pr_paired_punctuation.c: New file.
41478         * lib/unictype/pr_paragraph_separator.c: New file.
41479         * lib/unictype/pr_pattern_syntax.c: New file.
41480         * lib/unictype/pr_pattern_white_space.c: New file.
41481         * lib/unictype/pr_private_use.c: New file.
41482         * lib/unictype/pr_punctuation.c: New file.
41483         * lib/unictype/pr_quotation_mark.c: New file.
41484         * lib/unictype/pr_radical.c: New file.
41485         * lib/unictype/pr_sentence_terminal.c: New file.
41486         * lib/unictype/pr_soft_dotted.c: New file.
41487         * lib/unictype/pr_space.c: New file.
41488         * lib/unictype/pr_terminal_punctuation.c: New file.
41489         * lib/unictype/pr_test.c: New file.
41490         * lib/unictype/pr_titlecase.c: New file.
41491         * lib/unictype/pr_unassigned_code_value.c: New file.
41492         * lib/unictype/pr_unified_ideograph.c: New file.
41493         * lib/unictype/pr_uppercase.c: New file.
41494         * lib/unictype/pr_variation_selector.c: New file.
41495         * lib/unictype/pr_white_space.c: New file.
41496         * lib/unictype/pr_xid_continue.c: New file.
41497         * lib/unictype/pr_xid_start.c: New file.
41498         * lib/unictype/pr_zero_width.c: New file.
41499         * lib/unictype/scripts.c: New file.
41500         * lib/unictype/sy_c_ident.c: New file.
41501         * lib/unictype/sy_c_whitespace.c: New file.
41502         * lib/unictype/sy_java_ident.c: New file.
41503         * lib/unictype/sy_java_whitespace.c: New file.
41504
41505         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
41506         Unicode 5.0.0.
41507         * lib/unictype/blocks.h: Likewise.
41508         * lib/unictype/categ_C.h: Likewise.
41509         * lib/unictype/categ_Cc.h: Likewise.
41510         * lib/unictype/categ_Cf.h: Likewise.
41511         * lib/unictype/categ_Cn.h: Likewise.
41512         * lib/unictype/categ_Co.h: Likewise.
41513         * lib/unictype/categ_Cs.h: Likewise.
41514         * lib/unictype/categ_L.h: Likewise.
41515         * lib/unictype/categ_Ll.h: Likewise.
41516         * lib/unictype/categ_Lm.h: Likewise.
41517         * lib/unictype/categ_Lo.h: Likewise.
41518         * lib/unictype/categ_Lt.h: Likewise.
41519         * lib/unictype/categ_Lu.h: Likewise.
41520         * lib/unictype/categ_M.h: Likewise.
41521         * lib/unictype/categ_Mc.h: Likewise.
41522         * lib/unictype/categ_Me.h: Likewise.
41523         * lib/unictype/categ_Mn.h: Likewise.
41524         * lib/unictype/categ_N.h: Likewise.
41525         * lib/unictype/categ_Nd.h: Likewise.
41526         * lib/unictype/categ_Nl.h: Likewise.
41527         * lib/unictype/categ_No.h: Likewise.
41528         * lib/unictype/categ_P.h: Likewise.
41529         * lib/unictype/categ_Pc.h: Likewise.
41530         * lib/unictype/categ_Pd.h: Likewise.
41531         * lib/unictype/categ_Pe.h: Likewise.
41532         * lib/unictype/categ_Pf.h: Likewise.
41533         * lib/unictype/categ_Pi.h: Likewise.
41534         * lib/unictype/categ_Po.h: Likewise.
41535         * lib/unictype/categ_Ps.h: Likewise.
41536         * lib/unictype/categ_S.h: Likewise.
41537         * lib/unictype/categ_Sc.h: Likewise.
41538         * lib/unictype/categ_Sk.h: Likewise.
41539         * lib/unictype/categ_Sm.h: Likewise.
41540         * lib/unictype/categ_So.h: Likewise.
41541         * lib/unictype/categ_Z.h: Likewise.
41542         * lib/unictype/categ_Zl.h: Likewise.
41543         * lib/unictype/categ_Zp.h: Likewise.
41544         * lib/unictype/categ_Zs.h: Likewise.
41545         * lib/unictype/categ_of.h: Likewise.
41546         * lib/unictype/combining.h: Likewise.
41547         * lib/unictype/ctype_alnum.h: Likewise.
41548         * lib/unictype/ctype_alpha.h: Likewise.
41549         * lib/unictype/ctype_blank.h: Likewise.
41550         * lib/unictype/ctype_cntrl.h: Likewise.
41551         * lib/unictype/ctype_digit.h: Likewise.
41552         * lib/unictype/ctype_graph.h: Likewise.
41553         * lib/unictype/ctype_lower.h: Likewise.
41554         * lib/unictype/ctype_print.h: Likewise.
41555         * lib/unictype/ctype_punct.h: Likewise.
41556         * lib/unictype/ctype_space.h: Likewise.
41557         * lib/unictype/ctype_upper.h: Likewise.
41558         * lib/unictype/ctype_xdigit.h: Likewise.
41559         * lib/unictype/decdigit.h: Likewise.
41560         * lib/unictype/digit.h: Likewise.
41561         * lib/unictype/mirror.h: Likewise.
41562         * lib/unictype/numeric.h: Likewise.
41563         * lib/unictype/pr_alphabetic.h: Likewise.
41564         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
41565         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
41566         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
41567         * lib/unictype/pr_bidi_block_separator.h: Likewise.
41568         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
41569         * lib/unictype/pr_bidi_common_separator.h: Likewise.
41570         * lib/unictype/pr_bidi_control.h: Likewise.
41571         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
41572         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
41573         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
41574         * lib/unictype/pr_bidi_european_digit.h: Likewise.
41575         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
41576         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
41577         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
41578         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
41579         * lib/unictype/pr_bidi_pdf.h: Likewise.
41580         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
41581         * lib/unictype/pr_bidi_whitespace.h: Likewise.
41582         * lib/unictype/pr_combining.h: Likewise.
41583         * lib/unictype/pr_composite.h: Likewise.
41584         * lib/unictype/pr_currency_symbol.h: Likewise.
41585         * lib/unictype/pr_dash.h: Likewise.
41586         * lib/unictype/pr_decimal_digit.h: Likewise.
41587         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
41588         * lib/unictype/pr_deprecated.h: Likewise.
41589         * lib/unictype/pr_diacritic.h: Likewise.
41590         * lib/unictype/pr_extender.h: Likewise.
41591         * lib/unictype/pr_format_control.h: Likewise.
41592         * lib/unictype/pr_grapheme_base.h: Likewise.
41593         * lib/unictype/pr_grapheme_extend.h: Likewise.
41594         * lib/unictype/pr_grapheme_link.h: Likewise.
41595         * lib/unictype/pr_hex_digit.h: Likewise.
41596         * lib/unictype/pr_hyphen.h: Likewise.
41597         * lib/unictype/pr_id_continue.h: Likewise.
41598         * lib/unictype/pr_id_start.h: Likewise.
41599         * lib/unictype/pr_ideographic.h: Likewise.
41600         * lib/unictype/pr_ids_binary_operator.h: Likewise.
41601         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
41602         * lib/unictype/pr_ignorable_control.h: Likewise.
41603         * lib/unictype/pr_iso_control.h: Likewise.
41604         * lib/unictype/pr_join_control.h: Likewise.
41605         * lib/unictype/pr_left_of_pair.h: Likewise.
41606         * lib/unictype/pr_line_separator.h: Likewise.
41607         * lib/unictype/pr_logical_order_exception.h: Likewise.
41608         * lib/unictype/pr_lowercase.h: Likewise.
41609         * lib/unictype/pr_math.h: Likewise.
41610         * lib/unictype/pr_non_break.h: Likewise.
41611         * lib/unictype/pr_not_a_character.h: Likewise.
41612         * lib/unictype/pr_numeric.h: Likewise.
41613         * lib/unictype/pr_other_alphabetic.h: Likewise.
41614         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
41615         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
41616         * lib/unictype/pr_other_id_continue.h: Likewise.
41617         * lib/unictype/pr_other_id_start.h: Likewise.
41618         * lib/unictype/pr_other_lowercase.h: Likewise.
41619         * lib/unictype/pr_other_math.h: Likewise.
41620         * lib/unictype/pr_other_uppercase.h: Likewise.
41621         * lib/unictype/pr_paired_punctuation.h: Likewise.
41622         * lib/unictype/pr_paragraph_separator.h: Likewise.
41623         * lib/unictype/pr_pattern_syntax.h: Likewise.
41624         * lib/unictype/pr_pattern_white_space.h: Likewise.
41625         * lib/unictype/pr_private_use.h: Likewise.
41626         * lib/unictype/pr_punctuation.h: Likewise.
41627         * lib/unictype/pr_quotation_mark.h: Likewise.
41628         * lib/unictype/pr_radical.h: Likewise.
41629         * lib/unictype/pr_sentence_terminal.h: Likewise.
41630         * lib/unictype/pr_soft_dotted.h: Likewise.
41631         * lib/unictype/pr_space.h: Likewise.
41632         * lib/unictype/pr_terminal_punctuation.h: Likewise.
41633         * lib/unictype/pr_titlecase.h: Likewise.
41634         * lib/unictype/pr_unassigned_code_value.h: Likewise.
41635         * lib/unictype/pr_unified_ideograph.h: Likewise.
41636         * lib/unictype/pr_uppercase.h: Likewise.
41637         * lib/unictype/pr_variation_selector.h: Likewise.
41638         * lib/unictype/pr_white_space.h: Likewise.
41639         * lib/unictype/pr_xid_continue.h: Likewise.
41640         * lib/unictype/pr_xid_start.h: Likewise.
41641         * lib/unictype/pr_zero_width.h: Likewise.
41642         * lib/unictype/scripts.h: Likewise.
41643         * lib/unictype/scripts_byname.gperf: Likewise.
41644         * lib/unictype/sy_c_ident.h: Likewise.
41645         * lib/unictype/sy_c_whitespace.h: Likewise.
41646         * lib/unictype/sy_java_ident.h: Likewise.
41647         * lib/unictype/sy_java_whitespace.h: Likewise.
41648
41649         * lib/unictype/Makefile: New file.
41650         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
41651         glibc.
41652         * lib/unictype/3level.h: New file, copied from glibc.
41653         * lib/unictype/3levelbit.h: New file.
41654
41655 2007-11-11  Bruno Haible  <bruno@clisp.org>
41656
41657         * modules/gperf: New file.
41658         * modules/iconv_open (Depends-on): Add it.
41659         (Makefile.am): Remove the GPERF definition.
41660
41661 2007-11-11  Bruno Haible  <bruno@clisp.org>
41662
41663         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
41664         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
41665
41666 2007-11-11  Bruno Haible  <bruno@clisp.org>
41667
41668         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
41669         (usage): Remove function.
41670
41671 2007-11-11  Bruno Haible  <bruno@clisp.org>
41672
41673         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
41674         gl_FUNC_CEILF_LIBS.
41675         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
41676         gl_FUNC_CEIL_LIBS.
41677         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
41678         gl_FUNC_CEILL_LIBS.
41679         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
41680         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
41681         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
41682
41683 2007-11-11  Bruno Haible  <bruno@clisp.org>
41684
41685         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
41686         roundf were declared but do not exist on functions.
41687         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
41688         roundl were declared but do not exist on functions.
41689         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
41690         HAVE_FLOORL_AND_CEILL, respectively.
41691         Needed for Sun C on Solaris 10.
41692
41693 2007-11-11  Bruno Haible  <bruno@clisp.org>
41694
41695         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
41696         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
41697         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
41698         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
41699         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
41700         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
41701         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
41702         HAVE_DECL_ROUNDF.
41703         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
41704         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
41705         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
41706         of HAVE_DECL_ROUND*.
41707         * modules/math (Makefile.am): Update.
41708
41709 2007-11-10  Bruno Haible  <bruno@clisp.org>
41710
41711         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
41712         ptrdiff_t as m4/intl.m4.
41713
41714 2007-11-10  Jim Meyering  <meyering@redhat.com>
41715
41716         Avoid link failure for the argmatch test.
41717         * tests/test-argmatch.c (usage): Define function to avoid a link
41718         failure: argmatch_die requires a usage function.
41719
41720 2007-11-09  Bruno Haible  <bruno@clisp.org>
41721
41722         * doc/functions/snprintf.texi: Mention BeOS deficiency.
41723         * doc/functions/vsnprintf.texi: Likewise.
41724         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
41725         with a size argument < 2.
41726
41727 2007-11-09  Bruno Haible  <bruno@clisp.org>
41728
41729         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
41730         buffer. Fixes an inefficiency introduced on 2007-11-03.
41731
41732 2007-11-09  Bruno Haible  <bruno@clisp.org>
41733
41734         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
41735         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
41736
41737 2007-11-08  Jim Meyering  <meyering@redhat.com>
41738
41739         Change cache variable name prefix "jm_" to "gl_" everywhere.
41740         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
41741         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
41742         * m4/uptime.m4: s/gl_/jm_/
41743
41744 2007-11-07  Bruno Haible  <bruno@clisp.org>
41745
41746         Update to GNU gettext 0.17.
41747         * m4/intl.m4: Update to GNU gettext 0.17.
41748         * m4/po.m4: Likewise.
41749         * modules/gettext (Files): Remove m4/ulonglong.m4.
41750         (configure.ac): Require gettext infrastructure from version 0.17.
41751
41752 2007-11-06  Bruno Haible  <bruno@clisp.org>
41753
41754         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
41755         symbolic values are not defined in a public header.
41756         * lib/freadable.c (freadable) [QNX]: Likewise.
41757         * lib/freadahead.c (freadahead) [QNX]: Likewise.
41758         * lib/freading.c (freading) [QNX]: Likewise.
41759         * lib/fseterr.c (fseterr) [QNX]: Likewise.
41760         * lib/fwritable.c (fwritable) [QNX]: Likewise.
41761         * lib/fwriting.c (fwriting) [QNX]: Likewise.
41762         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
41763         Reported by Alain Magloire.
41764
41765         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
41766
41767 2007-11-05  Bruno Haible  <bruno@clisp.org>
41768
41769         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
41770         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
41771         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
41772         Reported by Eric Blake.
41773
41774 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41775             Bruno Haible  <bruno@clisp.org>
41776
41777         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
41778         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
41779         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
41780         (malloc): Undefine also before including <stdlib.h>.
41781         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
41782         Needed on OSF/1 4.0.
41783
41784 2007-11-05  Jim Meyering  <meyering@redhat.com>
41785
41786         git-version-gen: sync from coreutils.
41787         * build-aux/git-version-gen: Add comments.
41788         Change the first '-' to '.' in the snapshot version string,
41789         e.g., 6.9-377-08144 -> 6.9.377-08144
41790         Remove first parameter.
41791         Don't declare a version "-dirty" merely because a time
41792         stamp has changed.
41793
41794 2007-11-04  Bruno Haible  <bruno@clisp.org>
41795
41796         * lib/lock.h: Protect all macro definitions containing an 'if'
41797         statement through a "do { ... } while (0)".
41798         * lib/tls.h: Likewise.
41799
41800 2007-11-04  Bruno Haible  <bruno@clisp.org>
41801
41802         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
41803
41804 2007-11-04  Bruno Haible  <bruno@clisp.org>
41805
41806         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
41807         * modules/fprintf-posix (Depends-on): Add nocrash.
41808         * modules/snprintf-posix (Depends-on): Likewise.
41809         * modules/sprintf-posix (Depends-on): Likewise.
41810         * modules/vasnprintf-posix (Depends-on): Likewise.
41811         * modules/vasprintf-posix (Depends-on): Likewise.
41812         * modules/vfprintf-posix (Depends-on): Likewise.
41813         * modules/vsnprintf-posix (Depends-on): Likewise.
41814         * modules/vsprintf-posix (Depends-on): Likewise.
41815         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
41816         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
41817         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
41818         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
41819         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
41820         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
41821         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
41822
41823 2007-11-04  Bruno Haible  <bruno@clisp.org>
41824
41825         * modules/nocrash: New file.
41826         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
41827         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
41828
41829 2007-11-04  Bruno Haible  <bruno@clisp.org>
41830
41831         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
41832         precision handling.
41833         * tests/test-vasprintf-posix.c (test_function): Likewise.
41834         * tests/test-snprintf-posix.h (test_function): Likewise.
41835         * tests/test-sprintf-posix.h (test_function): Likewise.
41836
41837         Fix *printf behaviour for large precisions on mingw and BeOS.
41838         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
41839         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
41840         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
41841         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
41842         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
41843         gl_PRINTF_PRECISION and test its result. Invoke
41844         gl_PREREQ_VASNPRINTF_PRECISION.
41845         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
41846         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
41847         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
41848         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
41849         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
41850         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41851         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
41852         * doc/functions/fprintf.texi: Update.
41853         * doc/functions/printf.texi: Update.
41854         * doc/functions/snprintf.texi: Update.
41855         * doc/functions/sprintf.texi: Update.
41856         * doc/functions/vfprintf.texi: Update.
41857         * doc/functions/vprintf.texi: Update.
41858         * doc/functions/vsnprintf.texi: Update.
41859         * doc/functions/vsprintf.texi: Update.
41860
41861 2007-11-04  Bruno Haible  <bruno@clisp.org>
41862
41863         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
41864
41865 2007-11-04  Bruno Haible  <bruno@clisp.org>
41866
41867         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
41868         Reported by Sylvain Beucler <beuc@gnu.org>.
41869
41870 2007-11-03  Bruno Haible  <bruno@clisp.org>
41871
41872         * tests/test-fprintf-posix2.sh: New file.
41873         * tests/test-fprintf-posix2.c: New file.
41874         * modules/fprintf-posix-tests (Files): Add them.
41875         (TESTS): Add test-fprintf-posix2.sh.
41876         (configure.ac): Check for getrlimit and setrlimit.
41877         (check_PROGRAMS): Add test-fprintf-posix2.
41878
41879         * tests/test-printf-posix2.sh: New file.
41880         * tests/test-printf-posix2.c: New file.
41881         * modules/printf-posix-tests (Files): Add them.
41882         (TESTS): Add test-printf-posix2.sh.
41883         (configure.ac): Check for getrlimit and setrlimit.
41884         (check_PROGRAMS): Add test-printf-posix2.
41885
41886         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
41887         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
41888         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
41889         (decode_double): New function, copied from decode_long_double.
41890         (scale10_round_decimal_decoded): New function, extracted from
41891         scale10_round_decimal_long_double.
41892         (scale10_round_decimal_long_double): Use it.
41893         (scale10_round_decimal_double): New function.
41894         (floorlog10): New function.
41895         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
41896         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
41897         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
41898         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
41899         gl_PRINTF_ENOMEM and test its result. Invoke
41900         gl_PREREQ_VASNPRINTF_ENOMEM.
41901         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
41902         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
41903         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
41904         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
41905         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
41906         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41907         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
41908         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
41909         * modules/snprintf-posix (Depends-on): Likewise.
41910         * modules/sprintf-posix (Depends-on): Likewise.
41911         * modules/vasnprintf-posix (Depends-on): Likewise.
41912         * modules/vasprintf-posix (Depends-on): Likewise.
41913         * modules/vfprintf-posix (Depends-on): Likewise.
41914         * modules/vsnprintf-posix (Depends-on): Likewise.
41915         * modules/vsprintf-posix (Depends-on): Likewise.
41916         * doc/functions/fprintf.texi: Update.
41917         * doc/functions/printf.texi: Update.
41918         * doc/functions/snprintf.texi: Update.
41919         * doc/functions/sprintf.texi: Update.
41920         * doc/functions/vfprintf.texi: Update.
41921         * doc/functions/vprintf.texi: Update.
41922         * doc/functions/vsnprintf.texi: Update.
41923         * doc/functions/vsprintf.texi: Update.
41924
41925 2007-11-03  Bruno Haible  <bruno@clisp.org>
41926
41927         * modules/frexp-nolibm-tests: New file.
41928
41929         * modules/frexp-nolibm: New file.
41930         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
41931
41932 2007-11-03  Bruno Haible  <bruno@clisp.org>
41933
41934         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
41935         value is C99 compliant.
41936         Needed for OSF/1 5.1.
41937
41938 2007-11-03  Bruno Haible  <bruno@clisp.org>
41939
41940         Fix out-of-memory handling of vasnprintf.
41941         * lib/printf-parse.c: Include <errno.h>.
41942         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
41943         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
41944         is already set.
41945
41946 2007-11-02  Eric Blake  <ebb9@byu.net>
41947
41948         Fix tests on cygwin.
41949         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
41950
41951 2007-11-01  Bruno Haible  <bruno@clisp.org>
41952
41953         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
41954         warning.
41955         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
41956         needed for POSIX compatibility.
41957
41958 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
41959
41960         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
41961         for compatibility with GNU.
41962
41963 2007-11-01  Bruno Haible  <bruno@clisp.org>
41964
41965         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
41966         (putenv): Renamed from rpl_putenv. Change argument type from
41967         'const char *' to 'char *'.
41968         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
41969         of defining putenv in config.h, just set REPLACE_PUTENV.
41970         * modules/putenv (Depends-on): Add stdlib.
41971         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
41972         (Include): Use <stdlib.h>.
41973         * lib/stdlib.in.h (putenv): New declaration.
41974         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
41975         REPLACE_PUTENV.
41976         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
41977         REPLACE_PUTENV.
41978         Needed for MacOS X 10.5.0.
41979         Reported by Peter O'Gorman <peter@pogma.com>.
41980
41981 2007-11-01  Jim Meyering  <meyering@redhat.com>
41982
41983         Treat an empty date string exactly like "0".
41984         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
41985         if the remaining date string (to be parsed) is empty, use "0".
41986         Reported by Mischa Molhoek and discussed in this thread:
41987         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
41988
41989 2007-10-31  Bruno Haible  <bruno@clisp.org>
41990
41991         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
41992         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
41993         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
41994         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
41995         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
41996         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
41997
41998 2007-10-31  Bruno Haible  <bruno@clisp.org>
41999
42000         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
42001         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
42002         (AC_TYPE_LONG_LONG_INT): Use it.
42003         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
42004         it as well.
42005         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
42006         to m4/longlong.m4.
42007         * modules/stdint (Files): Remove m4/ulonglong.m4.
42008         * modules/strtoull (Files): Use m4/longlong.m4 instead of
42009         m4/ulonglong.m4.
42010         * modules/strtoumax (Files): Likewise.
42011
42012 2007-10-30  Bruno Haible  <bruno@clisp.org>
42013
42014         * modules/xvasprintf-posix: New file.
42015         Suggested by Eric Blake.
42016
42017 2007-10-30  Bruno Haible  <bruno@clisp.org>
42018
42019         * modules/xprintf-posix-tests: New file.
42020         * tests/test-xprintf-posix.sh: New file.
42021         * tests/test-xprintf-posix.c: New file.
42022         * tests/test-xfprintf-posix.c: New file.
42023
42024         * modules/xprintf-posix: New file.
42025
42026 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42027
42028         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
42029         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
42030         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
42031
42032 2007-10-29  Bruno Haible  <bruno@clisp.org>
42033
42034         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
42035         contain the special marker '_cv_'.
42036         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
42037         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
42038         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
42039         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
42040         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
42041         Reported by Ralf Wildenhues.
42042
42043 2007-10-29  Bruno Haible  <bruno@clisp.org>
42044
42045         * gnulib-tool (func_import): When --lgpl is not specified, set
42046         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
42047         GPLv3.
42048         Reported by Simon Josefsson.
42049
42050 2007-10-28  Bruno Haible  <bruno@clisp.org>
42051
42052         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
42053         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
42054         HAVE_DECL_ISFINITE.
42055         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
42056         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
42057         HAVE_DECL_ISFINITE.
42058
42059 2007-10-28  Bruno Haible  <bruno@clisp.org>
42060
42061         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
42062         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
42063
42064 2007-10-28  Bruno Haible  <bruno@clisp.org>
42065
42066         Fix link errors with Sun C 5.0 on Solaris 10.
42067         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
42068         function is declared but not present in the compiler's libm.
42069         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
42070         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
42071         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
42072         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
42073         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
42074         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
42075         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
42076         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
42077         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
42078         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
42079         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
42080         HAVE_DECL_FLOORL.
42081
42082 2007-10-28  Bruno Haible  <bruno@clisp.org>
42083
42084         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
42085         gl_FUNC_FLOORL. Cache the result.
42086         (gl_FUNC_FLOORL): Use it.
42087         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
42088         gl_FUNC_CEILL. Cache the result.
42089         (gl_FUNC_CEILL): Use it.
42090
42091         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
42092         gl_FUNC_FLOOR. Cache the result.
42093         (gl_FUNC_FLOOR): Use it.
42094         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
42095         gl_FUNC_CEIL. Cache the result.
42096         (gl_FUNC_CEIL): Use it.
42097
42098         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
42099         gl_FUNC_FLOORF. Cache the result.
42100         (gl_FUNC_FLOORF): Use it.
42101         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
42102         gl_FUNC_CEILF. Cache the result.
42103         (gl_FUNC_CEILF): Use it.
42104
42105 2007-10-28  Bruno Haible  <bruno@clisp.org>
42106
42107         * gnulib-tool: Allow specifying the LGPL version number through
42108         --lgpl=2 or --lgpl=3.
42109         (func_usage): Document --lgpl with argument.
42110         Handle --lgpl=... arguments.
42111         (func_import): Recognize also gl_LGPL calls with an argument. When
42112         --lgpl=2 is used and the module's license is just LGPL, report an
42113         error. Set sed_transform_lib_file according to the lgpl variable. In
42114         the generated files, use --lgpl or gl_LGPL invocations with argument,
42115         if necessary.
42116         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
42117         an LGPv2+ license.
42118         * doc/gnulib-tool.texi (Modified imports): Update explanation of
42119         gl_LGPL macro.
42120
42121 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42122             Bruno Haible  <bruno@clisp.org>
42123
42124         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
42125         (u16_uctomb_aux): Likewise.
42126         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
42127         !HAVE_INLINE.
42128         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
42129
42130 2007-10-28  Bruno Haible  <bruno@clisp.org>
42131
42132         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
42133         Invoke AM_GETTEXT_OPTION if it exists.
42134         * modules/vasprintf: Likewise.
42135         * modules/verror: Likewise.
42136         * modules/xprintf: Likewise.
42137         * modules/xvasprintf: Likewise.
42138
42139 2007-10-27  Ben Pfaff  <blp@gnu.org>
42140
42141         * lib/math.in.h: Define isfinite macro and prototypes for
42142         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
42143         implementations.
42144         * m4/math_h.m4: New substitutions for isfinite module.
42145         * lib/isfinite.c: New file.
42146         * m4/isfinite.m4: New file.
42147         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
42148         * modules/isfinite: New file.
42149         * modules/isfinite-tests: New file.
42150         * tests/tests-isfinite.c: New file.
42151         * doc/functions/isfinite.texi: Mention isfinite module.
42152         * MODULES.html.sh: Mention new module.
42153
42154 2007-10-27  Ben Pfaff  <blp@gnu.org>
42155
42156         Ralf Wildenhues reported that Tru64 4.0D declares the round
42157         functions but does not have definitions.
42158         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
42159         cannot be found in any library, set the output variable to
42160         "missing" instead of "".
42161         * m4/round.m4: Also use our substitute if we cannot find round in
42162         any library, even if it is declared.
42163         * m4/roundf.m4: Likewise for roundf.
42164         * m4/roundl.m4: Likewise for roundl.
42165         * lib/math.in.h: Undefine roundf, round, roundl before defining
42166         their replacements, to allow for hypothetical systems where these
42167         may be defined as macros but not available in libraries.
42168
42169 2007-10-27  Bruno Haible  <bruno@clisp.org>
42170
42171         * doc/gnulib.texi: Invoke @firstparagraphindent.
42172         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
42173         changes in gnulib.
42174         (Source changes): New section.
42175
42176 2007-10-26  Bruno Haible  <bruno@clisp.org>
42177
42178         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
42179         borrowed from autoconf.
42180
42181 2007-10-26  Bruno Haible  <bruno@clisp.org>
42182
42183         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
42184         strerror returned the empty string. Needed on HP-UX 11.00.
42185
42186 2007-10-24  Micah Cowan  <micah@cowan.name>
42187
42188         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
42189         * build-aux/bootstrap: Remove support for now-unnecessary option,
42190         --cvs-user, and envvars CVS_USER, CVS_RSH.
42191
42192 2007-10-24  Jim Meyering  <meyering@redhat.com>
42193
42194         Avoid diagnostics from sha1sum when there is no cached checksum.
42195         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
42196         if the po.s1 file hasn't been created yet.
42197
42198         * build-aux/bootstrap: Sync from coreutils:
42199         2007-10-24  Jim Meyering  <meyering@redhat.com>
42200         Get gnulib from the git repository, not from an obsolete cvs one.
42201         * build-aux/bootstrap: Suggestion from Micah Cowan.
42202         2007-10-04  Jim Meyering  <jim@meyering.net>
42203         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
42204         (update_po_files): Work also when there are no .po files in po/.
42205
42206 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
42207
42208         * README: Append ".git" to git and cg examples.
42209         Problem reported by Benoit Sigoure.
42210
42211 2007-10-23  Micah Cowan  <micah@cowan.name>
42212
42213         * users.txt: Add wget.
42214
42215 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42216
42217         Fix linking of some unistdio tests on FreeBSD.
42218         * modules/unistdio/u16-vsnprintf-tests
42219         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
42220         * modules/unistdio/u16-vsprintf-tests
42221         (test_u16_vsnprintf1_LDADD): Likewise.
42222         * modules/unistdio/u32-vsnprintf-tests
42223         (test_u32_vsnprintf1_LDADD): Likewise.
42224         * modules/unistdio/u32-vsprintf-tests
42225         (test_u32_vsprintf1_LDADD): Likewise.
42226         * modules/unistdio/u8-vsnprintf-tests
42227         (test_u8_vsnprintf1_LDADD): Likewise.
42228         * modules/unistdio/u8-vsprintf-tests
42229         (test_u8_vsprintf1_LDADD): Likewise.
42230         * modules/unistdio/ulc-vsnprintf-tests
42231         (test_ulc_vsnprintf1_LDADD): Likewise.
42232         * modules/unistdio/ulc-vsprintf-tests
42233         (test_ulc_vsprintf1_LDADD): Likewise.
42234
42235         Fix linking of some uniconv tests on FreeBSD.
42236         * modules/uniconv/u16-conv-from-enc-tests
42237         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
42238         * modules/uniconv/u16-conv-to-enc-tests
42239         (test_u16_conv_to_enc_LDADD): Likewise.
42240         * modules/uniconv/u16-strconv-from-enc-tests
42241         (test_u16_strconv_from_enc_LDADD): Likewise.
42242         * modules/uniconv/u16-strconv-to-enc-tests
42243         (test_u16_strconv_to_enc_LDADD): Likewise.
42244         * modules/uniconv/u32-conv-from-enc-tests
42245         (test_u32_conv_from_enc_LDADD): Likewise.
42246         * modules/uniconv/u32-conv-to-enc-tests
42247         (test_u32_conv_to_enc_LDADD): Likewise.
42248         * modules/uniconv/u32-strconv-from-enc-tests
42249         (test_u32_strconv_from_enc_LDADD): Likewise.
42250         * modules/uniconv/u32-strconv-to-enc-tests
42251         (test_u32_strconv_to_enc_LDADD): Likewise.
42252         * modules/uniconv/u8-conv-from-enc-tests
42253         (test_u8_conv_from_enc_LDADD): Likewise.
42254         * modules/uniconv/u8-conv-to-enc-tests
42255         (test_u8_conv_to_enc_LDADD): Likewise.
42256         * modules/uniconv/u8-strconv-from-enc-tests
42257         (test_u8_strconv_from_enc_LDADD): Likewise.
42258         * modules/uniconv/u8-strconv-to-enc-tests
42259         (test_u8_strconv_to_enc_LDADD): Likewise.
42260
42261 2007-10-22  Bruno Haible  <bruno@clisp.org>
42262
42263         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
42264         size.
42265
42266 2007-10-22  Eric Blake  <ebb9@byu.net>
42267
42268         Tweak x*printf documentation.
42269         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
42270         variable name and comments.
42271         Suggested by Bruno Haible.
42272
42273 2007-10-22  Bruno Haible  <bruno@clisp.org>
42274
42275         * lib/acl.c (copy_acl): Fix file name in comment.
42276
42277 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
42278
42279         Fix Tru64 problem with stdbool.h.
42280         * lib/stdbool.in.h (false, true):
42281         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
42282         Don't declare as an enum in this situation; it runs afoul of Tru64.
42283         Problem reported by Steven M. Schweda in
42284         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
42285
42286 2007-10-22  Eric Blake  <ebb9@byu.net>
42287
42288         Also wrap vf?printf.
42289         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
42290         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
42291         (xvprintf, xvfprintf): New functions.
42292
42293 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42294
42295         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
42296         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
42297
42298         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
42299         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
42300
42301 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
42302
42303         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
42304         by Bruno Haible.
42305
42306 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42307
42308         * lib/getloadavg.c
42309         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
42310         Undef `sys' after including sys/table.h, for Tru64 4.0D.
42311
42312         * tests/test-i-ring.c: Work for C89.
42313
42314 2007-10-22  Bruno Haible  <bruno@clisp.org>
42315
42316         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
42317         -1u, in preprocessor expression, so that we don't test for the bug
42318         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
42319         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
42320
42321 2007-10-22  Eric Blake  <ebb9@byu.net>
42322
42323         * tests/test-yesno.sh: Silence stderr during test.
42324
42325 2007-10-22  Simon Josefsson  <simon@josefsson.org>
42326
42327         * modules/crypto/gc-camellia: New file.
42328
42329         * m4/gc-camellia.m4: New file.
42330
42331         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
42332
42333         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
42334
42335 2007-10-22  Simon Josefsson  <simon@josefsson.org>
42336
42337         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
42338         --help to stdout.  Reported by sms@antinode.org (Steven
42339         M. Schweda).
42340
42341 2007-10-22  Simon Josefsson  <simon@josefsson.org>
42342
42343         * users.txt: Fix link to libksba.
42344
42345 2007-10-21  Ben Pfaff  <blp@gnu.org>
42346
42347         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
42348         round.c roundf implementation that depends on floorf and ceilf to
42349         be tested unconditionally.
42350
42351 2007-10-21  Ben Pfaff  <blp@gnu.org>
42352
42353         * m4/check-libm-func.m4: Removed.
42354         * m4/check-math-lib.m4: New file.
42355         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
42356         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
42357         definition and lack of AC_LIBOBJ([roundf]).
42358         * m4/roundl.m4: Ditto, and similarly for roundl.
42359         * modules/round: Reference new m4 file.
42360         * modules/roundf: Ditto.
42361         * modules/roundl: Ditto.
42362         * tests/test-round2.c (main): Use ROUND instead of round.
42363         Bug report from Bruno Haible.
42364
42365 2007-10-21  Bruno Haible  <bruno@clisp.org>
42366
42367         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
42368         context.
42369
42370 2007-10-21  Bruno Haible  <bruno@clisp.org>
42371
42372         * tests/test-wcwidth.c (main): Allow negative result for some control
42373         characters.
42374
42375         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
42376         Needed on OSF/1 5.1.
42377
42378 2007-10-21  Bruno Haible  <bruno@clisp.org>
42379
42380         * tests/test-floorf1.c: Include isnanf.h.
42381         (main): Use isnanf() instead of isnan().
42382         * tests/test-ceilf1.c: Include isnanf.h.
42383         (main): Use isnanf() instead of isnan().
42384         * tests/test-truncf1.c: Include isnanf.h.
42385         (main): Use isnanf() instead of isnan().
42386         * tests/test-roundf1.c: Include isnanf.h.
42387         (main): Use isnanf() instead of isnan().
42388
42389 2007-10-21  Eric Blake  <ebb9@byu.net>
42390
42391         * users.txt: Update URL for m4.
42392
42393 2007-10-21  Bruno Haible  <bruno@clisp.org>
42394
42395         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
42396
42397 2007-10-21  Bruno Haible  <bruno@clisp.org>
42398
42399         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
42400         Git's management files if the CVS files are not present.
42401
42402 2007-10-20  Bruno Haible  <bruno@clisp.org>
42403
42404         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
42405         gcc-3.4.x.
42406
42407 2007-10-20  Ben Pfaff  <blp@gnu.org>
42408
42409         * lib/math.in.h: Declare round, roundf, roundl if we are providing
42410         implementations.
42411         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
42412         * lib/round.c: New file.
42413         * lib/roundf.c: New file.
42414         * lib/roundl.c: New file.
42415         * m4/round.m4: New file.
42416         * m4/roundf.m4: New file.
42417         * m4/roundl.m4: New file.
42418         * m4/check-libm-func-m4: New file.
42419         * modules/math: Replace round, roundf, roundl related @VARS@ in
42420         math.in.h.
42421         * modules/round: New file.
42422         * modules/round-tests: New file.
42423         * modules/roundf: New file.
42424         * modules/roundf-tests: New file.
42425         * modules/roundl: New file.
42426         * modules/roundl-tests: New file.
42427         * tests/test-round1.c: New file.
42428         * tests/test-round2.c: New file.
42429         * tests/test-roundf1.c: New file.
42430         * tests/test-roundf2.c: New file.
42431         * tests/test-roundl.c: New file.
42432         * doc/functions/round.texi: Mention round module.
42433         * doc/functions/roundf.texi: Mention roundf module.
42434         * doc/functions/roundl.texi: Mention roundl module.
42435         * MODULES.html.sh: Mention new modules.
42436         Thanks to Bruno Haible for suggestions.
42437
42438 2007-10-20  Jim Meyering  <meyering@redhat.com>
42439
42440         * lib/xprintf.c: Include <config.h> unconditionally.
42441
42442         Change xprintf's license to GPL.
42443         * modules/xprintf (License): s/LGPL/GPL/, since this module
42444         depends on modules (exit and exitfail) which are GPL.
42445         Suggestion from Bruno Haible.
42446
42447         xprintf fixes.
42448         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
42449         Use a clearer diagnostic.
42450         Patch from Bruno Haible.
42451
42452 2007-10-20  Bruno Haible  <bruno@clisp.org>
42453
42454         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
42455         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
42456         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
42457
42458 2007-10-20  Bruno Haible  <bruno@clisp.org>
42459
42460         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
42461         precision in the comparison result > x - 1 or similar.
42462         * tests/test-ceilf2.c (correct_result_p): Likewise.
42463         * tests/test-truncf2.c (correct_result_p): Likewise.
42464         * tests/test-trunc2.c (correct_result_p): Likewise.
42465         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
42466
42467 2007-10-20  Bruno Haible  <bruno@clisp.org>
42468
42469         * modules/ceil: New file.
42470         * m4/ceil.m4: New file.
42471         * doc/functions/ceil.texi: Mention the 'ceil' module.
42472
42473 2007-10-20  Bruno Haible  <bruno@clisp.org>
42474
42475         * modules/floor: New file.
42476         * m4/floor.m4: New file.
42477         * doc/functions/floor.texi: Mention the 'floor' module.
42478
42479 2007-10-20  Bruno Haible  <bruno@clisp.org>
42480
42481         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
42482         of %a.
42483         * modules/floorf-tests (Depends-on): Likewise.
42484         * modules/truncf-tests (Depends-on): Likewise.
42485         * modules/trunc-tests (Depends-on): Likewise.
42486         Reported by Ben Pfaff.
42487
42488 2007-10-19  Jim Meyering  <meyering@redhat.com>
42489
42490         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
42491         Don't bother testing specific errno values.  Just test ferror.
42492
42493         New module: xprintf
42494         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
42495
42496 2007-10-19  Bruno Haible  <bruno@clisp.org>
42497
42498         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
42499         syntax.
42500         * modules/javaexec (Makefile.am): Likewise.
42501         * modules/relocatable-prog (Makefile.am): Likewise.
42502         Suggested by Jim Meyering.
42503
42504 2007-10-18  Bruno Haible  <bruno@clisp.org>
42505
42506         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
42507         Reported by Jim Meyering.
42508
42509 2007-10-18  Eric Blake  <ebb9@byu.net>
42510
42511         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
42512
42513 2007-10-18  Bruno Haible  <bruno@clisp.org>
42514
42515         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
42516         the format string into writable memory. Needed in Fortify conditions.
42517
42518 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
42519             Bruno Haible  <bruno@clisp.org>
42520
42521         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
42522         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
42523         * modules/trim (Depends-on): Add mbchar.
42524         (configure.ac): Add gl_FUNC_MBRTOWC.
42525         (Makefile.am): Augment lib_SOURCES.
42526
42527 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
42528
42529         Modify glob.c to use fstatat and dirfd, to simplify it.
42530         Suggested by Eric Blake.
42531         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
42532         Don't include <stdbool.h>; not used.
42533         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
42534         (link_exists_p): Simplify implementation, since we can now assume
42535         dirfd and fstatat.
42536         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
42537
42538 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42539
42540         * gnulib-tool (func_get_dependencies): Fix sed script to
42541         match only tests.
42542
42543 2007-10-17  Bruno Haible  <bruno@clisp.org>
42544
42545         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
42546         allow locale names without encoding suffix.
42547         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
42548         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
42549
42550 2007-10-16  Bruno Haible  <bruno@clisp.org>
42551
42552         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
42553         * lib/getgroups.c (getgroups): Likewise.
42554         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
42555
42556 2007-10-16  Bruno Haible  <bruno@clisp.org>
42557
42558         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
42559         * modules/malloc-posix (License): Likewise.
42560         * modules/realloc-posix (License): Likewise.
42561         * modules/calloc-posix (License): Likewise.
42562         * modules/intprops (License): Change from GPL to LGPL, with
42563         Paul Eggert's approval.
42564
42565 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
42566
42567         Merge glibc changes into lib/glob.c.
42568
42569         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
42570         2007-10-15 04:59:03 UTC.  Here are the changes:
42571
42572         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
42573
42574         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
42575
42576         * lib/glob.c: Add some branch prediction throughout.
42577
42578         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
42579
42580         [BZ #5103]
42581         * lib/glob.c (glob): Recognize patterns starting \/.
42582
42583         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
42584
42585         [BZ #3996]
42586         * lib/glob.c (attribute_hidden): Define if not defined.
42587         (glob): Unescape dirname, filename or username when needed and not
42588         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
42589         is NULL.  Handle unescaped [ in pattern without closing ].
42590         Don't pass GLOB_CHECK down to recursive glob for directories.
42591         (__glob_pattern_type): New function.
42592         (__glob_pattern_p): Implement using __glob_pattern_type.
42593         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
42594         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
42595         Remove unreachable code.
42596
42597         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
42598
42599         * lib/glob.c (glob_in_dir): Add some comments and asserts to
42600         explain why there are no leaks.
42601
42602         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
42603
42604         [BZ #3253]
42605         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
42606         time, rather allocate increasingly bigger arrays of pointers, if
42607         possible with alloca, if too large with malloc.
42608
42609 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
42610
42611         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
42612         Problem reported by H.Merijn Brand in
42613         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
42614         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
42615         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
42616
42617 2007-10-15  Bruno Haible  <bruno@clisp.org>
42618
42619         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
42620         with explicit rpl_ prefix.
42621         * lib/fopen.c (fopen): Likewise.
42622         * lib/freopen.c (freopen): Likewise.
42623         * lib/iconv.c (iconv): Likewise.
42624         * lib/iconv_close.c (iconv_close): Likewise.
42625
42626 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42627
42628         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
42629
42630 2007-10-15  Bruno Haible  <bruno@clisp.org>
42631
42632         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
42633         <stddef.h> instead of <stdlib.h> since we only need NULL.
42634         Reported by Ben Pfaff <blp@cs.stanford.edu>.
42635
42636 2007-10-15  Bruno Haible  <bruno@clisp.org>
42637
42638         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
42639         Replace paragraph talking about LIBOBJS.
42640         Reported by Colin Watson <cjwatson@debian.org>.
42641
42642 2007-10-15  Bruno Haible  <bruno@clisp.org>
42643
42644         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
42645         <stdlib.h> before using NULL.
42646
42647 2007-10-15  Simon Josefsson  <simon@josefsson.org>
42648
42649         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
42650         Reported by Albert Chin <china@thewrittenword.com>.
42651
42652 2007-10-14  Bruno Haible  <bruno@clisp.org>
42653
42654         * modules/iconv_open-utf-tests: New file.
42655         * tests/test-iconv-utf.c: New file.
42656
42657         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
42658         * modules/iconv_open-utf: New file.
42659         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
42660         (iconv, iconv_close): New declarations.
42661         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
42662         be defined.
42663         (iconv_open): Add special handling of conversion between UTF-8 and
42664         UTF-{16,32}{BE,LE}.
42665         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
42666         * lib/iconv_close.c: New file.
42667         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
42668         gl_FUNC_ICONV_OPEN.
42669         (gl_FUNC_ICONV_OPEN): Use it.
42670         (gl_FUNC_ICONV_OPEN_UTF): New macro.
42671         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
42672         and REPLACE_ICONV_UTF.
42673         * modules/iconv_open (Depends-on): Add c-strcase.
42674         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
42675         ICONV_CONST.
42676         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
42677
42678 2007-10-13  Albert Chin  <china@thewrittenword.com>
42679             Bruno Haible  <bruno@clisp.org>
42680
42681         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
42682         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
42683
42684 2007-10-13  Bruno Haible  <bruno@clisp.org>
42685
42686         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
42687         defined, use the ISO C99 inline semantics.
42688         * lib/argp.h (ARGP_EI): Likewise.
42689
42690 2007-10-13  Bruno Haible  <bruno@clisp.org>
42691
42692         Handle 'inline' change in gcc 4.3.0.
42693         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
42694         argp_fmtstream_write, argp_fmtstream_set_lmargin,
42695         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
42696         argp_fmtstream_point): Disable 'extern' declaration if the function
42697         definition is going to be provided inline.
42698         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
42699         semantics, not the ISO C99 inline semantics.
42700         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
42701         'extern' declaration if the function definition is going to be provided
42702         inline.
42703         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
42704         the GNU C inline semantics, not the ISO C99 inline semantics. With
42705         GCC 4.2, avoid a warning.
42706
42707 2007-10-13  Bruno Haible  <bruno@clisp.org>
42708
42709         * lib/freading.h (freading): Enable the use of __freading for
42710         glibc >= 2.7.
42711         * lib/freading.c (freading): Likewise.
42712
42713 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
42714
42715         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
42716         "warning: C99 inline functions are not supported; using GNU89".
42717
42718 2007-10-12  Bruno Haible  <bruno@clisp.org>
42719
42720         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
42721         of 2.
42722         * tests/test-ceilf2.c: New file.
42723         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
42724
42725         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
42726         * modules/ceilf-tests: Update.
42727
42728 2007-10-12  Bruno Haible  <bruno@clisp.org>
42729
42730         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
42731         of 2.
42732         * tests/test-floorf2.c: New file.
42733         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
42734
42735         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
42736         * modules/floorf-tests: Update.
42737
42738 2007-10-12  Bruno Haible  <bruno@clisp.org>
42739
42740         * tests/test-trunc2.c: New file.
42741         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
42742
42743         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
42744         * modules/trunc-tests: Update.
42745
42746 2007-10-12  Bruno Haible  <bruno@clisp.org>
42747
42748         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
42749         of 2.
42750         * tests/test-truncf2.c: New file.
42751         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
42752
42753         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
42754         * modules/truncf-tests: Update.
42755
42756 2007-10-11  Eric Blake  <ebb9@byu.net>
42757
42758         Don't claim strerror is broken on Interix.
42759         * doc/functions/strerror.texi (strerror): Known broken systems are
42760         now Solaris 8, and not Interix.
42761         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
42762         Interix on cross-compile.
42763         Reported by Martin Koeppe in
42764         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
42765
42766 2007-10-11  Bruno Haible  <bruno@clisp.org>
42767
42768         * modules/i-ring-tests: New file.
42769         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
42770         instead of assert.
42771
42772 2007-10-11  Bruno Haible  <bruno@clisp.org>
42773
42774         * modules/filenamecat-tests: New file.
42775         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
42776         * lib/filenamecat.c: Remove test code.
42777
42778 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
42779
42780         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
42781
42782         * lib/strerror.c: Include <string.h> always, to test interface,
42783         and to remove the need for the dummy.
42784         Include intprops.h to compute width instead of doing it ourselves
42785         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
42786         (strerror): Define it to return NULL if there's no system strerror.
42787         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
42788         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
42789         ancient pre-strerror Unix systems well any more.  Saying "unknown
42790         system error" is enough.
42791         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
42792         simpler strerror.c implementation.
42793         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
42794         Simplify the tests to reflect the simpler strerror implementation.
42795         * modules/strerror (Depends-on): Add intprops.
42796
42797 2007-10-09  Eric Blake  <ebb9@byu.net>
42798
42799         Silence test-fpending.
42800         * modules/fpending-tests (Files): Add wrapper script.
42801         * tests/test-fpending.sh: New file.
42802
42803 2007-10-09  Bruno Haible  <bruno@clisp.org>
42804
42805         * MODULES.html.sh (func_module): Don't create a hyperlink for
42806         function names like 'printf_frexp'.
42807         (Misc): Add crc, memxor.
42808         (Characteristics of floating types): New section.
42809         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
42810         isnanf-nolibm, signbit, trunc, truncf, truncl.
42811         (Enhancements for ISO C 99 functions): New subsection Input/output.
42812         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
42813         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
42814         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
42815         (Compatibility checks for POSIX:2001 functions): Add clock-time.
42816         (Enhancements for POSIX:2001 functions): Add chdir-long.
42817         (File system functions): Add areadlink, chdir-safer, read-file.
42818         Remove cycle-check.
42819         (File system as inode set): New section.
42820         (Date and time): Add gethrxtime.
42821         (Multithreading): Add openmp.
42822         (Internationalization functions): Add localename.
42823         (Unicode string functions): Add unistr/u*-mbsnlen.
42824         (Support for maintaining and releasing projects): Add git-version-gen.
42825         (Lone files): Remove directories.
42826
42827 2007-10-08  Ben Pfaff  <blp@gnu.org>
42828
42829         * lib/xmalloca.h: Fix typo in comment.
42830
42831 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
42832
42833         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
42834         when avoiding problems with integer overflow.  Use a portable test
42835         instead.
42836
42837 2007-10-08  Simon Josefsson  <simon@josefsson.org>
42838
42839         * modules/dummy (License): Change to LGPLv2+.
42840         * modules/float (License): Likewise
42841         * modules/realloc (License): Likewise
42842         * modules/stdlib (License): Likewise
42843
42844 2007-10-07  Bruno Haible  <bruno@clisp.org>
42845
42846         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
42847         * floor.c (TWO_MANT_DIG): Likewise.
42848         * ceil.c (TWO_MANT_DIG): Likewise.
42849         Reported by Ben Pfaff.
42850
42851 2007-10-07  Bruno Haible  <bruno@clisp.org>
42852
42853         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
42854         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
42855         * lib/frexp.c (FUNC): Likewise.
42856         * lib/printf-frexp.h (printf_frexp): Likewise.
42857         * lib/printf-frexpl.h (printf_frexpl): Likewise.
42858         * lib/printf-frexp.c (FUNC): Likewise.
42859         Suggested by Jim Meyering.
42860
42861 2007-10-07  Jim Meyering  <meyering@redhat.com>
42862
42863         Make xnanosleep's integer overflow test more robust.
42864         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
42865         so that gcc-4.3.0 doesn't optimize away this test for overflow.
42866
42867 2007-10-07  Bruno Haible  <bruno@clisp.org>
42868
42869         * NEWS: Mention the license change.
42870
42871         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
42872         abbreviations in the modules files.
42873
42874         Change copyright notice from GPLv2+ to GPLv3+.
42875         * README: Change copyright notice.
42876         * MODULES.html.sh: Likewise.
42877         * build-aux/bootstrap.conf: Likewise.
42878         * build-aux/config.libpath: Likewise.
42879         * build-aux/csharpcomp.sh.in: Likewise.
42880         * build-aux/csharpexec.sh.in: Likewise.
42881         * build-aux/install-reloc: Likewise.
42882         * build-aux/javacomp.sh.in: Likewise.
42883         * build-aux/javaexec.sh.in: Likewise.
42884         * build-aux/ldd.sh.in: Likewise.
42885         * build-aux/reloc-ldflags: Likewise.
42886         * build-aux/relocatable.sh.in: Likewise.
42887         * build-aux/x-to-1.in: Likewise.
42888         * check-module: Likewise.
42889         * config/srclistvars.sh: Likewise.
42890         * gnulib-tool: Likewise.
42891         * lib/acl-internal.h: Likewise.
42892         * lib/acl.c: Likewise.
42893         * lib/acl.h: Likewise.
42894         * lib/acl_entries.c: Likewise.
42895         * lib/areadlink-with-size.c: Likewise.
42896         * lib/areadlink.c: Likewise.
42897         * lib/areadlink.h: Likewise.
42898         * lib/argmatch.c: Likewise.
42899         * lib/argmatch.h: Likewise.
42900         * lib/argp-ba.c: Likewise.
42901         * lib/argp-eexst.c: Likewise.
42902         * lib/argp-fmtstream.c: Likewise.
42903         * lib/argp-fmtstream.h: Likewise.
42904         * lib/argp-fs-xinl.c: Likewise.
42905         * lib/argp-help.c: Likewise.
42906         * lib/argp-namefrob.h: Likewise.
42907         * lib/argp-parse.c: Likewise.
42908         * lib/argp-pin.c: Likewise.
42909         * lib/argp-pv.c: Likewise.
42910         * lib/argp-pvh.c: Likewise.
42911         * lib/argp-xinl.c: Likewise.
42912         * lib/argp.h: Likewise.
42913         * lib/at-func.c: Likewise.
42914         * lib/atanl.c: Likewise.
42915         * lib/backupfile.c: Likewise.
42916         * lib/backupfile.h: Likewise.
42917         * lib/basename.c: Likewise.
42918         * lib/binary-io.h: Likewise.
42919         * lib/byteswap.in.h: Likewise.
42920         * lib/c-stack.c: Likewise.
42921         * lib/c-stack.h: Likewise.
42922         * lib/c-strcasestr.c: Likewise.
42923         * lib/c-strcasestr.h: Likewise.
42924         * lib/c-strstr.c: Likewise.
42925         * lib/c-strstr.h: Likewise.
42926         * lib/c-strtod.c: Likewise.
42927         * lib/calloc.c: Likewise.
42928         * lib/canon-host.c: Likewise.
42929         * lib/canon-host.h: Likewise.
42930         * lib/canonicalize-lgpl.c: Likewise.
42931         * lib/canonicalize.c: Likewise.
42932         * lib/canonicalize.h: Likewise.
42933         * lib/ceil.c: Likewise.
42934         * lib/ceilf.c: Likewise.
42935         * lib/ceill.c: Likewise.
42936         * lib/chdir-long.c: Likewise.
42937         * lib/chdir-long.h: Likewise.
42938         * lib/chdir-safer.c: Likewise.
42939         * lib/chdir-safer.h: Likewise.
42940         * lib/chown.c: Likewise.
42941         * lib/classpath.c: Likewise.
42942         * lib/classpath.h: Likewise.
42943         * lib/clean-temp.c: Likewise.
42944         * lib/clean-temp.h: Likewise.
42945         * lib/cloexec.c: Likewise.
42946         * lib/close-stream.c: Likewise.
42947         * lib/closein.c: Likewise.
42948         * lib/closein.h: Likewise.
42949         * lib/closeout.c: Likewise.
42950         * lib/closeout.h: Likewise.
42951         * lib/concat-filename.c: Likewise.
42952         * lib/copy-file.c: Likewise.
42953         * lib/copy-file.h: Likewise.
42954         * lib/count-one-bits.h: Likewise.
42955         * lib/crc.c: Likewise.
42956         * lib/crc.h: Likewise.
42957         * lib/creat-safer.c: Likewise.
42958         * lib/csharpcomp.c: Likewise.
42959         * lib/csharpcomp.h: Likewise.
42960         * lib/csharpexec.c: Likewise.
42961         * lib/csharpexec.h: Likewise.
42962         * lib/cycle-check.c: Likewise.
42963         * lib/cycle-check.h: Likewise.
42964         * lib/diacrit.c: Likewise.
42965         * lib/diacrit.h: Likewise.
42966         * lib/diffseq.h: Likewise.
42967         * lib/dirchownmod.c: Likewise.
42968         * lib/dirent.in.h: Likewise.
42969         * lib/dirfd.c: Likewise.
42970         * lib/dirfd.h: Likewise.
42971         * lib/dirname.c: Likewise.
42972         * lib/dirname.h: Likewise.
42973         * lib/dummy.c: Likewise.
42974         * lib/dup-safer.c: Likewise.
42975         * lib/dup2.c: Likewise.
42976         * lib/eealloc.h: Likewise.
42977         * lib/error.c: Likewise.
42978         * lib/error.h: Likewise.
42979         * lib/euidaccess.c: Likewise.
42980         * lib/exclude.c: Likewise.
42981         * lib/exclude.h: Likewise.
42982         * lib/execute.c: Likewise.
42983         * lib/execute.h: Likewise.
42984         * lib/exitfail.c: Likewise.
42985         * lib/exitfail.h: Likewise.
42986         * lib/expl.c: Likewise.
42987         * lib/fatal-signal.c: Likewise.
42988         * lib/fatal-signal.h: Likewise.
42989         * lib/fbufmode.c: Likewise.
42990         * lib/fbufmode.h: Likewise.
42991         * lib/fchdir.c: Likewise.
42992         * lib/fchmodat.c: Likewise.
42993         * lib/fchownat.c: Likewise.
42994         * lib/fcntl--.h: Likewise.
42995         * lib/fcntl-safer.h: Likewise.
42996         * lib/fcntl.in.h: Likewise.
42997         * lib/fd-safer.c: Likewise.
42998         * lib/fflush.c: Likewise.
42999         * lib/file-has-acl.c: Likewise.
43000         * lib/file-set.c: Likewise.
43001         * lib/file-type.c: Likewise.
43002         * lib/file-type.h: Likewise.
43003         * lib/fileblocks.c: Likewise.
43004         * lib/filemode.c: Likewise.
43005         * lib/filemode.h: Likewise.
43006         * lib/filename.h: Likewise.
43007         * lib/filenamecat.c: Likewise.
43008         * lib/filenamecat.h: Likewise.
43009         * lib/findprog.c: Likewise.
43010         * lib/findprog.h: Likewise.
43011         * lib/float.in.h: Likewise.
43012         * lib/floor.c: Likewise.
43013         * lib/floorf.c: Likewise.
43014         * lib/floorl.c: Likewise.
43015         * lib/fopen-safer.c: Likewise.
43016         * lib/fopen.c: Likewise.
43017         * lib/fpending.c: Likewise.
43018         * lib/fpending.h: Likewise.
43019         * lib/fprintf.c: Likewise.
43020         * lib/fprintftime.h: Likewise.
43021         * lib/fpucw.h: Likewise.
43022         * lib/fpurge.c: Likewise.
43023         * lib/fpurge.h: Likewise.
43024         * lib/freadable.c: Likewise.
43025         * lib/freadable.h: Likewise.
43026         * lib/freadahead.c: Likewise.
43027         * lib/freadahead.h: Likewise.
43028         * lib/freading.c: Likewise.
43029         * lib/freading.h: Likewise.
43030         * lib/free.c: Likewise.
43031         * lib/freopen.c: Likewise.
43032         * lib/frexp.c: Likewise.
43033         * lib/frexpl.c: Likewise.
43034         * lib/fseek.c: Likewise.
43035         * lib/fseterr.c: Likewise.
43036         * lib/fseterr.h: Likewise.
43037         * lib/fstatat.c: Likewise.
43038         * lib/fstrcmp.c: Likewise.
43039         * lib/fstrcmp.h: Likewise.
43040         * lib/fsusage.c: Likewise.
43041         * lib/fsusage.h: Likewise.
43042         * lib/ftell.c: Likewise.
43043         * lib/ftello.c: Likewise.
43044         * lib/fts-cycle.c: Likewise.
43045         * lib/fts.c: Likewise.
43046         * lib/fts_.h: Likewise.
43047         * lib/full-read.c: Likewise.
43048         * lib/full-read.h: Likewise.
43049         * lib/full-write.c: Likewise.
43050         * lib/full-write.h: Likewise.
43051         * lib/fwritable.c: Likewise.
43052         * lib/fwritable.h: Likewise.
43053         * lib/fwriteerror.c: Likewise.
43054         * lib/fwriteerror.h: Likewise.
43055         * lib/fwriting.c: Likewise.
43056         * lib/fwriting.h: Likewise.
43057         * lib/gcd.c: Likewise.
43058         * lib/gcd.h: Likewise.
43059         * lib/getcwd.c: Likewise.
43060         * lib/getdate.h: Likewise.
43061         * lib/getdate.y: Likewise.
43062         * lib/getdomainname.c: Likewise.
43063         * lib/getdomainname.h: Likewise.
43064         * lib/getgroups.c: Likewise.
43065         * lib/gethostname.c: Likewise.
43066         * lib/gethrxtime.c: Likewise.
43067         * lib/gethrxtime.h: Likewise.
43068         * lib/getloadavg.c: Likewise.
43069         * lib/getndelim2.c: Likewise.
43070         * lib/getndelim2.h: Likewise.
43071         * lib/getnline.c: Likewise.
43072         * lib/getnline.h: Likewise.
43073         * lib/getopt.c: Likewise.
43074         * lib/getopt.in.h: Likewise.
43075         * lib/getopt1.c: Likewise.
43076         * lib/getopt_int.h: Likewise.
43077         * lib/getpagesize.h: Likewise.
43078         * lib/getsubopt.c: Likewise.
43079         * lib/gettime.c: Likewise.
43080         * lib/getugroups.c: Likewise.
43081         * lib/getugroups.h: Likewise.
43082         * lib/getusershell.c: Likewise.
43083         * lib/gl_anyavltree_list1.h: Likewise.
43084         * lib/gl_anyavltree_list2.h: Likewise.
43085         * lib/gl_anyhash_list1.h: Likewise.
43086         * lib/gl_anyhash_list2.h: Likewise.
43087         * lib/gl_anylinked_list1.h: Likewise.
43088         * lib/gl_anylinked_list2.h: Likewise.
43089         * lib/gl_anyrbtree_list1.h: Likewise.
43090         * lib/gl_anyrbtree_list2.h: Likewise.
43091         * lib/gl_anytree_list1.h: Likewise.
43092         * lib/gl_anytree_list2.h: Likewise.
43093         * lib/gl_anytree_oset.h: Likewise.
43094         * lib/gl_anytreehash_list1.h: Likewise.
43095         * lib/gl_anytreehash_list2.h: Likewise.
43096         * lib/gl_array_list.c: Likewise.
43097         * lib/gl_array_list.h: Likewise.
43098         * lib/gl_array_oset.c: Likewise.
43099         * lib/gl_array_oset.h: Likewise.
43100         * lib/gl_avltree_list.c: Likewise.
43101         * lib/gl_avltree_list.h: Likewise.
43102         * lib/gl_avltree_oset.c: Likewise.
43103         * lib/gl_avltree_oset.h: Likewise.
43104         * lib/gl_avltreehash_list.c: Likewise.
43105         * lib/gl_avltreehash_list.h: Likewise.
43106         * lib/gl_carray_list.c: Likewise.
43107         * lib/gl_carray_list.h: Likewise.
43108         * lib/gl_linked_list.c: Likewise.
43109         * lib/gl_linked_list.h: Likewise.
43110         * lib/gl_linkedhash_list.c: Likewise.
43111         * lib/gl_linkedhash_list.h: Likewise.
43112         * lib/gl_list.c: Likewise.
43113         * lib/gl_list.h: Likewise.
43114         * lib/gl_oset.c: Likewise.
43115         * lib/gl_oset.h: Likewise.
43116         * lib/gl_rbtree_list.c: Likewise.
43117         * lib/gl_rbtree_list.h: Likewise.
43118         * lib/gl_rbtree_oset.c: Likewise.
43119         * lib/gl_rbtree_oset.h: Likewise.
43120         * lib/gl_rbtreehash_list.c: Likewise.
43121         * lib/gl_rbtreehash_list.h: Likewise.
43122         * lib/gl_sublist.c: Likewise.
43123         * lib/gl_sublist.h: Likewise.
43124         * lib/group-member.c: Likewise.
43125         * lib/group-member.h: Likewise.
43126         * lib/hard-locale.c: Likewise.
43127         * lib/hard-locale.h: Likewise.
43128         * lib/hash-pjw.c: Likewise.
43129         * lib/hash-pjw.h: Likewise.
43130         * lib/hash-triple.c: Likewise.
43131         * lib/hash.c: Likewise.
43132         * lib/hash.h: Likewise.
43133         * lib/human.c: Likewise.
43134         * lib/human.h: Likewise.
43135         * lib/i-ring.c: Likewise.
43136         * lib/i-ring.h: Likewise.
43137         * lib/idcache.c: Likewise.
43138         * lib/imaxabs.c: Likewise.
43139         * lib/imaxdiv.c: Likewise.
43140         * lib/inet_pton.c: Likewise.
43141         * lib/inet_pton.h: Likewise.
43142         * lib/intprops.h: Likewise.
43143         * lib/inttostr.c: Likewise.
43144         * lib/inttostr.h: Likewise.
43145         * lib/inttypes.in.h: Likewise.
43146         * lib/isapipe.c: Likewise.
43147         * lib/isdir.c: Likewise.
43148         * lib/isnan.c: Likewise.
43149         * lib/isnan.h: Likewise.
43150         * lib/isnanf.c: Likewise.
43151         * lib/isnanf.h: Likewise.
43152         * lib/isnanl-nolibm.h: Likewise.
43153         * lib/isnanl.c: Likewise.
43154         * lib/isnanl.h: Likewise.
43155         * lib/javacomp.c: Likewise.
43156         * lib/javacomp.h: Likewise.
43157         * lib/javaexec.c: Likewise.
43158         * lib/javaexec.h: Likewise.
43159         * lib/javaversion.c: Likewise.
43160         * lib/javaversion.h: Likewise.
43161         * lib/javaversion.java: Likewise.
43162         * lib/lbrkprop.h: Likewise.
43163         * lib/lchmod.h: Likewise.
43164         * lib/lchown.c: Likewise.
43165         * lib/ldexpl.c: Likewise.
43166         * lib/linebreak.c: Likewise.
43167         * lib/linebreak.h: Likewise.
43168         * lib/linebuffer.c: Likewise.
43169         * lib/linebuffer.h: Likewise.
43170         * lib/locale.in.h: Likewise.
43171         * lib/logl.c: Likewise.
43172         * lib/long-options.c: Likewise.
43173         * lib/long-options.h: Likewise.
43174         * lib/lstat.c: Likewise.
43175         * lib/lstat.h: Likewise.
43176         * lib/math.in.h: Likewise.
43177         * lib/mbchar.c: Likewise.
43178         * lib/mbchar.h: Likewise.
43179         * lib/mbfile.h: Likewise.
43180         * lib/mbiter.h: Likewise.
43181         * lib/mbscasecmp.c: Likewise.
43182         * lib/mbscasestr.c: Likewise.
43183         * lib/mbschr.c: Likewise.
43184         * lib/mbscspn.c: Likewise.
43185         * lib/mbslen.c: Likewise.
43186         * lib/mbsncasecmp.c: Likewise.
43187         * lib/mbsnlen.c: Likewise.
43188         * lib/mbspbrk.c: Likewise.
43189         * lib/mbspcasecmp.c: Likewise.
43190         * lib/mbsrchr.c: Likewise.
43191         * lib/mbssep.c: Likewise.
43192         * lib/mbsspn.c: Likewise.
43193         * lib/mbsstr.c: Likewise.
43194         * lib/mbstok_r.c: Likewise.
43195         * lib/mbswidth.c: Likewise.
43196         * lib/mbswidth.h: Likewise.
43197         * lib/mbuiter.h: Likewise.
43198         * lib/memcasecmp.c: Likewise.
43199         * lib/memcasecmp.h: Likewise.
43200         * lib/memchr.c: Likewise.
43201         * lib/memcmp.c: Likewise.
43202         * lib/memcoll.c: Likewise.
43203         * lib/memcoll.h: Likewise.
43204         * lib/memcpy.c: Likewise.
43205         * lib/memrchr.c: Likewise.
43206         * lib/mkancesdirs.c: Likewise.
43207         * lib/mkdir-p.c: Likewise.
43208         * lib/mkdir-p.h: Likewise.
43209         * lib/mkdir.c: Likewise.
43210         * lib/mkdirat.c: Likewise.
43211         * lib/mkdtemp.c: Likewise.
43212         * lib/mkstemp-safer.c: Likewise.
43213         * lib/mkstemp.c: Likewise.
43214         * lib/modechange.c: Likewise.
43215         * lib/modechange.h: Likewise.
43216         * lib/mountlist.c: Likewise.
43217         * lib/mountlist.h: Likewise.
43218         * lib/mpsort.c: Likewise.
43219         * lib/nanosleep.c: Likewise.
43220         * lib/obstack.c: Likewise.
43221         * lib/obstack.h: Likewise.
43222         * lib/open-safer.c: Likewise.
43223         * lib/open.c: Likewise.
43224         * lib/openat-die.c: Likewise.
43225         * lib/openat-priv.h: Likewise.
43226         * lib/openat-proc.c: Likewise.
43227         * lib/openat.c: Likewise.
43228         * lib/openat.h: Likewise.
43229         * lib/pagealign_alloc.c: Likewise.
43230         * lib/pagealign_alloc.h: Likewise.
43231         * lib/physmem.c: Likewise.
43232         * lib/physmem.h: Likewise.
43233         * lib/pipe-safer.c: Likewise.
43234         * lib/pipe.c: Likewise.
43235         * lib/pipe.h: Likewise.
43236         * lib/posixtm.c: Likewise.
43237         * lib/posixtm.h: Likewise.
43238         * lib/posixver.c: Likewise.
43239         * lib/printf-frexp.c: Likewise.
43240         * lib/printf-frexp.h: Likewise.
43241         * lib/printf-frexpl.c: Likewise.
43242         * lib/printf-frexpl.h: Likewise.
43243         * lib/printf.c: Likewise.
43244         * lib/progname.c: Likewise.
43245         * lib/progname.h: Likewise.
43246         * lib/progreloc.c: Likewise.
43247         * lib/putenv.c: Likewise.
43248         * lib/quote.c: Likewise.
43249         * lib/quote.h: Likewise.
43250         * lib/quotearg.c: Likewise.
43251         * lib/quotearg.h: Likewise.
43252         * lib/raise.c: Likewise.
43253         * lib/readline.c: Likewise.
43254         * lib/readline.h: Likewise.
43255         * lib/readlink.c: Likewise.
43256         * lib/readtokens.c: Likewise.
43257         * lib/readtokens.h: Likewise.
43258         * lib/readtokens0.c: Likewise.
43259         * lib/readtokens0.h: Likewise.
43260         * lib/readutmp.c: Likewise.
43261         * lib/readutmp.h: Likewise.
43262         * lib/realloc.c: Likewise.
43263         * lib/relocwrapper.c: Likewise.
43264         * lib/rename-dest-slash.c: Likewise.
43265         * lib/rename.c: Likewise.
43266         * lib/rmdir.c: Likewise.
43267         * lib/rpmatch.c: Likewise.
43268         * lib/safe-read.c: Likewise.
43269         * lib/safe-read.h: Likewise.
43270         * lib/safe-write.c: Likewise.
43271         * lib/safe-write.h: Likewise.
43272         * lib/same-inode.h: Likewise.
43273         * lib/same.c: Likewise.
43274         * lib/same.h: Likewise.
43275         * lib/save-cwd.c: Likewise.
43276         * lib/save-cwd.h: Likewise.
43277         * lib/savedir.c: Likewise.
43278         * lib/savedir.h: Likewise.
43279         * lib/savewd.c: Likewise.
43280         * lib/savewd.h: Likewise.
43281         * lib/search.in.h: Likewise.
43282         * lib/setenv.c: Likewise.
43283         * lib/setenv.h: Likewise.
43284         * lib/settime.c: Likewise.
43285         * lib/sh-quote.c: Likewise.
43286         * lib/sh-quote.h: Likewise.
43287         * lib/sig2str.c: Likewise.
43288         * lib/sig2str.h: Likewise.
43289         * lib/signal.in.h: Likewise.
43290         * lib/signbitd.c: Likewise.
43291         * lib/signbitf.c: Likewise.
43292         * lib/signbitl.c: Likewise.
43293         * lib/sigprocmask.c: Likewise.
43294         * lib/sincosl.c: Likewise.
43295         * lib/sleep.c: Likewise.
43296         * lib/sprintf.c: Likewise.
43297         * lib/sqrtl.c: Likewise.
43298         * lib/stat-time.h: Likewise.
43299         * lib/stdio--.h: Likewise.
43300         * lib/stdio-safer.h: Likewise.
43301         * lib/stdlib--.h: Likewise.
43302         * lib/stdlib-safer.h: Likewise.
43303         * lib/stdlib.in.h: Likewise.
43304         * lib/stpcpy.c: Likewise.
43305         * lib/stpncpy.c: Likewise.
43306         * lib/strchrnul.c: Likewise.
43307         * lib/strcspn.c: Likewise.
43308         * lib/strerror.c: Likewise.
43309         * lib/strftime.c: Likewise.
43310         * lib/strftime.h: Likewise.
43311         * lib/striconveh.c: Likewise.
43312         * lib/striconveh.h: Likewise.
43313         * lib/striconveha.c: Likewise.
43314         * lib/striconveha.h: Likewise.
43315         * lib/stripslash.c: Likewise.
43316         * lib/strnlen1.c: Likewise.
43317         * lib/strnlen1.h: Likewise.
43318         * lib/strtod.c: Likewise.
43319         * lib/strtoimax.c: Likewise.
43320         * lib/strtok_r.c: Likewise.
43321         * lib/strtol.c: Likewise.
43322         * lib/strtoll.c: Likewise.
43323         * lib/strtoul.c: Likewise.
43324         * lib/strtoull.c: Likewise.
43325         * lib/sysexits.in.h: Likewise.
43326         * lib/tempname.c: Likewise.
43327         * lib/tempname.h: Likewise.
43328         * lib/timespec.h: Likewise.
43329         * lib/tls.c: Likewise.
43330         * lib/tls.h: Likewise.
43331         * lib/tmpdir.c: Likewise.
43332         * lib/tmpdir.h: Likewise.
43333         * lib/tmpfile-safer.c: Likewise.
43334         * lib/tmpfile.c: Likewise.
43335         * lib/trigl.c: Likewise.
43336         * lib/trigl.h: Likewise.
43337         * lib/trim.c: Likewise.
43338         * lib/trim.h: Likewise.
43339         * lib/trunc.c: Likewise.
43340         * lib/truncf.c: Likewise.
43341         * lib/truncl.c: Likewise.
43342         * lib/tsearch.c: Likewise.
43343         * lib/unicodeio.c: Likewise.
43344         * lib/unicodeio.h: Likewise.
43345         * lib/unistd--.h: Likewise.
43346         * lib/unistd-safer.h: Likewise.
43347         * lib/unistdio/ulc-fprintf.c: Likewise.
43348         * lib/unistdio/ulc-vfprintf.c: Likewise.
43349         * lib/unlinkdir.c: Likewise.
43350         * lib/unlinkdir.h: Likewise.
43351         * lib/unlocked-io.h: Likewise.
43352         * lib/unsetenv.c: Likewise.
43353         * lib/userspec.c: Likewise.
43354         * lib/utime.c: Likewise.
43355         * lib/utimecmp.c: Likewise.
43356         * lib/utimecmp.h: Likewise.
43357         * lib/utimens.c: Likewise.
43358         * lib/verify.h: Likewise.
43359         * lib/verror.c: Likewise.
43360         * lib/verror.h: Likewise.
43361         * lib/version-etc-fsf.c: Likewise.
43362         * lib/version-etc.c: Likewise.
43363         * lib/version-etc.h: Likewise.
43364         * lib/vfprintf.c: Likewise.
43365         * lib/vprintf.c: Likewise.
43366         * lib/vsprintf.c: Likewise.
43367         * lib/w32spawn.h: Likewise.
43368         * lib/wait-process.c: Likewise.
43369         * lib/wait-process.h: Likewise.
43370         * lib/wcwidth.c: Likewise.
43371         * lib/write-any-file.c: Likewise.
43372         * lib/xalloc-die.c: Likewise.
43373         * lib/xalloc.h: Likewise.
43374         * lib/xasprintf.c: Likewise.
43375         * lib/xgetcwd.c: Likewise.
43376         * lib/xgetcwd.h: Likewise.
43377         * lib/xgetdomainname.c: Likewise.
43378         * lib/xgetdomainname.h: Likewise.
43379         * lib/xgethostname.c: Likewise.
43380         * lib/xmalloc.c: Likewise.
43381         * lib/xmalloca.c: Likewise.
43382         * lib/xmalloca.h: Likewise.
43383         * lib/xmemcoll.c: Likewise.
43384         * lib/xnanosleep.c: Likewise.
43385         * lib/xreadlink.c: Likewise.
43386         * lib/xreadlink.h: Likewise.
43387         * lib/xsetenv.c: Likewise.
43388         * lib/xsetenv.h: Likewise.
43389         * lib/xstriconv.c: Likewise.
43390         * lib/xstriconv.h: Likewise.
43391         * lib/xstrndup.c: Likewise.
43392         * lib/xstrndup.h: Likewise.
43393         * lib/xstrtod.c: Likewise.
43394         * lib/xstrtod.h: Likewise.
43395         * lib/xstrtol-error.c: Likewise.
43396         * lib/xstrtol.c: Likewise.
43397         * lib/xstrtol.h: Likewise.
43398         * lib/xtime.h: Likewise.
43399         * lib/xvasprintf.c: Likewise.
43400         * lib/xvasprintf.h: Likewise.
43401         * lib/yesno.c: Likewise.
43402         * lib/yesno.h: Likewise.
43403         * posix-modules: Likewise.
43404         * tests/test-alloca-opt.c: Likewise.
43405         * tests/test-arcfour.c: Likewise.
43406         * tests/test-arctwo.c: Likewise.
43407         * tests/test-argmatch.c: Likewise.
43408         * tests/test-argp-2.sh: Likewise.
43409         * tests/test-argp.c: Likewise.
43410         * tests/test-arpa_inet.c: Likewise.
43411         * tests/test-array_list.c: Likewise.
43412         * tests/test-array_oset.c: Likewise.
43413         * tests/test-atexit.c: Likewise.
43414         * tests/test-avltree_list.c: Likewise.
43415         * tests/test-avltree_oset.c: Likewise.
43416         * tests/test-avltreehash_list.c: Likewise.
43417         * tests/test-base64.c: Likewise.
43418         * tests/test-binary-io.c: Likewise.
43419         * tests/test-byteswap.c: Likewise.
43420         * tests/test-c-ctype.c: Likewise.
43421         * tests/test-c-strcasecmp.c: Likewise.
43422         * tests/test-c-strcasestr.c: Likewise.
43423         * tests/test-c-strncasecmp.c: Likewise.
43424         * tests/test-c-strstr.c: Likewise.
43425         * tests/test-canonicalize-lgpl.c: Likewise.
43426         * tests/test-canonicalize.c: Likewise.
43427         * tests/test-carray_list.c: Likewise.
43428         * tests/test-ceilf.c: Likewise.
43429         * tests/test-ceill.c: Likewise.
43430         * tests/test-count-one-bits.c: Likewise.
43431         * tests/test-crc.c: Likewise.
43432         * tests/test-dirname.c: Likewise.
43433         * tests/test-fbufmode.c: Likewise.
43434         * tests/test-fcntl.c: Likewise.
43435         * tests/test-fflush.c: Likewise.
43436         * tests/test-floorf.c: Likewise.
43437         * tests/test-floorl.c: Likewise.
43438         * tests/test-fopen.c: Likewise.
43439         * tests/test-fprintf-posix.c: Likewise.
43440         * tests/test-fprintf-posix.h: Likewise.
43441         * tests/test-fpurge.c: Likewise.
43442         * tests/test-freadable.c: Likewise.
43443         * tests/test-freadahead.c: Likewise.
43444         * tests/test-freading.c: Likewise.
43445         * tests/test-freopen.c: Likewise.
43446         * tests/test-frexp.c: Likewise.
43447         * tests/test-frexpl.c: Likewise.
43448         * tests/test-fseek.c: Likewise.
43449         * tests/test-fseeko.c: Likewise.
43450         * tests/test-fseterr.c: Likewise.
43451         * tests/test-fstrcmp.c: Likewise.
43452         * tests/test-ftell.c: Likewise.
43453         * tests/test-ftello.c: Likewise.
43454         * tests/test-fwritable.c: Likewise.
43455         * tests/test-fwriting.c: Likewise.
43456         * tests/test-getaddrinfo.c: Likewise.
43457         * tests/test-getpass.c: Likewise.
43458         * tests/test-gettimeofday.c: Likewise.
43459         * tests/test-hmac-md5.c: Likewise.
43460         * tests/test-hmac-sha1.c: Likewise.
43461         * tests/test-iconv.c: Likewise.
43462         * tests/test-iconvme.c: Likewise.
43463         * tests/test-inttypes.c: Likewise.
43464         * tests/test-isnan.c: Likewise.
43465         * tests/test-isnanf.c: Likewise.
43466         * tests/test-isnanl-nolibm.c: Likewise.
43467         * tests/test-isnanl.c: Likewise.
43468         * tests/test-isnanl.h: Likewise.
43469         * tests/test-ldexpl.c: Likewise.
43470         * tests/test-linked_list.c: Likewise.
43471         * tests/test-linkedhash_list.c: Likewise.
43472         * tests/test-locale.c: Likewise.
43473         * tests/test-localename.c: Likewise.
43474         * tests/test-lock.c: Likewise.
43475         * tests/test-lseek.c: Likewise.
43476         * tests/test-malloca.c: Likewise.
43477         * tests/test-math.c: Likewise.
43478         * tests/test-mbscasecmp.c: Likewise.
43479         * tests/test-mbscasestr1.c: Likewise.
43480         * tests/test-mbscasestr2.c: Likewise.
43481         * tests/test-mbscasestr3.c: Likewise.
43482         * tests/test-mbscasestr4.c: Likewise.
43483         * tests/test-mbschr.c: Likewise.
43484         * tests/test-mbscspn.c: Likewise.
43485         * tests/test-mbsncasecmp.c: Likewise.
43486         * tests/test-mbspbrk.c: Likewise.
43487         * tests/test-mbspcasecmp.c: Likewise.
43488         * tests/test-mbsrchr.c: Likewise.
43489         * tests/test-mbsspn.c: Likewise.
43490         * tests/test-mbsstr1.c: Likewise.
43491         * tests/test-mbsstr2.c: Likewise.
43492         * tests/test-mbsstr3.c: Likewise.
43493         * tests/test-md5.c: Likewise.
43494         * tests/test-memmem.c: Likewise.
43495         * tests/test-netinet_in.c: Likewise.
43496         * tests/test-open.c: Likewise.
43497         * tests/test-printf-frexp.c: Likewise.
43498         * tests/test-printf-frexpl.c: Likewise.
43499         * tests/test-printf-posix.c: Likewise.
43500         * tests/test-printf-posix.h: Likewise.
43501         * tests/test-rbtree_list.c: Likewise.
43502         * tests/test-rbtree_oset.c: Likewise.
43503         * tests/test-rbtreehash_list.c: Likewise.
43504         * tests/test-read-file.c: Likewise.
43505         * tests/test-rijndael.c: Likewise.
43506         * tests/test-search.c: Likewise.
43507         * tests/test-signbit.c: Likewise.
43508         * tests/test-sleep.c: Likewise.
43509         * tests/test-snprintf-posix.c: Likewise.
43510         * tests/test-snprintf-posix.h: Likewise.
43511         * tests/test-snprintf.c: Likewise.
43512         * tests/test-sprintf-posix.c: Likewise.
43513         * tests/test-sprintf-posix.h: Likewise.
43514         * tests/test-stat-time.c: Likewise.
43515         * tests/test-stdbool.c: Likewise.
43516         * tests/test-stdint.c: Likewise.
43517         * tests/test-stdio.c: Likewise.
43518         * tests/test-stdlib.c: Likewise.
43519         * tests/test-stpncpy.c: Likewise.
43520         * tests/test-strcasestr.c: Likewise.
43521         * tests/test-striconv.c: Likewise.
43522         * tests/test-striconveh.c: Likewise.
43523         * tests/test-striconveha.c: Likewise.
43524         * tests/test-string.c: Likewise.
43525         * tests/test-sys_select.c: Likewise.
43526         * tests/test-sys_socket.c: Likewise.
43527         * tests/test-sys_stat.c: Likewise.
43528         * tests/test-sys_time.c: Likewise.
43529         * tests/test-sysexits.c: Likewise.
43530         * tests/test-time.c: Likewise.
43531         * tests/test-tls.c: Likewise.
43532         * tests/test-trunc.c: Likewise.
43533         * tests/test-truncf.c: Likewise.
43534         * tests/test-truncl.c: Likewise.
43535         * tests/test-unistd.c: Likewise.
43536         * tests/test-vasnprintf-posix.c: Likewise.
43537         * tests/test-vasnprintf-posix2.c: Likewise.
43538         * tests/test-vasnprintf.c: Likewise.
43539         * tests/test-vasprintf-posix.c: Likewise.
43540         * tests/test-vasprintf.c: Likewise.
43541         * tests/test-verify.c: Likewise.
43542         * tests/test-vfprintf-posix.c: Likewise.
43543         * tests/test-vprintf-posix.c: Likewise.
43544         * tests/test-vsnprintf-posix.c: Likewise.
43545         * tests/test-vsnprintf.c: Likewise.
43546         * tests/test-vsprintf-posix.c: Likewise.
43547         * tests/test-wchar.c: Likewise.
43548         * tests/test-wctype.c: Likewise.
43549         * tests/test-wcwidth.c: Likewise.
43550         * tests/test-xstrtol.c: Likewise.
43551         * tests/test-xvasprintf.c: Likewise.
43552         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
43553         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
43554         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
43555         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
43556         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
43557         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
43558         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
43559         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
43560         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
43561         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
43562         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
43563         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
43564         * tests/uniname/test-uninames.c: Likewise.
43565         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
43566         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
43567         * tests/unistdio/test-u16-printf1.h: Likewise.
43568         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
43569         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
43570         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
43571         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
43572         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
43573         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
43574         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
43575         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
43576         * tests/unistdio/test-u32-printf1.h: Likewise.
43577         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
43578         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
43579         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
43580         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
43581         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
43582         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
43583         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
43584         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
43585         * tests/unistdio/test-u8-printf1.h: Likewise.
43586         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
43587         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
43588         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
43589         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
43590         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
43591         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
43592         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
43593         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
43594         * tests/unistdio/test-ulc-printf1.h: Likewise.
43595         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
43596         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
43597         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
43598         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
43599         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
43600         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
43601         * tests/uniwidth/test-u16-strwidth.c: Likewise.
43602         * tests/uniwidth/test-u16-width.c: Likewise.
43603         * tests/uniwidth/test-u32-strwidth.c: Likewise.
43604         * tests/uniwidth/test-u32-width.c: Likewise.
43605         * tests/uniwidth/test-u8-strwidth.c: Likewise.
43606         * tests/uniwidth/test-u8-width.c: Likewise.
43607         * tests/uniwidth/test-uc_width.c: Likewise.
43608         * config/srclist-update: Likewise.
43609         (fixlicense): Update to GPLv3+.
43610
43611         Change copyright notice from LGPLv2.1+ to LGPLv3+.
43612         * tests/test-tsearch.c: Change copyright notice.
43613
43614         Change copyright notice from LGPLv2.0+ to LGPLv3+.
43615         * lib/c-strcaseeq.h: Change copyright notice.
43616         * lib/streq.h: Likewise.
43617         * lib/uniconv.h: Likewise.
43618         * lib/uniconv/u-conv-from-enc.h: Likewise.
43619         * lib/uniconv/u-conv-to-enc.h: Likewise.
43620         * lib/uniconv/u-strconv-from-enc.h: Likewise.
43621         * lib/uniconv/u-strconv-to-enc.h: Likewise.
43622         * lib/uniconv/u16-conv-from-enc.c: Likewise.
43623         * lib/uniconv/u16-conv-to-enc.c: Likewise.
43624         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
43625         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
43626         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
43627         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
43628         * lib/uniconv/u32-conv-from-enc.c: Likewise.
43629         * lib/uniconv/u32-conv-to-enc.c: Likewise.
43630         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
43631         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
43632         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
43633         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
43634         * lib/uniconv/u8-conv-from-enc.c: Likewise.
43635         * lib/uniconv/u8-conv-to-enc.c: Likewise.
43636         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
43637         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
43638         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
43639         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
43640         * lib/uniname.h: Likewise.
43641         * lib/uniname/uniname.c: Likewise.
43642         * lib/unistdio.h: Likewise.
43643         * lib/unistdio/u-asnprintf.h: Likewise.
43644         * lib/unistdio/u-asprintf.h: Likewise.
43645         * lib/unistdio/u-printf-args.c: Likewise.
43646         * lib/unistdio/u-printf-args.h: Likewise.
43647         * lib/unistdio/u-printf-parse.h: Likewise.
43648         * lib/unistdio/u-snprintf.h: Likewise.
43649         * lib/unistdio/u-sprintf.h: Likewise.
43650         * lib/unistdio/u-vasprintf.h: Likewise.
43651         * lib/unistdio/u-vsnprintf.h: Likewise.
43652         * lib/unistdio/u-vsprintf.h: Likewise.
43653         * lib/unistdio/u16-asnprintf.c: Likewise.
43654         * lib/unistdio/u16-asprintf.c: Likewise.
43655         * lib/unistdio/u16-printf-parse.c: Likewise.
43656         * lib/unistdio/u16-snprintf.c: Likewise.
43657         * lib/unistdio/u16-sprintf.c: Likewise.
43658         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
43659         * lib/unistdio/u16-u16-asprintf.c: Likewise.
43660         * lib/unistdio/u16-u16-snprintf.c: Likewise.
43661         * lib/unistdio/u16-u16-sprintf.c: Likewise.
43662         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
43663         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
43664         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
43665         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
43666         * lib/unistdio/u16-vasnprintf.c: Likewise.
43667         * lib/unistdio/u16-vasprintf.c: Likewise.
43668         * lib/unistdio/u16-vsnprintf.c: Likewise.
43669         * lib/unistdio/u16-vsprintf.c: Likewise.
43670         * lib/unistdio/u32-asnprintf.c: Likewise.
43671         * lib/unistdio/u32-asprintf.c: Likewise.
43672         * lib/unistdio/u32-printf-parse.c: Likewise.
43673         * lib/unistdio/u32-snprintf.c: Likewise.
43674         * lib/unistdio/u32-sprintf.c: Likewise.
43675         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
43676         * lib/unistdio/u32-u32-asprintf.c: Likewise.
43677         * lib/unistdio/u32-u32-snprintf.c: Likewise.
43678         * lib/unistdio/u32-u32-sprintf.c: Likewise.
43679         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
43680         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
43681         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
43682         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
43683         * lib/unistdio/u32-vasnprintf.c: Likewise.
43684         * lib/unistdio/u32-vasprintf.c: Likewise.
43685         * lib/unistdio/u32-vsnprintf.c: Likewise.
43686         * lib/unistdio/u32-vsprintf.c: Likewise.
43687         * lib/unistdio/u8-asnprintf.c: Likewise.
43688         * lib/unistdio/u8-asprintf.c: Likewise.
43689         * lib/unistdio/u8-printf-parse.c: Likewise.
43690         * lib/unistdio/u8-snprintf.c: Likewise.
43691         * lib/unistdio/u8-sprintf.c: Likewise.
43692         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
43693         * lib/unistdio/u8-u8-asprintf.c: Likewise.
43694         * lib/unistdio/u8-u8-snprintf.c: Likewise.
43695         * lib/unistdio/u8-u8-sprintf.c: Likewise.
43696         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
43697         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
43698         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
43699         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
43700         * lib/unistdio/u8-vasnprintf.c: Likewise.
43701         * lib/unistdio/u8-vasprintf.c: Likewise.
43702         * lib/unistdio/u8-vsnprintf.c: Likewise.
43703         * lib/unistdio/u8-vsprintf.c: Likewise.
43704         * lib/unistdio/ulc-asnprintf.c: Likewise.
43705         * lib/unistdio/ulc-asprintf.c: Likewise.
43706         * lib/unistdio/ulc-printf-parse.c: Likewise.
43707         * lib/unistdio/ulc-snprintf.c: Likewise.
43708         * lib/unistdio/ulc-sprintf.c: Likewise.
43709         * lib/unistdio/ulc-vasnprintf.c: Likewise.
43710         * lib/unistdio/ulc-vasprintf.c: Likewise.
43711         * lib/unistdio/ulc-vsnprintf.c: Likewise.
43712         * lib/unistdio/ulc-vsprintf.c: Likewise.
43713         * lib/unistr.h: Likewise.
43714         * lib/unistr/u-cpy-alloc.h: Likewise.
43715         * lib/unistr/u-cpy.h: Likewise.
43716         * lib/unistr/u-endswith.h: Likewise.
43717         * lib/unistr/u-move.h: Likewise.
43718         * lib/unistr/u-set.h: Likewise.
43719         * lib/unistr/u-startswith.h: Likewise.
43720         * lib/unistr/u-stpcpy.h: Likewise.
43721         * lib/unistr/u-stpncpy.h: Likewise.
43722         * lib/unistr/u-strcat.h: Likewise.
43723         * lib/unistr/u-strcpy.h: Likewise.
43724         * lib/unistr/u-strcspn.h: Likewise.
43725         * lib/unistr/u-strdup.h: Likewise.
43726         * lib/unistr/u-strlen.h: Likewise.
43727         * lib/unistr/u-strncat.h: Likewise.
43728         * lib/unistr/u-strncpy.h: Likewise.
43729         * lib/unistr/u-strnlen.h: Likewise.
43730         * lib/unistr/u-strpbrk.h: Likewise.
43731         * lib/unistr/u-strspn.h: Likewise.
43732         * lib/unistr/u-strstr.h: Likewise.
43733         * lib/unistr/u-strtok.h: Likewise.
43734         * lib/unistr/u16-check.c: Likewise.
43735         * lib/unistr/u16-chr.c: Likewise.
43736         * lib/unistr/u16-cmp.c: Likewise.
43737         * lib/unistr/u16-cpy-alloc.c: Likewise.
43738         * lib/unistr/u16-cpy.c: Likewise.
43739         * lib/unistr/u16-endswith.c: Likewise.
43740         * lib/unistr/u16-mblen.c: Likewise.
43741         * lib/unistr/u16-mbsnlen.c: Likewise.
43742         * lib/unistr/u16-mbtouc-aux.c: Likewise.
43743         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
43744         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
43745         * lib/unistr/u16-mbtouc.c: Likewise.
43746         * lib/unistr/u16-mbtoucr.c: Likewise.
43747         * lib/unistr/u16-move.c: Likewise.
43748         * lib/unistr/u16-next.c: Likewise.
43749         * lib/unistr/u16-prev.c: Likewise.
43750         * lib/unistr/u16-set.c: Likewise.
43751         * lib/unistr/u16-startswith.c: Likewise.
43752         * lib/unistr/u16-stpcpy.c: Likewise.
43753         * lib/unistr/u16-stpncpy.c: Likewise.
43754         * lib/unistr/u16-strcat.c: Likewise.
43755         * lib/unistr/u16-strchr.c: Likewise.
43756         * lib/unistr/u16-strcmp.c: Likewise.
43757         * lib/unistr/u16-strcpy.c: Likewise.
43758         * lib/unistr/u16-strcspn.c: Likewise.
43759         * lib/unistr/u16-strdup.c: Likewise.
43760         * lib/unistr/u16-strlen.c: Likewise.
43761         * lib/unistr/u16-strmblen.c: Likewise.
43762         * lib/unistr/u16-strmbtouc.c: Likewise.
43763         * lib/unistr/u16-strncat.c: Likewise.
43764         * lib/unistr/u16-strncmp.c: Likewise.
43765         * lib/unistr/u16-strncpy.c: Likewise.
43766         * lib/unistr/u16-strnlen.c: Likewise.
43767         * lib/unistr/u16-strpbrk.c: Likewise.
43768         * lib/unistr/u16-strrchr.c: Likewise.
43769         * lib/unistr/u16-strspn.c: Likewise.
43770         * lib/unistr/u16-strstr.c: Likewise.
43771         * lib/unistr/u16-strtok.c: Likewise.
43772         * lib/unistr/u16-to-u32.c: Likewise.
43773         * lib/unistr/u16-to-u8.c: Likewise.
43774         * lib/unistr/u16-uctomb-aux.c: Likewise.
43775         * lib/unistr/u16-uctomb.c: Likewise.
43776         * lib/unistr/u32-check.c: Likewise.
43777         * lib/unistr/u32-chr.c: Likewise.
43778         * lib/unistr/u32-cmp.c: Likewise.
43779         * lib/unistr/u32-cpy-alloc.c: Likewise.
43780         * lib/unistr/u32-cpy.c: Likewise.
43781         * lib/unistr/u32-endswith.c: Likewise.
43782         * lib/unistr/u32-mblen.c: Likewise.
43783         * lib/unistr/u32-mbsnlen.c: Likewise.
43784         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
43785         * lib/unistr/u32-mbtouc.c: Likewise.
43786         * lib/unistr/u32-mbtoucr.c: Likewise.
43787         * lib/unistr/u32-move.c: Likewise.
43788         * lib/unistr/u32-next.c: Likewise.
43789         * lib/unistr/u32-prev.c: Likewise.
43790         * lib/unistr/u32-set.c: Likewise.
43791         * lib/unistr/u32-startswith.c: Likewise.
43792         * lib/unistr/u32-stpcpy.c: Likewise.
43793         * lib/unistr/u32-stpncpy.c: Likewise.
43794         * lib/unistr/u32-strcat.c: Likewise.
43795         * lib/unistr/u32-strchr.c: Likewise.
43796         * lib/unistr/u32-strcmp.c: Likewise.
43797         * lib/unistr/u32-strcpy.c: Likewise.
43798         * lib/unistr/u32-strcspn.c: Likewise.
43799         * lib/unistr/u32-strdup.c: Likewise.
43800         * lib/unistr/u32-strlen.c: Likewise.
43801         * lib/unistr/u32-strmblen.c: Likewise.
43802         * lib/unistr/u32-strmbtouc.c: Likewise.
43803         * lib/unistr/u32-strncat.c: Likewise.
43804         * lib/unistr/u32-strncmp.c: Likewise.
43805         * lib/unistr/u32-strncpy.c: Likewise.
43806         * lib/unistr/u32-strnlen.c: Likewise.
43807         * lib/unistr/u32-strpbrk.c: Likewise.
43808         * lib/unistr/u32-strrchr.c: Likewise.
43809         * lib/unistr/u32-strspn.c: Likewise.
43810         * lib/unistr/u32-strstr.c: Likewise.
43811         * lib/unistr/u32-strtok.c: Likewise.
43812         * lib/unistr/u32-to-u16.c: Likewise.
43813         * lib/unistr/u32-to-u8.c: Likewise.
43814         * lib/unistr/u32-uctomb.c: Likewise.
43815         * lib/unistr/u8-check.c: Likewise.
43816         * lib/unistr/u8-chr.c: Likewise.
43817         * lib/unistr/u8-cmp.c: Likewise.
43818         * lib/unistr/u8-cpy-alloc.c: Likewise.
43819         * lib/unistr/u8-cpy.c: Likewise.
43820         * lib/unistr/u8-endswith.c: Likewise.
43821         * lib/unistr/u8-mblen.c: Likewise.
43822         * lib/unistr/u8-mbsnlen.c: Likewise.
43823         * lib/unistr/u8-mbtouc-aux.c: Likewise.
43824         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
43825         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
43826         * lib/unistr/u8-mbtouc.c: Likewise.
43827         * lib/unistr/u8-mbtoucr.c: Likewise.
43828         * lib/unistr/u8-move.c: Likewise.
43829         * lib/unistr/u8-next.c: Likewise.
43830         * lib/unistr/u8-prev.c: Likewise.
43831         * lib/unistr/u8-set.c: Likewise.
43832         * lib/unistr/u8-startswith.c: Likewise.
43833         * lib/unistr/u8-stpcpy.c: Likewise.
43834         * lib/unistr/u8-stpncpy.c: Likewise.
43835         * lib/unistr/u8-strcat.c: Likewise.
43836         * lib/unistr/u8-strchr.c: Likewise.
43837         * lib/unistr/u8-strcmp.c: Likewise.
43838         * lib/unistr/u8-strcpy.c: Likewise.
43839         * lib/unistr/u8-strcspn.c: Likewise.
43840         * lib/unistr/u8-strdup.c: Likewise.
43841         * lib/unistr/u8-strlen.c: Likewise.
43842         * lib/unistr/u8-strmblen.c: Likewise.
43843         * lib/unistr/u8-strmbtouc.c: Likewise.
43844         * lib/unistr/u8-strncat.c: Likewise.
43845         * lib/unistr/u8-strncmp.c: Likewise.
43846         * lib/unistr/u8-strncpy.c: Likewise.
43847         * lib/unistr/u8-strnlen.c: Likewise.
43848         * lib/unistr/u8-strpbrk.c: Likewise.
43849         * lib/unistr/u8-strrchr.c: Likewise.
43850         * lib/unistr/u8-strspn.c: Likewise.
43851         * lib/unistr/u8-strstr.c: Likewise.
43852         * lib/unistr/u8-strtok.c: Likewise.
43853         * lib/unistr/u8-to-u16.c: Likewise.
43854         * lib/unistr/u8-to-u32.c: Likewise.
43855         * lib/unistr/u8-uctomb-aux.c: Likewise.
43856         * lib/unistr/u8-uctomb.c: Likewise.
43857         * lib/unitypes.h: Likewise.
43858         * lib/uniwidth.h: Likewise.
43859         * lib/uniwidth/cjk.h: Likewise.
43860         * lib/uniwidth/u16-strwidth.c: Likewise.
43861         * lib/uniwidth/u16-width.c: Likewise.
43862         * lib/uniwidth/u32-strwidth.c: Likewise.
43863         * lib/uniwidth/u32-width.c: Likewise.
43864         * lib/uniwidth/u8-strwidth.c: Likewise.
43865         * lib/uniwidth/u8-width.c: Likewise.
43866         * lib/uniwidth/width.c: Likewise.
43867
43868 2007-10-07  Bruno Haible  <bruno@clisp.org>
43869
43870         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
43871         The file is still under LGPL (see modules/inttypes).
43872
43873 2007-10-06  Bruno Haible  <bruno@clisp.org>
43874
43875         * modules/trunc (Dependencies): Add 'extensions'.
43876         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
43877         Reported by Ben Pfaff <blp@gnu.org>.
43878
43879 2007-10-06  Bruno Haible  <bruno@clisp.org>
43880
43881         * modules/freopen-tests: New file.
43882         * tests/test-freopen.c: New file.
43883
43884         * modules/fopen-tests: New file.
43885         * tests/test-fopen.c: New file.
43886
43887         * modules/fopen: New file.
43888         * lib/fopen.c: New file.
43889         * m4/fopen.m4: New file.
43890         * modules/freopen: New file.
43891         * lib/freopen.c: New file.
43892         * m4/freopen.m4: New file.
43893         * lib/stdio.in.h (fopen, freopen): New declarations.
43894         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
43895         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
43896         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
43897         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
43898         * doc/functions/fopen.texi: Mention the 'fopen' module.
43899         * doc/functions/freopen.texi: Mention the 'freopen' module.
43900
43901 2007-10-06  Bruno Haible  <bruno@clisp.org>
43902
43903         * modules/open-tests: New file.
43904         * tests/test-open.c: New file.
43905
43906         * modules/open: New file.
43907         * lib/open.c: New file.
43908         * m4/open.m4: New file.
43909         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
43910         lib/open.c does.
43911         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
43912         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
43913         macros.
43914         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
43915         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
43916         REPLACE_OPEN.
43917         * doc/functions/open.texi: Mention the 'open' module.
43918
43919 2007-10-04  Bruno Haible  <bruno@clisp.org>
43920
43921         * modules/ceill-tests: New file.
43922         * tests/test-ceill.c: New file.
43923
43924         * modules/ceill: New file.
43925         * lib/ceill.c: Replace entire file.
43926         * m4/ceill.m4: New file.
43927         * lib/math.in.h (ceill): Replace declaration.
43928         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
43929         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
43930         * doc/functions/ceill.texi: Mention the 'ceill' module.
43931         * modules/mathl (Files): Remove lib/ceill.c.
43932         (Depends-on): Add ceill.
43933
43934 2007-10-04  Bruno Haible  <bruno@clisp.org>
43935
43936         * modules/ceilf-tests: New file.
43937         * tests/test-ceilf.c: New file.
43938
43939         * modules/ceilf: New file.
43940         * lib/ceil.c: New file.
43941         * lib/ceilf.c: New file.
43942         * m4/ceilf.m4: New file.
43943         * lib/math.in.h (ceilf): New declaration.
43944         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
43945         HAVE_DECL_CEILF.
43946         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
43947         HAVE_DECL_CEILF.
43948         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
43949
43950 2007-10-04  Bruno Haible  <bruno@clisp.org>
43951
43952         * modules/floorl-tests: New file.
43953         * tests/test-floorl.c: New file.
43954
43955         * modules/floorl: New file.
43956         * lib/floorl.c: Replace entire file.
43957         * m4/floorl.m4: New file.
43958         * lib/math.in.h (floorl): Replace declaration.
43959         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
43960         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
43961         * doc/functions/floorl.texi: Mention the 'floorl' module.
43962         * modules/mathl (Files): Remove lib/floorl.c.
43963         (Depends-on): Add floorl.
43964
43965 2007-10-04  Bruno Haible  <bruno@clisp.org>
43966
43967         * modules/floorf-tests: New file.
43968         * tests/test-floorf.c: New file.
43969
43970         * modules/floorf: New file.
43971         * lib/floor.c: New file.
43972         * lib/floorf.c: New file.
43973         * m4/floorf.m4: New file.
43974         * lib/math.in.h (floorf): New declaration.
43975         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
43976         HAVE_DECL_FLOORF.
43977         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
43978         HAVE_DECL_FLOORF.
43979         * doc/functions/floorf.texi: Mention the 'floorf' module.
43980
43981 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
43982             Bruno Haible  <bruno@clisp.org>
43983
43984         Advertise for the Git server instead of the CVS server.
43985         * doc/gnulib-intro.texi (Steady Development): Mention the Git
43986         repository instead of the CVS one.
43987         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
43988         about all VCS systems generically.
43989         * doc/gnulib.texi (Introduction): Capitalize `Git'.
43990
43991 2007-10-04  Bruno Haible  <bruno@clisp.org>
43992
43993         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
43994         means.
43995         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
43996
43997 2007-10-04  Bruno Haible  <bruno@clisp.org>
43998
43999         * modules/truncl-tests: New file.
44000         * tests/test-truncl.c: New file.
44001
44002         * modules/truncl: New file.
44003         * lib/truncl.c: New file.
44004         * m4/truncl.m4: New file.
44005         * lib/math.in.h (truncl): New declaration.
44006         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
44007         HAVE_DECL_TRUNCL.
44008         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
44009         HAVE_DECL_TRUNCL.
44010         * doc/functions/truncl.texi: Mention the 'truncl' module.
44011
44012 2007-10-04  Bruno Haible  <bruno@clisp.org>
44013
44014         * modules/truncf-tests: New file.
44015         * tests/test-truncf.c: New file.
44016
44017         * modules/truncf: New file.
44018         * lib/trunc.c: Make paramerizable through USE_* macros.
44019         * lib/truncf.c: New file.
44020         * m4/truncf.m4: New file.
44021         * lib/math.in.h (truncf): New declaration.
44022         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
44023         HAVE_DECL_TRUNCF.
44024         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
44025         HAVE_DECL_TRUNCF.
44026         * doc/functions/truncf.texi: Mention the 'truncf' module.
44027
44028 2007-10-03  Bruno Haible  <bruno@clisp.org>
44029
44030         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
44031         augmentation also for tests modules.
44032         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
44033         * modules/atexit-tests (Makefile.am): Likewise.
44034         * modules/binary-io-tests (Makefile.am): Likewise.
44035         * modules/c-strcase-tests (Makefile.am): Likewise.
44036         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
44037         * modules/canonicalize-tests (Makefile.am): Likewise.
44038         * modules/closein-tests (Makefile.am): Likewise.
44039         * modules/fprintf-posix-tests (Makefile.am): Likewise.
44040         * modules/freadahead-tests (Makefile.am): Likewise.
44041         * modules/fseek-tests (Makefile.am): Likewise.
44042         * modules/fseeko-tests (Makefile.am): Likewise.
44043         * modules/ftell-tests (Makefile.am): Likewise.
44044         * modules/ftello-tests (Makefile.am): Likewise.
44045         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
44046         * modules/isnanl-tests (Makefile.am): Likewise.
44047         * modules/lseek-tests (Makefile.am): Likewise.
44048         * modules/mbscasecmp-tests (Makefile.am): Likewise.
44049         * modules/mbscasestr-tests (Makefile.am): Likewise.
44050         * modules/mbschr-tests (Makefile.am): Likewise.
44051         * modules/mbscspn-tests (Makefile.am): Likewise.
44052         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
44053         * modules/mbspbrk-tests (Makefile.am): Likewise.
44054         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
44055         * modules/mbsrchr-tests (Makefile.am): Likewise.
44056         * modules/mbsspn-tests (Makefile.am): Likewise.
44057         * modules/mbsstr-tests (Makefile.am): Likewise.
44058         * modules/printf-posix-tests (Makefile.am): Likewise.
44059         * modules/snprintf-posix-tests (Makefile.am): Likewise.
44060         * modules/sprintf-posix-tests (Makefile.am): Likewise.
44061         * modules/tsearch-tests (Makefile.am): Likewise.
44062         * modules/uniname/uniname-tests (Makefile.am): Likewise.
44063         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
44064         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
44065         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
44066         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
44067         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
44068         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
44069         * modules/vprintf-posix-tests (Makefile.am): Likewise.
44070         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
44071         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
44072         * modules/xstrtoimax-tests (Makefile.am): Likewise.
44073         * modules/xstrtol-tests (Makefile.am): Likewise.
44074         * modules/xstrtoumax-tests (Makefile.am): Likewise.
44075         * modules/yesno-tests (Makefile.am): Likewise.
44076
44077 2007-10-03  Bruno Haible  <bruno@clisp.org>
44078
44079         * modules/trunc-tests: New file.
44080         * tests/test-trunc.c: New file.
44081
44082         * modules/trunc: New file.
44083         * lib/trunc.c: New file.
44084         * m4/trunc.m4: New file.
44085         * lib/math.in.h (trunc): New declaration.
44086         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
44087         HAVE_DECL_TRUNC.
44088         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
44089         HAVE_DECL_TRUNC.
44090         * doc/functions/trunc.texi: Mention the 'trunc' module.
44091
44092 2007-10-03  Bruno Haible  <bruno@clisp.org>
44093
44094         * tests/test-fpending.c: New file, mostly copied
44095         from coreutils/lib/t-fpending.c.
44096         * modules/fpending-tests: New file.
44097
44098 2007-10-03  Bruno Haible  <bruno@clisp.org>
44099
44100         Port the stdio extensions to QNX (untested).
44101         * lib/fseterr.c (fseterr): Add support for QNX.
44102         * lib/fbufmode.c (fbufmode): Likewise.
44103         * lib/freadable.c (freadable): Likewise.
44104         * lib/fwritable.c (fwritable): Likewise.
44105         * lib/freading.c (freading): Likewise.
44106         * lib/fwriting.c (fwriting): Likewise.
44107         * lib/freadahead.c (freadahed): Likewise.
44108         * lib/fpurge.c (fpurge): Likewise.
44109         * lib/fseeko.c (rpl_fseeko): Likewise.
44110
44111 2007-10-03  Bruno Haible  <bruno@clisp.org>
44112             Jim Meyering  <jim@meyering.net>
44113             Eric Blake  <ebb9@byu.net>
44114
44115         * doc/relocatable.texi: Use @command instead of @program.
44116
44117 2007-10-02  Jim Meyering  <jim@meyering.net>
44118
44119         Perform one more "_.h" -> ".in.h" substitution.
44120         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
44121         instead of unistd_.h here, too.
44122
44123 2007-10-01  Bruno Haible  <bruno@clisp.org>
44124
44125         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
44126         Needed for the alloca-opt module.
44127
44128 2007-09-30  Bruno Haible  <bruno@clisp.org>
44129
44130         * lib/alloca.in.h: Renamed from lib/alloca_.h.
44131         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
44132         alloca_.h.
44133         * lib/argz.in.h: Renamed from lib/argz_.h.
44134         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
44135         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
44136         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
44137         byteswap_.h.
44138         * lib/dirent.in.h: Renamed from lib/dirent_.h.
44139         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
44140         dirent_.h.
44141         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
44142         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
44143         fcntl_.h.
44144         * lib/float.in.h: Renamed from lib/float_.h.
44145         * modules/float (Files, Makefile.am): Use float.in.h instead of
44146         float_.h.
44147         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
44148         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
44149         fnmatch_.h.
44150         * lib/getopt.in.h: Renamed from lib/getopt_.h.
44151         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
44152         getopt_.h.
44153         * lib/glob.in.h: Renamed from lib/glob_.h.
44154         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
44155         * lib/iconv.in.h: Renamed from lib/iconv_.h.
44156         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
44157         iconv_.h.
44158         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
44159         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
44160         inttypes_.h.
44161         * lib/locale.in.h: Renamed from lib/locale_.h.
44162         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
44163         locale_.h.
44164         * lib/math.in.h: Renamed from lib/math_.h.
44165         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
44166         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
44167         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
44168         of netinet_in_.h. Add dependency.
44169         * lib/poll.in.h: Renamed from lib/poll_.h.
44170         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
44171         * lib/search.in.h: Renamed from lib/search_.h.
44172         * modules/search (Files, Makefile.am): Use search.in.h instead of
44173         search_.h.
44174         * lib/signal.in.h: Renamed from lib/signal_.h.
44175         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
44176         _signal.h.
44177         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
44178         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
44179         stdbool_.h.
44180         * lib/stdint.in.h: Renamed from lib/stdint_.h.
44181         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
44182         stdint_.h.
44183         * lib/stdio.in.h: Renamed from lib/stdio_.h.
44184         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
44185         stdio_.h.
44186         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
44187         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
44188         stdlib_.h.
44189         * lib/string.in.h: Renamed from lib/string_.h.
44190         * modules/string (Files, Makefile.am): Use string.in.h instead of
44191         string_.h.
44192         * doc/gnulib-tool.texi (Initial import): Update.
44193         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
44194         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
44195         of sys_select_.h. Add dependency.
44196         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
44197         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
44198         of sys_socket_.h.
44199         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
44200         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
44201         sys_stat_.h.
44202         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
44203         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
44204         sys_time_.h.
44205         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
44206         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
44207         sysexits_.h.
44208         * lib/time.in.h: Renamed from lib/time_.h.
44209         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
44210         * lib/unistd.in.h: Renamed from lib/unistd_.h.
44211         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
44212         unistd_.h.
44213         * lib/wchar.in.h: Renamed from lib/wchar_.h.
44214         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
44215         wchar_.h.
44216         * lib/wctype.in.h: Renamed from lib/wctype_.h.
44217         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
44218         wctype_.h.
44219         * build-aux/bootstrap (slurp): Update.
44220         * lib/.cppi-disable: Update.
44221
44222 2007-09-30  Bruno Haible  <bruno@clisp.org>
44223
44224         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
44225         Needed on BeOS.
44226
44227 2007-09-30  Bruno Haible  <bruno@clisp.org>
44228
44229         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
44230
44231 2007-09-29  Bruno Haible  <bruno@clisp.org>
44232
44233         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
44234
44235 2007-09-29  Bruno Haible  <bruno@clisp.org>
44236
44237         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
44238         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
44239         * build-aux/install-reloc: Compile also areadlink.c.
44240         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
44241
44242 2007-09-29  Bruno Haible  <bruno@clisp.org>
44243
44244         * gnulib-tool (func_emit_initmacro_done): Indentation.
44245
44246 2007-09-29  Bruno Haible  <bruno@clisp.org>
44247
44248         * README: Add CVS checkout update instructions.
44249         Info from Bob Proulx <bob@proulx.com>.
44250
44251 2007-09-28  Eric Blake  <ebb9@byu.net>
44252
44253         Provide move-if-change.
44254         * build-aux/move-if-change: New file, based on best practice
44255         rather than any canonical upstream location.
44256
44257 2007-09-28  Jim Meyering  <jim@meyering.net>
44258
44259         Fix canonicalize loop-detection corner case.
44260         Do not attempt to stat the symlink values stored via seen_triple.
44261         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
44262         on linux-2.6.18, (but not 2.6.22).
44263         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
44264         triple_compare.  The former compares dev,ino,filename, while the latter
44265         would actually stat dirname(filename) when dev and ino were equal.
44266         * lib/hash-triple.c: Install <string.h>.
44267         (STREQ): Define.
44268         (triple_compare_ino_str): New function.
44269         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
44270
44271 2007-09-28  Eric Blake  <ebb9@byu.net>
44272
44273         Enforce that AC_REPLACE_FUNCS files exist.
44274         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
44275         override check for typos.
44276
44277         Fix test-closein on Solaris 10.
44278         * tests/test-closein.c (main): Don't assume stdin can be inherited
44279         closed on all systems.
44280         * tests/test-closein.sh: Likewise.
44281         Reported by Piotr Tarnowski.
44282
44283 2007-09-28  Jim Meyering  <jim@meyering.net>
44284
44285         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
44286
44287 2007-09-27  Jim Meyering  <jim@meyering.net>
44288
44289         canonicalize: Avoid a false-positive cycle failure.
44290         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
44291         Sort.  Remove cycle-check.
44292         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
44293         not cycle-check.h.
44294         (seen_triple): New function.
44295         (canonicalize_filename_mode): Use it instead of cycle-check.
44296         * tests/test-canonicalize.c: Add a test for this bug.
44297         * tests/test-canonicalize.sh: Set up and run the test.
44298
44299         New module, file-set, from coreutils.
44300         * modules/file-set: Define it.
44301         * lib/file-set.c, lib/file-set.h: Implement.
44302
44303         New module, hash-triple, from coreutils.
44304         * modules/hash-triple: Define it.
44305         * lib/hash-triple.c, lib/hash-triple.h: Implement.
44306
44307 2007-09-25  Eric Blake  <ebb9@byu.net>
44308
44309         Fix strerror on Interix.
44310         * lib/string_.h (strerror): Declare replacement.
44311         * doc/functions/strerror.texi (strerror): Document the Interix
44312         shortcoming.
44313         * modules/string (Makefile.am): Support new hooks.
44314         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
44315         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
44316         gl_FUNC_STRERROR_SEPARATE.
44317         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
44318         * lib/strerror.c (rpl_strerror): Provide replacement.
44319         * modules/strerror (Depends-on): Add string.
44320         (configure.ac): Detect use of module.
44321         * tests/test-strerror.c: New file.
44322         * modules/strerror-tests: New test module.
44323         * modules/argp (Depends-on): Add strerror.
44324         * modules/error (Depends-on): Likewise.
44325         Reported by Martin Koeppe.
44326
44327 2007-09-24  Bruno Haible  <bruno@clisp.org>
44328
44329         * README: Update git instructions.
44330
44331 2007-09-24  Eric Blake  <ebb9@byu.net>
44332
44333         Revert fpending breakage from 2007-09-08.
44334         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
44335         __fpending.c.
44336
44337 2007-09-24  Jim Meyering  <jim@meyering.net>
44338
44339         filenamecat.c: Add a test.
44340         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
44341         showing how the function works when DIR is the empty string.
44342
44343 2007-09-21  Simon Josefsson  <simon@josefsson.org>
44344
44345         * tests/test-canonicalize.sh: Turn on executable bit.
44346
44347 2007-09-19  Eric Blake  <ebb9@byu.net>
44348
44349         * README: Update CVS instructions.
44350
44351 2007-09-18  Bruno Haible  <bruno@clisp.org>
44352
44353         * modules/areadlink: New file.
44354         * lib/areadlink.h (areadlink): New declaration.
44355         * lib/areadlink.c: New file, based on lib/xreadlink.c.
44356
44357 2007-09-17  Jim Meyering  <jim@meyering.net>
44358
44359         * lib/savewd.c (ESTALE) [!defined]: Define.
44360         Reported to be required on Interix by Martin Koeppe.
44361
44362 2007-09-17  Bruno Haible  <bruno@clisp.org>
44363
44364         * gnulib-tool (func_version): Use $version.
44365
44366 2007-09-16  Bruno Haible  <bruno@clisp.org>
44367
44368         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
44369         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
44370         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
44371         Reported by Greg Schafer <gschafer@zip.com.au>.
44372
44373 2007-09-15  Bruno Haible  <bruno@clisp.org>
44374
44375         * gnulib-tool (sed): Try a little harder to make bash understand the
44376         alias.
44377         Reported by Bruce Korb <bruce.korb@gmail.com>.
44378
44379 2007-09-13  Eric Blake  <ebb9@byu.net>
44380
44381         * ChangeLog: Remove conflict markers.
44382
44383 2007-09-13  Simon Josefsson  <simon@josefsson.org>
44384
44385         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
44386         Reported by Bruno Haible <bruno@clisp.org>.
44387
44388 2007-09-12  Bruno Haible  <bruno@clisp.org>
44389
44390         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
44391         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
44392         is not defined.
44393
44394 2007-09-12  Eric Blake  <ebb9@byu.net>
44395
44396         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
44397         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
44398         Autoconf definition.
44399         * modules/euidaccess (Depends-on): Add extensions, for
44400         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
44401         * modules/fnmatch (Depends-on): Likewise.
44402         * modules/getaddrinfo (Depends-on): Likewise.
44403         * modules/getdelim (Depends-on): Likewise.
44404         * modules/getline (Depends-on): Likewise.
44405         * modules/getsubopt (Depends-on): Likewise.
44406         * modules/gettext (Depends-on): Likewise.
44407         * modules/group-member (Depends-on): Likewise.
44408         * modules/mbchar (Depends-on): Likewise.
44409         * modules/memmem (Depends-on): Likewise.
44410         * modules/mempcpy (Depends-on): Likewise.
44411         * modules/memrchr (Depends-on): Likewise.
44412         * modules/pagealign_alloc (Depends-on): Likewise.
44413         * modules/readutmp (Depends-on): Likewise.
44414         * modules/stpcpy (Depends-on): Likewise.
44415         * modules/stpncpy (Depends-on): Likewise.
44416         * modules/strchrnul (Depends-on): Likewise.
44417         * modules/strndup (Depends-on): Likewise.
44418         * modules/strsep (Depends-on): Likewise.
44419         * modules/strverscmp (Depends-on): Likewise.
44420         * modules/vasprintf (Depends-on): Likewise.
44421         * modules/wcwidth (Depends-on): Likewise.
44422         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
44423         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
44424         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
44425         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
44426         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
44427         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
44428         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
44429         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
44430         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
44431         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
44432         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
44433         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
44434         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
44435         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
44436         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
44437         * m4/readutmp.m4 (gl_READUTMP): Likewise.
44438         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
44439         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
44440         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
44441         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
44442         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
44443         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
44444         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
44445         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
44446         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
44447         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
44448         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
44449         so that lock.m4 can be used in gettext without extensions module.
44450
44451 2007-09-11  Bruno Haible  <bruno@clisp.org>
44452
44453         * m4/isc-posix.m4: Remove file.
44454         Suggested by Eric Blake.
44455
44456 2007-09-11  Eric Blake  <ebb9@byu.net>
44457
44458         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
44459
44460 2007-09-10  Bruno Haible  <bruno@clisp.org>
44461
44462         * posix-modules: Fix typo in error message.
44463         Reported by Matt <mkraai@beckman.com>.
44464
44465 2007-09-09  Bruno Haible  <bruno@clisp.org>
44466
44467         * doc/functions/getdelim.texi: Update list of platforms lacking the
44468         function.
44469         * doc/functions/getline.texi: Likewise.
44470
44471 2007-09-09  Jim Meyering  <jim@meyering.net>
44472
44473         * lib/hash.c (hash_initialize): Detect calloc failure.
44474         Reported by Bruno Haible.
44475
44476 2007-09-09  Bruno Haible  <bruno@clisp.org>
44477
44478         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
44479         malloc or realloc fails.
44480
44481 2007-09-09  Bruno Haible  <bruno@clisp.org>
44482
44483         * modules/getcwd (Depends-on): Add malloc-posix.
44484         * modules/glob (Depends-on): Likewise.
44485         * modules/putenv (Depends-on): Likewise.
44486         * modules/strdup (Depends-on): Likewise.
44487         * modules/getdelim (Depends-on): Add realloc-posix.
44488         * modules/read-file (Depends-on): Likewise.
44489
44490 2007-09-09  Bruno Haible  <bruno@clisp.org>
44491
44492         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
44493         (gl_FUNC_MALLOC_POSIX): Require it.
44494         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
44495         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
44496         * modules/realloc (Files): Add m4/malloc.m4.
44497         * modules/calloc (Files): Likewise.
44498
44499 2007-09-09  Bruno Haible  <bruno@clisp.org>
44500
44501         * modules/malloc-posix: New file.
44502         * modules/malloc (Depends-on): Add malloc-posix.
44503         * lib/malloc.c: Include errno.h.
44504         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
44505         and a POSIX-compatible malloc into a single function. Set ENOMEM
44506         when returning NULL.
44507         * m4/malloc.m4: New file.
44508         * doc/functions/malloc.texi: Mention the malloc-posix module.
44509         * lib/stdlib_.h (malloc): New declaration.
44510         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
44511         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
44512         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
44513         and HAVE_MALLOC_POSIX.
44514
44515 2007-09-09  Bruno Haible  <bruno@clisp.org>
44516
44517         * modules/realloc-posix: New file.
44518         * modules/realloc (Depends-on): Add realloc-posix.
44519         * lib/realloc.c: Include errno.h.
44520         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
44521         and a POSIX-compatible realloc into a single function. Set ENOMEM
44522         when returning NULL.
44523         * m4/realloc.m4: New file.
44524         * doc/functions/realloc.texi: Mention the realloc-posix module.
44525         * lib/stdlib_.h (realloc): New declaration.
44526         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
44527         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
44528         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
44529         and HAVE_REALLOC_POSIX.
44530
44531 2007-09-09  Bruno Haible  <bruno@clisp.org>
44532
44533         * modules/calloc-posix: New file.
44534         * modules/calloc (Depends-on): Add calloc-posix.
44535         * lib/calloc.c: Include errno.h.
44536         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
44537         and a POSIX-compatible calloc into a single function. Set ENOMEM
44538         when returning NULL.
44539         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
44540         * doc/functions/calloc.texi: Mention the calloc-posix module.
44541         * lib/stdlib_.h (calloc): New declaration.
44542         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
44543         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
44544         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
44545         and HAVE_CALLOC_POSIX.
44546
44547 2007-09-09  Bruno Haible  <bruno@clisp.org>
44548
44549         Allow for modules to show an arbitrary notice.
44550         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
44551         * gnulib-tool: New option --extract-notice.
44552         (func_usage): Document it.
44553         (sed_extract_prog): Update.
44554         (func_get_notice): New function.
44555         (func_modules_notice): New function.
44556         (func_import, func_create_testdir): Invoke it.
44557         Suggested by Jim Meyering.
44558
44559 2007-09-09  Bruno Haible  <bruno@clisp.org>
44560
44561         * gnulib-tool: New options --verbose, --quiet.
44562         (func_usage): Document them.
44563         (verbose): New variable.
44564         (func_execute_command): New function.
44565         (func_import): Don't show the module list and the file list if
44566         $verbose < 0.
44567         (func_create_testdir): Likewise. Use func_execute_command.
44568         (func_create_megatestdir): Use func_execute_command.
44569
44570 2007-09-08  Bruno Haible  <bruno@clisp.org>
44571
44572         * gnulib-tool (func_import): Prefer rsync over wget when available,
44573         for fetching the PO files.
44574
44575 2007-09-08  Bruno Haible  <bruno@clisp.org>
44576
44577         * posix-modules: New file. Portions copied from gnulib-tool.
44578         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
44579
44580 2007-09-08  Jim Meyering  <jim@meyering.net>
44581
44582         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
44583         * lib/fpending.h: Rename from __fpending.h.
44584         * lib/fpending.c: Rename from __fpending.c.
44585         Include "fpending.h", not "__fpending.h".
44586         * lib/__fpending.h, lib/__fpending.c: Remove files.
44587         * modules/fpending (Files): Reflect new file names.
44588         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
44589
44590 2007-09-08  Bruno Haible  <bruno@clisp.org>
44591
44592         * m4/inttypes-h.m4: Remove stub file.
44593
44594 2007-09-07  Simon Josefsson  <simon@josefsson.org>
44595
44596         * doc/headers/stdint.texi: Discuss #include_next issue.
44597
44598 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
44599
44600         * build-aux/bootstrap: Remove obsolete comment about wget --help.
44601
44602 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44603
44604         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
44605         in variable name.
44606
44607 2007-09-03  Jim Meyering  <jim@meyering.net>
44608
44609         New module: git-version-gen.
44610         * modules/git-version-gen: New file.
44611
44612         Import changes from coreutils for bootstrap script.
44613
44614         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
44615
44616         bootstrap: uses rsync to download the .po files
44617         * build-aux/bootstrap (po_download_command_format): New global.
44618         (download_po_files): Use rsync.
44619         (update_po_files): Don't remove .po files after download,
44620         so future rsync runs can take advantage of the copies.
44621
44622         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
44623
44624         Solve the unnecessary-.po-file-regeneration problem once and for all.
44625         * build-aux/bootstrap (download_po_files): New function, renamed from
44626         get_translations.  Now, downloads, but doesn't update LINGUAS.
44627         (update_po_files): New function.
44628
44629         bootstrap: Ignore more.
44630         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
44631         uniwidth to e.g., lib/.gitignore.
44632         (slurp): Handle the sys_stat_.h -> sys mapping, too.
44633
44634         * build-aux/bootstrap: New setting: vc_ignore.
44635         (insert_sorted_if_absent): Create $file if absent.
44636         Adapt to new, possibly empty, list: $vc_ignore.
44637
44638         bootstrap: generate more ignorable names
44639         * build-aux/bootstrap (slurp): When generating ignorable names,
44640         also map .sin to .sed, .gperf to .c, and .y to .c.
44641
44642 2007-09-03  Jim Meyering  <jim@meyering.net>
44643
44644         * build-aux/git-version-gen: New file, from coreutils.  For details, see
44645         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
44646
44647 2007-09-02  Bruno Haible  <bruno@clisp.org>
44648
44649         Fix mis-recognition of 'mcs' on QNX 6.
44650         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
44651         output contains the string "Mono".
44652         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
44653         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
44654
44655 2007-09-01  Bruno Haible  <bruno@clisp.org>
44656
44657         Fix collision between uniwidth/* and linebreak modules.
44658         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
44659         u32_width): Remove declarations.
44660         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
44661         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
44662         streq3, streq2, streq1, streq0): Remove functions.
44663         (STREQ): Remove macro.
44664         (is_cjk_encoding): Remove function.
44665         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
44666         (uc_width, u8_width, u16_width, u32_width): Remove functions.
44667         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
44668         * NEWS: Document the change.
44669
44670 2007-09-01  Bruno Haible  <bruno@clisp.org>
44671
44672         * lib/streq.h: Add double-inclusion guard.
44673
44674 2007-09-01  Karl Berry  <karl@gnu.org>
44675
44676         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
44677
44678 2007-08-28  Jim Meyering  <jim@meyering.net>
44679
44680         Rename mreadlink_with_size to areadlink_with_size.
44681         * NEWS: Document the change.
44682         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
44683         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
44684         * lib/mreadlink.h: Rename this to...
44685         * lib/areadlink.h: ...this.
44686         * modules/mreadlink-with-size: Rename this to...
44687         * modules/areadlink-with-size: ...this.
44688         * lib/canonicalize.c: Reflect the renaming.
44689         * modules/canonicalize: Likewise.
44690
44691 2007-08-26  Bruno Haible  <bruno@clisp.org>
44692
44693         * gnulib-tool (func_import): When deciding which files to remove,
44694         consider also dangling symbolic links.
44695         Reported by Eric Blake.
44696
44697 2007-08-26  Bruno Haible  <bruno@clisp.org>
44698
44699         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
44700
44701 2007-08-23  Simon Josefsson  <simon@josefsson.org>
44702
44703         * lib/readline.c: Don't include getline.h, the prototype is now
44704         found in stdio.h.
44705
44706 2007-08-23  Jim Meyering  <jim@meyering.net>
44707
44708         Getdelim touchup.
44709         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
44710         around the funlockfile call, since funlockfile never sets errno.
44711         Don't set errno upon failed realloc.
44712
44713 2007-08-22  Eric Blake  <ebb9@byu.net>
44714
44715         Getline touchups.
44716         * lib/getdelim.c (getdelim): Revert regression that required *n to
44717         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
44718         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
44719         getdelim, rather than whether implementation is missing.
44720         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
44721         * lib/stdio_.h (getline): Also declare if replacement is
44722         required.
44723         * doc/functions/getdelim.texi: New file.
44724         * doc/functions/getline.texi: Likewise.
44725         * doc/gnulib.texi (Function Substitutes): Add new files.
44726         Reported by Bruno Haible.
44727
44728 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
44729
44730         * users.txt: Add Guile.
44731
44732 2007-08-22  Eric Blake  <ebb9@byu.net>
44733
44734         * tests/test-getdelim.c (main): Use remove, not unlink.
44735         * tests/test-getline.c (main): Likewise.
44736
44737         Move getline and getdelim into stdio.h, per POSIX 200x.
44738         * modules/getline (Files): Remove getline.h.
44739         (Depends-on): Add stdio.
44740         (configure.ac): Add module indicator.
44741         * modules/getdelim (Files): Remove getdelim.h.
44742         (Depends-on): Add stdio.
44743         (configure.ac): Add module indicator.
44744         * modules/stdio (Makefile.am): Work with new indicators.
44745         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
44746         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
44747         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
44748         * lib/getdelim.h: Delete.
44749         * lib/getline.h: Delete.
44750         * lib/stdio_.h (getdelim, getline): Declare.
44751         * modules/getdelim-tests: New module.
44752         * modules/getline-tests: Likewise.
44753         * tests/test-getdelim.c: New file.
44754         * tests/test-getline.c: Likewise.
44755         * NEWS: Document the change.
44756         * lib/getline.c: Update choice of header.
44757         * lib/csharpcomp.c: Likewise.
44758         * lib/getpass.c: Likewise.
44759         * lib/javacomp.c: Likewise.
44760         * lib/javaversion.c: Likewise.
44761         * lib/yesno.c: Likewise.
44762         * lib/getdelim.c: Likewise.
44763         (getdelim): Set errno on failure, and avoid memory leak.
44764
44765 2007-08-19  Bruno Haible  <bruno@clisp.org>
44766
44767         * modules/closein (Depends-on): Add freadahead.
44768         * lib/closein.c: Include freadahead.h.
44769         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
44770         is zero.
44771
44772 2007-08-19  Bruno Haible  <bruno@clisp.org>
44773
44774         * modules/freadahead-tests: New file.
44775         * tests/test-freadahead.sh: New file.
44776         * tests/test-freadahead.c: New file.
44777
44778         * modules/freadahead: New file.
44779         * lib/freadahead.h: New file.
44780         * lib/freadahead.c: New file.
44781         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
44782         fbufmode, fpurge, freadable, fwritable.
44783
44784 2007-08-19  Eric Blake  <ebb9@byu.net>
44785
44786         Test yesno in combination with closein.
44787         * lib/yesno.c (yesno): Document use of stdin.
44788         * modules/yesno-tests (Files): New module.
44789         * tests/test-yesno.c (main): New file.
44790         * tests/test-yesno.sh: Likewise.
44791
44792 2007-08-19  Bruno Haible  <bruno@clisp.org>
44793
44794         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
44795         * lib/fseeko.c (rpl_fseeko): Likewise.
44796         * lib/fseterr.c (fseterr): Likewise.
44797
44798 2007-08-19  Bruno Haible  <bruno@clisp.org>
44799
44800         * tests/test-lseek.c (main): Disable a test for BeOS.
44801         * doc/functions/lseek.texi: Document the BeOS bug.
44802
44803 2007-08-19  Bruno Haible  <bruno@clisp.org>
44804             Eric Blake  <ebb9@byu.net>
44805
44806         * lib/lseek.c: Include <sys/stat.h>.
44807         (rpl_lseek): Add workaround code also for Unix platforms.
44808         Needed for BeOS.
44809         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
44810         * doc/functions/lseek.texi: Document BeOS definiency.
44811
44812 2007-08-18  Bruno Haible  <bruno@clisp.org>
44813
44814         * modules/fstrcmp-tests: New file.
44815         * tests/test-fstrcmp.c: New file.
44816
44817 2007-08-18  Bruno Haible  <bruno@clisp.org>
44818
44819         * modules/fstrcmp: New file, from GNU gettext with modifications.
44820         * lib/fstrcmp.h: New file, from GNU gettext.
44821         * lib/fstrcmp.c: New file, from GNU gettext.
44822         * MODULES.html.sh (String handling): Add fstrcmp.
44823
44824 2007-08-18  Bruno Haible  <bruno@clisp.org>
44825
44826         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
44827         'bool'.
44828         (diag, compareseq): Remove const from the ctxt argument.
44829         (USE_HEURISTIC): Undefine at the end.
44830
44831 2007-08-18  Jim Meyering  <jim@meyering.net>
44832
44833         New file: lib/idcache.h
44834         * NEWS: Mention the addition.
44835         * modules/idcache (Files): Add lib/idcache.h
44836         * lib/idcache.c: Include "idcache.h".
44837         Don't include <sys/types.h>.
44838         Add a FIXME comment.
44839         Move file-scoped "static" declarations to the top.
44840         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
44841
44842 2007-08-17  Bruno Haible  <bruno@clisp.org>
44843         and Paul Eggert  <eggert@cs.ucla.edu>
44844
44845         * MODULES.html.sh: Add diffseq.
44846         * modules/diffseq: New file.
44847         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
44848         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
44849
44850 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
44851
44852         Import changes from coreutils for bootstrap script.
44853
44854         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
44855
44856         * build-aux/bootstrap (slurp): Work even in environments where
44857         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
44858         current code does not slurp files whose names start with ".", and
44859         this looks like it might be a troublesome area.
44860
44861         2007-07-11  Jim Meyering  <jim@meyering.net>
44862
44863         If there's a GPL vN copyright comment, require that N == 3.
44864
44865         2007-07-08  Jim Meyering  <jim@meyering.net>
44866
44867         Run the coreutils-specific code only if tests/Makefile.am.in exists.
44868         * build-aux/bootstrap (mam_template): Move definition out of loop.
44869
44870         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
44871
44872         * build-aux/bootstrap (symlink_to_dir): Rename function from
44873         symlink_to_gnulib.  Add a directory parameter.  Update all
44874         callers.
44875         (cp_mark_as_generated): Also check for -- and link to -- files in
44876         gl/.
44877
44878         2007-07-08  Jim Meyering  <jim@meyering.net>
44879
44880         Adapt to deeper hierarchy in gnulib.
44881         * build-aux/bootstrap (symlink_to_dir): If the destination
44882         directory doesn't exist, create it. This is required at least for
44883         "lib/uniwidth/cjk.h".
44884
44885         2007-05-15  Jim Meyering  <jim@meyering.net>
44886
44887         * build-aux/bootstrap: Now that generated Makefile.am files
44888         are no longer under version control, they must be created at
44889         bootstrap time.
44890
44891 2007-08-14  Ben Pfaff  <blp@gnu.org>
44892
44893         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
44894
44895 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
44896
44897         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
44898         given the changes below.
44899         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
44900         even on hosts that have padding bits beyond the supported 64.
44901
44902 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
44903
44904         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
44905         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
44906         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
44907         depends on it.
44908         (xstrtol_error): Remove.
44909         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
44910         but with a different signature.
44911         (ATTRIBUTE_NORETURN, __attribute__): New macros.
44912         * lib/xstrtol-error.c: Include exitfail.h.
44913         (xstrtol_fatal): New function, with a different signature from the
44914         old xstrtol_error, so that the caller need not worry about passing
44915         in an exit status, or about storage management of the option argument.
44916         (xstrtol_error): Now a static function.  Redo signature to
44917         implement xstrtol_fatal.  Output the correct number of hyphens in
44918         front of the option so that the caller need not worry about
44919         storage management.
44920         (N_): New macro.
44921         (_): Remove; not used now.
44922         * modules/xstrtol: Depend on getopt.
44923         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
44924         of old STRTOL_FATAL_ERROR macro.
44925         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
44926         of test program.
44927         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
44928         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
44929
44930 2007-08-08  Eric Blake  <ebb9@byu.net>
44931
44932         * lib/xstrtol-error.c: Add missing include.
44933
44934         Move xstrtol messages into gnulib domain, when --pobase is used.
44935         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
44936         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
44937         * modules/xstrtol (Files): Distribute new file.
44938         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
44939         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
44940         * tests/test-xstrtol.c: ...into new file.
44941         * tests/test-xstrtoul.c: Also test xstrtoul.
44942         * tests/test-xstrtoimax.c: Also test xstrtoimax.
44943         * tests/test-xstrtoumax.c: Also test xstrtoumax.
44944         * tests/test-xstrtol.sh: Drive the tests.
44945         * tests/test-xstrtoimax.sh: Likewise.
44946         * tests/test-xstrtoumax.sh: Likewise.
44947         * modules/xstrtol-tests: New module.
44948         * modules/xstrtoimax-tests: Likewise.
44949         * modules/xstrtoumax-tests: Likewise.
44950
44951 2007-08-08  Jim Meyering  <jim@meyering.net>
44952
44953         New function: mfile_name_concat.
44954         * lib/filenamecat.c (mfile_name_concat): New function, just like
44955         file_name_concat, but return NULL upon failure rather than exiting
44956         with a diagnostic.
44957         * lib/filenamecat.h: Declare it.
44958
44959 2007-08-07  Bruno Haible  <bruno@clisp.org>
44960
44961         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
44962         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
44963         warning from gcc.
44964         Reported by Eric Blake.
44965
44966 2007-08-07  Simon Josefsson  <simon@josefsson.org>
44967
44968         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
44969         * modules/crypto/arcfour (License): Likewise.
44970         * modules/crypto/des-tests (License): Likewise.
44971         * modules/crypto/gc-arctwo-tests (License): Likewise.
44972         * modules/crypto/gc-des-tests (License): Likewise.
44973         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
44974         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
44975         * modules/crypto/gc-md2-tests (License): Likewise.
44976         * modules/crypto/gc-md4-tests (License): Likewise.
44977         * modules/crypto/gc-md5-tests (License): Likewise.
44978         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
44979         * modules/crypto/gc-rijndael-tests (License): Likewise.
44980         * modules/crypto/gc-sha1-tests (License): Likewise.
44981         * modules/crypto/gc-tests (License): Likewise.
44982         * modules/crypto/hmac-md5 (License): Likewise.
44983         * modules/crypto/hmac-sha1 (License): Likewise.
44984         * modules/crypto/md2-tests (License): Likewise.
44985         * modules/crypto/md4-tests (License): Likewise.
44986         * modules/crypto/md5 (License): Likewise.
44987         * modules/crypto/rijndael (License): Likewise.
44988         * modules/crypto/sha1 (License): Likewise.
44989         * modules/memxor (License): Likewise.
44990
44991 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
44992         and Bruno Haible  <bruno@clisp.org>
44993
44994         * NEWS: Describe interface changes to human, xstrtol.
44995         * lib/human.h: Include <xstrtol.h>.
44996         (human_options): Return enum strtol_error, not int.  Remove
44997         bool arg; take int * instead.
44998         * lib/human.c: Don't include "gettext.h".
44999         (_): Remove; no longer used.
45000         Don't include <xstrtol.h>, since human.h does it.
45001         (human_options): Adjust to abovementioned interface changes.
45002         Do not report error to stderr; that's now the caller's
45003         responsibility.
45004         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
45005         interface change.
45006         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
45007         Str, Argument_type_string.  All uses changed.  Put " argument"
45008         in diagnostics to make them clearer.  Change wording of suffix
45009         message for clarity.
45010         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
45011         Argument_type_string.
45012         (STRTOL_FATAL_WARN): Remove; no longer used.
45013         * modules/human (Depends-on): Remove gettext-h.
45014
45015 2007-08-06  Simon Josefsson  <simon@josefsson.org>
45016
45017         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
45018
45019 2007-07-31  Bruno Haible  <bruno@clisp.org>
45020
45021         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
45022         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
45023         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
45024
45025 2007-07-31  Bruno Haible  <bruno@clisp.org>
45026
45027         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
45028         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
45029
45030 2007-07-30  Bruno Haible  <bruno@clisp.org>
45031
45032         * modules/base64 (License): Use the synonymous term "LGPLv2+".
45033         * modules/c-ctype (License): Likewise.
45034         * modules/c-strcase (License): Likewise.
45035         * modules/check-version (License): Likewise.
45036         * modules/iconv (License): Likewise.
45037         * modules/iconv_open (License): Likewise.
45038         * modules/read-file (License): Likewise.
45039         * modules/striconv (License): Likewise.
45040         * modules/strverscmp (License): Likewise.
45041         * modules/vasprintf (License): Likewise.
45042         * modules/crypto/des (License): Likewise.
45043         * modules/crypto/gc (License): Likewise.
45044         * modules/crypto/gc-arcfour (License): Likewise.
45045         * modules/crypto/gc-arctwo (License): Likewise.
45046         * modules/crypto/gc-des (License): Likewise.
45047         * modules/crypto/gc-hmac-md5 (License): Likewise.
45048         * modules/crypto/gc-hmac-sha1 (License): Likewise.
45049         * modules/crypto/gc-md2 (License): Likewise.
45050         * modules/crypto/gc-md4 (License): Likewise.
45051         * modules/crypto/gc-md5 (License): Likewise.
45052         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
45053         * modules/crypto/gc-random (License): Likewise.
45054         * modules/crypto/gc-rijndael (License): Likewise.
45055         * modules/crypto/gc-sha1 (License): Likewise.
45056         * modules/crypto/md2 (License): Likewise.
45057         * modules/crypto/md4 (License): Likewise.
45058
45059 2007-07-30  Jim Meyering  <jim@meyering.net>
45060
45061         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
45062         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
45063         it has valid stat data.  This bug would cause du not to count the
45064         sizes of inaccessible directories.
45065         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
45066         in <http://bugzilla.redhat.com/250077>.
45067
45068 2007-07-25  Peter O'Gorman  <peter@pogma.com>
45069             Bruno Haible  <bruno@clisp.org>
45070
45071         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
45072         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
45073         #include_next, gives a diagnostic about it, but reports no error in
45074         the exit code.
45075         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
45076
45077 2007-07-24  Ben Pfaff  <blp@gnu.org>
45078
45079         Improve name: "count-one-bits" is better than "popcount".
45080         * MODULES.html.sh: Update name.
45081         * lib/popcount.h: Renamed lib/count-one-bits.h.
45082         (popcount): Renamed count_one_bits.
45083         (popcountl): Renamed count_one_bits_l.
45084         (popcountll): Renamed count_one_bits_ll.
45085         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
45086         * modules/popcount: Renamed module/count-one-bits.
45087         * modules/popcount-tests: Renamed module/count-one-bits-tests.
45088         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
45089
45090 2007-07-23  Ben Pfaff  <blp@gnu.org>
45091
45092         * lib/popcount.h (popcount32): Reduce size of constants, to allow
45093         better code generation, and add U to large constants to avoid
45094         warnings, in non-GCC case.
45095         Suggested by Bruno Haible.
45096
45097 2007-07-23  Ben Pfaff  <blp@gnu.org>
45098
45099         * lib/popcount.h: Use verify_true instead of if...abort.
45100         * modules/popcount: Depend on verify module.
45101         Suggested by Jim Meyering.
45102
45103 2007-07-23  Bruno Haible  <bruno@clisp.org>
45104
45105         * gnulib-tool (func_import): Create a .cvsignore file also when the
45106         directory is not yet in CVS but the toplevel directory is. When
45107         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
45108         Reported by Karl Berry.
45109
45110 2007-07-22  Ben Pfaff  <blp@gnu.org>
45111
45112         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
45113         case.
45114         Suggested by Eric Blake.
45115
45116 2007-07-22  Ben Pfaff  <blp@gnu.org>
45117
45118         New module: popcount.
45119         * MODULES.html.sh: Add popcount.
45120         * modules/popcount: New file.
45121         * modules/popcount-tests: New file.
45122         * tests/test-popcount.c: New file.
45123         * lib/popcount.h: New file.
45124         * m4/popcount.m4: New file.
45125
45126 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
45127
45128         * build-aux/announce-gen: Update to GPLv3.
45129
45130         * build-aux/config.guess: Update from config.
45131
45132 2007-07-21  Bruno Haible  <bruno@clisp.org>
45133
45134         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
45135         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
45136
45137 2007-07-20  Jim Meyering  <jim@meyering.net>
45138
45139         * check-module: Diagnose a self-dependency.
45140
45141 2007-07-19  Bruno Haible  <bruno@clisp.org>
45142
45143         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
45144         empty.
45145         Reported by Eric Blake.
45146
45147 2007-07-18  Bruno Haible  <bruno@clisp.org>
45148
45149         * gnulib-tool: New options --po-base, --po-domain.
45150         (func_usage): Document them.
45151         (pobase, po_domain): New variables.
45152         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
45153         DEFAULT_TEXT_DOMAIN.
45154         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
45155         (func_import): Consider pobase and po_domain. Create a po/ directory.
45156         (func_create_testdir): Set pobase and po_domain to empty.
45157         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
45158         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
45159
45160 2007-07-18  Bruno Haible  <bruno@clisp.org>
45161
45162         * gnulib-tool (func_get_automake_snippet): Synthesize also an
45163         EXTRA_DIST augmentation for files in build-aux/.
45164
45165 2007-07-16  Bruno Haible  <bruno@clisp.org>
45166
45167         * modules/lseek (License): Use the synonymous term "LGPLv2+".
45168         * modules/getdelim (License): Likewise.
45169
45170 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45171
45172         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
45173         * modules/d-type (License): Likewise.
45174         * modules/extensions (License): Likewise.
45175         * modules/fnmatch (License): Likewise.
45176         * modules/fseeko (License): Likewise.
45177         * modules/getaddrinfo (License): Likewise.
45178         * modules/getline (License): Likewise.
45179         * modules/getlogin_r (License): Likewise.
45180         * modules/getpass (License): Likewise.
45181         * modules/gettimeofday (License): Likewise.
45182         * modules/glob (License): Likewise.
45183         * modules/inet_ntop (License): Likewise.
45184         * modules/malloc (License): Likewise.
45185         * modules/malloca (License): Likewise.
45186         * modules/memmem (License): Likewise.
45187         * modules/mempcpy (License): Likewise.
45188         * modules/memset (License): Likewise.
45189         * modules/minmax (License): Likewise.
45190         * modules/mktime (License): Likewise.
45191         * modules/netinet_in (License): Likewise.
45192         * modules/pathmax (License): Likewise.
45193         * modules/poll (License): Likewise.
45194         * modules/regex (License): Likewise.
45195         * modules/snprintf (License): Likewise.
45196         * modules/stdbool (License): Likewise.
45197         * modules/stdint (License): Likewise.
45198         * modules/stdio (License): Likewise.
45199         * modules/strcase (License): Likewise.
45200         * modules/strcasestr (License): Likewise.
45201         * modules/strdup (License): Likewise.
45202         * modules/string (License): Likewise.
45203         * modules/strndup (License): Likewise.
45204         * modules/strnlen (License): Likewise.
45205         * modules/strpbrk (License): Likewise.
45206         * modules/strptime (License): Likewise.
45207         * modules/strsep (License): Likewise.
45208         * modules/sys_select (License): Likewise.
45209         * modules/sys_socket (License): Likewise.
45210         * modules/sys_stat (License): Likewise.
45211         * modules/sys_time (License): Likewise.
45212         * modules/time (License): Likewise.
45213         * modules/time_r (License): Likewise.
45214         * modules/timegm (License): Likewise.
45215         * modules/unistd (License): Likewise.
45216         * modules/vsnprintf (License): Likewise.
45217         * modules/wctype (License): Likewise.
45218
45219 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45220
45221         * modules/argz (License): LGPLv2+.
45222
45223 2007-07-15  Karl Berry  <karl@gnu.org>
45224
45225         * doc/gnulib.texi: revise node structure per new fdl.texi.
45226
45227 2007-07-14  Bruno Haible  <bruno@clisp.org>
45228
45229         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
45230         the output file.
45231         * lib/uniname/uninames.h: Regenerated.
45232
45233 2007-07-14  Karl Berry  <karl@gnu.org>
45234
45235         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
45236         omitting sectioning and index commands.
45237
45238 2007-07-13  Bruno Haible  <bruno@clisp.org>
45239
45240         New gnulib-tool option --more-symlinks.
45241         * gnulib-tool (func_usage): Document --more-symlinks.
45242         (do_copyrights): New variable.
45243         Recognize option --more-symlinks.
45244         (func_import): Don't add a copyright notice transform to
45245         sed_transform_lib_file if do_copyrights is empty.
45246
45247 2007-07-13  Bruno Haible  <bruno@clisp.org>
45248
45249         * lib/vasnprintf.c (decimal_point_char): Define also if
45250         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
45251         && !NEED_PRINTF_DIRECTIVE_A.
45252         Reported by Clemens Koller <clemens.koller@anagramm.de> via
45253         Gary V. Vaughan <gary@gnu.org>.
45254
45255 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
45256
45257         * lib/inttypes_.h: Undo previous change, since it was fixed
45258         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
45259
45260 2007-07-13  Bruno Haible  <bruno@clisp.org>
45261
45262         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
45263         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
45264
45265 2007-07-13  Jim Meyering  <jim@meyering.net>
45266
45267         df: Don't fail for Tru64's "file-on-file mount".
45268         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
45269         so we fall through and use statfs instead.  Details here:
45270         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
45271         Reported by Albert Chin.
45272
45273 2007-07-13  Bruno Haible  <bruno@clisp.org>
45274
45275         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
45276         * modules/configmake (License): Likewise.
45277         * modules/gettext (License): Likewise.
45278         * modules/gettext-h (License): Likewise.
45279         * modules/include_next (License): Likewise.
45280         * modules/link-warning (License): Likewise.
45281         * modules/localcharset (License): Likewise.
45282         * modules/localename (License): Likewise.
45283         * modules/lock (License): Likewise.
45284         * modules/relocatable-lib-lgpl (License): Likewise.
45285         * modules/size_max (License): Likewise.
45286         * modules/vasnprintf (License): Likewise.
45287         * modules/wchar (License): Likewise.
45288         * modules/xsize (License): Likewise.
45289
45290 2007-07-13  Bruno Haible  <bruno@clisp.org>
45291
45292         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
45293         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
45294
45295 2007-07-12  Bruno Haible  <bruno@clisp.org>
45296
45297         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
45298         in the modules files.
45299
45300 2007-07-11  Karl Berry  <karl@gnu.org>
45301
45302         * MODULES.html.sh (func_module): use
45303          sed -e '\|^'"${includefile}"'$|d'
45304          instead of /.../d, to avoid errors on $includefile's containing /.
45305
45306 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
45307
45308         * gnulib-tool (func_import): Avoid duplication of --avoid
45309         statements
45310         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
45311         names to `_' in variable names.
45312
45313 2007-07-10  Eric Blake  <ebb9@byu.net>
45314
45315         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
45316         * NEWS: Document this change.
45317
45318 2007-07-08  Bruno Haible  <bruno@clisp.org>
45319
45320         Update to Unicode 5.0.
45321         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
45322         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
45323         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
45324         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
45325         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
45326         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
45327         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
45328         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
45329         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
45330         U+10A3F, U+1D242..U+1D244.
45331         (nonspacing_table_ind): Update.
45332         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
45333         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
45334
45335 2007-07-08  Bruno Haible  <bruno@clisp.org>
45336
45337         Update to Unicode 5.0.
45338         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
45339         code transform. Extend the name index field of unicode_name_to_code and
45340         unicode_code_to_name from 16 to 24 bits.
45341         * lib/uniname/uniname.c (unicode_character_name,
45342         unicode_name_character): Add the range 0x12xxx to the code transform.
45343         * lib/uniname/uninames.h: Regenerated.
45344         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
45345
45346 2007-07-07  Bruno Haible  <bruno@clisp.org>
45347
45348         * modules/wcwidth-tests: New file.
45349         * tests/test-wcwidth.c: New file.
45350
45351         Work around MacOS X wcwidth() bug.
45352         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
45353         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
45354         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
45355         original wcwidth in non-UTF-8 locales.
45356         * modules/wcwidth (Depends-on): Add localcharset, streq,
45357         uniwidth/width.
45358         * doc/functions/wcwidth.texi: Update.
45359
45360 2007-07-07  Bruno Haible  <bruno@clisp.org>
45361
45362         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
45363         (wcwidth): New declaration.
45364         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
45365         macros.
45366         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
45367         here. Prepare for creating <wchar.h> unconditionally.
45368         * modules/wchar (Depends-on): Add link-warning.
45369         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
45370         REPLACE_WCWIDTH, and GL_LINK_WARNING.
45371         * lib/wcwidth.h: Remove file.
45372         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
45373         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
45374         * modules/wcwidth (Files): Remove lib/wcwidth.h.
45375         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
45376         (Include): Replace wcwidth.h with <wchar.h>.
45377         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
45378         * lib/mbchar.h: Don't include wcwidth.h.
45379         * lib/mbswidth.c: Likewise.
45380         * NEWS: Mention the change.
45381
45382 2007-07-07  Bruno Haible  <bruno@clisp.org>
45383
45384         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
45385         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
45386         definition with an external declaration.
45387         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
45388         defined as a function. Remove AC_C_INLINE requirement.
45389         * modules/wcwidth (Files): Add lib/wcwidth.c.
45390         (Makefile.am): Remove redundant statement.
45391
45392 2007-07-07  Bruno Haible  <bruno@clisp.org>
45393
45394         * MODULES.html.sh (Unicode string functions): Add the new modules.
45395
45396         * tests/uniwidth/test-u32-strwidth.c: New file.
45397         * modules/uniwidth/u32-strwidth-tests: New file.
45398
45399         * lib/uniwidth/u32-strwidth.c: New file.
45400         * modules/uniwidth/u32-strwidth: New file.
45401
45402         * tests/uniwidth/test-u16-strwidth.c: New file.
45403         * modules/uniwidth/u16-strwidth-tests: New file.
45404
45405         * lib/uniwidth/u16-strwidth.c: New file.
45406         * modules/uniwidth/u16-strwidth: New file.
45407
45408         * tests/uniwidth/test-u8-strwidth.c: New file.
45409         * modules/uniwidth/u8-strwidth-tests: New file.
45410
45411         * lib/uniwidth/u8-strwidth.c: New file.
45412         * modules/uniwidth/u8-strwidth: New file.
45413
45414         * tests/uniwidth/test-u32-width.c: New file.
45415         * modules/uniwidth/u32-width-tests: New file.
45416
45417         * lib/uniwidth/u32-width.c: New file.
45418         * modules/uniwidth/u32-width: New file.
45419
45420         * tests/uniwidth/test-u16-width.c: New file.
45421         * modules/uniwidth/u16-width-tests: New file.
45422
45423         * lib/uniwidth/u16-width.c: New file.
45424         * modules/uniwidth/u16-width: New file.
45425
45426         * tests/uniwidth/test-u8-width.c: New file.
45427         * modules/uniwidth/u8-width-tests: New file.
45428
45429         * lib/uniwidth/u8-width.c: New file.
45430         * modules/uniwidth/u8-width: New file.
45431
45432         * tests/uniwidth/test-uc_width.c: New file.
45433         * modules/uniwidth/width-tests: New file.
45434
45435         * lib/uniwidth/width.c: New file, from GNU libiconv.
45436         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
45437         * modules/uniwidth/width: New file.
45438
45439         * lib/uniwidth.h: New file, from GNU libiconv.
45440         * modules/uniwidth/base: New file.
45441
45442 2007-07-07  Bruno Haible  <bruno@clisp.org>
45443
45444         * lib/uniname.h: New file, from GNU gettext.
45445         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
45446         * lib/uniname/uninames.h: New file, from GNU gettext.
45447         * lib/uniname/uniname.c: New file, from GNU gettext.
45448         * tests/uniname/test-uninames.sh: New file.
45449         * tests/uniname/test-uninames.c: New file, from GNU gettext.
45450         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
45451         * modules/uniname/base: New file.
45452         * modules/uniname/uniname: New file.
45453         * modules/uniname/uniname-tests: New file.
45454         * MODULES.html.sh (Unicode string functions): Add the new modules.
45455
45456 2007-07-06  Bruno Haible  <bruno@clisp.org>
45457
45458         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
45459
45460 2007-07-06  Bruno Haible  <bruno@clisp.org>
45461
45462         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
45463         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
45464         includes <cygwin/sys_time.h> which includes <sys/select.h> which
45465         include <sys/time.h>.
45466         Reported by Eric Blake.
45467
45468 2007-07-06  Eric Blake  <ebb9@byu.net>
45469
45470         Fix testing canonicalize on cygwin.
45471         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
45472         Revert patch from 2007-06-19.
45473         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
45474         canonicalize module is also in use.
45475         * tests/test-canonicalize.c: New file.
45476         * tests/test-canonicalize.sh: Likewise.
45477         * modules/canonicalize-tests: Likewise.
45478
45479 2007-07-06  Jim Meyering  <jim@meyering.net>
45480
45481         * lib/getugroups.c (getugroups): Detect getgrent failure.
45482         Adjust comment to reflect reality: this function may return -1.
45483
45484 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
45485
45486         * build-aux/bootstrap (TP_URL,get_translations): Update to use
45487         the new TP address.
45488         (usage): Fix typo
45489         (gnulib_mk): New variable.
45490
45491 2007-07-05  Jim Meyering  <jim@meyering.net>
45492
45493         Don't let endgrent clobber errno, no matter how improbable.
45494         * lib/getugroups.c (getugroups): Save and restore errno around
45495         endgrent call.
45496
45497         Close the group DB even when failing with 2^31 or more members.
45498         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
45499
45500 2007-07-04  Jim Meyering  <jim@meyering.net>
45501
45502         * lib/getugroups.h: New file.
45503         * lib/getugroups.c: Include "getugroups.h".
45504         Remove uses of "register" keyword.
45505         Move local variable, "cp", down into scope where used.
45506         Give "username" parameter the "const" attribute.
45507         * modules/getugroups (Files): Add lib/getugroups.h
45508
45509 2007-07-04  Karl Berry  <karl@gnu.org>
45510
45511         * MODULES.html.sh (func_all_modules): Complete rename of
45512         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
45513
45514 2007-07-02  Bruno Haible  <bruno@clisp.org>
45515
45516         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
45517         mode, when inttypes.h comes from gnulib.
45518         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
45519
45520 2007-07-02  Simon Josefsson  <simon@josefsson.org>
45521
45522         * NEWS: Mention lgpl module name change.
45523
45524         * modules/lgpl-2.1: Renamed from lgpl.
45525
45526         * NEWS: Mention gpl module name change.
45527
45528         * modules/gpl-3.0: New file, based on gpl-2.0.
45529
45530         * modules/gpl-2.0: Renamed from gpl.
45531
45532         * modules/gpl: Fix filename, doc/gpl.texi is now found at
45533         doc/gpl-2.0.texi.
45534
45535 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
45536
45537         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
45538         #define __STDC_LIMIT_MACROS temporarily while including
45539         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
45540         Problem reported by Joel E. Denny in
45541         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
45542
45543 2007-07-01  Bruno Haible  <bruno@clisp.org>
45544
45545         * lib/unistdio.h: New file.
45546         * lib/unistdio/u-asnprintf.h: New file.
45547         * lib/unistdio/u-asprintf.h: New file.
45548         * lib/unistdio/u-printf-args.c: New file.
45549         * lib/unistdio/u-printf-args.h: New file.
45550         * lib/unistdio/u-printf-parse.h: New file.
45551         * lib/unistdio/u-snprintf.h: New file.
45552         * lib/unistdio/u-sprintf.h: New file.
45553         * lib/unistdio/u-vasprintf.h: New file.
45554         * lib/unistdio/u-vsnprintf.h: New file.
45555         * lib/unistdio/u-vsprintf.h: New file.
45556         * lib/unistdio/ulc-asnprintf.c: New file.
45557         * lib/unistdio/ulc-asprintf.c: New file.
45558         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
45559         * lib/unistdio/ulc-printf-parse.c: New file.
45560         * lib/unistdio/ulc-snprintf.c: New file.
45561         * lib/unistdio/ulc-sprintf.c: New file.
45562         * lib/unistdio/ulc-vasnprintf.c: New file.
45563         * lib/unistdio/ulc-vasprintf.c: New file.
45564         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
45565         * lib/unistdio/ulc-vsnprintf.c: New file.
45566         * lib/unistdio/ulc-vsprintf.c: New file.
45567         * lib/unistdio/u8-asnprintf.c: New file.
45568         * lib/unistdio/u8-asprintf.c: New file.
45569         * lib/unistdio/u8-printf-parse.c: New file.
45570         * lib/unistdio/u8-snprintf.c: New file.
45571         * lib/unistdio/u8-sprintf.c: New file.
45572         * lib/unistdio/u8-vasnprintf.c: New file.
45573         * lib/unistdio/u8-vasprintf.c: New file.
45574         * lib/unistdio/u8-vsnprintf.c: New file.
45575         * lib/unistdio/u8-vsprintf.c: New file.
45576         * lib/unistdio/u8-u8-asnprintf.c: New file.
45577         * lib/unistdio/u8-u8-asprintf.c: New file.
45578         * lib/unistdio/u8-u8-snprintf.c: New file.
45579         * lib/unistdio/u8-u8-sprintf.c: New file.
45580         * lib/unistdio/u8-u8-vasnprintf.c: New file.
45581         * lib/unistdio/u8-u8-vasprintf.c: New file.
45582         * lib/unistdio/u8-u8-vsnprintf.c: New file.
45583         * lib/unistdio/u8-u8-vsprintf.c: New file.
45584         * lib/unistdio/u16-asnprintf.c: New file.
45585         * lib/unistdio/u16-asprintf.c: New file.
45586         * lib/unistdio/u16-printf-parse.c: New file.
45587         * lib/unistdio/u16-snprintf.c: New file.
45588         * lib/unistdio/u16-sprintf.c: New file.
45589         * lib/unistdio/u16-vasnprintf.c: New file.
45590         * lib/unistdio/u16-vasprintf.c: New file.
45591         * lib/unistdio/u16-vsnprintf.c: New file.
45592         * lib/unistdio/u16-vsprintf.c: New file.
45593         * lib/unistdio/u16-u16-asnprintf.c: New file.
45594         * lib/unistdio/u16-u16-asprintf.c: New file.
45595         * lib/unistdio/u16-u16-snprintf.c: New file.
45596         * lib/unistdio/u16-u16-sprintf.c: New file.
45597         * lib/unistdio/u16-u16-vasnprintf.c: New file.
45598         * lib/unistdio/u16-u16-vasprintf.c: New file.
45599         * lib/unistdio/u16-u16-vsnprintf.c: New file.
45600         * lib/unistdio/u16-u16-vsprintf.c: New file.
45601         * lib/unistdio/u32-asnprintf.c: New file.
45602         * lib/unistdio/u32-asprintf.c: New file.
45603         * lib/unistdio/u32-printf-parse.c: New file.
45604         * lib/unistdio/u32-snprintf.c: New file.
45605         * lib/unistdio/u32-sprintf.c: New file.
45606         * lib/unistdio/u32-vasnprintf.c: New file.
45607         * lib/unistdio/u32-vasprintf.c: New file.
45608         * lib/unistdio/u32-vsnprintf.c: New file.
45609         * lib/unistdio/u32-vsprintf.c: New file.
45610         * lib/unistdio/u32-u32-asnprintf.c: New file.
45611         * lib/unistdio/u32-u32-asprintf.c: New file.
45612         * lib/unistdio/u32-u32-snprintf.c: New file.
45613         * lib/unistdio/u32-u32-sprintf.c: New file.
45614         * lib/unistdio/u32-u32-vasnprintf.c: New file.
45615         * lib/unistdio/u32-u32-vasprintf.c: New file.
45616         * lib/unistdio/u32-u32-vsnprintf.c: New file.
45617         * lib/unistdio/u32-u32-vsprintf.c: New file.
45618         * tests/unistdio/test-ulc-asnprintf1.c: New file.
45619         * tests/unistdio/test-ulc-asnprintf1.h: New file.
45620         * tests/unistdio/test-ulc-printf1.h: New file.
45621         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
45622         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
45623         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
45624         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
45625         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
45626         * tests/unistdio/test-ulc-vasprintf1.c: New file.
45627         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
45628         * tests/unistdio/test-ulc-vsprintf1.c: New file.
45629         * tests/unistdio/test-u8-asnprintf1.c: New file.
45630         * tests/unistdio/test-u8-asnprintf1.h: New file.
45631         * tests/unistdio/test-u8-printf1.h: New file.
45632         * tests/unistdio/test-u8-vasnprintf1.c: New file.
45633         * tests/unistdio/test-u8-vasnprintf2.c: New file.
45634         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
45635         * tests/unistdio/test-u8-vasnprintf3.c: New file.
45636         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
45637         * tests/unistdio/test-u8-vasprintf1.c: New file.
45638         * tests/unistdio/test-u8-vsnprintf1.c: New file.
45639         * tests/unistdio/test-u8-vsprintf1.c: New file.
45640         * tests/unistdio/test-u16-asnprintf1.c: New file.
45641         * tests/unistdio/test-u16-asnprintf1.h: New file.
45642         * tests/unistdio/test-u16-printf1.h: New file.
45643         * tests/unistdio/test-u16-vasnprintf1.c: New file.
45644         * tests/unistdio/test-u16-vasnprintf2.c: New file.
45645         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
45646         * tests/unistdio/test-u16-vasnprintf3.c: New file.
45647         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
45648         * tests/unistdio/test-u16-vasprintf1.c: New file.
45649         * tests/unistdio/test-u16-vsnprintf1.c: New file.
45650         * tests/unistdio/test-u16-vsprintf1.c: New file.
45651         * tests/unistdio/test-u32-asnprintf1.c: New file.
45652         * tests/unistdio/test-u32-asnprintf1.h: New file.
45653         * tests/unistdio/test-u32-printf1.h: New file.
45654         * tests/unistdio/test-u32-vasnprintf1.c: New file.
45655         * tests/unistdio/test-u32-vasnprintf2.c: New file.
45656         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
45657         * tests/unistdio/test-u32-vasnprintf3.c: New file.
45658         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
45659         * tests/unistdio/test-u32-vasprintf1.c: New file.
45660         * tests/unistdio/test-u32-vsnprintf1.c: New file.
45661         * tests/unistdio/test-u32-vsprintf1.c: New file.
45662         * modules/unistdio/base: New file.
45663         * modules/unistdio/u-printf-args: New file.
45664         * modules/unistdio/ulc-asnprintf: New file.
45665         * modules/unistdio/ulc-asprintf: New file.
45666         * modules/unistdio/ulc-fprintf: New file.
45667         * modules/unistdio/ulc-printf-parse: New file.
45668         * modules/unistdio/ulc-snprintf: New file.
45669         * modules/unistdio/ulc-sprintf: New file.
45670         * modules/unistdio/ulc-vasnprintf: New file.
45671         * modules/unistdio/ulc-vasprintf: New file.
45672         * modules/unistdio/ulc-vfprintf: New file.
45673         * modules/unistdio/ulc-vsnprintf: New file.
45674         * modules/unistdio/ulc-vsprintf: New file.
45675         * modules/unistdio/u8-asnprintf: New file.
45676         * modules/unistdio/u8-asprintf: New file.
45677         * modules/unistdio/u8-printf-parse: New file.
45678         * modules/unistdio/u8-snprintf: New file.
45679         * modules/unistdio/u8-sprintf: New file.
45680         * modules/unistdio/u8-vasnprintf: New file.
45681         * modules/unistdio/u8-vasprintf: New file.
45682         * modules/unistdio/u8-vsnprintf: New file.
45683         * modules/unistdio/u8-vsprintf: New file.
45684         * modules/unistdio/u8-u8-asnprintf: New file.
45685         * modules/unistdio/u8-u8-asprintf: New file.
45686         * modules/unistdio/u8-u8-snprintf: New file.
45687         * modules/unistdio/u8-u8-sprintf: New file.
45688         * modules/unistdio/u8-u8-vasnprintf: New file.
45689         * modules/unistdio/u8-u8-vasprintf: New file.
45690         * modules/unistdio/u8-u8-vsnprintf: New file.
45691         * modules/unistdio/u8-u8-vsprintf: New file.
45692         * modules/unistdio/u16-asnprintf: New file.
45693         * modules/unistdio/u16-asprintf: New file.
45694         * modules/unistdio/u16-printf-parse: New file.
45695         * modules/unistdio/u16-snprintf: New file.
45696         * modules/unistdio/u16-sprintf: New file.
45697         * modules/unistdio/u16-vasnprintf: New file.
45698         * modules/unistdio/u16-vasprintf: New file.
45699         * modules/unistdio/u16-vsnprintf: New file.
45700         * modules/unistdio/u16-vsprintf: New file.
45701         * modules/unistdio/u16-u16-asnprintf: New file.
45702         * modules/unistdio/u16-u16-asprintf: New file.
45703         * modules/unistdio/u16-u16-snprintf: New file.
45704         * modules/unistdio/u16-u16-sprintf: New file.
45705         * modules/unistdio/u16-u16-vasnprintf: New file.
45706         * modules/unistdio/u16-u16-vasprintf: New file.
45707         * modules/unistdio/u16-u16-vsnprintf: New file.
45708         * modules/unistdio/u16-u16-vsprintf: New file.
45709         * modules/unistdio/u32-asnprintf: New file.
45710         * modules/unistdio/u32-asprintf: New file.
45711         * modules/unistdio/u32-printf-parse: New file.
45712         * modules/unistdio/u32-snprintf: New file.
45713         * modules/unistdio/u32-sprintf: New file.
45714         * modules/unistdio/u32-vasnprintf: New file.
45715         * modules/unistdio/u32-vasprintf: New file.
45716         * modules/unistdio/u32-vsnprintf: New file.
45717         * modules/unistdio/u32-vsprintf: New file.
45718         * modules/unistdio/u32-u32-asnprintf: New file.
45719         * modules/unistdio/u32-u32-asprintf: New file.
45720         * modules/unistdio/u32-u32-snprintf: New file.
45721         * modules/unistdio/u32-u32-sprintf: New file.
45722         * modules/unistdio/u32-u32-vasnprintf: New file.
45723         * modules/unistdio/u32-u32-vasprintf: New file.
45724         * modules/unistdio/u32-u32-vsnprintf: New file.
45725         * modules/unistdio/u32-u32-vsprintf: New file.
45726         * modules/unistdio/ulc-asnprintf-tests: New file.
45727         * modules/unistdio/ulc-vasnprintf-tests: New file.
45728         * modules/unistdio/ulc-vasprintf-tests: New file.
45729         * modules/unistdio/ulc-vsnprintf-tests: New file.
45730         * modules/unistdio/ulc-vsprintf-tests: New file.
45731         * modules/unistdio/u8-asnprintf-tests: New file.
45732         * modules/unistdio/u8-vasnprintf-tests: New file.
45733         * modules/unistdio/u8-vasprintf-tests: New file.
45734         * modules/unistdio/u8-vsnprintf-tests: New file.
45735         * modules/unistdio/u8-vsprintf-tests: New file.
45736         * modules/unistdio/u16-asnprintf-tests: New file.
45737         * modules/unistdio/u16-vasnprintf-tests: New file.
45738         * modules/unistdio/u16-vasprintf-tests: New file.
45739         * modules/unistdio/u16-vsnprintf-tests: New file.
45740         * modules/unistdio/u16-vsprintf-tests: New file.
45741         * modules/unistdio/u32-asnprintf-tests: New file.
45742         * modules/unistdio/u32-vasnprintf-tests: New file.
45743         * modules/unistdio/u32-vasprintf-tests: New file.
45744         * modules/unistdio/u32-vsnprintf-tests: New file.
45745         * modules/unistdio/u32-vsprintf-tests: New file.
45746         * MODULES.html.sh (Unicode string functions): Add the new modules.
45747
45748 2007-07-01  Bruno Haible  <bruno@clisp.org>
45749
45750         * lib/sprintf.c (sprintf): Limit the available length estimation,
45751         to avoid address wraparound.
45752         * lib/vsprintf.c (vsprintf): Likewise.
45753         * modules/sprintf-posix (Dependencies): Add stdint.
45754         * modules/vsprintf-posix (Dependencies): Likewise.
45755
45756 2007-07-01  Bruno Haible  <bruno@clisp.org>
45757
45758         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
45759         Windows PATH as well. Conservative double-quoting. Comments.
45760
45761 2007-07-01  Bruno Haible  <bruno@clisp.org>
45762             Eric Blake  <ebb9@byu.net>
45763             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45764
45765         * gnulib-tool (self_abspathname): Fix algorithm to cope with
45766         empty components in $PATH, denoting '.'.
45767
45768 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45769
45770         * gnulib-tool: Fix indentation.
45771         (func_create_megatestdir): Likewise.
45772         Report by Bruno Haible.
45773
45774 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45775
45776         Sync from Automake.
45777         * build-aux/gnupload: Fix shell portability issues with for loops.
45778         Report by Karl Berry.
45779
45780 2007-06-29  Simon Josefsson  <simon@josefsson.org>
45781
45782         * build-aux/maint.mk (POURL): Use translationproject.org.
45783
45784 2007-06-27  Simon Josefsson  <simon@josefsson.org>
45785             Bruno Haible  <bruno@clisp.org>
45786
45787         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
45788         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
45789         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
45790         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
45791         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
45792
45793 2007-06-27  Bruno Haible  <bruno@clisp.org>
45794
45795         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
45796         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
45797
45798 2007-06-26  Karl Berry  <karl@gnu.org>
45799
45800         * MODULES.html.sh: remove xreadlink-with-size.
45801
45802 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
45803
45804         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
45805         method that I hope also handles the double-include problem noted
45806         by Bruno Haible in
45807         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
45808
45809 2007-06-23  Bruno Haible  <bruno@clisp.org>
45810
45811         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
45812         Don't let the 'mostlyclean' target fail if the last subdirectory could
45813         not be removed.
45814         Reported by Karl Berry.
45815
45816 2007-06-23  Bruno Haible  <bruno@clisp.org>
45817
45818         * gnulib-tool (echo): Add a speedier workaround for ksh.
45819         * tests/test-echo.sh: Likewise.
45820
45821 2007-06-23  Bruno Haible  <bruno@clisp.org>
45822
45823         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
45824         * tests/test-echo.sh: Likewise.
45825
45826 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45827
45828         * gnulib-tool (IFS): Initialize early, so we don't set it to
45829         empty later.
45830         (self_abspathname): Rewrite algorithm to set it, reindent.
45831         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
45832         (func_create_megatestdir): Merge some sed scripts.
45833
45834 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
45835
45836         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
45837         exposed by Sun Studio 11 cc on Solaris 8.
45838
45839 2007-06-22  Bruno Haible  <bruno@clisp.org>
45840
45841         * gnulib-tool (echo): Ensure the echo primitive does not interpret
45842         backslashes.
45843         * tests/test-echo.sh: New file.
45844
45845 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45846
45847         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
45848         simplify `sed_replace_build_aux' scripts, they are portable but
45849         echoing them with `echo' is not.
45850         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
45851
45852 2007-06-21  Karl Berry  <karl@gnu.org>
45853
45854         * config/srclist.txt: guess we can't handle the licenses via
45855         srclist at the moment.
45856
45857 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
45858
45859         * MODULES.html.sh: Add include_next.
45860         * modules/include_next: New file.
45861
45862 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
45863
45864         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
45865         INCLUDE_NEXT.
45866         (gl_CHECK_NEXT_HEADERS): New macro.
45867         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
45868         the obsolescent gl_ABSOLUTE_HEADER.
45869         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
45870         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
45871         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
45872         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
45873         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
45874         * m4/math_h.m4 (gl_MATH_H): Likewise.
45875         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
45876         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
45877         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
45878         * m4/stdint.m4 (gl_STDINT_H): Likewise.
45879         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
45880         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
45881         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
45882         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
45883         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
45884         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
45885         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
45886         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
45887         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
45888         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
45889         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
45890         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
45891         * m4/inttypes.m4 (gl_INTTYPES_H): Define
45892         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
45893         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
45894         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
45895         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
45896         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
45897         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
45898         * lib/float_.h: Likewise.
45899         * lib/inttypes_.h: Likewise.
45900         * lib/math_.h: Likewise.
45901         * lib/search_.h: Likewise.
45902         * lib/signal_.h: Likewise.
45903         * lib/stdint_.h: Likewise.
45904         * lib/stdio_.h: Likewise.
45905         * lib/stdlib_.h: Likewise.
45906         * lib/string_.h: Likewise.
45907         * lib/sys_stat_.h: Likewise.
45908         * lib/sys_time_.h: Likewise.
45909         * lib/time_.h: Likewise.
45910         * lib/unistd_.h: Likewise.
45911         * lib/wchar_.h: Likewise.
45912         * lib/wctype_.h: Likewise.
45913         * lib/dirent_.h: Likewise.
45914         * lib/iconv_.h: Likewise.
45915         * lib/locale_.h: Likewise.
45916         * lib/netinet_in_.h: Likewise.
45917         * lib/sys_select_.h: Likewise.
45918         * lib/sys_socket_.h: Likewise.
45919         * lib/sysexits_.h: Likewise.
45920         * modules/fcntl (Depends-on): Depend on include_next, not
45921         absolute_header.
45922         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
45923         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
45924         * modules/fchdir: Likewise.
45925         * modules/float: Likewise.
45926         * modules/iconv_open: Likewise.
45927         * modules/inttypes: Likewise.
45928         * modules/locale: Likewise.
45929         * modules/math: Likewise.
45930         * modules/netinet_in: Likewise.
45931         * modules/search: Likewise.
45932         * modules/signal: Likewise.
45933         * modules/stdint: Likewise.
45934         * modules/stdio: Likewise.
45935         * modules/stdlib: Likewise.
45936         * modules/string: Likewise.
45937         * modules/sys_select: Likewise.
45938         * modules/sys_socket: Likewise.
45939         * modules/sys_stat: Likewise.
45940         * modules/sys_time: Likewise.
45941         * modules/sysexits: Likewise.
45942         * modules/time: Likewise.
45943         * modules/unistd: Likewise.
45944         * modules/wchar: Likewise.
45945         * modules/wctype: Likewise.
45946         * modules/sys_stat: Change maintainer to "all".
45947         * modules/unistd: Likewise.
45948
45949 2007-06-20  Karl Berry  <karl@gnu.org>
45950
45951         * config/srclist.txt: track www changes in license files.
45952
45953 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
45954
45955         * build-aux/bootstrap: Remove stray dot.
45956         Make sure build_aux settings are honored when linking
45957         gnulib_extra_files.
45958
45959 2007-06-19  Eric Blake  <ebb9@byu.net>
45960
45961         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
45962         Allow compilation on cygwin.
45963
45964 2007-06-19  Jim Meyering  <jim@meyering.net>
45965
45966         xreadlink-with-size: Remove module.  No longer used.
45967         Ex-callers now use xreadlink or mreadlink-with-size.
45968         * modules/xreadlink-with-size: Remove module.
45969         * lib/xreadlink-with-size.c: Remove file.
45970         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
45971         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
45972         just before the function definition *is* accurate.
45973
45974         Eliminate one way canonicalize_filename_mode could exit.
45975         * lib/canonicalize.c (canonicalize_filename_mode):
45976         Use mreadlink_with_size, not xreadlink_with_size.
45977
45978 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
45979
45980         Detect porting problems to FreeBSD/arm, which has time_t wider than
45981         long int.  Original problem reported for GNU diff by Xin Li in
45982         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
45983         * modules/getdate (Depends-on): Add intprops, verify.
45984         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
45985         is an integer type no wider than long int.
45986
45987 2007-06-18  Jim Meyering  <jim@meyering.net>
45988
45989         New module: mreadlink-with-size.
45990         * MODULES.html.sh: Add mreadlink-with-size.
45991         * modules/mreadlink-with-size: New module
45992         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
45993         not xreadlink-with-size.
45994         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
45995
45996 2007-06-16  Bruno Haible  <bruno@clisp.org>
45997
45998         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
45999         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
46000         Reported by Gary V. Vaughan <gary@gnu.org>.
46001
46002 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
46003
46004         Revamp lchown so that it lives in unistd.h where it belongs.
46005         * lib/lchown.h: Remove.
46006         * lib/dirchownmod.c: Don't include lib/lchown.h.
46007         * lib/fchownat.c: Likewise.
46008         * lib/openat.c: Likewise.
46009         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
46010         does not follow symlinks.
46011         (EOPNOTSUPP): Define if not defined.
46012         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
46013         is defined to 0.
46014         (lchown): New decl.
46015         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
46016         Do not check for lchown decl.
46017         Set REPLACE_LCHOWN.
46018         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
46019         REPLACE_LCHOWN.
46020         * modules/chown: Make it clear it follows symlinks.
46021         * modules/lchown: Make it clear it doesn't follow symlinks.
46022         (Files): Remove lib/lchown.h
46023         (Depends-on): Add unistd.
46024         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
46025         (Include): Include <unistd.h>, not "lchown.h".
46026         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
46027         REPLACE_LCHOWN.
46028
46029 2007-06-15  Jim Meyering  <jim@meyering.net>
46030
46031         Change license (GPL to LGPL) of fsusage and dependents.
46032         * modules/fsusage (License): Change to LGPL.
46033         * modules/full-read (License): Likewise.
46034         * modules/full-write (License): Likewise.
46035         * modules/safe-read (License): Likewise.
46036         * modules/safe-write (License): Likewise.
46037
46038 2007-06-14  Ben Pfaff  <blp@gnu.org>
46039
46040         Missing part of allocsa -> malloca transition.
46041         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
46042         gl_MALLOCA.
46043
46044 2007-06-12  Bruno Haible  <bruno@clisp.org>
46045
46046         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
46047         to ia64, x86_64, i386.
46048         Reported by Eric Blake.
46049
46050 2007-06-12  Bruno Haible  <bruno@clisp.org>
46051
46052         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
46053         cross-compiling to x86_64.
46054
46055 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
46056
46057         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
46058         glitch reported by Ralf Wildenhues in
46059         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
46060
46061         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
46062         Vin Shelton.
46063
46064 2007-06-11  Bruno Haible  <bruno@clisp.org>
46065
46066         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
46067         replacement string.
46068         Reported by Eric Blake.
46069
46070 2007-06-10  Bruno Haible  <bruno@clisp.org>
46071
46072         Prepare vasnprintf code for use with Unicode strings.
46073         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
46074         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
46075         TYPE_U32_STRING.
46076         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
46077         a_u32_string variants.
46078         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
46079         * lib/printf-args.c: Don't include config.h and the specification
46080         header if PRINTF_FETCHARGS is already defined.
46081         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
46082         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
46083         TYPE_U16_STRING, TYPE_U32_STRING.
46084         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
46085         u16_directive, u16_directives, u32_directive, u32_directives): New
46086         types.
46087         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
46088         New declarations.
46089         * lib/printf-parse.c: Don't include config.h and the specification
46090         header if PRINTF_PARSE is already defined. Eliminate the set of
46091         parameters for WIDE_CHAR_VERSION; the user of this file must provide
46092         them now. Include c-ctype.h.
46093         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
46094         directive and CHAR_T_ONLY_ASCII.
46095         * lib/vasnprintf.c: Don't include config.h and the specification header
46096         if VASNPRINTF is already defined.
46097         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
46098         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
46099         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
46100         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
46101         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
46102         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
46103         code accordingly.
46104         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
46105         pad_ourselves also in this case, with the 'c' and 's' directives, and
46106         with a different notion of "width".
46107         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
46108
46109 2007-06-10  Bruno Haible  <bruno@clisp.org>
46110
46111         * modules/unistr/u32-mbsnlen: New file.
46112         * lib/unistr/u32-mbsnlen.c: New file.
46113
46114         * modules/unistr/u16-mbsnlen: New file.
46115         * lib/unistr/u16-mbsnlen.c: New file.
46116
46117         * modules/unistr/u8-mbsnlen: New file.
46118         * lib/unistr/u8-mbsnlen.c: New file.
46119
46120         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
46121         declarations.
46122
46123 2007-06-10  Bruno Haible  <bruno@clisp.org>
46124
46125         * lib/string_.h (mbsnlen): New declaration.
46126         * lib/mbsnlen.c: New file.
46127         * m4/mbsnlen.m4: New file.
46128         * modules/mbsnlen: New file.
46129         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
46130         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
46131         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
46132
46133 2007-06-10  Bruno Haible  <bruno@clisp.org>
46134
46135         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
46136
46137 2007-06-10  Bruno Haible  <bruno@clisp.org>
46138
46139         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
46140         * lib/mbuiter.h: Likewise.
46141
46142 2007-06-10  Bruno Haible  <bruno@clisp.org>
46143
46144         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
46145         declaration.
46146
46147 2007-06-10  Karl Berry  <karl@gnu.org>
46148
46149         * config/srclist.txt: remove gettext entries, Bruno prefers
46150         to update individually.
46151
46152 2007-06-10  Bruno Haible  <bruno@clisp.org>
46153
46154         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
46155         'maxlen'. Ensure only length + width bytes are allocated, not
46156         length + 1 + width.
46157
46158 2007-06-09  Bruno Haible  <bruno@clisp.org>
46159
46160         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
46161         (CHAR_T): Remove macro.
46162         (VASNPRINTF): Update.
46163
46164 2007-06-09  Bruno Haible  <bruno@clisp.org>
46165
46166         * MODULES.html.sh (Unicode string functions): Add the new modules.
46167
46168         * modules/uniconv/u32-conv-to-enc: New file.
46169         * lib/uniconv/u32-conv-to-enc.c: New file.
46170         * modules/uniconv/u32-conv-to-enc-tests: New file.
46171         * tests/uniconv/test-u32-conv-to-enc.c: New file.
46172
46173         * modules/uniconv/u16-conv-to-enc: New file.
46174         * lib/uniconv/u16-conv-to-enc.c: New file.
46175         * lib/uniconv/u-conv-to-enc.h: New file.
46176         * modules/uniconv/u16-conv-to-enc-tests: New file.
46177         * tests/uniconv/test-u16-conv-to-enc.c: New file.
46178
46179         * modules/uniconv/u8-conv-to-enc: New file.
46180         * lib/uniconv/u8-conv-to-enc.c: New file.
46181         * modules/uniconv/u8-conv-to-enc-tests: New file.
46182         * tests/uniconv/test-u8-conv-to-enc.c: New file.
46183
46184         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
46185         u32_conv_to_encoding): New declarations.
46186
46187 2007-06-09  Bruno Haible  <bruno@clisp.org>
46188
46189         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
46190
46191 2007-06-09  Bruno Haible  <bruno@clisp.org>
46192
46193         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
46194         * modules/malloca: Renamed from modules/allocsa, updated.
46195         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
46196         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
46197         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
46198         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
46199         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
46200         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
46201         * modules/xmalloca: Renamed from modules/xallocsa, updated.
46202         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
46203         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
46204         * modules/c-strcasestr (Depends-on): Update.
46205         * lib/c-strcasestr.c: Update.
46206         * modules/c-strstr (Depends-on): Update.
46207         * lib/c-strstr.c: Update.
46208         * modules/canonicalize-lgpl (Depends-on): Update.
46209         * lib/canonicalize-lgpl.c: Update.
46210         * modules/clean-temp (Depends-on): Update.
46211         * lib/clean-temp.c: Update.
46212         * modules/csharpcomp (Depends-on): Update.
46213         * lib/csharpcomp.c: Update.
46214         * modules/csharpexec (Depends-on): Update.
46215         * lib/csharpexec.c: Update.
46216         * modules/javacomp (Depends-on): Update.
46217         * lib/javacomp.c: Update.
46218         * modules/javaexec (Depends-on): Update.
46219         * lib/javaexec.c: Update.
46220         * modules/mbscasestr (Depends-on): Update.
46221         * lib/mbscasestr.c: Update.
46222         * modules/mbsstr (Depends-on): Update.
46223         * lib/mbsstr.c: Update.
46224         * modules/setenv (Depends-on): Update.
46225         * lib/setenv.c: Update.
46226         * modules/strcasestr (Depends-on): Update.
46227         * lib/strcasestr.c: Update.
46228         * modules/striconveha (Depends-on): Update.
46229         * lib/striconveha.c: Update.
46230         * modules/relocatable-prog-wrapper (Files): Update.
46231         * lib/relocwrapper.c: Update.
46232         * build-aux/install-reloc: Update.
46233         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
46234
46235 2007-06-08  Bruno Haible  <bruno@clisp.org>
46236
46237         Port to uClibc.
46238         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
46239         * lib/fpurge.c (fpurge): Likewise.
46240         * lib/freading.c (freading): Likewise.
46241         * lib/fseeko.c (rpl_fseeko): Likewise.
46242         * lib/fseterr.c (fseterr): Likewise.
46243         * lib/fwriting.c (fwriting): Likewise.
46244         * tests/test-fflush.c (main): Avoid a failure on uClibc.
46245
46246 2007-06-08  Bruno Haible  <bruno@clisp.org>
46247
46248         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
46249         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
46250         * modules/gettext (Files): Add m4/intlmacosx.m4.
46251
46252 2007-06-07  Bruno Haible  <bruno@clisp.org>
46253
46254         * modules/localename-tests: New file.
46255         * tests/test-localename.c: New file.
46256
46257         New module 'localename'.
46258         * lib/localename.h: New file.
46259         * lib/localename.c: New file, from GNU gettext.
46260         * m4/localename.m4: New file.
46261         * modules/localename: New file.
46262
46263 2007-06-07  Bruno Haible  <bruno@clisp.org>
46264
46265         Work around the lack of <wchar.h> on some builds of uClibc.
46266         * doc/headers/wchar.texi: Update.
46267         * lib/wchar_.h: Include <wchar.h> only if it exists.
46268         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
46269         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
46270         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
46271         doesn't exist.
46272         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
46273         * modules/mbfile (Depends-on): Add wchar.
46274         * modules/mbiter (Depends-on): Likewise.
46275         * modules/mbuiter (Depends-on): Likewise.
46276         Reported by Simon Josefsson.
46277
46278 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
46279
46280         Work around problem reported by Steven M. Schweda in
46281         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
46282         Tru64 5.1B with the Compaq compiler environment installed declares
46283         an 'isblank' function but does not define it in the C library.
46284         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
46285         * lib/regex_internal.h (isblank): Likewise.
46286         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
46287         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
46288
46289 2007-06-05  Bruno Haible  <bruno@clisp.org>
46290
46291         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
46292         ia64.
46293         * modules/printf-safe: New file.
46294         * modules/fprintf-posix (Depends-on): Add printf-safe.
46295         * modules/printf-posix (Depends-on): Likewise.
46296         * modules/snprintf-posix (Depends-on): Likewise.
46297         * modules/sprintf-posix (Depends-on): Likewise.
46298         * modules/vasnprintf-posix (Depends-on): Likewise.
46299         * modules/vasprintf-posix (Depends-on): Likewise.
46300         * modules/vfprintf-posix (Depends-on): Likewise.
46301         * modules/vprintf-posix (Depends-on): Likewise.
46302         * modules/vsnprintf-posix (Depends-on): Likewise.
46303         * modules/vsprintf-posix (Depends-on): Likewise.
46304         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
46305         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
46306         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
46307         "no" on i386, x86_64, ia64.
46308         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
46309         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
46310         on i386, x86_64, ia64.
46311         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
46312         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
46313         on i386, x86_64, ia64.
46314         * tests/test-vasnprintf-posix.c: Include float.h.
46315         (LDBL80_WORDS): New macro.
46316         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
46317         on i386, x86_64, ia64.
46318         * tests/test-vasprintf-posix.c: Include float.h.
46319         (LDBL80_WORDS): New macro.
46320         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
46321         on i386, x86_64, ia64.
46322         * tests/test-snprintf-posix.c: Include float.h.
46323         * tests/test-sprintf-posix.c: Likewise.
46324         * tests/test-vsnprintf-posix.c: Likewise.
46325         * tests/test-vsprintf-posix.c: Likewise.
46326
46327 2007-06-05  Bruno Haible  <bruno@clisp.org>
46328
46329         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
46330         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
46331         non-IEEE numbers on i386, x86_64, ia64.
46332         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
46333         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
46334         * tests/test-isnanl.h: Include float.h.
46335         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
46336
46337 2007-06-05  Bruno Haible  <bruno@clisp.org>
46338
46339         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
46340         also the %a / %A. Handle the %a / %A code before this extra handling.
46341
46342 2007-06-05  Bruno Haible  <bruno@clisp.org>
46343
46344         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
46345         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
46346
46347 2007-06-05  Bruno Haible  <bruno@clisp.org>
46348
46349         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
46350         typo in variable name.
46351
46352 2007-06-05  Eric Blake  <ebb9@byu.net>
46353
46354         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
46355         Reported by Simon Josefsson.
46356
46357 2007-06-04  Bruno Haible  <bruno@clisp.org>
46358
46359         Avoid test failures on some PowerPC platforms.
46360         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
46361         Define differently for PowerPC.
46362         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
46363         Reported by Gary V. Vaughan <gary@gnu.org>.
46364
46365 2007-06-02  Bruno Haible  <bruno@clisp.org>
46366
46367         Fix test-stdint failure on FreeBSD/ia64.
46368         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
46369         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
46370         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
46371         * doc/headers/stdint.texi: Update.
46372
46373 2007-06-01  Bruno Haible  <bruno@clisp.org>
46374
46375         * tests/test-binary-io.c (main): Pass a third argument to open().
46376         Reported by Gary V. Vaughan <gary@gnu.org>.
46377
46378 2007-06-01  Bruno Haible  <bruno@clisp.org>
46379
46380         * doc/functions/frexpl.texi: Update for mingw.
46381
46382 2007-06-01  Bruno Haible  <bruno@clisp.org>
46383
46384         * tests/test-lseek.c (main): Disable test of errno for invalid third
46385         argument.
46386         * doc/functions/lseek.texi: Update.
46387         Reported by Gary V. Vaughan <gary@gnu.org>.
46388
46389 2007-05-28  Bruno Haible  <bruno@clisp.org>
46390
46391         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
46392
46393 2007-05-31  Eric Blake  <ebb9@byu.net>
46394
46395         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
46396         cross compiling.
46397
46398 2007-05-30  Eric Blake  <ebb9@byu.net>
46399         and Bruno Haible  <bruno@clisp.org>
46400
46401         Work around mingw test failures exposed by m4-1.4.9b.
46402         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
46403         * tests/test-unistd.c: Disable uid_t and git_t tests for the
46404         moment.
46405
46406 2007-05-30  Bruno Haible  <bruno@clisp.org>
46407
46408         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
46409         assuming that they are closed. Needed on HP-UX 11.
46410
46411 2007-05-29  Bruno Haible  <bruno@clisp.org>
46412
46413         Fix a problem with #include_next.
46414         * lib/dirent_.h: Split the double-inclusion guard.
46415         * lib/fcntl_.h: Likewise.
46416         * lib/float_.h: Likewise.
46417         * lib/iconv_.h: Likewise.
46418         * lib/inttypes_.h: Likewise.
46419         * lib/locale_.h: Likewise.
46420         * lib/math_.h: Likewise.
46421         * lib/netinet_in_.h: Likewise.
46422         * lib/search_.h: Likewise.
46423         * lib/signal_.h: Likewise.
46424         * lib/stdint_.h: Likewise.
46425         * lib/stdio_.h: Likewise.
46426         * lib/stdlib_.h: Likewise.
46427         * lib/string_.h: Likewise.
46428         * lib/sys_select_.h: Likewise.
46429         * lib/sys_socket_.h: Likewise.
46430         * lib/sys_stat_.h: Likewise.
46431         * lib/sys_time_.h: Likewise.
46432         * lib/sysexits_.h: Likewise.
46433         * lib/time_.h: Likewise.
46434         * lib/unistd_.h: Likewise.
46435         * lib/wchar_.h: Likewise.
46436         * lib/wctype_.h: Likewise.
46437
46438 2007-05-29  Bruno Haible  <bruno@clisp.org>
46439
46440         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
46441         for the moment.
46442
46443 2007-05-29  Bruno Haible  <bruno@clisp.org>
46444
46445         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
46446         invocation.
46447         Reported by Eric Blake.
46448
46449 2007-05-29  Bruno Haible  <bruno@clisp.org>
46450
46451         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
46452         compiling case.
46453
46454 2007-05-29  Eric Blake  <ebb9@byu.net>
46455             Bruno Haible  <bruno@clisp.org>
46456
46457         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
46458         cross compiles.
46459
46460 2007-05-28  Eric Blake  <ebb9@byu.net>
46461
46462         * modules/closein-tests (test_closein_LDADD): Support test on
46463         cygwin with libtool.
46464
46465 2007-05-28  Bruno Haible  <bruno@clisp.org>
46466
46467         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
46468         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
46469         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
46470         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
46471         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
46472         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
46473         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
46474         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
46475         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
46476
46477 2007-05-28  Eric Blake  <ebb9@byu.net>
46478
46479         Unconditionally include <config.h> in unit tests.
46480         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
46481         * tests/test-allocsa.c, tests/test-arcfour.c,
46482         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
46483         tests/test-array_list.c, tests/test-array_oset.c,
46484         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
46485         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
46486         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
46487         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
46488         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
46489         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
46490         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
46491         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
46492         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
46493         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
46494         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
46495         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
46496         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
46497         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
46498         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
46499         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
46500         test-md5.c, test-memmem.c, test-printf-posix.c,
46501         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
46502         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
46503         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
46504         test-strcasestr.c, test-striconv.c, test-striconveh.c,
46505         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
46506         test-vasnprintf-posix2.c, test-vasnprintf.c,
46507         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
46508         test-vfprintf-posix.c, test-vprintf-posix.c,
46509         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
46510         test-xvasprintf.c: Likewise.
46511
46512 2007-05-28  Bruno Haible  <bruno@clisp.org>
46513
46514         * gnulib-tool (func_import): Remember the --with-tests command-line
46515         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
46516         Reported by Eric Blake.
46517
46518 2007-05-28  Bruno Haible  <bruno@clisp.org>
46519
46520         * modules/ftell-tests: New file.
46521         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
46522         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
46523
46524         * lib/ftell.c: New file.
46525         * modules/ftell: New file.
46526         * m4/ftell.m4: New file.
46527         * doc/functions/ftell.texi: Update.
46528         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
46529         REPLACE_FTELL.
46530         * lib/stdio_.h (rpl_ftell): New declaration.
46531         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
46532         REPLACE_FTELL.
46533
46534 2007-05-28  Eric Blake  <ebb9@byu.net>
46535
46536         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
46537
46538 2007-05-28  Bruno Haible  <bruno@clisp.org>
46539
46540         * modules/fseek-tests: New file.
46541         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
46542         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
46543
46544         * lib/fseek.c: New file.
46545         * modules/fseek: New file.
46546         * m4/fseek.m4: New file.
46547         * doc/functions/fseek.texi: Update.
46548         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
46549         REPLACE_FSEEK.
46550         * lib/stdio_.h (rpl_fseek): New declaration.
46551         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
46552         REPLACE_FSEEK.
46553
46554 2007-05-28  Bruno Haible  <bruno@clisp.org>
46555
46556         * lib/stdio_.h (fflush): More comments.
46557
46558 2007-05-28  Bruno Haible  <bruno@clisp.org>
46559
46560         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
46561         runtime test.
46562
46563 2007-05-28  Eric Blake  <ebb9@byu.net>
46564
46565         Improve lseek module.
46566         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
46567         * lib/unistd_.h (lseek): Scale back link warning message.
46568         * tests/test-lseek.c: Beef up test.
46569         * tests/test-lseek.sh: Exercise more facets of lseek.
46570         Reported by Bruno Haible.
46571
46572 2007-05-28  Bruno Haible  <bruno@clisp.org>
46573
46574         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
46575         to define.
46576
46577 2007-05-27  Bruno Haible  <bruno@clisp.org>
46578
46579         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
46580
46581 2007-05-27  Bruno Haible  <bruno@clisp.org>
46582
46583         * modules/openmp: New file.
46584         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
46585         Noah Misch.
46586
46587 2007-05-26  Bruno Haible  <bruno@clisp.org>
46588
46589         * modules/chdir-long (Depends-on): Add fchdir.
46590         * modules/chdir-safer (Depends-on): Likewise.
46591         * modules/fts (Depends-on): Likewise.
46592         * modules/fts-lgpl (Depends-on): Likewise.
46593         * modules/openat (Depends-on): Likewise.
46594         * modules/savewd (Depends-on): Likewise.
46595
46596 2007-05-24  Eric Blake  <ebb9@byu.net>
46597
46598         Fix lseek on mingw.
46599         * modules/lseek: New module.
46600         * m4/lseek.m4: New file.
46601         * lib/lseek.c: New file.
46602         * modules/lseek-tests: New file.
46603         * tests/test-lseek.c: New file.
46604         * tests/test-lseek.sh: New file.
46605         * MODULES.html.sh: Document lseek module.
46606         * modules/fflush (Depends-on): Add lseek, fseeko.
46607         * modules/fseeko (Depends-on): Likewise.
46608         * modules/ftello (Depends-on): Likewise.
46609         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
46610         broken.
46611         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
46612         broken.
46613         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
46614         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
46615         * lib/ftello.c (rpl_ftello): Likewise.
46616         * tests/test-fseeko.c (main): Test this.
46617         * tests/test-fseeko.sh: Likewise.
46618         * tests/test-ftello.c (main): Likewise.
46619         * tests/test-ftello.sh: Likewise.
46620         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
46621         implies replacing fseek.
46622         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
46623         HAVE_FTELLO.
46624         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
46625         * modules/unistd (Makefile.am): Likewise.
46626         * lib/unistd_.h (lseek): Declare a replacement.
46627         * doc/functions/lseek.texi (lseek): Document this fix.
46628         * doc/functions/fseek.texi (fseek): Likewise.
46629         * doc/functions/ftell.texi (ftell): Likewise.
46630
46631 2007-05-24  Bruno Haible  <bruno@clisp.org>
46632
46633         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
46634         in the printed representation of a NaN.
46635         * tests/test-vasprintf-posix.c (test_function): Likewise.
46636         * tests/test-snprintf-posix.h (test_function): Likewise.
46637         * tests/test-sprintf-posix.h (test_function): Likewise.
46638         Reported by Eric Blake.
46639
46640 2007-05-23  Eric Blake  <ebb9@byu.net>
46641
46642         Fix fseeko/ftello on cygwin 1.5.24.
46643         * doc/functions/fseeko.texi (fseeko): Document the fix.
46644         * doc/functions/ftello.texi (ftello): Document the fix.
46645         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
46646         * doc/functions/stdout.text (stdout): New file.
46647         * doc/functions/stderr.text (stderr): New file.
46648         * doc/gnulib.texi (Function Substitutes): Use new files.
46649         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
46650         prior to 1.7.0.
46651         * tests/test-ftello.c (main): Likewise for ftello.
46652         * tests/test-fseeko.sh: New file.
46653         * tests/test-ftello.sh: New file.
46654         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
46655         with seekable stdin.
46656         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
46657         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
46658         (gl_REPLACE_FSEEKO): New macro.
46659         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
46660         * modules/fseeko (Files): Distribute fseeko.c.
46661         * modules/ftello (Files): Distribute ftello.c.
46662         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
46663         mode.
46664         * lib/ftello.c (rpl_ftello): New file.
46665         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
46666         fseeko, ftello.
46667         (gl_STDIN_LARGE_OFFSET): New macro.
46668         * modules/stdio (Makefile.am): Perform the replacement.
46669         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
46670
46671 2007-05-23  Bruno Haible  <bruno@clisp.org>
46672
46673         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
46674         GNULIB_POSIXCHECK is defined.
46675
46676 2007-05-21  Bruno Haible  <bruno@clisp.org>
46677
46678         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
46679         Check also the output for NaN arguments. When cross-compiling, guess
46680         no on IRIX.
46681         * lib/vasnprintf.c: Update comments.
46682         * tests/test-vasnprintf-posix.c (strisnan): New function.
46683         (test_function): Use it.
46684         * tests/test-vasprintf-posix.c (strisnan): New function.
46685         (test_function): Use it.
46686         * tests/test-snprintf-posix.h (strisnan): New function.
46687         (test_function): Use it.
46688         * tests/test-sprintf-posix.h (strisnan): New function.
46689         (test_function): Use it.
46690         Reported by Eric Blake.
46691
46692 2007-05-20  Bruno Haible  <bruno@clisp.org>
46693
46694         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
46695         numbers that fails on BeOS.
46696         * doc/functions/frexpl.texi: Update.
46697
46698 2007-05-20  Jim Meyering  <jim@meyering.net>
46699
46700         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
46701         forced upon us by glibc-2.6.
46702
46703 2007-05-20  Bruno Haible  <bruno@clisp.org>
46704
46705         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
46706         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
46707         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
46708         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
46709         NEED_PRINTF_INFINITE.
46710         (is_infinitel): New function.
46711         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
46712         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
46713         gl_PREREQ_VASNPRINTF_INFINITE.
46714         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
46715         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
46716         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
46717         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
46718         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
46719         gl_PREREQ_VASNPRINTF_INFINITE.
46720         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
46721         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
46722         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
46723         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
46724         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
46725         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46726         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
46727         * doc/functions/fprintf.texi: Update.
46728         * doc/functions/printf.texi: Update.
46729         * doc/functions/snprintf.texi: Update.
46730         * doc/functions/sprintf.texi: Update.
46731         * doc/functions/vfprintf.texi: Update.
46732         * doc/functions/vprintf.texi: Update.
46733         * doc/functions/vsnprintf.texi: Update.
46734         * doc/functions/vsprintf.texi: Update.
46735
46736 2007-05-20  Bruno Haible  <bruno@clisp.org>
46737
46738         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
46739         was not found in libc.
46740         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
46741
46742 2007-05-20  Bruno Haible  <bruno@clisp.org>
46743
46744         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
46745         printed as "-nan" instead of "nan".
46746         * tests/test-vasprintf-posix.c (test_function): Likewise.
46747         * tests/test-snprintf-posix.h (test_function): Likewise.
46748         * tests/test-sprintf-posix.h (test_function): Likewise.
46749         Needed for HP-UX 11.
46750
46751 2007-05-20  Jim Meyering  <jim@meyering.net>
46752
46753         Fix buggy test for the fchownat-deref bug.
46754         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
46755         symlink required for the run-test.  Without it, this test would
46756         always declare that fchownat doesn't work, and client code would
46757         unnecessarily use the replacement function with fixed libc.
46758         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
46759         Reported by Greg Schafer.
46760
46761 2007-05-19  Bruno Haible  <bruno@clisp.org>
46762
46763         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
46764         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
46765         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
46766         Needed for IRIX 6.5 and Solaris 2.5.1.
46767
46768 2007-05-19  Bruno Haible  <bruno@clisp.org>
46769
46770         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
46771         (test_function): Skip tests involving -0.0 on platforms where
46772         -0.0 = 0.0.
46773         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
46774         (test_function): Skip tests involving -0.0 on platforms where
46775         -0.0 = 0.0.
46776         * tests/test-snprintf-posix.h (have_minus_zero): New function.
46777         (test_function): Skip tests involving -0.0 on platforms where
46778         -0.0 = 0.0.
46779         * tests/test-sprintf-posix.h (have_minus_zero): New function.
46780         (test_function): Skip tests involving -0.0 on platforms where
46781         -0.0 = 0.0.
46782         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
46783         tests.
46784         * tests/test-printf-posix.h (test_function): Likewise.
46785         * tests/test-printf-posix.output: Remove all -0.0 related results.
46786         Needed for IRIX 6.5.
46787
46788 2007-05-19  Bruno Haible  <bruno@clisp.org>
46789
46790         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
46791         printed as "nan0x7fffffff" instead of "nan".
46792         * tests/test-vasprintf-posix.c (test_function): Likewise.
46793         * tests/test-snprintf-posix.h (test_function): Likewise.
46794         * tests/test-sprintf-posix.h (test_function): Likewise.
46795         * tests/test-fprintf-posix.h (NaN): Remove macro.
46796         (test_function): Remove all NaN related tests.
46797         * tests/test-printf-posix.h (NaN): Remove macro.
46798         (test_function): Remove all NaN related tests.
46799         * tests/test-printf-posix.output: Remove all NaN related results.
46800         Needed for IRIX 6.5.
46801
46802 2007-05-19  Bruno Haible  <bruno@clisp.org>
46803
46804         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
46805         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
46806
46807 2007-05-19  Bruno Haible  <bruno@clisp.org>
46808
46809         * lib/float_.h: New file.
46810         * m4/float_h.m4: New file.
46811         * modules/float: New file.
46812         * modules/isnanl (Dependencies): Add float.
46813         * modules/isnanl-nolibm (Dependencies): Likewise.
46814         * modules/mathl (Dependencies): Likewise.
46815         * modules/printf-frexpl (Dependencies): Likewise.
46816         * modules/signbit (Dependencies): Likewise.
46817         * modules/vasnprintf (Dependencies): Likewise.
46818         * doc/headers/float.texi: Update.
46819
46820 2007-05-19  Jim Meyering  <jim@meyering.net>
46821
46822         * lib/utimens.c (gl_futimens): Rename from futimens,
46823         now that glibc-2.6 declares futimens.
46824         * lib/utimens.h: Likewise.
46825
46826 2007-05-19  Bruno Haible  <bruno@clisp.org>
46827
46828         Avoid test failures on mingw.
46829         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
46830         * tests/test-printf-posix.sh: Likewise.
46831         * tests/test-vfprintf-posix.sh: Likewise.
46832         * tests/test-vprintf-posix.sh: Likewise.
46833
46834 2007-05-19  Bruno Haible  <bruno@clisp.org>
46835
46836         Fix *printf result for NaN, Inf, -0.0 on mingw.
46837         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
46838         * lib/vasnprintf.c: Include math.h and isnan.h.
46839         (is_infinite_or_zero): New function.
46840         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
46841         values in the %f, %F, %e, %E, %g, %G directives.
46842         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
46843         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
46844         gl_PRINTF_INFINITE and test its result. Invoke
46845         gl_PREREQ_VASNPRINTF_INFINITE.
46846         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
46847         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
46848         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
46849         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
46850         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
46851         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46852         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
46853         * doc/functions/fprintf.texi: Update.
46854         * doc/functions/printf.texi: Update.
46855         * doc/functions/snprintf.texi: Update.
46856         * doc/functions/sprintf.texi: Update.
46857         * doc/functions/vfprintf.texi: Update.
46858         * doc/functions/vprintf.texi: Update.
46859         * doc/functions/vsnprintf.texi: Update.
46860         * doc/functions/vsprintf.texi: Update.
46861
46862 2007-05-19  Bruno Haible  <bruno@clisp.org>
46863
46864         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
46865         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
46866         Instead of multiplying with 10^k, set extra_zeroes to k.
46867         (scale10_round_long_double): Remove function.
46868
46869 2007-05-18  Bruno Haible  <bruno@clisp.org>
46870
46871         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
46872         introduced on 2007-05-06.
46873
46874 2007-05-18  Bruno Haible  <bruno@clisp.org>
46875
46876         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
46877         %g directives.
46878         * tests/test-vasprintf-posix.c (test_function): Likewise.
46879         * tests/test-snprintf-posix.h (test_function): Likewise.
46880         * tests/test-sprintf-posix.h (test_function): Likewise.
46881
46882 2007-05-18  Bruno Haible  <bruno@clisp.org>
46883
46884         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
46885         (strmatch): New function.
46886         (test_function): Test the %f directive on numbers of various exponents.
46887         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
46888         (strmatch): New function.
46889         (test_function): Test the %f directive on numbers of various exponents.
46890         * tests/test-snprintf-posix.h (strmatch): New function.
46891         (test_function): Test the %f directive on numbers of various exponents.
46892         * tests/test-sprintf-posix.h (strmatch): New function.
46893         (test_function): Test the %f directive on numbers of various exponents.
46894         * tests/test-snprintf-posix.c (SIZEOF): New macro.
46895         * tests/test-sprintf-posix.c (SIZEOF): New macro.
46896         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
46897         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
46898
46899 2007-05-18  Bruno Haible  <bruno@clisp.org>
46900
46901         Add support for 'long double' number output.
46902         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
46903         * lib/vasnprintf.c: Include math.h and float+.h.
46904         (mp_limb_t): New type.
46905         (GMP_LIMB_BITS): New macro.
46906         (mp_twolimb_t): New type.
46907         (GMP_TWOLIMB_BITS): New macro.
46908         (mpn_t): New type.
46909         (multiply, divide, convert_to_decimal, decode_long_double,
46910         scale10_round_long_double, scale10_round_decimal_long_double,
46911         floorlog10l): New functions.
46912         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
46913         for the %f, %F, %e, %E, %g, %G directives.
46914         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
46915         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
46916         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
46917         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
46918         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
46919         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
46920         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
46921         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
46922         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
46923         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46924         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
46925         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
46926         * modules/snprintf-posix (Depends-on): Likewise.
46927         * modules/sprintf-posix (Depends-on): Likewise.
46928         * modules/vasnprintf-posix (Depends-on): Likewise.
46929         * modules/vasprintf-posix (Depends-on): Likewise.
46930         * modules/vfprintf-posix (Depends-on): Likewise.
46931         * modules/vsnprintf-posix (Depends-on): Likewise.
46932         * modules/vsprintf-posix (Depends-on): Likewise.
46933         * modules/vasnprintf (Files): Add lib/float+.h.
46934         * doc/functions/fprintf.texi: Update.
46935         * doc/functions/printf.texi: Update.
46936         * doc/functions/snprintf.texi: Update.
46937         * doc/functions/sprintf.texi: Update.
46938         * doc/functions/vfprintf.texi: Update.
46939         * doc/functions/vprintf.texi: Update.
46940         * doc/functions/vsnprintf.texi: Update.
46941         * doc/functions/vsprintf.texi: Update.
46942
46943 2007-05-18  Bruno Haible  <bruno@clisp.org>
46944
46945         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
46946
46947 2007-05-18  Bruno Haible  <bruno@clisp.org>
46948
46949         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
46950         for printing 64-bit integers. Needed for mingw.
46951
46952 2007-05-18  Bruno Haible  <bruno@clisp.org>
46953
46954         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
46955         gl_FUNC_FREXPL_WORKS.
46956         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
46957
46958 2007-05-18  Bruno Haible  <bruno@clisp.org>
46959
46960         * modules/frexpl-nolibm-tests: New file.
46961
46962         * modules/frexpl-nolibm: New file.
46963         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
46964
46965 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
46966
46967         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
46968         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
46969         GCC 4.2, which otherwise issues a lot of warnings.
46970         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
46971         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
46972         Likewise.
46973         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
46974         * modules/iconv_open (iconv.h): Likewise.
46975         * modules/locale (locale.h): Likewise.
46976         * modules/netinet_in (netinet/in.h): Likewise.
46977         * modules/sys_select (sys_select.h): Likewise.
46978         * modules/sys_socket (sys/socket.h): Likewise.
46979         * modules/sys_stat (sys/stat.h): Likewise.
46980         * modules/sysexits (sysexits.h): Likewise.
46981         * modules/unistd (unistd.h): Likewise.
46982
46983 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46984
46985         * modules/closein-tests (Makefile.am): Distribute
46986         `test-closein.sh'.
46987
46988 2007-05-17  Bruno Haible  <bruno@clisp.org>
46989
46990         * tests/test-printf-posix.output: Renamed from
46991         tests/test-fprintf-posix.out.
46992         * modules/fprintf-posix-tests: Update.
46993         * modules/printf-posix-tests: Update.
46994         * modules/vfprintf-posix-tests: Update.
46995         * modules/vprintf-posix-tests: Update.
46996         * tests/test-fprintf-posix.sh: Update.
46997         * tests/test-printf-posix.sh: Update.
46998         * tests/test-vfprintf-posix.sh: Update.
46999         * tests/test-vprintf-posix.sh: Update.
47000         Reported by Ralf Wildenhues.
47001
47002 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
47003
47004         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
47005         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
47006         GCC 4.2, which otherwise issues a lot of warnings.
47007         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
47008         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
47009         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
47010         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
47011         it should no longer be needed.
47012         * lib/string_.h: Likewise.
47013         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
47014         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
47015         * modules/inttypes (inttypes.h): Likewise.
47016         * modules/math (math.h): Likewise.
47017         * modules/search (search.h): Likewise.
47018         * modules/signal (signal.h): Likewise.
47019         * modules/stdint (stdint.h): Likewise.
47020         * modules/stdio (stdio.h): Likewise.
47021         * modules/stdlib (stdlib.h): Likewise.
47022         * modules/string (string.h): Likewise.
47023         * modules/sys_time (sys/time.h): Likewise.
47024         * modules/time (time.h): Likewise.
47025         * modules/wchar (wchar.h): Likewise.
47026         * modules/wctype (wtype.h): Likewise.
47027
47028 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
47029
47030         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
47031
47032 2007-05-13  Bruno Haible  <bruno@clisp.org>
47033
47034         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
47035         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
47036         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
47037         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
47038         (gl_PREREQ_STRTOK_R): Don't require it here.
47039
47040 2007-05-13  Bruno Haible  <bruno@clisp.org>
47041
47042         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
47043         when used in C++ mode.
47044
47045 2007-05-12  Bruno Haible  <bruno@clisp.org>
47046
47047         * lib/linebuffer.h: Tweak doc.
47048         * lib/linebuffer.c: Likewise.
47049
47050 2007-05-12  James Youngman  <jay@gnu.org>
47051
47052         * lib/linebuffer.c (readlinebuffer_delim): New function,
47053         like readlinebuffer, but use a caller-specified delimiter.
47054         (readlinebuffer): Just call readlinebuffer_delim with '\n'
47055         as the delimiter.
47056         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
47057
47058 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
47059
47060         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
47061         * modules/openat (Files): Remove openat-die.c.
47062         (Depends-on): Add openat-die.
47063         * modules/openat-die: New module.
47064
47065 2007-05-06  Bruno Haible  <bruno@clisp.org>
47066
47067         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
47068         Update with info about Cygwin.
47069         * doc/functions/fprintf.texi: Update.
47070         * doc/functions/printf.texi: Update.
47071         * doc/functions/snprintf.texi: Update.
47072         * doc/functions/sprintf.texi: Update.
47073         * doc/functions/vfprintf.texi: Update.
47074         * doc/functions/vprintf.texi: Update.
47075         * doc/functions/vsnprintf.texi: Update.
47076         * doc/functions/vsprintf.texi: Update.
47077         Reported by Eric Blake.
47078
47079 2007-05-06  Bruno Haible  <bruno@clisp.org>
47080
47081         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
47082         padding ourselves for the floating-point directives.
47083         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
47084         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
47085         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
47086         gl_PRINTF_FLAG_ZERO and test its result. Invoke
47087         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
47088         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
47089         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
47090         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
47091         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
47092         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
47093         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
47094         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
47095         * tests/test-snprintf-posix.h (test_function): Also check the width
47096         and some flags in the %f directive.
47097         * tests/test-sprintf-posix.h (test_function): Likewise.
47098         * tests/test-vasnprintf-posix.c (test_function): Likewise.
47099         * tests/test-vasprintf-posix.c (test_function): Likewise.
47100         * doc/functions/fprintf.texi: Update.
47101         * doc/functions/printf.texi: Update.
47102         * doc/functions/snprintf.texi: Update.
47103         * doc/functions/sprintf.texi: Update.
47104         * doc/functions/vfprintf.texi: Update.
47105         * doc/functions/vprintf.texi: Update.
47106         * doc/functions/vsnprintf.texi: Update.
47107         * doc/functions/vsprintf.texi: Update.
47108
47109 2007-05-06  Bruno Haible  <bruno@clisp.org>
47110
47111         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
47112         pass the ' flag character to sprintf or snprintf.
47113         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
47114         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
47115         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
47116         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
47117         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
47118         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
47119         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
47120         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
47121         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
47122         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
47123         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
47124         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
47125         * tests/test-snprintf-posix.h (test_function): Also check the grouping
47126         flag.
47127         * tests/test-sprintf-posix.h (test_function): Likewise.
47128         * tests/test-vasnprintf-posix.c (test_function): Likewise.
47129         * tests/test-vasprintf-posix.c (test_function): Likewise.
47130         * doc/functions/fprintf.texi: Update.
47131         * doc/functions/printf.texi: Update.
47132         * doc/functions/snprintf.texi: Update.
47133         * doc/functions/sprintf.texi: Update.
47134         * doc/functions/vfprintf.texi: Update.
47135         * doc/functions/vprintf.texi: Update.
47136         * doc/functions/vsnprintf.texi: Update.
47137         * doc/functions/vsprintf.texi: Update.
47138
47139 2007-05-01  Bruno Haible  <bruno@clisp.org>
47140
47141         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
47142
47143 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
47144
47145         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
47146         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
47147
47148 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
47149
47150         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
47151         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
47152         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
47153
47154 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
47155
47156         * lib/argp-help.c (struct hol_entry): New member `ord'.
47157         (HOL_ENTRY_PTRCMP): Use ord for comparison
47158         (hol_sort): Initialize ord.
47159
47160 2007-05-01  Bruno Haible  <bruno@clisp.org>
47161
47162         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
47163         Reported by Eric Blake.
47164         * doc/gnulib.texi (Function Substitutes): Update.
47165
47166 2007-05-01  Bruno Haible  <bruno@clisp.org>
47167
47168         * doc/functions.texi: Remove file, now redundant through
47169         doc/functions/*.texi.
47170
47171 2007-05-01  Bruno Haible  <bruno@clisp.org>
47172
47173         * modules/argp (Depends-on): Add sleep.
47174
47175 2007-05-01  Bruno Haible  <bruno@clisp.org>
47176
47177         * modules/sleep-tests: New file.
47178         * tests/test-sleep.c: New file.
47179
47180         * modules/sleep: New file.
47181         * lib/sleep.c: New file.
47182         * m4/sleep.m4: New file.
47183         * lib/unistd_.h (sleep): New declaration.
47184         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
47185         HAVE_SLEEP.
47186         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
47187         * doc/functions/sleep.texi: Document the sleep module.
47188
47189 2007-05-01  Bruno Haible  <bruno@clisp.org>
47190
47191         * lib/sigprocmask.h: Remove file.
47192         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
47193         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
47194         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
47195         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
47196         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
47197         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
47198         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
47199         HAVE_SIGSET_T as a shell variable.
47200         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
47201         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
47202         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
47203         (Depends-on): Add signal. Remove verify.
47204         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
47205         (Include): Mention <signal.h> instead of sigprocmask.h.
47206         * NEWS: Mention the change.
47207         * lib/fatal-signal.c: Don't include sigprocmask.h.
47208
47209 2007-05-01  Bruno Haible  <bruno@clisp.org>
47210
47211         * modules/signal: New file.
47212         * lib/signal_.h: New file.
47213         * m4/signal_h.m4: New file.
47214
47215 2007-05-01  Bruno Haible  <bruno@clisp.org>
47216
47217         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
47218         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
47219         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
47220         HAVE_WCTYPE_CTMP_BUG into wctype.h.
47221
47222 2007-05-01  Bruno Haible  <bruno@clisp.org>
47223
47224         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
47225         configure time.
47226         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
47227         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
47228         * modules/sys_stat (Makefile.am): Substitute their values into
47229         sys/stat.h.
47230
47231 2007-05-01  Bruno Haible  <bruno@clisp.org>
47232
47233         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
47234         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
47235         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
47236
47237 2007-05-01  Bruno Haible  <bruno@clisp.org>
47238
47239         * doc/header/assert.texi: Undo last change: don't mention the gnulib
47240         'assert' module here.
47241
47242 2007-05-01  Bruno Haible  <bruno@clisp.org>
47243
47244         * doc/functions/*.texi: New files.
47245         * doc/functions/google-ranking.txt: New file.
47246         * doc/gnulib.texi (Function Substitutes): New chapter.
47247         (ctime, inet_ntoa): Remove sections.
47248         * doc/ctime.texi: Remove file.
47249         * doc/inet_ntoa.texi: Remove file.
47250         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
47251         dependencies.
47252         (%.info): New rule, specifying a --reference-limit.
47253
47254 2007-05-01  Bruno Haible  <bruno@clisp.org>
47255
47256         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
47257
47258 2007-05-01  Bruno Haible  <bruno@clisp.org>
47259
47260         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
47261         the portability of 'mkdir' to mingw systems.
47262
47263 2007-05-01  Bruno Haible  <bruno@clisp.org>
47264
47265         * doc/headers/google-ranking.txt: New file.
47266
47267 2007-04-30  Eric Blake  <ebb9@byu.net>
47268
47269         Prefer fseeko to fseek.
47270         * modules/getpass (Depends-on): Add fseeko.
47271         * lib/getpass.c (getpass): Use fseeko, not fseek.
47272
47273 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
47274
47275         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
47276         assumes the sorting is stable, while most qsort implementations
47277         are not.  Use argument addresses to ensure they never compare as
47278         equal.
47279
47280         * tests/test-argp-2.sh (usage-indent test): Fix output
47281         (func_compare): Restore diff options
47282         * tests/test-argp.c: Restore #include "progname.h"
47283
47284 2007-04-29  Bruno Haible  <bruno@clisp.org>
47285
47286         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
47287         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
47288         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
47289         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
47290         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
47291         (configure.ac): Define CHECK_SNPRINTF_POSIX.
47292         (TESTS, check_PROGRAMS): Add test-snprintf.
47293         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
47294         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
47295         (TESTS, check_PROGRAMS): Add test-vsnprintf.
47296         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
47297         assertions that fail on HP-UX, OSF/1, or IRIX.
47298         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
47299
47300 2007-04-29  Bruno Haible  <bruno@clisp.org>
47301
47302         * MODULES.html.sh (posix_functions): Remove 'contents'.
47303
47304 2007-04-29  Karl Berry  <karl@gnu.org>
47305
47306         * config/srclist.txt (gendocs_template_min): new entry.
47307
47308 2007-04-29  Bruno Haible  <bruno@clisp.org>
47309
47310         Work around fpurge bug on BSD systems.
47311         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
47312         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
47313         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
47314         fpurge to rpl_fpurge if the system already has this function.
47315         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
47316         the case where the system already has this function. Correct invariants
47317         on BSD systems.
47318         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
47319         BSD systems.
47320
47321 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
47322
47323         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
47324         proposed by Sven Verdoolaege.
47325
47326         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
47327         options.
47328         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
47329         (usage and help tests): Update
47330
47331 2007-04-29  Bruno Haible  <bruno@clisp.org>
47332
47333         * tests/test-fflush.c (main): Use a file of size 17, not 10.
47334         Print more information in case of failure. Disable a test on BeOS.
47335
47336 2007-04-29  Bruno Haible  <bruno@clisp.org>
47337
47338         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
47339         This helps debugging on systems on which no gdb is available.
47340
47341 2007-04-29  Bruno Haible  <bruno@clisp.org>
47342
47343         * lib/freading.h: Improve comments.
47344         * lib/fwriting.h: Likewise.
47345         * tests/test-freading.c (main): Don't check freading immediately after
47346         repositioning. Needed for glibc.
47347
47348 2007-04-29  Bruno Haible  <bruno@clisp.org>
47349
47350         * lib/freading.c (freading): Trivial simplification.
47351
47352 2007-04-28  Bruno Haible  <bruno@clisp.org>
47353
47354         * tests/test-fwriting.c (main): Also test the interaction between
47355         fflush and fwriting.
47356         * modules/fwriting-tests (Depends-on): Add fflush.
47357
47358         * tests/test-freading.c (main): Also test the interaction between
47359         fflush and freading.
47360         * modules/freading-tests (Depends-on): Add fflush.
47361
47362 2007-04-28  Bruno Haible  <bruno@clisp.org>
47363
47364         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
47365         fseeko and ftello.
47366         Suggested by Eric Blake.
47367
47368 2007-04-28  Jim Meyering  <jim@meyering.net>
47369
47370         Avoid false-negative in gl_STDINT_H's C99 conformance test.
47371         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
47372         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
47373
47374 2007-04-27  Eric Blake  <ebb9@byu.net>
47375
47376         * doc/headers/assert.texi (assert.h): Document assert module use.
47377
47378 2007-04-27  Bruno Haible  <bruno@clisp.org>
47379
47380         * doc/headers/*.texi: New files.
47381         * doc/gnulib.texi (Header File Substitutes): New chapter.
47382         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
47383         dependencies.
47384         (standards.info ,standards.html, standards.dvi): Update dependencies.
47385         (mostlyclean, clean): New targets.
47386
47387 2007-04-27  Bruno Haible  <bruno@clisp.org>
47388
47389         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
47390         * modules/sysexits (Files, Makefile.am): Update.
47391
47392         * lib/sys_socket_.h: Renamed from lib/socket_.h.
47393         * modules/sys_socket (Files, Makefile.am): Update.
47394
47395         * lib/sys_stat_.h: Renamed from lib/stat_.h.
47396         * modules/sys_stat (Files, Makefile.am): Update.
47397
47398 2007-04-27  Eric Blake  <ebb9@byu.net>
47399
47400         * lib/freading.h: Improve comments.
47401         * lib/fwriting.h: Likewise.
47402         * lib/fflush.c: Likewise.
47403
47404         Fix closein for mingw.
47405         * modules/closein-tests: Add tests for closein.
47406         * tests/test-closein.c: New file.
47407         * tests/test-closein.sh: Likewise.
47408         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
47409         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
47410
47411 2007-04-27  Bruno Haible  <bruno@clisp.org>
47412
47413         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
47414         version is < 6.
47415         * lib/math_.h [__DECC]: Likewise.
47416         * lib/stdio_.h [__DECC]: Likewise.
47417         * lib/stdlib_.h [__DECC]: Likewise.
47418         * lib/string_.h [__DECC]: Likewise.
47419         * lib/time_.h [__DECC]: Likewise.
47420         * lib/wchar_.h [__DECC]: Likewise.
47421         * lib/wctype_.h [__DECC]: Likewise.
47422
47423 2007-04-27  Bruno Haible  <bruno@clisp.org>
47424
47425         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
47426
47427 2007-04-27  Bruno Haible  <bruno@clisp.org>
47428
47429         * lib/fflush.c: Add comments.
47430         * modules/fpurge-tests (Depends-on): Add fflush.
47431         * modules/freadable-tests (Depends-on): Likewise.
47432         * modules/fwritable-tests (Depends-on): Likewise.
47433
47434 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
47435
47436         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
47437         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
47438         Report by Bruno Haible <bruno@clisp.org>.
47439
47440 2007-04-26  Eric Blake  <ebb9@byu.net>
47441
47442         Fix fflush on mingw.
47443         * modules/fflush (Depends-on): Add freading.
47444         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
47445         but unread data.
47446
47447 2007-04-26  Eric Blake  <ebb9@byu.net>
47448         and Bruno Haible  <bruno@clisp.org>
47449
47450         Implement freading and fwriting.
47451         * lib/freading.c: New file.
47452         * lib/freading.h: Likewise.
47453         * m4/freading.m4: Likewise.
47454         * modules/freading: Likewise.
47455         * modules/freading-tests: Likewise.
47456         * tests/test-freading.c: Likewise.
47457         * lib/fwriting.c: New file.
47458         * lib/fwriting.h: Likewise.
47459         * m4/fwriting.m4: Likewise.
47460         * modules/fwriting: Likewise.
47461         * modules/fwriting-tests: Likewise.
47462         * tests/test-fwriting.c: Likewise.
47463         * MODULES.html.sh (File stream based Input/Output): Mention them.
47464
47465 2007-04-26  Bruno Haible  <bruno@clisp.org>
47466
47467         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
47468         'long' when we assume it.
47469         Suggested by Eric Blake.
47470
47471 2007-04-26  Bruno Haible  <bruno@clisp.org>
47472
47473         Ensure fseeko, ftello are declared on glibc systems.
47474         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
47475         * modules/fseeko (configure.ac-early): Likewise.
47476         * modules/ftello (configure.ac-early): Likewise.
47477         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
47478         AC_FUNC_FSEEKO for this.
47479         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
47480         (gl_CHECK_FSEEKO): Remove macro.
47481
47482 2007-04-26  Bruno Haible  <bruno@clisp.org>
47483
47484         * tests/test-fflush.c (main): Also check the ftell result after
47485         fflush and fseek/fseeko.
47486         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
47487         file descriptor position cache in the stream.
47488         * lib/fseeko.c (rpl_fseeko): Likewise.
47489
47490 2007-04-26  Bruno Haible  <bruno@clisp.org>
47491
47492         * modules/fflush-tests (Depends-on): Add fseeko.
47493
47494 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
47495             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47496
47497         * lib/argz_.h: ensure error_t definition is obtained in same
47498         mechanism system argz.h would have.
47499         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
47500         argz facilities are known bad.  Err on the side of caution if
47501         cross-compiling.
47502
47503 2007-04-25  Eric Blake  <ebb9@byu.net>
47504
47505         * lib/fpurge.c (includes): Use stdlib.h for free.
47506         * tests/test-fflush.c (main): Also test fflush-fseeko.
47507
47508 2007-04-25  Bruno Haible  <bruno@clisp.org>
47509
47510         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
47511         * lib/fseeko.c: New file.
47512         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
47513         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
47514         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
47515         gl_FUNC_FSEEKO.
47516         (gl_FUNC_FSEEKO): Invoke it.
47517         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
47518         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
47519         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
47520
47521 2007-04-25  Bruno Haible  <bruno@clisp.org>
47522
47523         * modules/fflush (Depends-on): Add ftello.
47524
47525 2007-04-25  Bruno Haible  <bruno@clisp.org>
47526
47527         * modules/ftello-tests: New file.
47528         * tests/test-ftello.c: New file.
47529
47530         * modules/ftello: New file.
47531         * m4/ftello.m4: New file.
47532         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
47533         HAVE_FTELLO.
47534         * lib/stdio_.h (ftello): New declaration.
47535         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
47536         HAVE_FTELLO.
47537
47538 2007-04-25  Bruno Haible  <bruno@clisp.org>
47539
47540         * modules/fseeko-tests: New file.
47541         * tests/test-fseeko.c: New file.
47542
47543         * modules/fseeko: New file.
47544         * m4/fseeko.m4: New file.
47545         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
47546         HAVE_FSEEKO.
47547         * lib/stdio_.h (fseeko): New declaration.
47548         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
47549         HAVE_FSEEKO.
47550
47551 2007-04-25  Bruno Haible  <bruno@clisp.org>
47552
47553         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
47554
47555 2007-04-25  Bruno Haible  <bruno@clisp.org>
47556
47557         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
47558         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
47559         * tests/test-unistd.c: Likewise.
47560         * tests/test-fcntl.c: Likewise.
47561
47562 2007-04-23  Eric Blake  <ebb9@byu.net>
47563
47564         * lib/fflush.c: Fix missing include.
47565         Reported by Bruno Haible.
47566
47567 2007-04-23  Bruno Haible  <bruno@clisp.org>
47568
47569         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
47570         Reported by Eric Blake.
47571
47572 2007-04-23  Bruno Haible  <bruno@clisp.org>
47573
47574         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
47575
47576 2007-04-23  Bruno Haible  <bruno@clisp.org>
47577
47578         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
47579
47580 2007-04-23  Bruno Haible  <bruno@clisp.org>
47581
47582         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
47583         Needed on HP-UX 11.
47584
47585 2007-04-16  Eric Blake  <ebb9@byu.net>
47586
47587         Make fflush rely on fpurge.
47588         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
47589         open coding all variants.
47590         * modules/fflush (Depends-on): Add fpurge and unistd.
47591         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
47592         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
47593
47594         Fix --with-tests compilation on cygwin.
47595         * modules/argmatch-tests (Makefile.am): List gnulib library first
47596         in LDADD.
47597         * modules/argp-tests (Makefile.am): Likewise.
47598         * modules/array-list-tests (Makefile.am): Likewise.
47599         * modules/array-oset-tests (Makefile.am): Likewise.
47600         * modules/avltree-list-tests (Makefile.am): Likewise.
47601         * modules/avltree-oset-tests (Makefile.am): Likewise.
47602         * modules/avltreehash-list-tests (Makefile.am): Likewise.
47603         * modules/carray-list-tests (Makefile.am): Likewise.
47604         * modules/dirname-tests (Makefile.am): Likewise.
47605         * modules/frexp-tests (Makefile.am): Likewise.
47606         * modules/isnanl-tests (Makefile.am): Likewise.
47607         * modules/linked-list-tests (Makefile.am): Likewise.
47608         * modules/linkedhash-list-tests (Makefile.am): Likewise.
47609         * modules/lock-tests (Makefile.am): Likewise.
47610         * modules/rbtree-list-tests (Makefile.am): Likewise.
47611         * modules/rbtree-oset-tests (Makefile.am): Likewise.
47612         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
47613         * modules/tls-tests (Makefile.am): Likewise.
47614         * modules/tsearch-tests (Makefile.am): Likewise.
47615         * modules/xvasprintf-tests (Makefile.am): Likewise.
47616
47617         Fix fpurge for cygwin.
47618         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
47619         value.
47620         * modules/fpurge-tests (Depends-on): Clean up trash.
47621
47622 2007-04-16  Simon Josefsson  <simon@josefsson.org>
47623
47624         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
47625
47626         * m4/autobuild.m4: Re-indent.
47627
47628 2007-04-13  Bruno Haible  <bruno@clisp.org>
47629
47630         * modules/fpurge-tests: New file.
47631         * tests/test-fpurge.c: New file.
47632
47633         * modules/fpurge: New file.
47634         * lib/fpurge.h: New file.
47635         * lib/fpurge.c: New file.
47636         * m4/fpurge.m4: New file.
47637
47638 2007-04-13  Bruno Haible  <bruno@clisp.org>
47639
47640         * modules/fbufmode-tests: New file.
47641         * tests/test-fbufmode.c: New file.
47642
47643         * modules/fbufmode: New file.
47644         * lib/fbufmode.h: New file.
47645         * lib/fbufmode.c: New file.
47646         * m4/fbufmode.m4: New file.
47647
47648 2007-04-13  Bruno Haible  <bruno@clisp.org>
47649
47650         * modules/fwritable-tests: New file.
47651         * tests/test-fwritable.c: New file.
47652
47653         * modules/fwritable: New file.
47654         * lib/fwritable.h: New file.
47655         * lib/fwritable.c: New file.
47656         * m4/fwritable.m4: New file.
47657
47658 2007-04-13  Bruno Haible  <bruno@clisp.org>
47659
47660         * modules/freadable-tests: New file.
47661         * tests/test-freadable.c: New file.
47662
47663         * modules/freadable: New file.
47664         * lib/freadable.h: New file.
47665         * lib/freadable.c: New file.
47666         * m4/freadable.m4: New file.
47667
47668 2007-04-13  Bruno Haible  <bruno@clisp.org>
47669
47670         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
47671         MOSTLYCLEANFILES.
47672
47673 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
47674
47675         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
47676         gzip bootstrap.conf to avoid dragging in i18n machinery.
47677         (gnulib_tool_option): Use it.
47678
47679 2007-04-13  Bruno Haible  <bruno@clisp.org>
47680
47681         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
47682         %F directives.
47683         * tests/test-vasprintf-posix.c (test_function): Likewise.
47684         * tests/test-snprintf-posix.h (test_function): Likewise.
47685         * tests/test-sprintf-posix.h (test_function): Likewise.
47686         * tests/test-fprintf-posix.h (test_function): Likewise.
47687         * tests/test-printf-posix.h (test_function): Likewise.
47688         * tests/test-fprintf-posix.out: Likewise.
47689
47690 2007-04-13  Bruno Haible  <bruno@clisp.org>
47691
47692         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
47693         * modules/tls-tests (configure.ac): Likewise.
47694         Reported by Arto C. Nirkko <anirkko@insel.ch>.
47695
47696 2007-04-13  Bruno Haible  <bruno@clisp.org>
47697
47698         * lib/tls.c (glthread_tls_get): Fix return type.
47699         Patch by Arto C. Nirkko <anirkko@insel.ch>.
47700
47701 2007-04-12  Eric Blake  <ebb9@byu.net>
47702
47703         * modules/gettime (Depends-on): Remove gettime.
47704         Reported by Dmitry V. Levin.
47705
47706 2007-04-12  Bruno Haible  <bruno@clisp.org>
47707
47708         * modules/fflush (Include): Mention <stdio.h>.
47709         * modules/strtoimax (Include): Mention <inttypes.h>.
47710         * modules/strtoumax (Include): Likewise.
47711
47712 2007-04-12  Eric Blake  <ebb9@byu.net>
47713
47714         * .cvsignore: New file.
47715         * .gitignore: Likewise.
47716
47717 2007-04-12  Bruno Haible  <bruno@clisp.org>
47718
47719         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
47720         not before, since $(LDADD) often contains libgnu.a.
47721         * modules/striconv-tests (test_striconv_LDADD): Likewise.
47722         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
47723         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
47724         Needed on Cygwin.
47725
47726 2007-04-12  Eric Blake  <ebb9@byu.net>
47727
47728         Work around glibc's failure to flush stdin on fclose.
47729         * lib/closein.c (close_stdin): Flush stdin before closing.
47730
47731         Work around glibc's failure to reset seekable stdin on exit.
47732         * modules/closein: New module.
47733         * lib/closein.c: New file.
47734         * lib/closein.h: Likewise.
47735         * m4/closein.m4: Likewise.
47736         * MODULES.html.sh (File stream based Input/Output): Document it.
47737
47738 2007-04-12  Simon Josefsson  <simon@josefsson.org>
47739
47740         * gnulib-tool: Rename generated 'autobuild' script to
47741         'do-autobuild' in --create-megatestdir output.
47742
47743         * doc/gnulib.texi (Build robot for gnulib): Fix.
47744
47745 2007-04-12  Simon Josefsson  <simon@josefsson.org>
47746
47747         * modules/sysexits (Depends-on): Add absolute-header.
47748
47749 2007-04-12  Eric Blake  <ebb9@byu.net>
47750
47751         No need to preserve errno on success.
47752         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
47753         Reported by Bruno Haible.
47754
47755 2007-04-12  Simon Josefsson  <simon@josefsson.org>
47756
47757         * MODULES.html.sh (Support for maintaining and releasing
47758         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
47759
47760 2007-04-12  Simon Josefsson  <simon@josefsson.org>
47761
47762         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
47763
47764 2007-04-12  Simon Josefsson  <simon@josefsson.org>
47765
47766         * modules/autobuild: New module.
47767
47768         * m4/autobuild.m4: New file.
47769
47770 2007-04-11  Bruno Haible  <bruno@clisp.org>
47771
47772         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
47773         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
47774         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
47775         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
47776         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
47777         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
47778         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
47779         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
47780         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
47781         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
47782         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
47783         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
47784         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
47785         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
47786         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
47787         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
47788         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
47789         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
47790         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
47791         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
47792         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
47793         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
47794         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
47795         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
47796         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
47797         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
47798         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
47799         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
47800         Reported by Eric Blake.
47801
47802 2007-04-11  Bruno Haible  <bruno@clisp.org>
47803
47804         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
47805
47806 2007-04-10  Bruno Haible  <bruno@clisp.org>
47807
47808         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
47809         for NaN and Infinity. Needed on FreeBSD 6.1.
47810         * tests/test-vasnprintf-posix.c (test_function): Undo last change
47811         regarding results for "%010a" of Infinity and NaN.
47812         * tests/test-vasprintf-posix.c (test_function): Likewise.
47813         * tests/test-snprintf-posix.h (test_function): Likewise.
47814         * tests/test-sprintf-posix.h (test_function): Likewise.
47815         * tests/test-fprintf-posix.h (test_function): Likewise.
47816         * tests/test-printf-posix.h (test_function): Likewise.
47817         * tests/test-fprintf-posix.out: Likewise.
47818
47819 2007-04-10  Bruno Haible  <bruno@clisp.org>
47820
47821         * modules/locale-tests: New file.
47822         * tests/test-locale.c: New file.
47823
47824         * modules/locale: New file.
47825         * lib/locale_.h: New file.
47826         * m4/locale_h.m4: New file.
47827
47828 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
47829             Bruno Haible  <bruno@clisp.org>
47830
47831         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
47832         be determined, test for availability of the copysignf, copysign,
47833         copysignl functions.
47834         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
47835         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
47836         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
47837
47838 2007-04-09  Eric Blake  <ebb9@byu.net>
47839
47840         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
47841         * modules/stdio (Makefile.am): Support fflush.
47842         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
47843         * modules/fflush: New file.
47844         * lib/fflush.c: Likewise.
47845         * m4/fflush.m4: Likewise.
47846         * modules/fflush-tests: New test.
47847         * tests/test-fflush.c: Likewise.
47848         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
47849
47850 2007-04-06  Bruno Haible  <bruno@clisp.org>
47851
47852         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
47853         (VASNPRINTF): Use signbit for faster determination whether to print a
47854         minus sign.
47855         * modules/vasnprintf (Files): Remove lib/float+.h.
47856         * modules/fprintf-posix (Depends-on): Add signbit.
47857         * modules/snprintf-posix (Depends-on): Likewise.
47858         * modules/sprintf-posix (Depends-on): Likewise.
47859         * modules/vasnprintf-posix (Depends-on): Likewise.
47860         * modules/vasprintf-posix (Depends-on): Likewise.
47861         * modules/vfprintf-posix (Depends-on): Likewise.
47862         * modules/vsnprintf-posix (Depends-on): Likewise.
47863         * modules/vsprintf-posix (Depends-on): Likewise.
47864
47865 2007-04-06  Bruno Haible  <bruno@clisp.org>
47866
47867         * tests/test-frexp.c (main): Test also the sign bit of zero results.
47868         * tests/test-frexpl.c (main): Likewise.
47869         * tests/test-ldexpl.c (main): Likewise.
47870         * modules/frexp-tests (Depends-on): Add signbit.
47871         * modules/frexpl-tests (Depdends-on): Likewise.
47872         * modules/ldexpl-tests (Depdends-on): Likewise.
47873
47874 2007-04-06  Bruno Haible  <bruno@clisp.org>
47875
47876         * modules/signbit-tests: New file.
47877         * tests/test-signbit.c: New file.
47878
47879         * modules/signbit: New file.
47880         * lib/signbitf.c: New file.
47881         * lib/signbitd.c: New file.
47882         * lib/signbitl.c: New file.
47883         * m4/signbit.m4: New file.
47884         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
47885         (signbit): New macro.
47886         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
47887         REPLACE_SIGNBIT.
47888         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
47889         REPLACE_FREXPL into math.h.
47890
47891 2007-04-06  Bruno Haible  <bruno@clisp.org>
47892
47893         * modules/isnanf-nolibm-tests: New file.
47894         * tests/test-isnanf.c: New file.
47895
47896         * modules/isnanf-nolibm: New file.
47897         * lib/isnanf.h: New file.
47898         * lib/isnanf.c: New file.
47899         * lib/isnan.c: Consider the USE_FLOAT macro.
47900         * m4/isnanf.m4: New file.
47901
47902 2007-04-06  Bruno Haible  <bruno@clisp.org>
47903
47904         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
47905         (Link): New section.
47906
47907         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
47908
47909 2007-04-06  Bruno Haible  <bruno@clisp.org>
47910
47911         Assume the 'long double' type.
47912         * m4/longdouble.m4: Remove file.
47913         * config/srclist.txt: Don't mention longdouble.m4.
47914         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
47915         * lib/float+.h: Likewise.
47916         * lib/frexp.c: Likewise.
47917         * lib/printf-args.h: Likewise.
47918         * lib/printf-args.c: Likewise.
47919         * lib/printf-frexp.c: Likewise.
47920         * lib/printf-parse.c: Likewise.
47921         * lib/vasnprintf.c: Likewise.
47922         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
47923         * m4/intl.m4: Likewise.
47924         * m4/isnanl.m4: Likewise.
47925         * m4/printf.m4: Likewise.
47926         * m4/printf-frexpl.m4: Likewise.
47927         * m4/vasnprintf.m4: Likewise.
47928         * modules/allocsa (Files): Remove m4/longdouble.m4.
47929         * modules/gettext (Files): Likewise.
47930         * modules/relocatable-prog-wrapper (Files): Likewise.
47931         * modules/vasnprintf (Files): Likewise.
47932         * modules/isnanl (Files): Likewise.
47933         (Include): Simplify.
47934         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
47935         (Include): Simplify.
47936         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
47937         (Include): Simplify.
47938         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
47939         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
47940         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
47941         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
47942         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
47943         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
47944         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
47945         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
47946         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
47947         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
47948         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
47949         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
47950         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
47951         * tests/test-isnanl.c: Likewise.
47952         * tests/test-snprintf-posix.h: Likewise.
47953         * tests/test-sprintf-posix.h: Likewise.
47954         * tests/test-vasnprintf-posix.c: Likewise.
47955         * tests/test-vasnprintf-posix2.c: Likewise.
47956         * tests/test-vasprintf-posix.c: Likewise.
47957
47958 2007-04-06  Bruno Haible  <bruno@clisp.org>
47959
47960         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
47961         * lib/math_.h [__DECC]: Include the overridden include file through
47962         #include_next, outside the double-inclusion guard.
47963         * lib/stdio_.h [__DECC]: Likewise.
47964         * lib/stdlib_.h [__DECC]: Likewise.
47965         * lib/string_.h [__DECC]: Likewise.
47966         * lib/time_.h [__DECC]: Likewise.
47967         * lib/wchar_.h [__DECC]: Likewise.
47968         * lib/wctype_.h [__DECC]: Likewise.
47969         * lib/inttypes_.h [__DECC]: Likewise.
47970         Reported by Albert Chin <china@thewrittenword.com> in
47971         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
47972
47973 2007-04-04  Eric Blake  <ebb9@byu.net>
47974
47975         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
47976         1.5.x.
47977
47978 2007-04-04  Bruno Haible  <bruno@clisp.org>
47979
47980         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
47981         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
47982
47983 2007-04-04  Bruno Haible  <bruno@clisp.org>
47984
47985         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
47986         results for "%010a" of Infinity and NaN.
47987         * tests/test-vasprintf-posix.c (test_function): Likewise.
47988         * tests/test-snprintf-posix.h (test_function): Likewise.
47989         * tests/test-sprintf-posix.h (test_function): Likewise.
47990         * tests/test-fprintf-posix.h (test_function): Remove these tests.
47991         * tests/test-printf-posix.h (test_function): Likewise.
47992         * tests/test-fprintf-posix.out: Update.
47993         Needed for FreeBSD 6.1.
47994
47995 2007-04-04  Bruno Haible  <bruno@clisp.org>
47996
47997         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
47998         directly used by the gnulib modules nor by gnulib-tool.
47999
48000 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
48001
48002         * DEPENDENCIES: Give overall description of version dependency
48003         desirability.  Use more-typical names for apps.
48004         Add shell, coreutils, diffutils, grep, tar, gzip.
48005
48006 2007-04-04  Simon Josefsson  <simon@josefsson.org>
48007
48008         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
48009
48010 2007-04-04  Karl Berry  <karl@gnu.org>
48011
48012         * MODULES.html.sh (func_module): missing '.
48013
48014 2007-04-03  Bruno Haible  <bruno@clisp.org>
48015
48016         * modules/argmatch-tests (Makefile.am): New variable
48017         test_argmatch_LDADD.
48018         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
48019         * modules/array-list-tests (Makefile.am): New variable
48020         test_array_list_LDADD.
48021         * modules/array-oset-tests (Makefile.am): New variable
48022         test_array_oset_LDADD.
48023         * modules/avltree-list-tests (Makefile.am): New variable
48024         test_avltree_list_LDADD.
48025         * modules/avltree-oset-tests (Makefile.am): New variable
48026         test_avltree_oset_LDADD.
48027         * modules/avltreehash-list-tests (Makefile.am): New variable
48028         test_avltreehash_list_LDADD.
48029         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
48030         test_canonicalize_lgpl_LDADD.
48031         * modules/carray-list-tests (Makefile.am): New variable
48032         test_carray_list_LDADD.
48033         * modules/dirname-tests (Makefile.am): New variable
48034         test_dirname_LDADD.
48035         * modules/linked-list-tests (Makefile.am): New variable
48036         test_linked_list_LDADD.
48037         * modules/linkedhash-list-tests (Makefile.am): New variable
48038         test_linkedhash_list_LDADD.
48039         * modules/rbtree-list-tests (Makefile.am): New variable
48040         test_rbtree_list_LDADD.
48041         * modules/rbtree-oset-tests (Makefile.am): New variable
48042         test_rbtree_oset_LDADD.
48043         * modules/rbtreehash-list-tests (Makefile.am): New variable
48044         test_rbtreehash_list_LDADD.
48045         * modules/xvasprintf-tests (Makefile.am): New variable
48046         test_xvasprintf_LDADD.
48047         Reported by Eric Blake.
48048
48049 2007-04-03  Eric Blake  <ebb9@byu.net>
48050
48051         * DEPENDENCIES: Weaken m4 requirements.
48052
48053 2007-04-03  Bruno Haible  <bruno@clisp.org>
48054
48055         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
48056         * modules/isnanl-tests (configure.ac): Likewise.
48057
48058 2007-04-03  Ben Pfaff  <blp@gnu.org>
48059
48060         * modules/iconv_open: Add $(srcdir)/ to source directory
48061         references in Makefile fragments that call gperf, to fix VPATH
48062         builds.
48063
48064 2007-04-03  Bruno Haible  <bruno@clisp.org>
48065
48066         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
48067         * lib/ldexpl.c: Undo last change.
48068
48069 2007-04-03  Bruno Haible  <bruno@clisp.org>
48070
48071         * modules/printf-frexpl (Depends-on): Undo last change.
48072         (Files): Add m4/ldexpl.m4.
48073
48074 2007-04-03  Bruno Haible  <bruno@clisp.org>
48075
48076         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
48077         * modules/isnanl (Link): New section.
48078
48079         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
48080         * modules/frexp (Link): New section.
48081
48082         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
48083         * modules/frexpl (Link): New section.
48084
48085         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
48086         * modules/ldexpl (Link): New section.
48087
48088 2007-04-03  Bruno Haible  <bruno@clisp.org>
48089
48090         * modules/TEMPLATE-EXTENDED: New file.
48091         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
48092
48093 2007-04-03  Bruno Haible  <bruno@clisp.org>
48094
48095         * DEPENDENCIES: New file.
48096         Suggested by Simon Josefsson.
48097
48098 2007-04-03  Bruno Haible  <bruno@clisp.org>
48099
48100         * doc/gnulib.texi: Escape @.
48101
48102 2007-04-03  James Youngman  <jay@gnu.org>
48103         and Paul Eggert  <eggert@cs.ucla.edu>
48104
48105         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
48106         birthtime on all systems that have birthtime, not just those which
48107         use st_birthtimensec rather than st_birthtim.  Putting zero in
48108         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
48109         that the birth time is not available for files on an NFS mount.
48110
48111 2007-04-03  Simon Josefsson  <simon@josefsson.org>
48112
48113         * modules/memxor: Move back from crypto/, suggested by Bruno.
48114         * modules/crypto/hmac-sha1: Fix memxor dependency.
48115
48116         * modules/crypto/gc: Moved from ../.
48117
48118 2007-04-02  Eric Blake  <ebb9@byu.net>
48119
48120         * lib/ldexpl.c (includes): Avoid libm.
48121
48122         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
48123
48124 2007-04-02  Bruno Haible  <bruno@clisp.org>
48125
48126         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
48127         on IRIX.
48128
48129 2007-04-02  Bruno Haible  <bruno@clisp.org>
48130
48131         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
48132         x86 or x86_64 platforms running MacOS X.
48133         Reported by Ryan Schmidt <@ryandesign.com>.
48134
48135 2007-04-02  Bruno Haible  <bruno@clisp.org>
48136
48137         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
48138         i386.
48139
48140 2007-04-01  Simon Josefsson  <simon@josefsson.org>
48141
48142         * modules/crypto/arcfour: Moved from ../.
48143         * modules/crypto/arcfour-tests: Moved from ../.
48144         * modules/crypto/arctwo: Moved from ../.
48145         * modules/crypto/arctwo-tests: Moved from ../.
48146         * modules/crypto/des: Moved from ../.
48147         * modules/crypto/des-tests: Moved from ../.
48148         * modules/crypto/gc-arcfour: Moved from ../.
48149         * modules/crypto/gc-arcfour-tests: Moved from ../.
48150         * modules/crypto/gc-arctwo: Moved from ../.
48151         * modules/crypto/gc-arctwo-tests: Moved from ../.
48152         * modules/crypto/gc-des: Moved from ../.
48153         * modules/crypto/gc-des-tests: Moved from ../.
48154         * modules/crypto/gc-hmac-md5: Moved from ../.
48155         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
48156         * modules/crypto/gc-hmac-sha1: Moved from ../.
48157         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
48158         * modules/crypto/gc-md2: Moved from ../.
48159         * modules/crypto/gc-md2-tests: Moved from ../.
48160         * modules/crypto/gc-md4: Moved from ../.
48161         * modules/crypto/gc-md4-tests: Moved from ../.
48162         * modules/crypto/gc-md5: Moved from ../.
48163         * modules/crypto/gc-md5-tests: Moved from ../.
48164         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
48165         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
48166         * modules/crypto/gc-random: Moved from ../.
48167         * modules/crypto/gc-rijndael: Moved from ../.
48168         * modules/crypto/gc-rijndael-tests: Moved from ../.
48169         * modules/crypto/gc-sha1: Moved from ../.
48170         * modules/crypto/gc-sha1-tests: Moved from ../.
48171         * modules/crypto/gc-tests: Moved from ../.
48172         * modules/crypto/hmac-md5: Moved from ../.
48173         * modules/crypto/hmac-md5-tests: Moved from ../.
48174         * modules/crypto/hmac-sha1: Moved from ../.
48175         * modules/crypto/hmac-sha1-tests: Moved from ../.
48176         * modules/crypto/md2: Moved from ../.
48177         * modules/crypto/md2-tests: Moved from ../.
48178         * modules/crypto/md4: Moved from ../.
48179         * modules/crypto/md4-tests: Moved from ../.
48180         * modules/crypto/md5: Moved from ../.
48181         * modules/crypto/md5-tests: Moved from ../.
48182         * modules/crypto/memxor: Moved from ../.
48183         * modules/crypto/rijndael: Moved from ../.
48184         * modules/crypto/rijndael-tests: Moved from ../.
48185         * modules/crypto/sha1: Moved from ../.
48186
48187 2007-03-30  James Youngman  <jay@gnu.org>
48188
48189         * tests/test-stat-time.c (prepare_test): use chmod() rather than
48190         rename() to change the ctime of a file (because ctime is unaffected
48191         by rename on jfs2 on AIX 5.1).
48192         (main): Start by doing cleanup, in case a previous run failed leaving
48193         test files behind.
48194
48195 2007-03-31  Bruno Haible  <bruno@clisp.org>
48196
48197         Support old proprietary implementations of iconv.
48198         * modules/iconv_open: New file.
48199         * lib/iconv_.h: New file.
48200         * m4/iconv_h.m4: New file.
48201         * lib/iconv_open.c: New file.
48202         * lib/iconv_open-aix.gperf: New file.
48203         * lib/iconv_open-hpux.gperf: New file.
48204         * lib/iconv_open-irix.gperf: New file.
48205         * lib/iconv_open-osf.gperf: New file.
48206         * m4/iconv_open.m4: New file.
48207         * modules/linebreak (Depends-on): Add iconv_open.
48208         * modules/striconv (Depends-on): Likewise.
48209         * modules/striconveh (Depends-on): Likewise.
48210         * modules/unicodeio (Depends-on): Likewise.
48211         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
48212         (iconv_t)(-1).
48213         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
48214         conversion if cd is (iconv_t)(-1).
48215         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
48216         is not possible.
48217
48218 2007-03-31  Bruno Haible  <bruno@clisp.org>
48219
48220         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
48221         work on Solaris either. Protect also second use of "autodetect_jp".
48222
48223 2007-03-31  Bruno Haible  <bruno@clisp.org>
48224
48225         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
48226         the function is not present.
48227
48228 2007-03-31  Bruno Haible  <bruno@clisp.org>
48229
48230         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
48231         the function is not present.
48232
48233 2007-03-31  Bruno Haible  <bruno@clisp.org>
48234
48235         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
48236         a bug in HP-UX iconv_open().
48237
48238 2007-03-31  Bruno Haible  <bruno@clisp.org>
48239
48240         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
48241         (Mathematics <math.h>): New section, add fpieee.
48242         (Input/output <stdio.h>): Add fseterr.
48243         (Mathematics <math.h>): New section, add printf-frexp.
48244         (Container data structures): Add sublist.
48245         (Core language properties): Add fpucw, inline.
48246         (Functions for greatest-width integer types <inttypes.h>): Add
48247         imaxabs, imaxdiv, inttypes.
48248         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
48249         isnanl-nolibm, ldexp.
48250         (Mathematics <math.h>): New section, add printf-frexpl.
48251         (Support for systems lacking POSIX:2001): Add fprintf-posix,
48252         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
48253         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
48254         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
48255         (Unicode string functions): Add unistr/u*-mbtoucr.
48256         (Java): Add javacomp-script, javaexec-script.
48257         (C#): Add csharpcomp-script, csharpexec-script.
48258         (Support for building libraries and executables): Add havelib,
48259         relocatable-*.
48260         (Support for maintaining and releasing projects): Renamed from
48261         'Support for maintaining and release projects'. Add announce-gen.
48262
48263 2007-03-31  Bruno Haible  <bruno@clisp.org>
48264
48265         * README: Talk primarily about git.
48266         (git and CVS): Renamed from CVS.
48267         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
48268         gnulib is available through git.
48269         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
48270
48271 2007-03-30  Bruno Haible  <bruno@clisp.org>
48272
48273         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
48274         * lib/poll_.h: Likewise.
48275         * lib/stat_.h: Likewise.
48276         * lib/sys_time_.h: Likewise.
48277         * lib/sysexit_.h: Likewise.
48278         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
48279         * lib/stdbool_.h: Likewise.
48280         * lib/byteswap_.h: Add double-inclusion guard.
48281
48282 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
48283
48284         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
48285
48286 2007-03-30  Karl Berry  <karl@gnu.org>
48287
48288         * config/srclist-update: double space after USA in the license
48289         substitution, since that's how it's usually (?) written.
48290
48291 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
48292
48293         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
48294         reported by Bruno Haible.
48295
48296 2007-03-29  Bruno Haible  <bruno@clisp.org>
48297
48298         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
48299         a bug in AIX iconv().
48300
48301 2007-03-29  Bruno Haible  <bruno@clisp.org>
48302
48303         * modules/ldexpl-tests: New file.
48304         * tests/test-ldexpl.c: New file.
48305
48306 2007-03-29  Bruno Haible  <bruno@clisp.org>
48307
48308         * lib/ldexpl.c: Include fpucw.h.
48309         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
48310         multiplication.
48311         * modules/ldexpl (Depends-on): Add fpucw.
48312
48313 2007-03-29  Bruno Haible  <bruno@clisp.org>
48314
48315         * modules/ldexpl: New file.
48316         * m4/ldexpl.m4: New file.
48317         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
48318         set.
48319         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
48320         REPLACE_LDEXPL.
48321         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
48322         REPLACE_LDEXPL.
48323         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
48324         gl_FUNC_LDEXPL_WORKS.
48325         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
48326         * modules/mathl (Files): Remove lib/ldexpl.c.
48327         (Depends-on): Add ldexpl.
48328
48329 2007-03-29  Bruno Haible  <bruno@clisp.org>
48330
48331         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
48332
48333 2007-03-29  Bruno Haible  <bruno@clisp.org>
48334
48335         * tests/test-striconveh.c (main): Don't assume that a direct conversion
48336         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
48337         and possibly also HP-UX.
48338         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
48339         work on AIX, IRIX, HP-UX, OSF/1.
48340         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
48341         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
48342         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
48343         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
48344         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
48345         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
48346
48347 2007-03-29  Bruno Haible  <bruno@clisp.org>
48348
48349         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
48350
48351 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
48352
48353         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
48354         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
48355
48356 2007-03-29  Eric Blake  <ebb9@byu.net>
48357
48358         * lib/acl-internal.h: Remove redundant include.
48359         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
48360         Cygwin when a file is locked.
48361
48362 2007-03-29  Bruno Haible  <bruno@clisp.org>
48363
48364         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
48365         file.
48366         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
48367
48368 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
48369
48370         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
48371         try to remove a parent directory if the child couldn't be removed
48372         (except for the first rmdir, which could fail because the child
48373         doesn't exist).  Problem reported by Jeff Blaine in
48374         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
48375
48376 2007-03-28  Bruno Haible  <bruno@clisp.org>
48377
48378         * lib/striconveh.c (utf8conv_carefully): New function.
48379         (mem_cd_iconveh_internal): Invoke it.
48380
48381 2007-03-28  Bruno Haible  <bruno@clisp.org>
48382
48383         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
48384         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
48385         input.
48386         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
48387         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
48388         unistr/u8-uctomb.
48389
48390 2007-03-28  Bruno Haible  <bruno@clisp.org>
48391
48392         * modules/unistr/u8-mbtoucr: New file.
48393         * lib/unistr/u8-mbtoucr.c: New file.
48394         * modules/unistr/u16-mbtoucr: New file.
48395         * lib/unistr/u16-mbtoucr.c: New file.
48396         * modules/unistr/u16-mbtoucr: New file.
48397         * lib/unistr/u16-mbtoucr.c: New file.
48398         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
48399
48400 2007-03-27  Simon Josefsson  <simon@josefsson.org>
48401             Bruno Haible  <bruno@clisp.org>
48402
48403         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
48404         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
48405         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
48406
48407         * m4/stdio_h.m4: Add stubs for vasprintf too.
48408
48409         * modules/stdio: Support vasprintf in sed command.
48410
48411         * modules/vasprintf: Depend on stdio for prototypes.  Remove
48412         vasprintf.h.  Add stdio module indicator.
48413
48414         * lib/stdio_.h: Declare asprintf and vasprintf, based on
48415         vasprintf.h.
48416
48417         * lib/vasprintf.h: File removed.
48418
48419         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
48420         * lib/vasprintf.c: Ditto.
48421         * lib/xvasprintf.c: Ditto.
48422         * tests/test-vasprintf-posix.c: Ditto.
48423         * tests/test-vasprintf.c: Ditto.
48424
48425 2007-03-27  Bruno Haible  <bruno@clisp.org>
48426
48427         Make vasnprintf multithread-safe.
48428         * lib/vasnprintf.c (decimal_point_char): New function.
48429         (VASNPRINTF): Use it.
48430         Suggested by Simon Josefsson.
48431
48432 2007-03-27  Eric Blake  <ebb9@byu.net>
48433
48434         Support sub-second birthtime on cygwin.
48435         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
48436         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
48437         (get_stat_birthtime): Also work with st_birthtim.
48438
48439 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
48440
48441         * lib/stat-time.h (USE_BIRTHTIME): Remove.
48442         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
48443         (get_stat_birthtime_ns): Do not try to use "spare" fields.
48444         (get_stat_birthtime_ns): Simplify compile-time tests.
48445         (get_stat_birthtime): Change the API to look like
48446         get_stat_mtime etc., except return a negative tv_nsec on error.
48447         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
48448         Don't check for "spare" fields.
48449         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
48450         or for struct stat.st_birthtime, as these tests aren't used.
48451         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
48452
48453 2007-03-27  Bruno Haible  <bruno@clisp.org>
48454
48455         * lib/stat-time.h: Include <sys/stat.h>.
48456
48457 2007-03-27  James Youngman  <jay@gnu.org>
48458
48459         * lib/stat-time.h (get_stat_birthtime): New function for
48460           retrieving st_birthtime as provided by UFS2 (hence *BSD).
48461         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
48462           and its variants.
48463         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
48464         * modules/stat-time-test: New file.
48465         * tests/test-stat-time.c: New test, devised by Bruno Haible.
48466
48467 2007-03-26  Bruno Haible  <bruno@clisp.org>
48468
48469         Better support of signalling NaNs.
48470         * lib/atanl.c: Include isnanl.h.
48471         (atanl): Perform test for NaN at the beginning of the function and
48472         through a call to isnanl.
48473         * lib/cosl.c: Include isnanl.h.
48474         (cosl): Perform test for NaN at the beginning of the function and
48475         through a call to isnanl.
48476         * lib/ldexpl.c: Include isnanl.h.
48477         (ldexpl): Perform test for NaN through a call to isnanl.
48478         * lib/logl.c: Include isnanl.h.
48479         (logl): Perform test for NaN at the beginning of the function and
48480         through a call to isnanl.
48481         * lib/sinl.c: Include isnanl.h.
48482         (sinl): Perform test for NaN at the beginning of the function and
48483         through a call to isnanl.
48484         * lib/sqrtl.c: Include isnanl.h.
48485         (sqrtl): Perform test for NaN at the beginning of the function and
48486         through a call to isnanl.
48487         * lib/tanl.c: Include isnanl.h.
48488         (tanl): Perform test for NaN at the beginning of the function and
48489         through a call to isnanl.
48490         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
48491         * modules/mathl (Depends-on): Add isnanl.
48492
48493 2007-03-26  Eric Blake  <ebb9@byu.net>
48494
48495         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
48496         regression in logic sense of previous patch.
48497
48498 2007-03-26  Bruno Haible  <bruno@clisp.org>
48499
48500         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
48501         unportable shell command "if ! ...".
48502         Reported by Ralf Wildenhues.
48503
48504 2007-03-25  Bruno Haible  <bruno@clisp.org>
48505
48506         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
48507         <sysexits.h> file, and only add EX_CONFIG.
48508         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
48509         absolute file name and whether it is sufficient. Substitute also
48510         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
48511         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
48512         ABSOLUTE_SYSEXITS_H into sysexits.h.
48513
48514 2007-03-25  Bruno Haible  <bruno@clisp.org>
48515
48516         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
48517         hints is NULL.
48518
48519 2007-03-25  Bruno Haible  <bruno@clisp.org>
48520
48521         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
48522         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
48523
48524 2007-03-25  Bruno Haible  <bruno@clisp.org>
48525
48526         * lib/vasnprintf.c: Include langinfo.h.
48527         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
48528         multithread-safe.
48529         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
48530         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
48531         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
48532         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
48533         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
48534         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
48535         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
48536         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
48537         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
48538         Reported by Simon Josefsson.
48539
48540 2007-03-25  Bruno Haible  <bruno@clisp.org>
48541
48542         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
48543         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
48544         * modules/vasnprintf (Depends-on): Add stdint.
48545
48546 2007-03-25  Bruno Haible  <bruno@clisp.org>
48547
48548         * modules/fpieee: New file.
48549         * m4/fpieee.m4: New file.
48550         * modules/isnan-nolibm (Depends-on): Add fpieee.
48551         * modules/isnanl-nolibm (Depends-on): Add fpieee.
48552         * modules/isnanl (Depends-on): Add fpieee.
48553
48554 2007-03-25  Bruno Haible  <bruno@clisp.org>
48555
48556         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
48557
48558 2007-03-25  Bruno Haible  <bruno@clisp.org>
48559
48560         Avoid test failures on IRIX 6.5.
48561         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
48562         (main): Use it.
48563         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
48564         macros.
48565         (main): Use them.
48566
48567 2007-03-25  Bruno Haible  <bruno@clisp.org>
48568
48569         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
48570         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
48571         exists but doesn't work.
48572         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
48573         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
48574         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
48575         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
48576
48577 2007-03-25  Bruno Haible  <bruno@clisp.org>
48578
48579         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
48580         returns inf. Needed on IRIX 6.5.
48581
48582 2007-03-25  Bruno Haible  <bruno@clisp.org>
48583
48584         * tests/test-frexpl.c: Include isnanl-nolibm.h.
48585         (main): Use isnanl instead of x != x idiom.
48586         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
48587
48588         * tests/test-frexp.c: Include isnan.h.
48589         (main): Use isnan instead of x != x idiom.
48590         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
48591
48592 2007-03-25  Bruno Haible  <bruno@clisp.org>
48593
48594         * tests/test-frexp.c (NaN): New function/macro.
48595         (main): Use it instead of 0.0 / 0.0.
48596         * tests/test-isnan.c (NaN): New function/macro.
48597         (main): Use it instead of 0.0 / 0.0.
48598         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
48599         (test_function): Use it instead of 0.0 / 0.0.
48600         * tests/test-vasprintf-posix.c (NaN): New function/macro.
48601         (test_function): Use it instead of 0.0 / 0.0.
48602         * tests/test-snprintf-posix.h (NaN): New function/macro.
48603         (test_function): Use it instead of 0.0 / 0.0.
48604         * tests/test-sprintf-posix.h (NaN): New function/macro.
48605         (test_function): Use it instead of 0.0 / 0.0.
48606         * tests/test-fprintf-posix.h (NaN): New function/macro.
48607         (test_function): Use it instead of 0.0 / 0.0.
48608         * tests/test-printf-posix.h (NaN): New function/macro.
48609         (test_function): Use it instead of 0.0 / 0.0.
48610
48611         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
48612
48613 2007-03-25  Bruno Haible  <bruno@clisp.org>
48614
48615         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
48616
48617 2007-03-25  Bruno Haible  <bruno@clisp.org>
48618
48619         * lib/regexec.c (merge_state_with_log): Make static.
48620
48621 2007-03-25  Bruno Haible  <bruno@clisp.org>
48622
48623         * lib/trigl.c (kernel_rem_pio2): Make static.
48624
48625 2007-03-25  Bruno Haible  <bruno@clisp.org>
48626
48627         * lib/sincosl.c (sincosl_table): Make static.
48628
48629 2007-03-25  Bruno Haible  <bruno@clisp.org>
48630
48631         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
48632         if the compiler does not support C99.
48633
48634 2007-03-25  Bruno Haible  <bruno@clisp.org>
48635
48636         * modules/time (Makefile.am): Ensure all rule action lines start with a
48637         tab.
48638
48639 2007-03-24  Bruno Haible  <bruno@clisp.org>
48640
48641         * modules/tsearch-tests: New file.
48642         * tests/test-tsearch.sh: New file.
48643         * tests/test-tsearch.c: New file, mostly copied from glibc.
48644
48645         * modules/search-tests: New file.
48646         * tests/test-search.c: New file.
48647
48648         * modules/search: New file.
48649         * lib/search_.h: New file, incorporating lib/tsearch.h.
48650         * m4/search_h.m4: New file.
48651         * lib/tsearch.h: Remove file.
48652         * lib/tsearch.c: Include search.h instead of tsearch.h.
48653         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
48654         HAVE_TSEARCH.
48655         * modules/tsearch (Files): Remove lib/tsearch.h.
48656         (Depends-on): Add search.
48657         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
48658         (Include): Change tsearch.h into search.h.
48659
48660 2007-03-24  Bruno Haible  <bruno@clisp.org>
48661
48662         * modules/fpucw: New file.
48663         * lib/fpucw.h: New file.
48664         * lib/frexp.c: Include fpucw.h.
48665         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
48666         (FUNC): Use them.
48667         * lib/printf-frexp.c: Include fpucw.h.
48668         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
48669         (FUNC): Use them.
48670         * lib/vasnprintf.c: Include fpucw.h.
48671         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
48672         'long double' calculations.
48673         * tests/test-frexpl.c: Include fpucw.h.
48674         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
48675         * tests/test-printf-frexpl.c: Include fpucw.h.
48676         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
48677         * modules/frexpl (Depends-on): Add fpucw.
48678         * modules/printf-frexpl (Depends-on): Likewise.
48679         * modules/fprintf-posix (Depends-on): Likewise.
48680         * modules/snprintf-posix (Depends-on): Likewise.
48681         * modules/sprintf-posix (Depends-on): Likewise.
48682         * modules/vasnprintf-posix (Depends-on): Likewise.
48683         * modules/vasprintf-posix (Depends-on): Likewise.
48684         * modules/vfprintf-posix (Depends-on): Likewise.
48685         * modules/vsnprintf-posix (Depends-on): Likewise.
48686         * modules/vsprintf-posix (Depends-on): Likewise.
48687         * modules/frexpl-tests (Depends-on): Likewise.
48688         * modules/printf-frexpl-tests (Depends-on): Likewise.
48689
48690 2007-03-24  Bruno Haible  <bruno@clisp.org>
48691
48692         * lib/float+.h: New file.
48693         * lib/isnan.c: Include float+.h.
48694         (SIZE): New macro.
48695         (FUNC): Compare only SIZE bytes of the value.
48696         * lib/vasnprintf.c: Include float+.h.
48697         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
48698         SIZEOF_LDBL or SIZEOF_DBL bytes.
48699         * modules/isnan-nolibm (Files): Add lib/float+.h.
48700         * modules/isnanl-nolibm (Files): Add lib/float+.h.
48701         * modules/isnanl (Files): Add lib/float+.h.
48702         * modules/vasnprintf (Files): Add lib/float+.h.
48703
48704 2007-03-24  Bruno Haible  <bruno@clisp.org>
48705
48706         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
48707         include isnanl-nolibm.h.
48708
48709 2007-03-24  Bruno Haible  <bruno@clisp.org>
48710
48711         * tests/test-read-file.c (main): Don't produce spurious output for
48712         expected situations. Make the test fail if it encountered unexpected
48713         results.
48714
48715 2007-03-24  Bruno Haible  <bruno@clisp.org>
48716
48717         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
48718         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
48719
48720 2007-03-24  Bruno Haible  <bruno@clisp.org>
48721
48722         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
48723
48724 2007-03-24  Bruno Haible  <bruno@clisp.org>
48725
48726         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
48727         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
48728
48729         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
48730         * modules/utf8-ucs4: Turn into a symbolic link to module
48731         unistr/u8-mbtouc.
48732
48733         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
48734         utf8-ucs4-unsafe.
48735         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
48736         unistr/u8-mbtouc-unsafe.
48737
48738         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
48739         * modules/utf16-ucs4: Turn into a symbolic link to module
48740         unistr/u16-mbtouc.
48741
48742         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
48743         utf16-ucs4-unsafe.
48744         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
48745         unistr/u16-mbtouc-unsafe.
48746
48747         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
48748         * modules/ucs4-utf8: Turn into a symbolic link to module
48749         unistr/u8-ubtomb.
48750
48751         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
48752         * modules/ucs4-utf16: Turn into a symbolic link to module
48753         unistr/u16-ubtomb.
48754
48755 2007-03-24  Bruno Haible  <bruno@clisp.org>
48756
48757         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
48758         Enable the function only if HAVE_INLINE.
48759         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
48760         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
48761         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
48762         Enable the function only if HAVE_INLINE.
48763         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
48764         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
48765         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
48766         Enable the function only if HAVE_INLINE.
48767         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
48768         Enable the function only if HAVE_INLINE.
48769         * modules/utf8-ucs4: Update.
48770         * modules/utf8-ucs4-unsafe: Update.
48771         * modules/utf16-ucs4: Update.
48772         * modules/utf16-ucs4-unsafe: Update.
48773         * modules/ucs4-utf8: Update.
48774         * modules/ucs4-utf16: Update.
48775
48776 2007-03-24  Bruno Haible  <bruno@clisp.org>
48777
48778         * lib/utf8-ucs4.h: Remove file.
48779         * lib/utf8-ucs4-unsafe.h: Remove file.
48780         * lib/utf16-ucs4.h: Remove file.
48781         * lib/utf16-ucs4-unsafe.h: Remove file.
48782         * lib/ucs4-utf8.h: Remove file.
48783         * lib/ucs4-utf16.h: Remove file.
48784         * lib/unistr.h: Include their previous contents.
48785         * m4/utf-ucs4.m4: Remove file.
48786         * m4/ucs4-utf.m4: Remove file.
48787         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
48788         (Depends-on): Add unistr/base.
48789         (configure.ac): Remove gl_UTF_UCS4.
48790         (Makefile.am): Update.
48791         (Include): Change to unistr.h.
48792         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
48793         (Depends-on): Add unistr/base.
48794         (configure.ac): Remove gl_UTF_UCS4.
48795         (Makefile.am): Update.
48796         (Include): Change to unistr.h.
48797         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
48798         (Depends-on): Add unistr/base.
48799         (configure.ac): Remove gl_UTF_UCS4.
48800         (Makefile.am): Update.
48801         (Include): Change to unistr.h.
48802         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
48803         (Depends-on): Add unistr/base.
48804         (configure.ac): Remove gl_UTF_UCS4.
48805         (Makefile.am): Update.
48806         (Include): Change to unistr.h.
48807         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
48808         (Depends-on): Add unistr/base.
48809         (configure.ac): Remove gl_UCS4_UTF.
48810         (Makefile.am): Update.
48811         (Include): Change to unistr.h.
48812         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
48813         (Depends-on): Add unistr/base.
48814         (configure.ac): Remove gl_UCS4_UTF.
48815         (Makefile.am): Update.
48816         (Include): Change to unistr.h.
48817         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
48818         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
48819         utf8-ucs4-unsafe.h.
48820         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
48821         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
48822         utf16-ucs4-unsafe.h.
48823         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
48824         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
48825         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
48826         * lib/unistr/u8-strchr.c: Likewise.
48827         * lib/unistr/u8-strrchr.c: Likewise.
48828         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
48829         * lib/unistr/u16-strchr.c: Likewise.
48830         * lib/unistr/u16-strrchr.c: Likewise.
48831         * lib/striconveh.c: Update.
48832         * lib/linebreak.c: Update.
48833
48834 2007-03-24  Bruno Haible  <bruno@clisp.org>
48835
48836         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
48837         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
48838
48839 2007-03-22  Bruno Haible  <bruno@clisp.org>
48840
48841         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
48842
48843 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
48844
48845         * MODULES.html.sh (File system functions): New module write-any-file.
48846         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
48847         * m4/write-any-file.m4: New files.
48848
48849 2007-03-23  Eric Blake  <ebb9@byu.net>
48850
48851         * gnulib-tool: Rearrange space-tab sequences, since some editors
48852         like to eat them.
48853
48854 2007-03-23  Eric Blake  <ebb9@byu.net>
48855
48856         * lib/version-etc.c (version_etc_va): Update license wording to
48857         be more concise.  Recommended by Richard Stallman.
48858
48859 2007-03-22  Bruno Haible  <bruno@clisp.org>
48860
48861         * lib/poll.c (MSG_PEEK): New fallback definition.
48862
48863 2007-03-22  Bruno Haible  <bruno@clisp.org>
48864
48865         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
48866         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
48867         (main): Update.
48868         Fixes a compilation error on BeOS.
48869
48870 2007-03-22  Bruno Haible  <bruno@clisp.org>
48871
48872         * modules/frexpl-tests: New file.
48873         * tests/test-frexpl.c: New file.
48874
48875         * modules/frexpl: New file.
48876         * m4/frexpl.m4: New file.
48877         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
48878         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
48879         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
48880         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
48881         (Depends-on): Add frexpl. Remove isnanl-nolibm.
48882         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
48883
48884 2007-03-22  Bruno Haible  <bruno@clisp.org>
48885
48886         * lib/frexpl.c: Share code with lib/frexp.c.
48887         * modules/mathl (Files): Add lib/frexp.c.
48888         (Depends-on): Add isnanl-nolibm.
48889
48890 2007-03-22  Bruno Haible  <bruno@clisp.org>
48891
48892         * modules/printf-frexp (Files): Add m4/frexp.m4.
48893         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
48894         only if the found frexp function actually works.
48895
48896 2007-03-22  Bruno Haible  <bruno@clisp.org>
48897
48898         * lib/frexp.c: Remove older implementation that uses divisions.
48899
48900 2007-03-21  Bruno Haible  <bruno@clisp.org>
48901
48902         * modules/frexp-tests: New file.
48903         * tests/test-frexp.c: New file.
48904
48905         * modules/frexp: New file.
48906         * lib/frexp.c: New file.
48907         * m4/frexp.m4: New file.
48908         * lib/math_.h (frexp): New declaration.
48909         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
48910         REPLACE_FREXP.
48911         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
48912
48913 2007-03-21  Bruno Haible  <bruno@clisp.org>
48914
48915         * modules/isnanl-tests: New file.
48916         * tests/test-isnanl.c: New file.
48917
48918         * modules/isnanl: New file.
48919         * lib/isnanl.h: New file.
48920         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
48921         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
48922         gl_FUNC_ISNANL_WORKS.
48923         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
48924         New macros.
48925
48926 2007-03-21  Bruno Haible  <bruno@clisp.org>
48927
48928         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
48929         lib/isnanl.h.
48930         (Include): Update.
48931         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
48932         * lib/vasnprintf.c: Update.
48933         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
48934         tests/test-isnanl.h, remove tests/test-isnanl.c.
48935         (Makefile.am): Update.
48936         * tests/test-isnanl-nolibm.c: New file.
48937         * tests/test-isnanl.h: New file.
48938         * tests/test-isnanl.c: Remove file.
48939
48940 2007-03-21  Jim Meyering  <jim@meyering.net>
48941
48942         When trying to open ".", treat ESTALE like EACCES.
48943         * lib/savewd.c (savewd_save): Resort to forking not just upon
48944         failure with EACCES, but also when errno is ESTALE.
48945
48946 2007-03-20  Bruno Haible  <bruno@clisp.org>
48947
48948         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
48949         Needed on AIX 5.1. Reported by Matthew Woehlke.
48950
48951 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
48952
48953         Suggestions by Bruno Haible:
48954         * lib/acl-internal.h: Include "gettext.h" rather than rolling
48955         our own.
48956         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
48957         * modules/acl (Depends-on): Add gettext.
48958
48959 2007-03-19  Bruno Haible  <bruno@clisp.org>
48960
48961         * modules/iconvme: Remove file.
48962         * lib/iconvme.h: Remove file.
48963         * lib/iconvme.c: Remove file.
48964         * m4/iconvme.m4: Remove file.
48965
48966 2007-03-19  Bruno Haible  <bruno@clisp.org>
48967
48968         * doc/relocatable-maint.texi: Break long shell script line.
48969         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
48970
48971 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
48972
48973         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
48974         handle file_has_acl.
48975         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
48976         * lib/acl.c: Move header inclusions and related macro defns into
48977         lib/acl-internal.h.
48978         (S_ISLNK): Remove defn, since that's now done for us.
48979         (file_has_acl): Move to lib/file-has-acl.c.
48980         Call acl_trivial if available.  This is the crucial part of the fix.
48981         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
48982         shared within the library.  Rewrite a bit, partly to make it compatible
48983         with the GNU coding style.
48984         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
48985         Remove unnecessary double-quotes.
48986         Don't test for acl_to_text; the build will catch that.
48987         Replace acl_entries if it doesn't exist and it is needed.
48988         Check for -lsec and acl_trivial (as used on Solaris 10).
48989         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
48990         lib/file-has-acl.c.
48991         (Depends-on): Add sys_stat, for S_ISLNK.
48992
48993 2007-03-19  Ben Pfaff  <blp@gnu.org>
48994
48995         * doc/gnulib.texi: Fix typos.
48996         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
48997
48998 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
48999
49000         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
49001         If size is zero here, buf must be zero.
49002
49003 2007-03-19  Simon Josefsson  <simon@josefsson.org>
49004
49005         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
49006         <bruno@clisp.org>.
49007
49008 2007-03-18  Bruno Haible  <bruno@clisp.org>
49009
49010         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
49011         Suggested by Eric Blake.
49012
49013 2007-03-18  Ben Pfaff  <blp@gnu.org>
49014
49015         * doc/relocatable.texi: Recommend using as prefix a directory
49016         that does not exist and will never be created.  Based on
49017         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
49018         and others.
49019
49020 2007-03-17  Bruno Haible  <bruno@clisp.org>
49021
49022         * lib/fchownat.c: Include lchown.h.
49023
49024 2007-03-17  Bruno Haible  <bruno@clisp.org>
49025
49026         Fix endless loop when the given allocated size was > INT_MAX.
49027         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
49028         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
49029         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
49030         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
49031         * lib/sprintf.c (sprintf): Likewise.
49032
49033 2007-03-17  Bruno Haible  <bruno@clisp.org>
49034
49035         * tests/test-argp-2.sh (func_compare): Output a context diff.
49036
49037 2007-03-17  Bruno Haible  <bruno@clisp.org>
49038
49039         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
49040         locale's decimal-point character.
49041
49042 2007-03-17  Bruno Haible  <bruno@clisp.org>
49043
49044         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
49045         before comparing it. Needed because on some platforms (e.g. x86) a
49046         'long double' occupies less bytes than sizeof (long double).
49047
49048 2007-03-17  Bruno Haible  <bruno@clisp.org>
49049
49050         * tests/test-crc.c (main): Make printf statements 64-bit clean.
49051         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
49052         * tests/test-getaddrinfo.c (simple): Likewise.
49053         * tests/test-read-file.c (main): Likewise.
49054
49055 2007-03-17  Bruno Haible  <bruno@clisp.org>
49056
49057         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
49058
49059 2007-03-17  Bruno Haible  <bruno@clisp.org>
49060
49061         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
49062         unused variable.
49063
49064 2007-03-17  Bruno Haible  <bruno@clisp.org>
49065
49066         * tests/test-c-strcasecmp.c: Include c-strcase.h.
49067         * tests/test-c-strncasecmp.c: Likewise.
49068
49069 2007-03-17  Bruno Haible  <bruno@clisp.org>
49070
49071         * modules/stdlib (Depends-on): Add unistd.
49072         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
49073         Needed for MacOS X 10.3.
49074
49075 2007-03-17  Bruno Haible  <bruno@clisp.org>
49076
49077         * lib/unistr/u-strdup.h: Include <stdlib.h>.
49078
49079 2007-03-17  Bruno Haible  <bruno@clisp.org>
49080
49081         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
49082
49083 2007-03-17  Bruno Haible  <bruno@clisp.org>
49084
49085         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
49086         to reflect files copied from gnulib (with or without modifications).
49087         Suggested by Jim Meyering.
49088
49089 2007-03-17  Eric Blake  <ebb9@byu.net>
49090
49091         * NEWS: Document stdlib change from 2007-02-18.
49092
49093 2007-03-17  Jim Meyering  <jim@meyering.net>
49094
49095         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
49096         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
49097         someone uses a name containing shell meta-characters.
49098         Reported by Alfred M. Szmidt.
49099
49100         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
49101
49102 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
49103
49104         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
49105         and copy gettext configuration files only if configure.ac contains
49106         a use of AM_GNU_GETTEXT_VERSION.
49107
49108 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
49109
49110         * build-aux/bootstrap (gnulib_name): New variable.
49111         (gnulib_tool_options): Use it.
49112
49113 2007-03-13  Simon Josefsson  <simon@josefsson.org>
49114
49115         * tests/test-des.c: Use new namespace.
49116
49117 2007-03-15  Bruno Haible  <bruno@clisp.org>
49118
49119         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
49120         Reported by James Youngman <jay@gnu.org>.
49121
49122 2007-03-15  Bruno Haible  <bruno@clisp.org>
49123
49124         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
49125         declared prototype. Needed with cc on OSF/1 5.1.
49126
49127 2007-03-15  Bruno Haible  <bruno@clisp.org>
49128
49129         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
49130         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
49131         (struct gl_list_implementation): Add dispose_fn argument to the
49132         'create_empty', 'create' methods.
49133         (struct gl_list_impl_base): Add field 'dispose_fn'.
49134         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
49135         argument.
49136         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
49137         dispose_fn argument.
49138         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
49139         dispose_fn on the dropped values.
49140         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
49141         dispose_fn argument.
49142         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
49143         dropped values.
49144         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
49145         (gl_tree_remove_node): Call dispose_fn on the dropped value.
49146         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
49147         (gl_tree_remove_node): Call dispose_fn on the dropped value.
49148         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
49149         argument.
49150         (gl_tree_list_free): Call dispose_fn on the dropped values.
49151         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
49152         the dropped values.
49153         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
49154         Add dispose_fn argument.
49155         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
49156         Call dispose_fn on the dropped values.
49157         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
49158         Add dispose_fn argument.
49159         (gl_sublist_create): Initialize the 'dispose_fn' field.
49160         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
49161         * tests/test-array_list.c (main): Update.
49162         * tests/test-carray_list.c (main): Update.
49163         * tests/test-avltree_list.c (main): Update.
49164         * tests/test-rbtree_list.c (main): Update.
49165         * tests/test-avltreehash_list.c (main): Update.
49166         * tests/test-rbtreehash_list.c (main): Update.
49167         * tests/test-linked_list.c (main): Update.
49168         * tests/test-linkedhash_list.c (main): Update.
49169         * tests/test-array_oset.c (main): Update.
49170
49171 2007-03-15  Bruno Haible  <bruno@clisp.org>
49172
49173         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
49174         (gl_oset_create_empty): Add dispose_fn argument.
49175         (struct gl_oset_implementation): Add dispose_fn argument to
49176         'create_empty' method.
49177         (struct gl_oset_impl_base): Add dispose_fn field.
49178         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
49179         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
49180         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
49181         values.
49182         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
49183         (gl_tree_oset_free): Call dispose_fn on the dropped values.
49184         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
49185         dropped value.
49186         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
49187         dropped value.
49188         * tests/test-array_oset.c (main): Update.
49189         * tests/test-avltree_oset.c (main): Update.
49190         * tests/test-rbtree_oset.c (main): Update.
49191         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
49192
49193 2007-03-13  Bruno Haible  <bruno@clisp.org>
49194
49195         * tests/test-stdbool.c (i): Update after last patch.
49196
49197 2007-03-12  Bruno Haible  <bruno@clisp.org>
49198
49199         * lib/quotearg.c: Include <wctype.h> early, before the definition of
49200         the iswprint macro. Needed on Solaris 2.5.1.
49201
49202 2007-03-12  Bruno Haible  <bruno@clisp.org>
49203
49204         * tests/test-printf-frexp.c (main): Declare x as volatile.
49205
49206 2007-03-12  Simon Josefsson  <simon@josefsson.org>
49207
49208         * doc/gnulib.texi (Build robot for gnulib): New section.
49209
49210 2007-03-12  Jim Meyering  <jim@meyering.net>
49211
49212         * build-aux/bootstrap: New file.
49213         * build-aux/bootstrap.conf: New file, from coreutils.
49214
49215 2007-03-11  Bruno Haible  <bruno@clisp.org>
49216
49217         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
49218
49219 2007-03-12  Simon Josefsson  <simon@josefsson.org>
49220
49221         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
49222         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
49223         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
49224
49225 2007-03-11  Bruno Haible  <bruno@clisp.org>
49226
49227         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
49228         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
49229
49230 2007-03-11  Bruno Haible  <bruno@clisp.org>
49231
49232         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
49233         formula. Needed for SunPRO C 5.0.
49234
49235 2007-03-11  Bruno Haible  <bruno@clisp.org>
49236
49237         * modules/long-options (Depends-on): Add getopt.
49238
49239 2007-03-11  Bruno Haible  <bruno@clisp.org>
49240
49241         * modules/modechange (Depends-on): Add stdbool.
49242
49243 2007-03-11  Bruno Haible  <bruno@clisp.org>
49244
49245         * modules/i-ring (Depends-on): Add stdbool.
49246
49247 2007-03-11  Bruno Haible  <bruno@clisp.org>
49248
49249         * modules/gc-des (Depends-on): Add stdbool.
49250
49251 2007-03-11  Bruno Haible  <bruno@clisp.org>
49252
49253         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
49254
49255 2007-03-11  Bruno Haible  <bruno@clisp.org>
49256
49257         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
49258
49259 2007-03-11  Bruno Haible  <bruno@clisp.org>
49260
49261         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
49262
49263 2007-03-11  Bruno Haible  <bruno@clisp.org>
49264
49265         * lib/vasnprintf.c (sprintf): Undefine.
49266
49267 2007-03-11  Bruno Haible  <bruno@clisp.org>
49268
49269         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
49270         initializers in SunPRO C and Compaq C compilers.
49271
49272 2007-03-11  Bruno Haible  <bruno@clisp.org>
49273
49274         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
49275         decrementing code ANSI C compliant.
49276
49277 2007-03-11  Bruno Haible  <bruno@clisp.org>
49278
49279         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
49280         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
49281
49282 2007-03-11  Bruno Haible  <bruno@clisp.org>
49283
49284         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
49285         <stdbool.h> substitute doesn't pass.
49286
49287 2007-03-11  Bruno Haible  <bruno@clisp.org>
49288
49289         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
49290
49291 2007-03-11  Bruno Haible  <bruno@clisp.org>
49292
49293         * gnulib-tool (func_create_megatestdir): Create also an autobuild
49294         script, for submission to autobuild.josefsson.org.
49295
49296 2007-03-10  Bruno Haible  <bruno@clisp.org>
49297
49298         * modules/canonicalize-lgpl-tests: New file.
49299         * tests/test-canonicalize-lgpl.sh: New file.
49300         * tests/test-canonicalize-lgpl.c: New file.
49301
49302         * modules/c-strcase-tests: New file.
49303         * tests/test-c-strcase.sh: New file.
49304         * tests/test-c-strcasecmp.c: New file.
49305         * tests/test-c-strncasecmp.c: New file.
49306
49307         * modules/atexit-tests: New file.
49308         * tests/test-atexit.sh: New file.
49309         * tests/test-atexit.c: New file.
49310
49311 2007-03-10  Bruno Haible  <bruno@clisp.org>
49312
49313         * tests/test-binary-io.sh: Use temporary filenames that are not so
49314         likely to clash with those of other tests (in a parallel make).
49315         * tests/test-binary-io.c: Likewise.
49316
49317 2007-03-10  Bruno Haible  <bruno@clisp.org>
49318
49319         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
49320         fallback; use #error instead.
49321         Suggested by Simon Josefsson.
49322
49323 2007-03-10  Bruno Haible  <bruno@clisp.org>
49324
49325         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
49326         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
49327         first and the last.
49328
49329 2007-03-10  Bruno Haible  <bruno@clisp.org>
49330
49331         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
49332
49333 2007-03-10  Bruno Haible  <bruno@clisp.org>
49334
49335         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
49336         "make distcheck".
49337         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
49338         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
49339         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
49340
49341 2007-03-10  Bruno Haible  <bruno@clisp.org>
49342
49343         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
49344         variable.
49345         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
49346         variable.
49347
49348 2007-03-09  Eric Blake  <ebb9@byu.net>
49349         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
49350
49351         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
49352         types are not being provided by gnulib.
49353         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
49354         types are supported.
49355
49356 2007-03-10  Bruno Haible  <bruno@clisp.org>
49357
49358         * lib/stdio_.h (__attribute__): New macro.
49359         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
49360         vsprintf): Specify __attribute__ __format__ for GCC.
49361         Suggested by Eric Blake.
49362
49363 2007-03-09  Bruno Haible  <bruno@clisp.org>
49364
49365         * modules/printf-posix-tests: New file.
49366         * tests/test-printf-posix.sh: New file.
49367         * tests/test-printf-posix.c: New file.
49368
49369         * modules/printf-posix: New file.
49370         * lib/printf.c: New file.
49371         * m4/printf-posix-rpl.m4: New file.
49372         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
49373         REPLACE_PRINTF.
49374         * lib/stdio_.h (printf): New declaration.
49375         (format, __format__, ____printf____, ____scanf____, ____strftime____,
49376         ____strfmon____): New macros.
49377         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
49378         REPLACE_PRINTF.
49379
49380 2007-03-09  Bruno Haible  <bruno@clisp.org>
49381
49382         * tests/test-vasnprintf-posix2.sh: New file.
49383         * tests/test-vasnprintf-posix2.c: New file.
49384         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
49385         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
49386         (Makefile.am): Activate test-vasnprintf-posix2.sh.
49387
49388         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
49389         a locale dependent decimal point, rather than always '.'.
49390
49391 2007-03-09  Eric Blake  <ebb9@byu.net>
49392
49393         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
49394         spite of platforms like Tandem/NSK that define it to -1.
49395
49396 2007-03-08  Bruno Haible  <bruno@clisp.org>
49397
49398         * modules/vprintf-posix-tests: New file.
49399         * tests/test-vprintf-posix.sh: New file.
49400         * tests/test-vprintf-posix.c: New file.
49401         * tests/test-printf-posix.h: New file.
49402
49403         * modules/vprintf-posix: New file.
49404         * lib/vprintf.c: New file.
49405         * m4/vprintf-posix.m4: New file.
49406         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
49407         REPLACE_VPRINTF.
49408         * lib/stdio_.h (vprintf): New declaration.
49409         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
49410         REPLACE_VPRINTF.
49411
49412 2007-03-08  Bruno Haible  <bruno@clisp.org>
49413
49414         * modules/fprintf-posix-tests: New file.
49415         * tests/test-fprintf-posix.sh: New file.
49416         * tests/test-fprintf-posix.c: New file.
49417
49418         * modules/fprintf-posix: New file.
49419         * lib/fprintf.c: New file.
49420         * m4/fprintf-posix.m4: New file.
49421         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
49422         REPLACE_FPRINTF.
49423         * lib/stdio_.h (fprintf): New declaration.
49424         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
49425         REPLACE_FPRINTF.
49426
49427 2007-03-08  Bruno Haible  <bruno@clisp.org>
49428
49429         * modules/vfprintf-posix-tests: New file.
49430         * tests/test-vfprintf-posix.sh: New file.
49431         * tests/test-vfprintf-posix.c: New file.
49432         * tests/test-fprintf-posix.h: New file.
49433         * tests/test-fprintf-posix.out: New file.
49434
49435         * modules/vfprintf-posix: New file.
49436         * lib/vfprintf.c: New file.
49437         * m4/vfprintf-posix.m4: New file.
49438         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
49439         REPLACE_VFPRINTF.
49440         * lib/stdio_.h (vfprintf): New declaration.
49441         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
49442         REPLACE_VFPRINTF.
49443
49444 2007-03-08  Bruno Haible  <bruno@clisp.org>
49445
49446         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
49447
49448 2007-03-08  Bruno Haible  <bruno@clisp.org>
49449
49450         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
49451         instead of 'expr' invocations.
49452         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
49453         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
49454         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
49455         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49456         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49457         Suggested by Paul Eggert.
49458
49459 2007-03-08  Bruno Haible  <bruno@clisp.org>
49460
49461         * modules/fseterr-tests: New file.
49462         * tests/test-fseterr.c: New file.
49463
49464         * modules/fseterr: New file.
49465         * lib/fseterr.h: New file.
49466         * lib/fseterr.c: New file.
49467
49468 2007-03-08  Bruno Haible  <bruno@clisp.org>
49469
49470         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
49471         * lib/getopt_.h: Likewise.
49472         * lib/mbswidth.h: Likewise.
49473         * lib/setenv.h: Likewise.
49474         * lib/vasnprintf.h: Likewise.
49475         * lib/vasprintf.h: Likewise.
49476         * lib/verror.h: Likewise.
49477         * lib/xsetenv.h: Likewise.
49478         * lib/xvasprintf.h: Likewise.
49479
49480 2007-03-08  Jim Meyering  <jim@meyering.net>
49481
49482         * users.txt: Add parted.
49483
49484         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
49485
49486 2007-03-07  Bruno Haible  <bruno@clisp.org>
49487
49488         * m4/printf.m4: Make the shell script snippets copy&pastable.
49489
49490 2007-03-02  Bruno Haible  <bruno@clisp.org>
49491
49492         * lib/netinet_in_.h: New file.
49493         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
49494         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
49495         * modules/netinet_in (Files): Add lib/netinet_in_.h.
49496         (Depends-on): Add absolute-header.
49497         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
49498         into netinet/in.h.
49499
49500 2007-03-03  Bruno Haible  <bruno@clisp.org>
49501
49502         * lib/sys_select_.h: New file.
49503         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
49504         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
49505         * modules/sys_select (Files): Add lib/sys_select_.h.
49506         (Depends-on): Add absolute-header.
49507         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
49508         into sys/select.h.
49509
49510 2007-03-02  Bruno Haible  <bruno@clisp.org>
49511
49512         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
49513         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
49514         values.
49515         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
49516         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
49517         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
49518         * modules/sys_socket (Depends-on): Add absolute-header.
49519         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
49520         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
49521         (Include): Remove requirement of inclusion of <sys/types.h>.
49522
49523 2007-03-02  Bruno Haible  <bruno@clisp.org>
49524
49525         * lib/byteswap_.h (bswap_32): Fix formula.
49526
49527 2007-03-06  Bruno Haible  <bruno@clisp.org>
49528
49529         * modules/sprintf-posix-tests: New file.
49530         * tests/test-sprintf-posix.c: New file.
49531
49532         * modules/sprintf-posix: New file.
49533         * lib/sprintf.c: New file.
49534         * m4/sprintf-posix.m4: New file.
49535         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
49536         REPLACE_SPRINTF.
49537         * lib/stdio_.h (sprintf): New declaration.
49538         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
49539         REPLACE_SPRINTF.
49540
49541 2007-03-06  Bruno Haible  <bruno@clisp.org>
49542
49543         * modules/vsprintf-posix-tests: New file.
49544         * tests/test-vsprintf-posix.c: New file.
49545         * tests/test-sprintf-posix.h: New file.
49546
49547         * modules/vsprintf-posix: New file.
49548         * lib/vsprintf.c: New file.
49549         * m4/vsprintf-posix.m4: New file.
49550         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
49551         REPLACE_VSPRINTF.
49552         * lib/stdio_.h (vsprintf): New declaration.
49553         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
49554         REPLACE_VSPRINTF.
49555
49556 2007-03-06  Bruno Haible  <bruno@clisp.org>
49557
49558         * modules/vsnprintf (Depend-on): Remove minmax.
49559
49560 2007-03-06  Bruno Haible  <bruno@clisp.org>
49561
49562         * modules/snprintf-posix-tests: New file.
49563         * tests/test-snprintf-posix.c: New file.
49564
49565         * modules/snprintf-posix: New file.
49566         * m4/snprintf-posix.m4: New file.
49567         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
49568         gl_FUNC_SNPRINTF.
49569         (gl_FUNC_SNPRINTF): Invoke it.
49570         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
49571         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
49572         is set.
49573         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
49574
49575 2007-03-06  Bruno Haible  <bruno@clisp.org>
49576
49577         * modules/vsnprintf-posix-tests: New file.
49578         * tests/test-vsnprintf-posix.c: New file.
49579         * tests/test-snprintf-posix.h: New file.
49580
49581         * modules/vsnprintf-posix: New file.
49582         * m4/vsnprintf-posix.m4: New file.
49583         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
49584         gl_FUNC_VSNPRINTF.
49585         (gl_FUNC_VSNPRINTF): Invoke it.
49586         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
49587         * lib/stdio_.h (vsnprintf): Define as a replacement if
49588         REPLACE_VSNPRINTF is set.
49589         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
49590
49591 2007-03-06  Bruno Haible  <bruno@clisp.org>
49592
49593         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
49594         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
49595
49596 2007-03-06  Bruno Haible  <bruno@clisp.org>
49597
49598         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
49599         (asinl): Declare also if HAVE_DECL_ASINL is set.
49600         (atanl): Declare also if HAVE_DECL_ATANL is set.
49601         (ceill): Declare also if HAVE_DECL_CEILL is set.
49602         (cosl): Declare also if HAVE_DECL_COSL is set.
49603         (expl): Declare also if HAVE_DECL_EXPL is set.
49604         (floorl): Declare also if HAVE_DECL_FLOORL is set.
49605         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
49606         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
49607         (logl): Declare also if HAVE_DECL_LOGL is set.
49608         (sinl): Declare also if HAVE_DECL_SINL is set.
49609         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
49610         (tanl): Declare also if HAVE_DECL_TANL is set.
49611         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
49612         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
49613         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
49614         declaration of frexpl, ldexpl.
49615         * modules/printf-frexpl (Depends-on): Add math.
49616         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
49617
49618 2007-03-05  Bruno Haible  <bruno@clisp.org>
49619
49620         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
49621         frexpl and ldexpl are declared.
49622         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
49623
49624 2007-03-05  Bruno Haible  <bruno@clisp.org>
49625
49626         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
49627         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
49628
49629 2007-03-05  Bruno Haible  <bruno@clisp.org>
49630
49631         * lib/stdio_.h: Include <stddef.h>.
49632
49633 2007-03-05  Bruno Haible  <bruno@clisp.org>
49634
49635         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
49636
49637 2007-03-05  Bruno Haible  <bruno@clisp.org>
49638
49639         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
49640         NetBSD 4, from Ralf Wildenhues.
49641
49642 2007-03-04  Bruno Haible  <bruno@clisp.org>
49643
49644         * lib/vasprintf.h: Update #if logic for the case when the functions
49645         exist but are overridden.
49646
49647 2007-03-04  Bruno Haible  <bruno@clisp.org>
49648
49649         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
49650         implementations: glibc-2.4 and MacOS X 10.3.
49651         * tests/test-vasnprintf-posix.c (test_function): Test also the case
49652         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
49653         * tests/test-vasprintf-posix.c (test_function): Likewise.
49654
49655 2007-03-04  Bruno Haible  <bruno@clisp.org>
49656
49657         * modules/vasprintf-posix-tests: New file.
49658         * tests/test-vasprintf-posix.c: New file.
49659
49660         * modules/vasprintf-posix: New file.
49661         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
49662         defined.
49663         * m4/vasprintf-posix.m4: New file.
49664         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
49665         gl_FUNC_VASPRINTF.
49666         (gl_FUNC_VASPRINTF): Invoke it.
49667         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
49668         here.
49669         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
49670
49671 2007-03-04  Bruno Haible  <bruno@clisp.org>
49672
49673         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
49674         REPLACE_GETTIMEOFDAY.
49675         * modules/sys_time (Makefile.am): Likewise.
49676         * m4/sys_time_h.m4: Likewise.
49677         * m4/gettimeofday.m4: Likewise.
49678
49679 2007-03-04  Bruno Haible  <bruno@clisp.org>
49680
49681         * modules/vasnprintf-posix-tests: New file.
49682         * tests/test-vasnprintf-posix.c: New file.
49683
49684         * modules/vasnprintf-posix: New file.
49685         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
49686         printf-frexpl.h.
49687         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
49688         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
49689         REPLACE_VASNPRINTF is defined.
49690         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
49691         gl_FUNC_VASNPRINTF.
49692         (gl_FUNC_VASNPRINTF): Invoke it.
49693         * m4/vasnprintf-posix.m4: New file.
49694         * m4/printf.m4: New file.
49695
49696 2007-03-04  Bruno Haible  <bruno@clisp.org>
49697
49698         Compile progreloc.c only if --enable-relocatable is specified.
49699         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
49700         if --enable-relocatable was specified.
49701         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
49702         lib_SOURCES.
49703
49704 2007-03-04  Jim Meyering  <jim@meyering.net>
49705
49706         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
49707         Use it consistently, rather than enumerating errno constants.
49708
49709 2007-03-04  Bruno Haible  <bruno@clisp.org>
49710
49711         * modules/xvasprintf-tests: New file.
49712         * tests/test-xvasprintf.c: New file.
49713
49714         * modules/vasprintf-tests: New file.
49715         * tests/test-vasprintf.c: New file.
49716
49717         * modules/vasnprintf-tests: New file.
49718         * tests/test-vasnprintf.c: New file.
49719
49720         * modules/vsnprintf-tests: New file.
49721         * tests/test-vsnprintf.c: New file.
49722
49723         * modules/snprintf-tests: New file.
49724         * tests/test-snprintf.c: New file.
49725
49726 2007-03-04  Bruno Haible  <bruno@clisp.org>
49727
49728         Compile relocatable.c only if --enable-relocatable is specified.
49729         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
49730         gl_RELOCATABLE_LIBRARY.
49731         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
49732         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
49733         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
49734         gl_RELOCATABLE_LIBRARY.
49735         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
49736         (Makefile.am): Remove lib_SOURCES.
49737         * modules/relocatable-lib-lgpl (configure.ac): Invoke
49738         gl_RELOCATABLE_LIBRARY.
49739         (Makefile.am): Remove lib_SOURCES.
49740         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
49741         always.
49742         * modules/relocatable-prog-wrapper (configure.ac): Invoke
49743         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
49744
49745 2007-03-04  Bruno Haible  <bruno@clisp.org>
49746
49747         * modules/argmatch-tests: New file.
49748         * tests/test-argmatch.c: New file.
49749
49750         * tests/test-allocsa.c (main): Halve the number of loop runs.
49751
49752         * modules/alloca-opt-tests: New file.
49753         * tests/test-alloca-opt.c: New file.
49754
49755 2007-03-04  Jim Meyering  <jim@meyering.net>
49756
49757         Work around difference between Linux ACLs and Solaris 10 ZFS.
49758         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
49759         for EINVAL.
49760
49761 2007-03-03  Bruno Haible  <bruno@clisp.org>
49762
49763         * modules/relocatable-prog (Depends-on): Add back progreloc's
49764         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
49765
49766 2007-03-03  Bruno Haible  <bruno@clisp.org>
49767
49768         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
49769         * modules/relocatable-lib: New file.
49770
49771 2007-03-03  Bruno Haible  <bruno@clisp.org>
49772
49773         * modules/relocatable-prog: Renamed from modules/relocatable.
49774         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
49775
49776 2007-03-03  Bruno Haible  <bruno@clisp.org>
49777
49778         * modules/relocatable-script (Files): Add doc/relocatable.texi,
49779         m4/relocatable-lib.m4.
49780         (Depends-on): Remove 'relocatable'.
49781         (configure.ac): Add gl_RELOCATABLE_NOP.
49782
49783 2007-03-03  Bruno Haible  <bruno@clisp.org>
49784
49785         * modules/relocatable-prog-wrapper: New file.
49786         * modules/relocatable (Depends-on): Add it. Remove all other
49787         dependencies except progname.
49788         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
49789
49790         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
49791         (gl_FUNC_STRERROR): Nop.
49792         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
49793
49794         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
49795         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
49796
49797         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
49798         (gl_FUNC_READLINK): Update.
49799
49800         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
49801
49802 2007-03-03  Bruno Haible  <bruno@clisp.org>
49803
49804         * lib/xreadlink.c: Include <unistd.h> unconditionally.
49805         * modules/xreadlink (Depends-on): Add unistd.
49806         * modules/xreadlink-with-size (Depends-on): Likewise.
49807
49808 2007-03-03  Bruno Haible  <bruno@clisp.org>
49809
49810         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
49811         extracted from gt_FUNC_SETENV.
49812         (gt_FUNC_SETENV): Remove macro.
49813         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
49814         remove gt_FUNC_SETENV.
49815
49816 2007-03-03  Bruno Haible  <bruno@clisp.org>
49817
49818         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
49819         ENABLE_RELOCATABLE here.
49820         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
49821
49822 2007-03-03  Bruno Haible  <bruno@clisp.org>
49823
49824         * modules/rbtreehash-list-tests (Depends-on): Add progname.
49825         * tests/test-rbtreehash_list.c: Include progname.h.
49826         (main): Call set_program_name.
49827
49828         * modules/rbtree-oset-tests (Depends-on): Add progname.
49829         * tests/test-rbtree_oset.c: Include progname.h.
49830         (main): Call set_program_name.
49831
49832         * modules/rbtree-list-tests (Depends-on): Add progname.
49833         * tests/test-rbtree_list.c: Include progname.h.
49834         (main): Call set_program_name.
49835
49836         * modules/linked-list-tests (Depends-on): Add progname.
49837         * tests/test-linked_list.c: Include progname.h.
49838         (main): Call set_program_name.
49839
49840 2007-03-03  Bruno Haible  <bruno@clisp.org>
49841
49842         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
49843         All uses of __restrict changed to _Restrict_.
49844         * lib/glob_.h (__restrict): Remove macro.
49845
49846 2007-03-02  Bruno Haible  <bruno@clisp.org>
49847
49848         * modules/gettext (configure.ac): Require gettext infrastructure
49849         from version 0.16.1.
49850
49851 2007-03-02  Bruno Haible  <bruno@clisp.org>
49852
49853         * modules/linkedhash-list-tests (Depends-on): Add progname.
49854         * tests/test-linkedhash_list.c: Include progname.h.
49855         (main): Call set_program_name.
49856
49857         * modules/carray-list-tests (Depends-on): Add progname.
49858         * tests/test-carray_list.c: Include progname.h.
49859         (main): Call set_program_name.
49860
49861         * modules/avltreehash-list-tests (Depends-on): Add progname.
49862         * tests/test-avltreehash_list.c: Include progname.h.
49863         (main): Call set_program_name.
49864
49865         * modules/avltree-oset-tests (Depends-on): Add progname.
49866         * tests/test-avltree_oset.c: Include progname.h.
49867         (main): Call set_program_name.
49868
49869         * modules/avltree-list-tests (Depends-on): Add progname.
49870         * tests/test-avltree_list.c: Include progname.h.
49871         (main): Call set_program_name.
49872
49873         * modules/array-oset-tests (Depends-on): Add progname.
49874         * tests/test-array_oset.c: Include progname.h.
49875         (main): Call set_program_name.
49876
49877         * modules/array-list-tests (Depends-on): Add progname.
49878         * tests/test-array_list.c: Include progname.h.
49879         (main): Call set_program_name.
49880
49881         * modules/argp-tests (Depends-on): Add progname.
49882         * tests/test-argp.c: Include argp.h first. Include progname.h.
49883         (main): Call set_program_name.
49884
49885 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
49886
49887         * doc/gnulib-tool.texi (Initial import): Reword description of
49888         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
49889         limited effect even if defined after the first system include.
49890
49891 2007-03-01  Bruno Haible  <bruno@clisp.org>
49892
49893         * build-aux/config.libpath: Update to libtool-1.5.22.
49894         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
49895
49896 2007-03-01  Bruno Haible  <bruno@clisp.org>
49897
49898         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
49899         foo_CFLAGS.
49900         Reported by Ralf Wildenhues.
49901
49902 2007-03-01  Bruno Haible  <bruno@clisp.org>
49903
49904         * build-aux/install-reloc: Remove object files left over by some
49905         compilers.
49906         Reported by Ralf Wildenhues.
49907
49908 2007-03-01  Bruno Haible  <bruno@clisp.org>
49909
49910         * build-aux/install-reloc: Break long lines.
49911
49912 2007-03-01  Bruno Haible  <bruno@clisp.org>
49913
49914         * doc/relocatable.texi: Document that it may not work on OpenBSD.
49915         Reported by Ralf Wildenhues.
49916
49917 2007-03-01  Bruno Haible  <bruno@clisp.org>
49918
49919         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
49920         include ordering constraints.
49921
49922 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
49923
49924         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
49925         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
49926         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
49927         as another example.
49928         * lib/time_.h: Fix misspelling.
49929         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
49930         Require gl_HEADER_TIME_H_DEFAULTS.
49931         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
49932         * m4/time_r.m4 (gl_TIME_R): Likewise.
49933         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
49934
49935 2007-03-01  Bruno Haible  <bruno@clisp.org>
49936
49937         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
49938         * m4/utimens.m4 (gl_UTIMENS): Likewise.
49939
49940 2007-03-01  Jim Meyering  <jim@meyering.net>
49941
49942         * modules/xreadlink (Maintainer): Add my name.
49943         * modules/xreadlink-with-size (Depends-on): Alphabetize.
49944
49945 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
49946             Bruno Haible  <bruno@clisp.org>
49947
49948         * build-aux/install-reloc: Compile also c-ctype.c.
49949         * build-aux/relocatable.sh.in: New file.
49950         * doc/relocatable.texi: New file.
49951         * doc/relocatable-maint.texi: New file.
49952         * doc/gnulib.texi: Include relocatable-maint.texi.
49953         * lib/progreloc.c: Include unistd.h unconditionally.
49954         * lib/relocwrapper.c: Include unistd.h unconditionally.
49955         Include c-ctype.h.
49956         (add_dotbin): Use c_tolower.
49957         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
49958         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
49959         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
49960         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
49961         to m4/relocatable-lib.m4.
49962         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
49963         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
49964         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
49965         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
49966         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
49967         * modules/relocatable: New file.
49968         * modules/relocatable-lib: New file.
49969         * modules/relocatable-script: New file.
49970
49971 2007-02-28  Bruno Haible  <bruno@clisp.org>
49972
49973         Import --enable-relocatable infrastructure.
49974         * build-aux/config.libpath: New file, from GNU gettext.
49975         * build-aux/install-reloc: New file, from GNU gettext.
49976         * build-aux/reloc-ldflags: New file, from GNU gettext.
49977         * lib/relocatable.h: New file, from GNU gettext.
49978         * lib/relocatable.c: New file, from GNU gettext.
49979         * lib/relocwrapper.c: New file, from GNU gettext.
49980         * m4/relocatable.m4: New file, from GNU gettext.
49981
49982 2007-02-28  Bruno Haible  <bruno@clisp.org>
49983
49984         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
49985
49986         * modules/xreadlink: New file, from GNU gettext with modifications.
49987         * lib/xreadlink.c: New file, from GNU gettext.
49988         * lib/xreadlink.h: Add comments.
49989         (xreadlink): New declaration.
49990
49991         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
49992         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
49993         lib/xreadlink-with-size.c.
49994         (configure.ac): Remove gl_XREADLINK invocation.
49995         (Makefile.am): Augment lib_SOURCES.
49996         * m4/xreadlink.m4: Remove file.
49997         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
49998         (xreadlink_with_size): Renamed from xreadink.
49999         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
50000         * modules/canonicalize (Depends-on): Replace xreadlink with
50001         xreadlink-with-size.
50002         * lib/canonicalize.c (canonicalize_filename_mode): Update.
50003
50004 2007-02-25  Jim Meyering  <jim@meyering.net>
50005
50006         * build-aux/announce-gen: When complaining about excess arguments,
50007         list them.
50008
50009 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
50010
50011         * README: Document signed integer overflow situation more
50012         accurately.
50013
50014 2007-02-25  Bruno Haible  <bruno@clisp.org>
50015
50016         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
50017         'a' or 'A' conversion.
50018
50019 2007-02-25  Bruno Haible  <bruno@clisp.org>
50020
50021         * modules/filename: Renamed from modules/pathname.
50022         (Files): Replace lib/pathname.h with lib/filename.h. Replace
50023         lib/concatpath.c with lib/concat-filename.c.
50024         (Makefile.am): Update.
50025         (Include): Replace pathname.h with filename.h.
50026         * lib/filename.h: Renamed from lib/pathname.h.
50027         (concatenated_filename): Renamed from concatenated_pathname.
50028         * lib/concat-filename.c: Renamed from lib/concatpath.c.
50029         (concatenated_filename): Renamed from concatenated_pathname.
50030         * lib/findprog.c: Include filename.h instead of pathname.h.
50031         (find_in_path): Update.
50032         * lib/javacomp.c: Include filename.h instead of pathname.h.
50033         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
50034         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
50035         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
50036         is_oldgcj_14_13_usable, is_javac_usable): Update.
50037         * lib/javaexec.c: Include filename.h instead of pathname.h.
50038         (execute_java_class): Update.
50039         * modules/findprog: Update.
50040         * modules/javacomp: Update.
50041         * modules/javaexec: Update.
50042         * MODULES.html.sh (File system functions): Add 'filename', remove
50043         'pathname'.
50044
50045 2007-02-25  Bruno Haible  <bruno@clisp.org>
50046
50047         * modules/printf-frexpl-tests: New file.
50048         * tests/test-printf-frexpl.c: New file.
50049
50050         * modules/printf-frexpl: New file.
50051         * lib/printf-frexpl.h: New file.
50052         * lib/printf-frexpl.c: New file.
50053         * m4/printf-frexpl.m4: New file.
50054
50055 2007-02-25  Bruno Haible  <bruno@clisp.org>
50056
50057         * modules/printf-frexp-tests: New file.
50058         * tests/test-printf-frexp.c: New file.
50059
50060         * modules/printf-frexp: New file.
50061         * lib/printf-frexp.h: New file.
50062         * lib/printf-frexp.c: New file.
50063         * m4/printf-frexp.m4: New file.
50064
50065 2007-02-25  Bruno Haible  <bruno@clisp.org>
50066
50067         Assume automake >= 1.10 for the tests.
50068         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
50069         * modules/arctwo-tests: Likewise.
50070         * modules/argp-tests: Likewise.
50071         * modules/avltree-list-tests: Likewise.
50072         * modules/avltree-oset-tests: Likewise.
50073         * modules/avltreehash-list-tests: Likewise.
50074         * modules/carray-list-tests: Likewise.
50075         * modules/crc-tests: Likewise.
50076         * modules/des-tests: Likewise.
50077         * modules/gc-arcfour-tests: Likewise.
50078         * modules/gc-arctwo-tests: Likewise.
50079         * modules/gc-des-tests: Likewise.
50080         * modules/gc-hmac-md5-tests: Likewise.
50081         * modules/gc-hmac-sha1-tests: Likewise.
50082         * modules/gc-md2-tests: Likewise.
50083         * modules/gc-md4-tests: Likewise.
50084         * modules/gc-md5-tests: Likewise.
50085         * modules/gc-pbkdf2-sha1-tests: Likewise.
50086         * modules/gc-rijndael-tests: Likewise.
50087         * modules/gc-sha1-tests: Likewise.
50088         * modules/gc-tests: Likewise.
50089         * modules/getaddrinfo-tests: Likewise.
50090         * modules/hmac-md5-tests: Likewise.
50091         * modules/hmac-sha1-tests: Likewise.
50092         * modules/linked-list-tests: Likewise.
50093         * modules/linkedhash-list-tests: Likewise.
50094         * modules/lock-tests: Likewise.
50095         * modules/md2-tests: Likewise.
50096         * modules/md4-tests: Likewise.
50097         * modules/md5-tests: Likewise.
50098         * modules/rbtree-list-tests: Likewise.
50099         * modules/rbtree-oset-tests: Likewise.
50100         * modules/rbtreehash-list-tests: Likewise.
50101         * modules/read-file-tests: Likewise.
50102         * modules/rijndael-tests: Likewise.
50103         * modules/stdint-tests: Likewise.
50104         * modules/tls-tests: Likewise.
50105
50106 2007-02-24  Bruno Haible  <bruno@clisp.org>
50107
50108         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
50109         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
50110         function; instead check whether isnan with a double argument links.
50111         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
50112         function; instead check whether isnan with a 'long double' argument
50113         links.
50114         Reported by Eric Blake <ebb9@byu.net>.
50115
50116 2007-02-24  Bruno Haible  <bruno@clisp.org>
50117
50118         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
50119         defined.
50120         * lib/isnanl.c: Remove all code. Just include isnan.c.
50121         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
50122
50123 2007-02-25  Jim Meyering  <jim@meyering.net>
50124
50125         Avoid conflicting types for 'unsetenv' on FreeBSD.
50126         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
50127         conflicting with FreeBSD's (5.0 and 6.1) function declaration
50128         in stdlib.h.
50129
50130 2007-02-24  Bruno Haible  <bruno@clisp.org>
50131
50132         * modules/isnanl-nolibm-tests: New file.
50133         * tests/test-isnanl.c: New file.
50134
50135         * modules/isnanl-nolibm: New file.
50136         * lib/isnanl.h: New file.
50137         * lib/isnanl.c: New file.
50138         * m4/isnanl.m4: New file.
50139
50140 2007-02-24  Bruno Haible  <bruno@clisp.org>
50141
50142         * modules/isnan-nolibm-tests: New file.
50143         * tests/test-isnan.c: New file.
50144
50145         * modules/isnan-nolibm: New file.
50146         * lib/isnan.h: New file.
50147         * lib/isnan.c: New file.
50148         * m4/isnan.m4: New file.
50149
50150 2007-02-24  Bruno Haible  <bruno@clisp.org>
50151
50152         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
50153         assume that an exponent fits in 20 bits.
50154
50155 2007-02-24  Jim Meyering  <jim@meyering.net>
50156
50157         * m4/regex.m4: Update the description of the configure-time option,
50158         --without-included-regex, to state accurately what the defaults are,
50159         and perhaps to give people an idea why using this option is risky.
50160
50161 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
50162
50163         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
50164         loops on small arguments.  This attempts to avoid the problem
50165         Bruno Haible reported for AIX 4.3.2 in
50166         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
50167
50168 2007-02-23  Bruno Haible  <bruno@clisp.org>
50169
50170         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
50171         Needed for help2man.
50172
50173 2007-02-23  Karl Berry  <karl@gnu.org>
50174
50175         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
50176         exists, foo.h should be cvs-ignored, not committed.
50177
50178 2007-02-23  Eric Blake  <ebb9@byu.net>
50179
50180         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
50181         * lib/stat-time.h (includes): Likewise.
50182         * lib/utimecmp.c (includes): Likewise.
50183         * lib/utimens.h (includes): Likewise.
50184         * lib/getdate.y (includes): Also include "timespec.h" for use
50185         internal to the module.
50186         * modules/utimens (Depends-on): Revert yesterday's patch.
50187         * modules/nanosleep (Depends-on): Add missing dependency.
50188
50189 2007-02-22  Bruno Haible  <bruno@clisp.org>
50190
50191         * lib/glob.c: Don't include getlogin_r.h.
50192
50193 2007-02-22  Jim Meyering  <jim@meyering.net>
50194
50195         * modules/utimens (Depends-on): Add timespec, required for
50196         utimens.h's inclusion of timespec.h.
50197
50198 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
50199
50200         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
50201         long unreadable paths in GNU/Linux.  Problem reported by Andreas
50202         Schwab in
50203         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
50204         I'll try to think of a better way to fix the Solaris problem.
50205
50206         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
50207         like glibc; on Solaris 10, it fails with errno == EINVAL.
50208         POSIX says the behavior is unspecified if the first argument is NULL,
50209         so play it safe and never pass NULL to the system getcwd.
50210
50211 2007-02-21  Jim Meyering  <jim@meyering.net>
50212
50213         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
50214         of gettimeofday.  It would conflict with the one now always
50215         provided via sys_time_.h.  Reported by Matthew Woehlke, as
50216         an IRIX 6.5 build failure.
50217
50218 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
50219
50220         Minor fixups to port to Solaris 10 with Sun C 5.8.
50221         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
50222         * modules/getcwd (Depends-on): Add dirfd.
50223         * lib/putenv.c (putenv): #undef it.
50224         (rpl_putenv): New decl.
50225         (malloc, free): Include <stdlib.h> rather than prototyping separately.
50226
50227 2007-02-20  Bruno Haible  <bruno@clisp.org>
50228
50229         * modules/stdio-tests: New file.
50230         * tests/test-stdio.c: New file.
50231
50232         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
50233         (Depends-on): Add stdio.
50234         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
50235         (Include): Use <stdio.h> instead of vsnprintf.h.
50236         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
50237         HAVE_DECL_VSNPRINTF.
50238         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
50239
50240         * modules/snprintf (Files): Remove lib/snprintf.h.
50241         (Depends-on): Add stdio.
50242         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
50243         (Include): Use <stdio.h> instead of snprintf.h.
50244         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
50245         HAVE_DECL_SNPRINTF.
50246         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
50247         * lib/getaddrinfo.c: Likewise.
50248
50249         * modules/stdio: New file.
50250         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
50251         * lib/snprintf.h: Remove file.
50252         * lib/vsnprintf.h: Remove file.
50253         * lib/.cppi-disable: Remove snprintf.h.
50254         * m4/stdio_h.m4: New file.
50255         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
50256
50257 2007-02-20  Jim Meyering  <jim@meyering.net>
50258
50259         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
50260         used by e.g., mingw.  From Bruno Haible.
50261
50262 2007-02-19  Bruno Haible  <bruno@clisp.org>
50263
50264         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
50265         warnings.
50266         Reported by Ben Pfaff <blp@cs.stanford.edu>.
50267
50268 2007-02-19  Bruno Haible  <bruno@clisp.org>
50269
50270         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
50271         from mingw users.
50272
50273 2007-02-19  Bruno Haible  <bruno@clisp.org>
50274
50275         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
50276         warnings.
50277         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
50278
50279 2007-02-19  Jim Meyering  <jim@meyering.net>
50280
50281         Don't use FD after a successful "fdopendir (fd)".
50282         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
50283         Reset it by calling dirfd on the just-obtained DIR*.
50284
50285         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
50286         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
50287
50288 2007-02-18  Bruno Haible  <bruno@clisp.org>
50289
50290         * lib/readlink.c: Include <unistd.h>.
50291         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
50292         HAVE_READLINK.
50293         * modules/readlink (Depends-on): Add unistd.
50294         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50295         (Include): Add <unistd.h>.
50296
50297         * lib/getlogin_r.h: Remove file.
50298         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
50299         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
50300         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
50301         HAVE_DECL_GETLOGIN_R.
50302         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
50303         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50304         (Include): Use <unistd.h> instead of getlogin_r.h.
50305
50306         * lib/getcwd.h: Remove file.
50307         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
50308         * lib/xgetcwd.c: Likewise.
50309         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
50310         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
50311         * modules/getcwd (Files): Remove lib/getcwd.h.
50312         (Depends-on): Add unistd.
50313         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50314         (Include): Use <unistd.h> instad of getcwd.h.
50315
50316         * lib/ftruncate.c: Include <unistd.h> first.
50317         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
50318         Set HAVE_FTRUNCATE.
50319         * modules/ftruncate (Depends-on): Add unistd.
50320         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50321
50322         * lib/fchdir.c: Include <unistd.h> first.
50323         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
50324         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
50325         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
50326         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50327         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
50328
50329         * lib/dup2.c: Include <unistd.h> first.
50330         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
50331         HAVE_DUP2.
50332         * modules/dup2 (Depends-on): Add unistd.
50333         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50334
50335         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
50336         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
50337         REPLACE_CHOWN. Don't define chown as a macro here.
50338         * modules/chown (Depends-on): Add unistd.
50339         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50340
50341         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
50342         Add definition for GL_LINK_WARNING.
50343         (chown, dup2): New declarations.
50344         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
50345         link warning.
50346         (ftruncate): New declaration.
50347         (getcwd): New declaration, taken from old getcwd.h.
50348         (getlogin_r): New declaration, taken from old getlogin_r.h.
50349         (readlink): New declaration.
50350         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
50351         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
50352         (gl_PREREQ_UNISTD): Remove macro.
50353         (gl_UNISTD_MODULE_INDICATOR): New macro.
50354         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
50355         many new variables. Don't set UNISTD_H.
50356         * modules/unistd (Description): Change.
50357         (Depends-on): Add link-warning.
50358         (configure.ac): Update.
50359         (Makefile.am): Create unistd.h always. Substitute many new variables
50360         into it.
50361
50362 2007-02-18  Bruno Haible  <bruno@clisp.org>
50363
50364         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
50365         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
50366         HAVE_GETSUBOPT.
50367         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
50368         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
50369         * lib/getsubopt.h: Remove file.
50370         * modules/getsubopt (Files): Remove lib/getsubopt.h.
50371         (Depends-on): Add stdlib.
50372         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50373         (Includes): Use <stdlib.h> instead of getsubopt.h.
50374         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
50375         Set HAVE_GETSUBOPT.
50376         * lib/getsubopt.c: Don't include getsubopt.h.
50377
50378 2007-02-18  Bruno Haible  <bruno@clisp.org>
50379
50380         * modules/fchdir (Depends-on): Add dup2.
50381
50382 2007-02-18  Bruno Haible  <bruno@clisp.org>
50383
50384         * lib/stdlib_.h: Handle glibc's special invocation convention
50385         specially.
50386
50387 2007-02-18  Bruno Haible  <bruno@clisp.org>
50388
50389         * modules/stdlib-tests: New file.
50390         * tests/test-stdlib.c: New file.
50391
50392         * modules/mkstemp (Files): Remove lib/mkstemp.h.
50393         (Depends-on): Add stdlib.
50394         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50395         (Includes): Use <stdlib.h> instead of mkstemp.h.
50396         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
50397         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
50398         * lib/mkstemp.c: Don't include mkstemp.h.
50399         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
50400         * lib/stdlib--.h: Don't include mkstemp.h.
50401
50402         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
50403         (Depends-on): Add stdlib.
50404         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50405         (Includes): Use <stdlib.h> instead of mkdtemp.h.
50406         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
50407         HAVE_MKDTEMP.
50408         * lib/mkdtemp.c: Don't include mkdtemp.h.
50409         * lib/clean-temp.c: Don't include mkdtemp.h.
50410
50411         * modules/exit (Files): Remove lib/exit.h.
50412         (Depends-on): Add stdlib.
50413         (Makefile.am): Remove lib_SOURCES.
50414         (Include): Use <stdlib.h> instead of exit.h.
50415         * lib/argmatch.c: Don't include exit.h.
50416         * lib/execute.c: Likewise.
50417         * lib/pagealign_alloc.c: Likewise.
50418         * lib/pipe.c: Likewise.
50419         * lib/wait-process.c: Likewise.
50420         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
50421         * lib/exitfail.c: Likewise.
50422         * lib/savewd.c: Likewise.
50423         * lib/xsetenv.c: Likewise.
50424
50425         * modules/stdlib: New file.
50426         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
50427         and extra comments about mkstemp().
50428         * lib/exit.h: Remove file.
50429         * lib/mkdtemp.h: Remove file.
50430         * lib/mkstemp.h: Remove file.
50431         * m4/stdlib_h.m4: New file.
50432         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
50433
50434 2007-02-18  Bruno Haible  <bruno@clisp.org>
50435
50436         * modules/math-tests: New file.
50437         * tests/test-math.c: New file.
50438
50439         * modules/math: New file.
50440         * modules/mathl (Files): Remove lib/mathl.h.
50441         (Depends-on): Add math.
50442         (Makefile.am): Don't mention mathl.h.
50443         (Include): Use <math.h> instead of mathl.h.
50444         * lib/math_.h: New file.
50445         * lib/mathl.h: Remove file.
50446         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
50447         mathl.h.
50448         * lib/asinl.c: Likewise.
50449         * lib/atanl.c: Likewise.
50450         * lib/ceill.c: Likewise.
50451         * lib/cosl.c: Likewise.
50452         * lib/expl.c: Likewise.
50453         * lib/floorl.c: Likewise.
50454         * lib/frexpl.c: Likewise.
50455         * lib/ldexpl.c: Likewise.
50456         * lib/logl.c: Likewise.
50457         * lib/sincosl.c: Likewise.
50458         * lib/sinl.c: Likewise.
50459         * lib/sqrtl.c: Likewise.
50460         * lib/tanl.c: Likewise.
50461         * lib/trigl.c: Likewise.
50462         * m4/math_h.m4: New file.
50463         * MODULES.html.sh (Mathematics): Add math.
50464
50465 2007-02-17  Bruno Haible  <bruno@clisp.org>
50466
50467         * modules/wctype-tests: New file.
50468         * tests/test-wctype.c: New file.
50469
50470         * modules/wchar-tests: New file.
50471         * tests/test-wchar.c: New file.
50472
50473         * modules/unistd-tests: New file.
50474         * tests/test-unistd.c: New file.
50475
50476         * modules/time-tests: New file.
50477         * tests/test-time.c: New file.
50478
50479         * modules/sysexits-tests: New file.
50480         * tests/test-sysexits.c: New file.
50481
50482         * modules/sys_time-tests: New file.
50483         * tests/test-sys_time.c: New file.
50484
50485         * modules/sys_stat-tests: New file.
50486         * tests/test-sys_stat.c: New file.
50487
50488         * modules/sys_socket-tests: New file.
50489         * tests/test-sys_socket.c: New file.
50490
50491         * modules/sys_select-tests: New file.
50492         * tests/test-sys_select.c: New file.
50493
50494         * modules/string-tests: New file.
50495         * tests/test-string.c: New file.
50496
50497         * modules/stdbool-tests: New file.
50498         * tests/test-stdbool.c: New file.
50499
50500         * modules/netinet_in-tests: New file.
50501         * tests/test-netinet_in.c: New file.
50502
50503         * modules/inttypes-tests: New file.
50504         * tests/test-inttypes.c: New file.
50505
50506         * modules/fcntl-tests: New file.
50507         * tests/test-fcntl.c: New file.
50508
50509         * modules/byteswap-tests: New file.
50510         * tests/test-byteswap.c: New file.
50511
50512         * modules/arpa_inet-tests: New file.
50513         * tests/test-arpa_inet.c: New file.
50514
50515 2007-02-17  Bruno Haible  <bruno@clisp.org>
50516
50517         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
50518         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
50519         if the corresponding module is not enabled. Emit link warnings if
50520         the function is used nevertheless.
50521         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
50522         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
50523         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
50524         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
50525         * modules/inttypes (Depends-on): Add link-warning.
50526         (Makefile.am): Copy the contents of build-aux/link-warning.h into
50527         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
50528         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
50529         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
50530         * modules/imaxdiv (configure.ac): Likewise.
50531         * modules/strtoimax (configure.ac): Likewise.
50532         * modules/strtoumax (configure.ac): Likewise.
50533
50534 2007-02-17  Bruno Haible  <bruno@clisp.org>
50535
50536         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
50537         gl_STRING_MODULE_INDICATOR_DEFAULTS.
50538         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
50539         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
50540
50541 2007-02-17  Bruno Haible  <bruno@clisp.org>
50542
50543         * modules/link-warning: New file.
50544         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
50545         * lib/string_.h (GL_LINK_WARNING): Remove definition.
50546         * modules/string (Depends-on): Add link-warning.
50547         (Makefile.am): Copy the contents of build-aux/link-warning.h into
50548         string.h.
50549         * MODULES.html.sh (Support for building libraries and executables): Add
50550         link-warning.
50551
50552 2007-02-17  Bruno Haible  <bruno@clisp.org>
50553
50554         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
50555         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
50556         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
50557         long lines.
50558
50559 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
50560             Bruno Haible  <bruno@clisp.org>
50561
50562         * modules/tmpfile: New file.
50563         * lib/tmpfile.c: New file.
50564         * m4/tmpfile.m4: New file.
50565         * MODULES.html.sh (func_all_modules): New section "Input/output".
50566
50567 2007-02-15  Bruno Haible  <bruno@clisp.org>
50568
50569         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
50570         (supports_delete_on_close): New function.
50571         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
50572
50573 2007-02-14  Bruno Haible  <bruno@clisp.org>
50574
50575         * modules/mbspcasecmp-tests: New file.
50576         * tests/test-mbspcasecmp.sh: New file.
50577         * tests/test-mbspcasecmp.c: New file.
50578
50579         New module mbspcasecmp.
50580         * modules/mbspcasecmp: New file.
50581         * lib/mbspcasecmp.c: New file.
50582         * lib/string_.h (strncasecmp): Change warning message.
50583         (mbspcasecmp): New declaration.
50584         * m4/mbspcasecmp.m4: New file.
50585         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
50586         GNULIB_MBSPCASECMP.
50587         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
50588         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
50589
50590 2007-02-14  Bruno Haible  <bruno@clisp.org>
50591
50592         * modules/mbsncasecmp-tests: New file.
50593         * tests/test-mbsncasecmp.sh: New file.
50594         * tests/test-mbsncasecmp.c: New file.
50595
50596         New module mbsncasecmp.
50597         * modules/mbsncasecmp: New file.
50598         * lib/mbsncasecmp.c: New file.
50599         * lib/string_.h (mbsncasecmp): New declaration.
50600         * m4/mbsncasecmp.m4: New file.
50601         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
50602         GNULIB_MBSNCASECMP.
50603         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
50604         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
50605
50606 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
50607
50608         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
50609         Verify that it doesn't overlap with our flags.
50610         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
50611         do not have the desired effect in multibyte locales; instead, use
50612         mbscasecmp.
50613         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
50614         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
50615         we don't require GNU fnmatch ourselves (if our users require it, they
50616         should do so explicitly).
50617
50618         Fix regex code so it doesn't rely on strcasecmp.
50619         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
50620         Otherwise, include gnulib's langinfo.h.
50621         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
50622         undesirable behavior in non-C locales.  Instead, rely on localecharset.
50623         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
50624         * modules/regex (FILES): Remove m4/codeset.m4.
50625         (Depends-on): Add localcharset.  Remove strcase.
50626
50627 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50628
50629         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
50630         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
50631
50632 2007-02-13  Bruno Haible  <bruno@clisp.org>
50633
50634         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
50635         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50636
50637 2007-02-12  Bruno Haible  <bruno@clisp.org>
50638
50639         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
50640         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
50641         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
50642         time warning rather than a link error.
50643
50644 2007-02-12  Bruno Haible  <bruno@clisp.org>
50645
50646         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
50647         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
50648         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50649
50650 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
50651
50652         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
50653         args, not 2.
50654
50655 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
50656
50657         New module 'time', so that apps can include <time.h> as per
50658         POSIX and GNU instead of separate include files like time_r.h
50659         and timegm.h.  This implementation tries out a simpler approach
50660         for replacing decls in standard include files (as compared to
50661         the string module), somewhat as an experiment.
50662
50663         * config/srclist.txt: Comment out mktime.c for now.
50664         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
50665         since it doesn't apply any more.  Use generic wording instead.
50666         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
50667         'time'.
50668         * lib/time_.h, m4/time_h.m4, modules/time: New files.
50669         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
50670         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
50671         Don't include <sys/types.h>; no longer needed since we assume C89.
50672         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
50673         * lib/strftime.c: Likewise.
50674         * lib/time_r.c: Likewise.
50675         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
50676         * lib/nanosleep.c: Include <time.h> first, to check interface.
50677         * lib/strptime.c: Likewise.
50678         * lib/time_r.c: Likewise.
50679         * lib/timegm.c: Likewise.
50680         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
50681         needed.
50682         * lib/timegm.c: Don't include timegm.h; no longer needed.
50683         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
50684         time.h now handles any problems in that area.
50685         (struct timespec, nanosleep): Remove; time.h now arranges for these.
50686         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
50687         that time.h defines struct timespec.
50688         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
50689         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
50690         handles that.
50691         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
50692         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
50693         needed.  Set REPLACE_LOCALTIME.
50694         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
50695         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
50696         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
50697         nanosleep; time_h.m4 now does that.  Don't require
50698         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
50699         module handles this now.
50700         * modules/getdate (Depends-on): Remove timespec.  Add time.
50701         * modules/nanosleep (Depends-on): Likewise.
50702         * modules/stat-time (Depends-on): Likewise.
50703         * modules/nanosleep (Include): Include time.h, not timespec.h.
50704         * modules/strptime (Files): Remove lib/strptime.h.
50705         (Depends-on): Add extensions, time.
50706         (Include): Include time.h, not strptime.h.
50707         * modules/time_r (Files): Remove lib/time_r.h.
50708         (Depends-on): Add time.
50709         (Include): Include time.h, not time_r.h.
50710         * modules/timegm: Likewise.
50711         * modules/timespec (Description): Now does timespec-related decls
50712         of our own, instead of struct timespec itself.
50713         (Depends-on): Add time; remove extensions.
50714         (Maintainer): Add self.
50715         * modules/utimecmp (Depends-on): Add time; remove timespec.
50716         * modules/utimens (Depends-on): Likewise.
50717         * modules/xnanosleep (Depends-on): Likewise.
50718
50719 2007-02-11  Bruno Haible  <bruno@clisp.org>
50720
50721         * lib/c-strstr.c: Include allocsa.h.
50722         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
50723         * lib/c-strcasestr.c: Include allocsa.h.
50724         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
50725         * lib/strcasestr.c: Include allocsa.h.
50726         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
50727         * lib/mbsstr.c: Include allocsa.h.
50728         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
50729         allocsa/freesa instead of malloc/free.
50730         * lib/mbscasestr.c: Include allocsa.h.
50731         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
50732         allocsa/freesa instead of malloc/free.
50733         * modules/c-strstr (Depends-on): Add allocsa.
50734         * modules/c-strcasestr (Depends-on): Likewise.
50735         * modules/strcasestr (Depends-on): Likewise.
50736         * modules/mbsstr (Depends-on): Likewise.
50737         * modules/mbscasestr (Depends-on): Likewise.
50738
50739 2007-02-11  Bruno Haible  <bruno@clisp.org>
50740
50741         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
50742
50743         * modules/mbsspn-tests: New file.
50744         * tests/test-mbsspn.sh: New file.
50745         * tests/test-mbsspn.c: New file.
50746
50747 2007-02-11  Bruno Haible  <bruno@clisp.org>
50748
50749         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
50750
50751         * modules/mbspbrk-tests: New file.
50752         * tests/test-mbspbrk.sh: New file.
50753         * tests/test-mbspbrk.c: New file.
50754
50755 2007-02-11  Bruno Haible  <bruno@clisp.org>
50756
50757         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
50758         unneeded cast.
50759
50760         * modules/mbscspn-tests: New file.
50761         * tests/test-mbscspn.sh: New file.
50762         * tests/test-mbscspn.c: New file.
50763
50764 2007-02-11  Bruno Haible  <bruno@clisp.org>
50765
50766         * modules/mbscasecmp-tests: New file.
50767         * tests/test-mbscasecmp.sh: New file.
50768         * tests/test-mbscasecmp.c: New file.
50769
50770 2007-02-11  Bruno Haible  <bruno@clisp.org>
50771
50772         Ensure O(n) worst-case complexity of mbscasestr.
50773         * lib/mbscasestr.c: Include stdbool.h.
50774         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
50775         functions.
50776         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
50777         the bookkeeping indicates that it's worth it.
50778         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
50779
50780         * modules/mbscasestr-tests: New file.
50781         * tests/test-mbscasestr1.c: New file.
50782         * tests/test-mbscasestr2.sh: New file.
50783         * tests/test-mbscasestr2.c: New file.
50784         * tests/test-mbscasestr3.sh: New file.
50785         * tests/test-mbscasestr3.c: New file.
50786         * tests/test-mbscasestr4.sh: New file.
50787         * tests/test-mbscasestr4.c: New file.
50788         * m4/locale-tr.m4: New file.
50789
50790 2007-02-11  Bruno Haible  <bruno@clisp.org>
50791
50792         Ensure O(n) worst-case complexity of mbsstr.
50793         * lib/mbsstr.c: Include stdbool.h.
50794         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
50795         functions.
50796         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
50797         bookkeeping indicates that it's worth it.
50798         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
50799
50800         * modules/mbsstr-tests: New file.
50801         * tests/test-mbsstr1.c: New file.
50802         * tests/test-mbsstr2.sh: New file.
50803         * tests/test-mbsstr2.c: New file.
50804         * tests/test-mbsstr3.sh: New file.
50805         * tests/test-mbsstr3.c: New file.
50806         * m4/locale-fr.m4: New file.
50807
50808 2007-02-11  Bruno Haible  <bruno@clisp.org>
50809
50810         * lib/mbsrchr.c (mbsrchr): Fix bug.
50811
50812         * modules/mbsrchr-tests: New file.
50813         * tests/test-mbsrchr.sh: New file.
50814         * tests/test-mbsrchr.c: New file.
50815
50816 2007-02-11  Bruno Haible  <bruno@clisp.org>
50817
50818         * lib/mbschr.c (mbschr): Fix bug.
50819
50820         * modules/mbschr-tests: New file.
50821         * tests/test-mbschr.sh: New file.
50822         * tests/test-mbschr.c: New file.
50823         * m4/locale-zh.m4: New file.
50824
50825 2007-02-11  Bruno Haible  <bruno@clisp.org>
50826
50827         Support for copying multibyte string iterators.
50828         * lib/mbiter.h: Include <string.h>.
50829         (mbiter_multi_copy): New function.
50830         (mbi_copy): New macro.
50831         * lib/mbuiter.h: Include <string.h>.
50832         (mbuiter_multi_copy): New function.
50833         (mbui_copy): New macro.
50834
50835 2007-02-11  Bruno Haible  <bruno@clisp.org>
50836
50837         New module mbslen.
50838         * modules/mbslen: New file.
50839         * lib/mbslen.c: New file.
50840         * lib/string_.h (mbslen): New declaration.
50841         * m4/mbslen.m4: New file.
50842         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
50843         GNULIB_MBSLEN.
50844         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
50845         * MODULES.html.sh (Internationalization functions): Add mbslen.
50846
50847 2007-02-11  Bruno Haible  <bruno@clisp.org>
50848
50849         Ensure O(n) worst-case complexity of strcasestr substitute.
50850         * lib/strcasestr.c: Include stdbool.h.
50851         (knuth_morris_pratt): New function.
50852         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
50853         bookkeeping indicates that it's worth it.
50854         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
50855
50856         * modules/strcasestr-tests: New file.
50857         * tests/test-strcasestr.c: New file.
50858
50859 2007-02-11  Bruno Haible  <bruno@clisp.org>
50860
50861         Ensure O(n) worst-case complexity of c_strcasestr.
50862         * lib/c-strcasestr.c: Include stdbool.h, string.h.
50863         (knuth_morris_pratt): New function.
50864         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
50865         the bookkeeping indicates that it's worth it.
50866         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
50867
50868         * modules/c-strcasestr-tests: New file.
50869         * tests/test-c-strcasestr.c: New file.
50870
50871 2007-02-11  Bruno Haible  <bruno@clisp.org>
50872
50873         Ensure O(n) worst-case complexity of c_strstr.
50874         * lib/c-strstr.c: Include stdbool.h, string.h.
50875         (knuth_morris_pratt): New function.
50876         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
50877         bookkeeping indicates that it's worth it.
50878         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
50879
50880         * lib/c-strstr.c: Complete rewrite for maintainability.
50881
50882         * modules/c-strstr-tests: New file.
50883         * tests/test-c-strstr.c: New file.
50884
50885 2007-02-11  Bruno Haible  <bruno@clisp.org>
50886
50887         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
50888         5.2.1 and earlier, whereby \055 was treated just like the range
50889         delimiter '-'.
50890         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
50891
50892 2007-02-08  Bruno Haible  <bruno@clisp.org>
50893
50894         * modules/regex (Depends-on): Add stdbool.
50895         Reported by Dalibor Topic <robilad@kaffe.org>.
50896
50897 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
50898
50899         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
50900         Prefer returning from main to exiting from it.
50901         Remove unnecessary parens after sizeof.
50902
50903 2007-02-05  Bruno Haible  <bruno@clisp.org>
50904
50905         New module mbssep.
50906         * modules/mbssep: New file.
50907         * lib/mbssep.c: New file.
50908         * lib/string_.h (strsep): Add a conditional link warning.
50909         (mbssep): New declaration.
50910         * m4/mbssep.m4: New file.
50911         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
50912         GNULIB_MBSSEP.
50913         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
50914         * MODULES.html.sh (Internationalization functions): Add mbssep.
50915
50916 2007-02-05  Bruno Haible  <bruno@clisp.org>
50917
50918         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
50919         Optimize search in case of 1 delimiter.
50920
50921 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
50922
50923         * lib/acl.h: Include sys/types.h before sys/acl.h.
50924
50925 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
50926
50927         Merge upstream fix for glibc bugzilla #3957:
50928
50929         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
50930
50931         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
50932         bit for RE_HAT_LISTS_NOT_NEWLINE.
50933         (build_charclass_op): Remove bogus comment.
50934
50935 2007-02-05  Simon Josefsson  <simon@josefsson.org>
50936
50937         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
50938
50939 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
50940
50941         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
50942         * lib/memmem.c [!defined _LIBC]: Include config.h.
50943
50944 2007-02-04  Bruno Haible  <bruno@clisp.org>
50945
50946         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
50947         warning message.
50948
50949 2007-02-04  Bruno Haible  <bruno@clisp.org>
50950
50951         New module mbstok_r.
50952         * modules/mbstok_r: New file.
50953         * lib/mbstok_r.c: New file.
50954         * lib/string_.h (strtok_r): Change argument names to match the
50955         comments. Add a conditional link warning.
50956         (mbstok_r): New declaration.
50957         * m4/mbstok_r.m4: New file.
50958         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
50959         GNULIB_MBSTOK_R.
50960         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
50961         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
50962
50963 2007-02-04  Bruno Haible  <bruno@clisp.org>
50964
50965         New module mbsspn.
50966         * modules/mbsspn: New file.
50967         * lib/mbsspn.c: New file.
50968         * lib/string_.h (strspn): Add a conditional link warning.
50969         (mbsspn): New declaration.
50970         * m4/mbsspn.m4: New file.
50971         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
50972         GNULIB_MBSSPN.
50973         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
50974         * MODULES.html.sh (Internationalization functions): Add mbsspn.
50975
50976 2007-02-04  Bruno Haible  <bruno@clisp.org>
50977
50978         New module mbspbrk.
50979         * modules/mbspbrk: New file.
50980         * lib/mbspbrk.c: New file.
50981         * lib/string_.h (strpbrk): Add a conditional link warning.
50982         (mbspbrk): New declaration.
50983         * m4/mbspbrk.m4: New file.
50984         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
50985         GNULIB_MBSPBRK.
50986         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
50987         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
50988
50989 2007-02-04  Bruno Haible  <bruno@clisp.org>
50990
50991         New module mbscspn.
50992         * modules/mbscspn: New file.
50993         * lib/mbscspn.c: New file.
50994         * lib/string_.h (strcspn): Add a conditional link warning.
50995         (mbscspn): New declaration.
50996         * m4/mbscspn.m4: New file.
50997         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
50998         GNULIB_MBSCSPN.
50999         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
51000         * MODULES.html.sh (Internationalization functions): Add mbscspn.
51001
51002 2007-02-04  Bruno Haible  <bruno@clisp.org>
51003
51004         New module mbscasestr, reduced goal of strcasestr.
51005         * modules/mbscasestr: New file.
51006         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
51007         (mbscasestr): Renamed from strcasestr.
51008         * lib/strcasestr.c: Don't include mbuiter.h.
51009         (strcasestr): Remove support for multibyte locales.
51010         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
51011         Change the conditional link warning.
51012         (mbscasestr): New declaration.
51013         * m4/mbscasestr.m4: New file.
51014         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
51015         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
51016         REPLACE_STRCASESTR.
51017         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
51018         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
51019         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
51020         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
51021         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
51022         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
51023         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
51024         (Depends-on): Remove mbuiter.
51025         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
51026
51027 2007-02-04  Bruno Haible  <bruno@clisp.org>
51028
51029         Simplify handling of strncasecmp.
51030         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
51031         the conditional link warning.
51032         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
51033         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
51034         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
51035         * modules/strcase (configure.ac): Don't invoke
51036         gl_STRING_MODULE_INDICATOR.
51037         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
51038
51039 2007-02-04  Bruno Haible  <bruno@clisp.org>
51040
51041         New module mbscasecmp, reduced goal of strcasecmp.
51042         * modules/mbscasecmp: New file.
51043         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
51044         (mbscasecmp): Renamed from strcasecmp.
51045         * lib/strcasecmp.c: Don't include mbuiter.h.
51046         (strcasecmp): Remove support for multibyte locales.
51047         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
51048         Change the conditional link warning.
51049         (mbscasecmp): New declaration.
51050         * m4/mbscasecmp.m4: New file.
51051         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
51052         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
51053         REPLACE_STRCASECMP.
51054         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
51055         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
51056         GNULIB_MBSCASECMP.
51057         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
51058         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
51059         * modules/strcase (Files): Remove m4/mbrtowc.m4.
51060         (Depends-on): Remove mbuiter.
51061         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
51062
51063 2007-02-04  Bruno Haible  <bruno@clisp.org>
51064
51065         New module mbsstr. Remove module strstr.
51066         * modules/mbsstr: New file.
51067         * modules/strstr: Remove file.
51068         * lib/mbsstr.c: Renamed from lib/strstr.c.
51069         (mbsstr): Renamed from strstr.
51070         * lib/string_.h (strstr): Remove declaration. Change the conditional
51071         link warning.
51072         (mbsstr): New declaration.
51073         * m4/mbsstr.m4: New file.
51074         * m4/strstr.m4: Remove file.
51075         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
51076         REPLACE_STRSTR.
51077         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
51078         Don't initialize GNULIB_STRSTR.
51079         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
51080         substitute GNULIB_STRSTR and REPLACE_STRSTR.
51081         * MODULES.html.sh (Internationalization functions): Add mbsstr.
51082         (Support for systems lacking ANSI C 89): Remove strstr.
51083
51084 2007-02-04  Bruno Haible  <bruno@clisp.org>
51085
51086         New module mbsrchr.
51087         * modules/mbsrchr: New file.
51088         * lib/mbsrchr.c: New file.
51089         * lib/string_.h (strrchr): Add a conditional link warning.
51090         (mbsrchr): New declaration.
51091         * m4/mbsrchr.m4: New file.
51092         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
51093         GNULIB_MBSRCHR.
51094         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
51095         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
51096
51097 2007-02-04  Bruno Haible  <bruno@clisp.org>
51098
51099         New module mbschr.
51100         * modules/mbschr: New file.
51101         * lib/mbschr.c: New file.
51102         * lib/string_.h (strchr): Add a conditional link warning.
51103         (mbschr): New declaration.
51104         * m4/mbschr.m4: New file.
51105         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
51106         GNULIB_MBSCHR.
51107         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
51108         * MODULES.html.sh (Internationalization functions): Add mbschr.
51109
51110 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
51111
51112         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
51113
51114         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
51115
51116 2007-02-04  Bruno Haible  <bruno@clisp.org>
51117
51118         New module description section 'configure.ac-early'.
51119         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
51120         (func_get_autoconf_early_snippet): New function.
51121         (func_import, func_create_testdir): Use it. Remove special cases for
51122         modules 'extensions' and 'lock'.
51123         * modules/extensions (configure.ac-early): Require
51124         gl_USE_SYSTEM_EXTENSIONS.
51125         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
51126
51127 2007-02-04  Bruno Haible  <bruno@clisp.org>
51128
51129         Make use of gcj-4.3's -fsource and -ftarget option.
51130         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
51131         and if so try the options -fsource and -ftarget.
51132         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
51133         source_version, ftarget_option, target_version arguments.
51134         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
51135         (is_envjavac_oldgcj_14_14_usable): Renamed from
51136         is_envjavac_gcj_14_14_usable.
51137         (is_envjavac_oldgcj_14_13_usable): Renamed from
51138         is_envjavac_gcj_14_13_usable.
51139         (is_gcj_present): Update.
51140         (is_gcj_43, is_gcj43_usable): New functions.
51141         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
51142         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
51143         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
51144         try the options -fsource and -ftarget.
51145
51146 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
51147
51148         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
51149         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
51150         larger value.
51151
51152 2007-02-03  Jim Meyering  <jim@meyering.net>
51153
51154         Give tools a better chance to allocate space for very large buffers.
51155         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
51156
51157         Make pwd and readlink work also when run with an unreadable parent dir
51158         on systems with openat support.
51159         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
51160         provided getcwd function, even when we have openat support.
51161         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
51162
51163 2007-02-02  Bruno Haible  <bruno@clisp.org>
51164
51165         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
51166         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
51167         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
51168         portability problems if one of these functions is only used on specific
51169         platforms.
51170         Reported by Paul Eggert.
51171
51172 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
51173
51174         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
51175         is causing more trouble than it's curing.
51176         * lib/regex_internal.h (__mempcpy): Remove.
51177         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
51178         (and make the code a tad smaller to boot).
51179         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
51180
51181 2007-02-02  Jim Meyering  <jim@meyering.net>
51182
51183         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
51184         section, not in the Makefile.am: one.
51185
51186 2007-02-02  Eric Blake  <ebb9@byu.net>
51187
51188         * lib/strchrnul.c: Always include config.h first.
51189
51190         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
51191         gnulib strstr is not necessary here.
51192
51193 2007-02-02  Simon Josefsson  <simon@josefsson.org>
51194
51195         * m4/socklen.m4: Fix typo.
51196
51197 2007-02-02  Eric Blake  <ebb9@byu.net>
51198
51199         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
51200         * modules/netinet_in (Makefile.am): Likewise.
51201
51202 2007-02-01  Bruno Haible  <bruno@clisp.org>
51203
51204         * lib/string_.h (GL_LINK_WARNING): New macro.
51205         (strcasecmp, strstr, strcasestr): If provided by the system,
51206         conditionally define as a macro that leads to a warning instead of to
51207         an error.
51208         (strncasecmp): Conditionally define as a macro that leads to a warning.
51209
51210 2007-02-01  Karl Berry  <karl@gnu.org>
51211
51212         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
51213
51214 2007-02-01  Bruno Haible  <bruno@clisp.org>
51215
51216         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
51217         renamings.
51218
51219 2007-02-01  Eric Blake  <ebb9@byu.net>
51220
51221         * modules/regex (Depends-on): Revert dependence on mempcpy.
51222         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
51223         module's definition of mempcpy.
51224         Reported by Paul Eggert.
51225
51226 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
51227
51228         * lib/string_.h: If the gnulib module XYZ is not present, undefine
51229         the symbol XYZ before redefining it.  This fixes a problem with
51230         programs that don't use XYZ, when compiled on systems that define
51231         XYZ to something else.
51232
51233 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
51234
51235         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
51236         occurs when "mkdir -m foo" creates a setgid directory that is (1)
51237         writeable to group or other and (2) is intended to have a special
51238         mode bit that is set or cleared.  In such a case, the directory
51239         should be neither group- nor other-writeable until the special
51240         mode bits are right.
51241
51242 2007-01-31  Eric Blake  <ebb9@byu.net>
51243
51244         * modules/mountlist (Depends-on): Add strstr.
51245
51246         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
51247         bug.
51248         * modules/string (Makefile.am): Remove redundant replacement.
51249         * modules/regex (Depends-on): Add mempcpy.
51250
51251 2007-01-31  Bruno Haible  <bruno@clisp.org>
51252
51253         New module description field 'Link'.
51254         * gnulib-tool (func_usage): Document --extract-link-directive.
51255         (sed_extract_prog): Recognize 'Link' directive.
51256         (func_get_link_directive): New function.
51257         (func_import): Show summary of link directives.
51258         Handle --extract-link-directive option.
51259         * modules/acl (Link): New section.
51260         * modules/clock-time (Link): New section.
51261         * modules/euidaccess (Link): New section.
51262         * modules/gettext (Link): New section.
51263         * modules/iconv (Link): New section.
51264         * modules/lock (Link): New section.
51265         * modules/nanosleep (Link): New section.
51266         * modules/readline (Link): New section.
51267
51268 2007-01-27  Bruno Haible  <bruno@clisp.org>
51269
51270         Enforce the use of gnulib modules for unportable <string.h> functions.
51271         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
51272         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
51273         (gl_HEADER_STRING_H_BODY): Require it.
51274         * lib/string_.h: If the gnulib module XYZ is not present, redefine
51275         the symbol XYZ to one that gives a link error.
51276         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
51277         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
51278         * modules/mempcpy (configure.ac): Likewise.
51279         * modules/memrchr (configure.ac): Likewise.
51280         * modules/stpcpy (configure.ac): Likewise.
51281         * modules/stpncpy (configure.ac): Likewise.
51282         * modules/strcase (configure.ac): Likewise.
51283         * modules/strcasestr (configure.ac): Likewise.
51284         * modules/strchrnul (configure.ac): Likewise.
51285         * modules/strdup (configure.ac): Likewise.
51286         * modules/strndup (configure.ac): Likewise.
51287         * modules/strnlen (configure.ac): Likewise.
51288         * modules/strpbrk (configure.ac): Likewise.
51289         * modules/strsep (configure.ac): Likewise.
51290         * modules/strstr (configure.ac): Likewise.
51291         * modules/strtok_r (configure.ac): Likewise.
51292
51293 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
51294
51295         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
51296
51297 2007-01-30  Jim Meyering  <jim@meyering.net>
51298
51299         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
51300
51301 2007-01-29  Bruno Haible  <bruno@clisp.org>
51302
51303         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
51304         * lib/execute.c: Likewise.
51305         * lib/pipe.c: Likewise.
51306         * lib/printf-args.h: Likewise.
51307         * lib/printf-args.c: Likewise.
51308         * lib/printf-parse.c: Likewise.
51309         * lib/vasnprintf.c: Likewise.
51310
51311 2007-01-29  Eric Blake  <ebb9@byu.net>
51312
51313         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
51314         declaration.
51315
51316 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
51317
51318         * lib/strptime.h (strptime): Use 'restrict' for args where
51319         POSIX requires this.
51320         * lib/strptime.c (strptime): Likewise.
51321         Change license notice from LGPL to GPL, since gnulib-tool will
51322         change this as needed.
51323         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
51324         defined.
51325         Include "strptime.h" first, to check interface.
51326         Do not #undef _LIBC and _NL_CURRENT.
51327         Do not include <stdlib.h>; no longer needed.
51328         Include "time_r.h" and declare ptime_locale_status
51329         only if _LIBC is not defined.
51330         (__P): Remove unused macro.
51331         (match_string): Bring back glibc version, but use it only if _LIBC
51332         is defined.
51333         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
51334         Remove unnecessary assertion and abort() call.
51335         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
51336         * m4/strptime.m4: Fix serial number comment.
51337         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
51338         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
51339         (Depends-on): Add time_r.
51340
51341 2007-01-29  Bruno Haible  <bruno@clisp.org>
51342
51343         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
51344         strptime.
51345         * modules/strptime (Depends-on): Add stdbool.
51346         * lib/strptime.h: Include <time.h> always. Add comments.
51347
51348 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
51349
51350         * modules/strptime: New file.
51351         * lib/strptime.h: New file.
51352         * lib/strptime.c: New file.
51353         * m4/strptime.m4: New file.
51354
51355 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
51356
51357         * MODULES.html.sh: New module mpsort.
51358         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
51359
51360         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
51361         a circularity problem with HP-UX ia64 reported by Bob Proulx in
51362         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
51363         All uses changed.
51364         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
51365         All uses changed.
51366         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
51367         to _Restrict_.
51368         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
51369         the parameter matches the prototype.
51370
51371 2007-01-28  Jim Meyering  <jim@meyering.net>
51372
51373         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
51374         sys/time.h here, reverting that part of the previous patch:
51375         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
51376
51377 2007-01-28  Bruno Haible  <bruno@clisp.org>
51378
51379         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
51380         value of $(SYS_TIME_H).
51381         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
51382         remove it conditionally, too. [added by Jim Meyering]
51383         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
51384         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
51385         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
51386         GETTIMEOFDAY_REPLACEMENT to 1.
51387
51388 2007-01-28  Bruno Haible  <bruno@clisp.org>
51389
51390         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
51391         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
51392         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
51393         Set UNISTD_H instead of UNISTD_H2.
51394         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
51395
51396 2007-01-28  Bruno Haible  <bruno@clisp.org>
51397
51398         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
51399         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
51400
51401 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51402
51403         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
51404         (func_create_testdir): Ensure C locale for `grep' and `tr'
51405         character ranges.
51406         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
51407         ACLOCAL_AMFLAGS parsing state machine.
51408
51409 2007-01-27  Bruno Haible  <bruno@clisp.org>
51410
51411         * modules/unistr/base: Update.
51412
51413 2007-01-27  Bruno Haible  <bruno@clisp.org>
51414
51415         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
51416         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
51417         * modules/unistr/u32-mbtouc-unsafe: Renamed from
51418         modules/unistr/u32-mbtouc.
51419         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
51420         * lib/unistr.h: Update.
51421         * lib/linebreak.c: Update.
51422         * modules/unistr/u32-mbtouc: Renamed from
51423         modules/unistr/u32-mbtouc-safe.
51424         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
51425         * lib/unistr.h: Update.
51426         * lib/unistr/u32-to-u8.c: Update.
51427         * lib/unistr/u32-to-u16.c: Update.
51428
51429 2007-01-27  Bruno Haible  <bruno@clisp.org>
51430
51431         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
51432         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
51433         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
51434         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
51435         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
51436         * modules/unistr/u16-mbtouc-unsafe: Renamed from
51437         modules/unistr/u16-mbtouc.
51438         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
51439         * lib/unistr.h: Update.
51440         * lib/linebreak.c: Update.
51441         * modules/linebreak: Update.
51442         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
51443         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
51444         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
51445         * modules/unistr/u16-mbtouc: Renamed from
51446         modules/unistr/u16-mbtouc-safe.
51447         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
51448         * lib/unistr.h: Update.
51449         * lib/unistr/u16-to-u8.c: Update.
51450         * modules/unistr/u16-to-u8: Update.
51451         * lib/unistr/u16-to-u32.c: Update.
51452         * modules/unistr/u16-to-u32: Update.
51453
51454 2007-01-27  Bruno Haible  <bruno@clisp.org>
51455
51456         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
51457         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
51458         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
51459         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
51460         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
51461         * modules/unistr/u8-mbtouc-unsafe: Renamed from
51462         modules/unistr/u8-mbtouc.
51463         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
51464         * lib/unistr.h: Update.
51465         * lib/striconveh.c: Update.
51466         * modules/striconveh: Update.
51467         * lib/linebreak.c: Update.
51468         * modules/linebreak: Update.
51469         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
51470         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
51471         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
51472         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
51473         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
51474         * lib/unistr.h: Update.
51475         * lib/striconveh.c: Update.
51476         * modules/striconveh: Update.
51477         * lib/unistr/u8-to-u16.c: Update.
51478         * modules/unistr/u8-to-u16: Update.
51479         * lib/unistr/u8-to-u32.c: Update.
51480         * modules/unistr/u8-to-u32: Update.
51481
51482 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51483
51484         Sync from Libtool.
51485         * lib/argz.c: Do not include strings.h nor memory.h, include
51486         string.h unconditionally.  Patch by Simon Josefsson.
51487
51488 2007-01-27  Bruno Haible  <bruno@clisp.org>
51489
51490         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
51491         from gl_HEADER_STRING_H_BODY.
51492         (gl_HEADER_STRING_H_BODY): Require it.
51493         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
51494         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
51495         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
51496         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
51497         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
51498         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
51499         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
51500         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
51501         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
51502         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
51503         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
51504         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
51505         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
51506         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
51507         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
51508
51509 2007-01-27  Bruno Haible  <bruno@clisp.org>
51510
51511         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
51512         check_PROGRAMS into noinst_PROGRAMS.
51513         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
51514         check_PROGRAMS in this case.
51515         (func_import): Set for_test to false.
51516         (func_create_testdir): Set for_test to true.
51517
51518 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
51519             Bruno Haible  <bruno@clisp.org>
51520
51521         * modules/strcasestr (Files): Remove lib/strcasestr.h.
51522         (Depends-on): Add string.
51523         (Includes): Use <string.h> instead of strcasestr.h.
51524         * modules/string (Makefile.am): Also substitute the value of
51525         REPLACE_STRCASESTR.
51526         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
51527         assume strcasestr is declared in <string.h> not <strings.h>. Also
51528         set REPLACE_STRCASESTR.
51529         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
51530         REPLACE_STRCASESTR.
51531         * lib/strcasestr.h: Remove file.
51532         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
51533         * lib/string_.h (strcasestr): New declaration.
51534
51535 2007-01-27  Bruno Haible  <bruno@clisp.org>
51536
51537         * lib/string_.h: Use 'extern'.
51538
51539 2007-01-27  Jim Meyering  <jim@meyering.net>
51540
51541         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
51542         of set-but-not-used local, "q".
51543
51544         * lib/mempcpy.c: Include <config.h> before <string.h>.
51545         This fixes a compilation error on HP-UX, due to the system's
51546         "restrict"-using mempcpy prototype.
51547
51548 2007-01-26  Bruno Haible  <bruno@clisp.org>
51549
51550         Small optimization.
51551         * lib/javacomp.c: Include c-strstr.h.
51552          (is_envjavac_gcj): Use c_strstr instead of strstr.
51553         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
51554
51555 2007-01-26  Bruno Haible  <bruno@clisp.org>
51556
51557         * MODULES.html.sh (Unicode string functions): Add the new modules.
51558
51559         * modules/uniconv/u32-strconv-to-locale: New file.
51560         * lib/uniconv/u32-strconv-to-locale.c: New file.
51561
51562         * modules/uniconv/u16-strconv-to-locale: New file.
51563         * lib/uniconv/u16-strconv-to-locale.c: New file.
51564
51565         * modules/uniconv/u8-strconv-to-locale: New file.
51566         * lib/uniconv/u8-strconv-to-locale.c: New file.
51567
51568         * modules/uniconv/u32-strconv-from-locale: New file.
51569         * lib/uniconv/u32-strconv-from-locale.c: New file.
51570
51571         * modules/uniconv/u16-strconv-from-locale: New file.
51572         * lib/uniconv/u16-strconv-from-locale.c: New file.
51573
51574         * modules/uniconv/u8-strconv-from-locale: New file.
51575         * lib/uniconv/u8-strconv-from-locale.c: New file.
51576
51577         * modules/uniconv/u32-strconv-to-enc: New file.
51578         * lib/uniconv/u32-strconv-to-enc.c: New file.
51579         * modules/uniconv/u32-strconv-to-enc-tests: New file.
51580         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
51581
51582         * modules/uniconv/u16-strconv-to-enc: New file.
51583         * lib/uniconv/u16-strconv-to-enc.c: New file.
51584         * lib/uniconv/u-strconv-to-enc.h: New file.
51585         * modules/uniconv/u16-strconv-to-enc-tests: New file.
51586         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
51587
51588         * modules/uniconv/u8-strconv-to-enc: New file.
51589         * lib/uniconv/u8-strconv-to-enc.c: New file.
51590         * modules/uniconv/u8-strconv-to-enc-tests: New file.
51591         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
51592
51593         * modules/uniconv/u32-strconv-from-enc: New file.
51594         * lib/uniconv/u32-strconv-from-enc.c: New file.
51595         * modules/uniconv/u32-strconv-from-enc-tests: New file.
51596         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
51597
51598         * modules/uniconv/u16-strconv-from-enc: New file.
51599         * lib/uniconv/u16-strconv-from-enc.c: New file.
51600         * modules/uniconv/u16-strconv-from-enc-tests: New file.
51601         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
51602
51603         * modules/uniconv/u8-strconv-from-enc: New file.
51604         * lib/uniconv/u8-strconv-from-enc.c: New file.
51605         * lib/uniconv/u-strconv-from-enc.h: New file.
51606         * modules/uniconv/u8-strconv-from-enc-tests: New file.
51607         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
51608
51609         * modules/uniconv/u32-conv-from-enc: New file.
51610         * lib/uniconv/u32-conv-from-enc.c: New file.
51611         * modules/uniconv/u32-conv-from-enc-tests: New file.
51612         * tests/uniconv/test-u32-conv-from-enc.c: New file.
51613
51614         * modules/uniconv/u16-conv-from-enc: New file.
51615         * lib/uniconv/u16-conv-from-enc.c: New file.
51616         * lib/uniconv/u-conv-from-enc.h: New file.
51617         * modules/uniconv/u16-conv-from-enc-tests: New file.
51618         * tests/uniconv/test-u16-conv-from-enc.c: New file.
51619
51620         * modules/uniconv/u8-conv-from-enc: New file.
51621         * lib/uniconv/u8-conv-from-enc.c: New file.
51622         * modules/uniconv/u8-conv-from-enc-tests: New file.
51623         * tests/uniconv/test-u8-conv-from-enc.c: New file.
51624
51625         * modules/uniconv/base: New file.
51626         * lib/uniconv.h: New file.
51627
51628 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
51629
51630         * doc/gnulib-tool.texi (Initial import): Update to match current
51631         behavior with strdup module.
51632         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
51633         * lib/memmem.h: Remove; all uses removed.  This is now done
51634         by <string.h>.
51635         * lib/mempcpy.h: Likewise.
51636         * lib/memrchr.h: Likewise.
51637         * lib/stpcpy.h: Likewise.
51638         * lib/stpncpy.h: Likewise.
51639         * lib/strcase.h: Likewise.
51640         * lib/strchrnul.h: Likewise.
51641         * lib/strdup.h: Likewise.
51642         * lib/strndup.h: Likewise.
51643         * lib/strnlen.h: Likewise.
51644         * lib/strpbrk.h: Likewise.
51645         * lib/strsep.h: Likewise.
51646         * lib/strstr.h: Likewise.
51647         * lib/strtok_r.h: Likewise.
51648         * lib/string_.h: New file.
51649         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
51650         Rely on <string.h> instead.
51651         * lib/canon-host.c: Likewise.
51652         * lib/chdir-long.c: Likewise.
51653         * lib/concatpath.c: Likewise.
51654         * lib/exclude.c: Likewise.
51655         * lib/fchdir.c: Likewise.
51656         * lib/getaddrinfo.c: Likewise.
51657         * lib/getcwd.c: Likewise.
51658         * lib/getsubopt.c: Likewise.
51659         * lib/glob.c: Likewise.
51660         * lib/hard-locale.c: Likewise.
51661         * lib/iconvme.c: Likewise.
51662         * lib/javacomp.c: Likewise.
51663         * lib/mempcpy.c: Likewise.
51664         * lib/memrchr.c: Likewise.
51665         * lib/regex_internal.h: Likewise.
51666         * lib/stpncpy.c: Likewise.
51667         * lib/strcasecmp.c: Likewise.
51668         * lib/strchrnul.c: Likewise.
51669         * lib/strdup.c: Likewise.
51670         * lib/striconv.c: Likewise.
51671         * lib/striconveh.c: Likewise.
51672         * lib/striconveha.c: Likewise.
51673         * lib/strncasecmp.c: Likewise.
51674         * lib/strndup.c: Likewise.
51675         * lib/strnlen.c: Likewise.
51676         * lib/strsep.c: Likewise.
51677         * lib/strstr.c: Likewise.
51678         * lib/strtok_r.c: Likewise.
51679         * lib/userspec.c: Likewise.
51680         * lib/w32spawn.h: Likewise.
51681         * lib/xstrndup.c: Likewise.
51682         * lib/mountlist.c (strstr): Remove decl.
51683         * m4/string_h.m4: New file.
51684         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
51685         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
51686         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
51687         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
51688         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
51689         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
51690         Set REPLACE_STRCASECMP if necessary.
51691         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
51692         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
51693         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
51694         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
51695         HAVE_DECL_STRDUP if necessary.
51696         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
51697         since gl_FUNC_STRNDUP does that now.
51698         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
51699         Check for decl here...
51700         (gl_PREREQ_STRNLEN): ... not here.
51701         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
51702         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
51703         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
51704         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
51705         necessary.
51706         * modules/string: New file.
51707         * modules/memmem (Files): Remove special-purpose include file.
51708         (Depends-on): Add string.
51709         (Include): Include <string.h>, not the removed file.
51710         * modules/mempcpy: Likewise.
51711         * modules/memrchr: Likewise.
51712         * modules/stpcpy: Likewise.
51713         * modules/stpncpy: Likewise.
51714         * modules/strcase: Likewise.
51715         * modules/strchrnul: Likewise.
51716         * modules/strdup: Likewise.
51717         * modules/strndup: Likewise.
51718         * modules/strnlen: Likewise.
51719         * modules/strpbrk: Likewise.
51720         * modules/strsep: Likewise.
51721         * modules/strstr: Likewise.
51722         * modules/strtok_r: Likewise.
51723         * tests/test-dirname.c: Don't include "strdup.h", since
51724         <string.h> now suffices.
51725         * tests/test-memmem.c: Don't include "memmem.h", since
51726         <string.h> now suffices.
51727
51728 2007-01-25  Bruno Haible  <bruno@clisp.org>
51729
51730         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
51731         *resultp is 0.
51732
51733         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
51734         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
51735         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
51736         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
51737
51738         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
51739         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
51740         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
51741         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
51742         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
51743         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
51744
51745 2007-01-24  Bruno Haible  <bruno@clisp.org>
51746
51747         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
51748         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
51749         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
51750         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
51751         gl_FUNC_FTS_CORE.
51752         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
51753         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
51754         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
51755         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
51756         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
51757         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
51758         gl_FUNC_FCHOWNAT.
51759         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
51760         gl_FUNC_STRFTIME.
51761         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
51762         Reported by Ralf Wildenhues.
51763
51764 2007-01-24  Bruno Haible  <bruno@clisp.org>
51765
51766         Drop AC_REQUIRE calls that are redundant with the module dependencies.
51767         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
51768         gl_GETADDRINFO.
51769         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
51770         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
51771         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
51772
51773 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
51774
51775         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
51776         Don't use 'exit'; just return from 'main'.
51777         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
51778
51779         * lib/fnmatch_.h: Readjust white space and comments to match
51780         glibc, to avoid spurious diffs.
51781
51782 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
51783
51784         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
51785         2004-12-01 change by Jakub Jelinek, since this code won't compile
51786         if !LIBC.  Problem reported by Bob Proulx.
51787
51788 2007-01-23  Bruno Haible  <bruno@clisp.org>
51789
51790         * lib/striconveh.c: Include c-strcaseeq.h.
51791         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
51792         * modules/striconveh (Depends-on): Add c-strcaseeq.
51793
51794 2007-01-23  Bruno Haible  <bruno@clisp.org>
51795
51796         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
51797
51798         * modules/c-strcaseeq: New file.
51799         * lib/c-strcaseeq.h: New file.
51800
51801         * modules/streq: New file.
51802         * lib/streq.h: New file.
51803
51804 2007-01-23  Bruno Haible  <bruno@clisp.org>
51805
51806         * modules/striconveha-tests: New file.
51807         * tests/test-striconveha.c: New file.
51808
51809         * lib/striconveha.h: Include <stdbool.h>.
51810         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
51811         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
51812         (mem_iconveha_notranslit): Renamed from mem_iconveha.
51813         (mem_iconveha): New function.
51814         (str_iconveha_notranslit): Renamed from str_iconveha.
51815         (str_iconveha): New function.
51816         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
51817         c-strcase.
51818
51819 2007-01-23  Bruno Haible  <bruno@clisp.org>
51820
51821         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
51822         encodings without forgiving before trying any encoding with handler.
51823         (str_iconveha): Try all encodings without forgiving before trying any
51824         encoding with handler.
51825
51826 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
51827
51828         Import the following changes from libc.
51829
51830         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
51831
51832         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
51833
51834         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
51835
51836         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
51837         normal_bracket label.
51838
51839         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
51840
51841         [BZ #361]
51842         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
51843         to normal_bracket after fetching the next character.
51844
51845 2007-01-22  Bruno Haible  <bruno@clisp.org>
51846
51847         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
51848         argument.
51849         * lib/striconveh.c (iconv_carefully_1): New function.
51850         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
51851         argument.
51852         (str_cd_iconveh): Update.
51853         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
51854         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
51855         * tests/test-striconveh.c (MAGIC): New macro.
51856         (new_offsets): New function.
51857         (main): Test call with and without offsets.
51858
51859 2007-01-22  Bruno Haible  <bruno@clisp.org>
51860
51861         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
51862         * modules/sys_select (Makefile.am): Likewise.
51863         * modules/sys_socket (Makefile.am): Likewise.
51864         * modules/sys_time (Makefile.am): Likewise.
51865
51866 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
51867
51868         * modules/gettimeofday (License): Change from GPL to LGPL, since
51869         gettimeofday is a library function.
51870
51871 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51872
51873         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
51874
51875 2007-01-21  Bruno Haible  <bruno@clisp.org>
51876
51877         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
51878
51879 2007-01-21  Bruno Haible  <bruno@clisp.org>
51880
51881         * modules/striconveha: New file.
51882         * lib/striconveha.h: New file.
51883         * lib/striconveha.c: New file.
51884         * MODULES.html.sh (Internationalization functions): Add striconveha.
51885         * lib/striconv.c (str_iconv): Optimize the case of an empty input
51886         string.
51887         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
51888
51889 2007-01-21  Bruno Haible  <bruno@clisp.org>
51890
51891         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
51892         * lib/striconveh.c (str_iconveh): Likewise.
51893
51894 2007-01-21  Bruno Haible  <bruno@clisp.org>
51895
51896         * lib/striconveh.h (mem_iconveh): New declaration.
51897         * lib/striconveh.c (mem_iconveh): New function.
51898         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
51899
51900 2007-01-21  Bruno Haible  <bruno@clisp.org>
51901
51902         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
51903
51904         * lib/striconveh.h (mem_cd_iconveh): Change specification.
51905         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
51906         original result buffer.
51907         (str_cd_iconveh): Update.
51908         * tests/test-striconveh.c (main): Update.
51909
51910         * lib/striconv.h (mem_cd_iconv): Change specification.
51911         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
51912         result buffer.
51913         (str_cd_iconv): Update.
51914         * tests/test-striconv.c (main): Update.
51915
51916 2007-01-21  Bruno Haible  <bruno@clisp.org>
51917
51918         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
51919
51920 2007-01-20  Jim Meyering  <jim@meyering.net>
51921
51922         * lib/userspec.c (parse_with_separator): If a user or group string
51923         starts with "+", skip the corresponding name-to-ID look-up, since
51924         such a look-up must fail: user and group names may not include "+".
51925
51926 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
51927
51928         * lib/poll.c: Include sys/time.h and time.h unconditionally,
51929         since we now assume the sys_time module.
51930         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
51931         check for sys/time.h; no longer needed.
51932         * modules/poll (Depends-on): Depend on sys_time.
51933
51934 2007-01-18  Bruno Haible  <bruno@clisp.org>
51935
51936         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
51937         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
51938
51939         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
51940         gettimeofday.
51941
51942         * tests/test-gettimeofday.c: Include <time.h>.
51943         (dummy): Remove variable.
51944
51945         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
51946         gl_HEADER_SYS_TIME_H.
51947         (gl_HEADER_SYS_TIME_H): New macro.
51948
51949         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
51950         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
51951         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
51952         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
51953         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
51954         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
51955         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
51956         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
51957         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
51958         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
51959         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
51960
51961         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
51962         last change; it caused a compilation error when cross-compiling to
51963         Cygwin.
51964
51965 2007-01-18  Jim Meyering  <jim@meyering.net>
51966
51967         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
51968         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
51969         than the race-prone "test -d sys || mkdir sys".
51970         (configure.ac): Use AC_PROG_MKDIR_P.
51971         * modules/sys_select: Likewise.
51972         * modules/sys_socket: Likewise.
51973         * modules/sys_time: Likewise.
51974
51975 2007-01-18  Eric Blake  <ebb9@byu.net>
51976
51977         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
51978         replace gettimeofday.
51979         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
51980         name, to avoid infinite recursion.
51981
51982 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
51983
51984         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
51985         module sys_time.
51986         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
51987         assume timespec.h defines struct timeval.
51988         * lib/settime.c: Likewise.
51989         * lib/utimens.c: Likewise.
51990         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
51991         since we now assume the gettimeofday module.
51992         * lib/tempname.c (__gen_tempname): Likewise.
51993         * lib/gettimeofday.h: Remove.
51994         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
51995         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
51996         Include <time.h>, for 'time()'.
51997         (localtime_buffer_addr): Also use this workaround if
51998         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
51999         to simplify the uses.  All uses changed.
52000         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
52001         that #undef is inside {}, and 'const' follows type name consistently.
52002         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
52003         (gettimeofday): Do not use the maximum possible value for
52004         tv->tv_usec, since that might break usages other than ls.c.
52005         Instead, we'll leave ls.c alone.  This undoes today's patch
52006         by Bruno.  Add a compile-time warning for 1s-clock resolution;
52007         we've never observed the problem but might as well keep the
52008         canary.
52009         * lib/nanosleep.c: Include timespec.h first, for interface check.
52010         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
52011         now assume the sys_time module.
52012         * lib/tempname.c: Likewise.
52013         * lib/timespec.h: Likewise.
52014         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
52015         needed.
52016         * lib/strftime.c: Likewise.
52017         * lib/timespec.h: Likewise.
52018         * lib/posixtm.c: Include posixtm.h first, for interface check.
52019         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
52020         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
52021         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
52022         * lib/sys_time_.h: New file.
52023         * lib/timespec.h (struct timespec): Use long int, not long.
52024         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
52025         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
52026         Remove obsolescent call to AC_HEADER_TIME.
52027         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
52028         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
52029         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
52030         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
52031         Likewise.
52032         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
52033         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
52034         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
52035         into the sys_time module.  Check for gettimeofday just once.
52036         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
52037         for gettimeofday signature to just check the signature.  Merely
52038         compile it, since linking doesn't test signature.  Improve test for
52039         whether gettimeofday.o is actually needed.
52040         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
52041         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
52042         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
52043         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
52044         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
52045         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
52046         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
52047         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
52048         than worrying about sys/time.h.
52049         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
52050         Don't bother worrying about TIME_WITH_SYS_TIME.
52051         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
52052         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
52053         * m4/sys_time_h.m4: New file.
52054         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
52055         Don't include sys/time.h.  Return from main rather than exiting.
52056         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
52057         all uses changed.
52058         * modules/gethrxtime (Depends-on): Add sys_time.
52059         * modules/gettime (Depends-on): Likewise.
52060         * modules/gettimeofday (Depends-on): Likewise.
52061         * modules/nanosleep (Depends-on): Likewise.
52062         * modules/settime (Depends-on): Likewise.
52063         * modules/tempname (Depends-on): Likewise.
52064         * modules/utimens (Depends-on): Likewise.
52065         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
52066         (Include:) Change back to <sys/time.h>.
52067         (Maintainer:) Add self.
52068         * modules/sys_time: New file.
52069         * modules/tempname (Depends-on): Add gettimeofday.
52070         * tests/test-gettimeofday.c: Include <sys/time.h>
52071         rather than gettimeofday.h.
52072
52073 2007-01-17  Bruno Haible  <bruno@clisp.org>
52074
52075         * gnulib-tool (func_get_license): Revert last patch. Instead, let
52076         the license default to GPL.
52077         (func_create_testdir): Don't complain if a module is LGPL and its
52078         tests module depends on GPLed modules.
52079
52080 2007-01-17  Bruno Haible  <bruno@clisp.org>
52081
52082         * lib/gettimeofday.c (gettimeofday): Add code for the case
52083         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
52084         maximum possible value for tv->tv_usec, rather than the minimum one.
52085
52086 2005-10-08  Martin Lambers  <marlam@marlam.de>
52087 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
52088 2007-01-16  Bruno Haible  <bruno@clisp.org>
52089
52090         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
52091         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
52092         gl_FUNC_GETTIMEOFDAY.
52093         (Include): Add gettimeofday.h.
52094         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
52095         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
52096         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
52097         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
52098         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
52099         * lib/gettimeofday.h: New file.
52100         * lib/gettimeofday.c: Include <sys/timeb.h>.
52101         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
52102         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
52103         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
52104         fall back on time().
52105
52106         * tests/test-gettimeofday.c: New file.
52107         * modules/gettimeofday-tests: New file.
52108
52109 2007-01-16  Eric Blake  <ebb9@byu.net>
52110
52111         * modules/fnmatch (Depends-on): Depend on wchar.
52112         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
52113         * m4/fnmatch.m4: Likewise.
52114         * modules/mbchar (Makefile.am): Assume <wchar.h>.
52115         * m4/mbchar.m4: Likewise.
52116         * modules/mbswidth (Depends-on): Depend on wchar.
52117         * lib/mbswidth.c: Assume <wchar.h>.
52118         * m4/mbswidth.m4: Likewise.
52119         * modules/quotearg (Depends-on): Depend on wchar.
52120         * lib/quotearg.c: Assume <wchar.h>.
52121         * m4/quotearg.m4: Likewise.
52122         * modules/regex (Depends-on): Depend on wchar.
52123         * lib/regex_internal.h: Assume <wchar.h>.
52124         * m4/regex.m4: Likewise.
52125         * modules/stdint (Depends-on): Depend on wchar.
52126         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
52127         * m4/stdint.m4: Likewise.
52128         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
52129         * modules/strftime (Depends-on): Depend on wchar.
52130         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
52131         * modules/strtol (Depends-on): Depend on wchar.
52132         * lib/strtol.c: Assume <wchar.h>.
52133         * modules/wcwidth (Depends-on): Depend on wchar.
52134         * lib/wcwidth.h: Assume <wchar.h>.
52135         * m4/wcwidth.m4: Likewise.
52136
52137 2007-01-16  Bruno Haible  <bruno@clisp.org>
52138
52139         * modules/csharpexec-script: New, created from...
52140         * modules/csharpexec: ... this.
52141
52142 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
52143
52144         * modules/javaexec-script: New, created from...
52145         * modules/javaexec: ... this.
52146
52147 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52148
52149         * modules/poll (Dependencies): Add sys_select.
52150
52151 2007-01-15  Jim Meyering  <jim@meyering.net>
52152
52153         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
52154         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
52155         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
52156         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
52157
52158 2007-01-15  Bruno Haible  <bruno@clisp.org>
52159
52160         * modules/striconveh: New file.
52161         * lib/striconveh.h: New file.
52162         * lib/striconveh.c: New file.
52163         * MODULES.html.sh (Internationalization functions): Add striconveh.
52164
52165         * modules/striconveh-tests: New file.
52166         * tests/test-striconveh.c: New file.
52167
52168 2007-01-15  Bruno Haible  <bruno@clisp.org>
52169
52170         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
52171         not from GNU libiconv or GNU libc.
52172
52173 2007-01-15  Bruno Haible  <bruno@clisp.org>
52174
52175         * doc/gnulib-intro.texi (Copyright): Explain the different license
52176         terms for module descriptions, autoconf macros, tests, documentation.
52177
52178 2007-01-14  Bruno Haible  <bruno@clisp.org>
52179
52180         * modules/striconv-tests: New file.
52181         * tests/test-striconv.c: New file.
52182
52183 2007-01-14  Bruno Haible  <bruno@clisp.org>
52184
52185         * modules/iconv-tests: New file.
52186         * tests/test-iconv.c: New file.
52187
52188 2007-01-14  Bruno Haible  <bruno@clisp.org>
52189
52190         * gnulib-tool (func_get_license): For test modules, use the license of
52191         the main module.
52192
52193 2007-01-14  Bruno Haible  <bruno@clisp.org>
52194
52195         * modules/iconv (Include): Clarify that <iconv.h> can only be included
52196         if iconv is found to exist.
52197
52198 2007-01-14  Bruno Haible  <bruno@clisp.org>
52199
52200         * modules/c-ctype-tests: New file.
52201         * tests/test-c-ctype.c: New file.
52202
52203 2007-01-14  Bruno Haible  <bruno@clisp.org>
52204
52205         * modules/binary-io-tests: New file.
52206         * tests/test-binary-io.sh: New file.
52207         * tests/test-binary-io.c: New file.
52208
52209 2007-01-14  Bruno Haible  <bruno@clisp.org>
52210
52211         * modules/array-oset-tests: New file.
52212         * tests/test-array_oset.c: New file.
52213
52214 2007-01-14  Bruno Haible  <bruno@clisp.org>
52215
52216         * modules/array-list-tests: New file.
52217         * tests/test-array_list.c: New file.
52218
52219 2007-01-14  Bruno Haible  <bruno@clisp.org>
52220
52221         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
52222         and make.
52223         Reported by Simon Josefsson in
52224         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
52225
52226 2007-01-14  Bruno Haible  <bruno@clisp.org>
52227
52228         * modules/allocsa-tests: New file.
52229         * tests/test-allocsa.c: New file.
52230
52231 2007-01-14  Bruno Haible  <bruno@clisp.org>
52232
52233         * modules/fchdir (Depends-on): Add absolute-header.
52234         * modules/unistd (Depends-on): Likewise.
52235
52236 2006-12-30  Bruno Haible  <bruno@clisp.org>
52237
52238         * modules/fchdir: New file.
52239         * modules/unistd (Files): Add lib/unistd_.h.
52240         (Makefile.am): Generate unistd.h from unistd_.h.
52241         * lib/fchdir.c: New file.
52242         * lib/dirent_.h: New file.
52243         * lib/unistd_.h: New file.
52244         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
52245         * m4/fchdir.m4: New file.
52246         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
52247         (gl_HEADER_UNISTD): Invoke it.
52248         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
52249         function.
52250         * lib/backupfile.c (opendir, closedir): Undefine.
52251         * lib/chown.c (open, close): Undefine.
52252         * lib/clean-temp.c (open, close): Undefine.
52253         * lib/copy-file.c (open, close): Undefine.
52254         * lib/execute.c (open, close): Undefine.
52255         * lib/fsusage.c (open, close): Undefine.
52256         * lib/gc-gnulib.c (open, close): Undefine.
52257         * lib/getcwd.c (opendir, closedir): Undefine.
52258         * lib/glob.c (opendir, closedir): Undefine.
52259         * lib/javacomp.c (open, close): Undefine.
52260         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
52261         * lib/openat-proc.c (open, close): Undefine.
52262         * lib/pagealign_alloc.c (open, close): Undefine.
52263         * lib/pipe.c (open, close): Undefine.
52264         * lib/progreloc.c (open, close): Undefine.
52265         * lib/savedir.c (opendir, closedir): Undefine.
52266         * lib/utime.c (open, close): Undefine.
52267         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
52268
52269 2007-01-10  Bruno Haible  <bruno@clisp.org>
52270
52271         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
52272
52273 2007-01-12  Eric Blake  <ebb9@byu.net>
52274
52275         Provide a robust <wchar.h>.  Further simplifications are now
52276         possible in other modules, but not included here.
52277         * modules/wchar: New module.
52278         * m4/wchar.m4: New file.
52279         * lib/wchar_.h: Likewise.
52280         * modules/mbchar (Depends-on): Depend on wchar, as the first use
52281         of the new module.
52282         * MODULES.html.sh (Extended multibyte and wide character utilities):
52283         New section.
52284
52285 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
52286
52287         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
52288         to a reasonable default for memory allocation.
52289         (xreadlink): Don't allocate a huge buffer, to work around a buggy
52290         file system that reports garbage st_size values for symlinks.
52291         Problem reported by Liyang Hu.
52292
52293 2007-01-11  Simon Josefsson  <simon@josefsson.org>
52294
52295         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
52296         Emacs .#* auto-save files).
52297
52298 2007-01-11  Bruno Haible  <bruno@clisp.org>
52299
52300         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
52301         directory.
52302
52303 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
52304
52305         Use @...@ consistently in lib/wctype_.h.
52306         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
52307         on it being set to 1 or 0.
52308         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
52309         go back to AC_SUBSTing it.
52310         * modules/wctype (Makefile.am): Undo previous change.
52311
52312 2007-01-10  Eric Blake  <ebb9@byu.net>
52313
52314         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
52315         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
52316         * modules/wctype (Makefile.am): Likewise.
52317         Reported by Chris McGuire.
52318
52319 2007-01-10  Jim Meyering  <jim@meyering.net>
52320
52321         fts.c: a small readability/maintainability improvement
52322         * lib/fts.c (fts_read): Make this code slightly more readable and
52323         maintainable by hoisting the "sp->fts_cur = p" assignments to
52324         immediately follow the statements that set P.  Derived from
52325         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
52326
52327 2007-01-10  Eric Blake  <ebb9@byu.net>
52328
52329         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
52330         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
52331         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
52332         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
52333         Reported by Chris McGuire.
52334
52335 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52336
52337         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
52338         in sed script.
52339
52340 2007-01-09  Bruno Haible  <bruno@clisp.org>
52341
52342         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
52343         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
52344         variables.
52345         (func_module): Use them.
52346
52347 2007-01-09  Bruno Haible  <bruno@clisp.org>
52348
52349         * modules/unistr/base: New file.
52350         * lib/unistr.h: New file.
52351
52352         * modules/unistr/u8-to-u16: New file.
52353         * lib/unistr/u8-to-u16.c: New file.
52354
52355         * modules/unistr/u8-to-u32: New file.
52356         * lib/unistr/u8-to-u32.c: New file.
52357
52358         * modules/unistr/u16-to-u8: New file.
52359         * lib/unistr/u16-to-u8.c: New file.
52360
52361         * modules/unistr/u16-to-u32: New file.
52362         * lib/unistr/u16-to-u32.c: New file.
52363
52364         * modules/unistr/u32-to-u8: New file.
52365         * lib/unistr/u32-to-u8.c: New file.
52366
52367         * modules/unistr/u32-to-u16: New file.
52368         * lib/unistr/u32-to-u16.c: New file.
52369
52370         * modules/unistr/u8-check: New file.
52371         * modules/unistr/u16-check: New file.
52372         * modules/unistr/u32-check: New file.
52373         * lib/unistr/u8-check.c: New file.
52374         * lib/unistr/u16-check.c: New file.
52375         * lib/unistr/u32-check.c: New file.
52376
52377         * modules/unistr/u8-chr: New file.
52378         * modules/unistr/u16-chr: New file.
52379         * modules/unistr/u32-chr: New file.
52380         * lib/unistr/u8-chr.c: New file.
52381         * lib/unistr/u16-chr.c: New file.
52382         * lib/unistr/u32-chr.c: New file.
52383
52384         * modules/unistr/u8-cmp: New file.
52385         * modules/unistr/u16-cmp: New file.
52386         * modules/unistr/u32-cmp: New file.
52387         * lib/unistr/u8-cmp.c: New file.
52388         * lib/unistr/u16-cmp.c: New file.
52389         * lib/unistr/u32-cmp.c: New file.
52390
52391         * modules/unistr/u8-cpy: New file.
52392         * modules/unistr/u16-cpy: New file.
52393         * modules/unistr/u32-cpy: New file.
52394         * lib/unistr/u8-cpy.c: New file.
52395         * lib/unistr/u16-cpy.c: New file.
52396         * lib/unistr/u32-cpy.c: New file.
52397         * lib/unistr/u-cpy.h: New file.
52398
52399         * modules/unistr/u8-cpy-alloc: New file.
52400         * modules/unistr/u16-cpy-alloc: New file.
52401         * modules/unistr/u32-cpy-alloc: New file.
52402         * lib/unistr/u8-cpy-alloc.c: New file.
52403         * lib/unistr/u16-cpy-alloc.c: New file.
52404         * lib/unistr/u32-cpy-alloc.c: New file.
52405         * lib/unistr/u-cpy-alloc.h: New file.
52406
52407         * modules/unistr/u8-endswith: New file.
52408         * modules/unistr/u16-endswith: New file.
52409         * modules/unistr/u32-endswith: New file.
52410         * lib/unistr/u8-endswith.c: New file.
52411         * lib/unistr/u16-endswith.c: New file.
52412         * lib/unistr/u32-endswith.c: New file.
52413         * lib/unistr/u-endswith.h: New file.
52414
52415         * modules/unistr/u8-mblen: New file.
52416         * modules/unistr/u16-mblen: New file.
52417         * modules/unistr/u32-mblen: New file.
52418         * lib/unistr/u8-mblen.c: New file.
52419         * lib/unistr/u16-mblen.c: New file.
52420         * lib/unistr/u32-mblen.c: New file.
52421
52422         * modules/unistr/u8-mbtouc: New file.
52423         * modules/unistr/u16-mbtouc: New file.
52424         * modules/unistr/u32-mbtouc: New file.
52425         * lib/unistr/u8-mbtouc.c: New file.
52426         * lib/unistr/u16-mbtouc.c: New file.
52427         * lib/unistr/u32-mbtouc.c: New file.
52428
52429         * modules/unistr/u8-mbtouc-safe: New file.
52430         * modules/unistr/u16-mbtouc-safe: New file.
52431         * modules/unistr/u32-mbtouc-safe: New file.
52432         * lib/unistr/u8-mbtouc-safe.c: New file.
52433         * lib/unistr/u16-mbtouc-safe.c: New file.
52434         * lib/unistr/u32-mbtouc-safe.c: New file.
52435
52436         * modules/unistr/u8-move: New file.
52437         * modules/unistr/u16-move: New file.
52438         * modules/unistr/u32-move: New file.
52439         * lib/unistr/u8-move.c: New file.
52440         * lib/unistr/u16-move.c: New file.
52441         * lib/unistr/u32-move.c: New file.
52442         * lib/unistr/u-move.h: New file.
52443
52444         * modules/unistr/u8-next: New file.
52445         * modules/unistr/u16-next: New file.
52446         * modules/unistr/u32-next: New file.
52447         * lib/unistr/u8-next.c: New file.
52448         * lib/unistr/u16-next.c: New file.
52449         * lib/unistr/u32-next.c: New file.
52450
52451         * modules/unistr/u8-prev: New file.
52452         * modules/unistr/u16-prev: New file.
52453         * modules/unistr/u32-prev: New file.
52454         * lib/unistr/u8-prev.c: New file.
52455         * lib/unistr/u16-prev.c: New file.
52456         * lib/unistr/u32-prev.c: New file.
52457
52458         * modules/unistr/u8-set: New file.
52459         * modules/unistr/u16-set: New file.
52460         * modules/unistr/u32-set: New file.
52461         * lib/unistr/u8-set.c: New file.
52462         * lib/unistr/u16-set.c: New file.
52463         * lib/unistr/u32-set.c: New file.
52464         * lib/unistr/u-set.h: New file.
52465
52466         * modules/unistr/u8-startswith: New file.
52467         * modules/unistr/u16-startswith: New file.
52468         * modules/unistr/u32-startswith: New file.
52469         * lib/unistr/u8-startswith.c: New file.
52470         * lib/unistr/u16-startswith.c: New file.
52471         * lib/unistr/u32-startswith.c: New file.
52472         * lib/unistr/u-startswith.h: New file.
52473
52474         * modules/unistr/u8-stpcpy: New file.
52475         * modules/unistr/u16-stpcpy: New file.
52476         * modules/unistr/u32-stpcpy: New file.
52477         * lib/unistr/u8-stpcpy.c: New file.
52478         * lib/unistr/u16-stpcpy.c: New file.
52479         * lib/unistr/u32-stpcpy.c: New file.
52480         * lib/unistr/u-stpcpy.h: New file.
52481
52482         * modules/unistr/u8-stpncpy: New file.
52483         * modules/unistr/u16-stpncpy: New file.
52484         * modules/unistr/u32-stpncpy: New file.
52485         * lib/unistr/u8-stpncpy.c: New file.
52486         * lib/unistr/u16-stpncpy.c: New file.
52487         * lib/unistr/u32-stpncpy.c: New file.
52488         * lib/unistr/u-stpncpy.h: New file.
52489
52490         * modules/unistr/u8-strcat: New file.
52491         * modules/unistr/u16-strcat: New file.
52492         * modules/unistr/u32-strcat: New file.
52493         * lib/unistr/u8-strcat.c: New file.
52494         * lib/unistr/u16-strcat.c: New file.
52495         * lib/unistr/u32-strcat.c: New file.
52496         * lib/unistr/u-strcat.h: New file.
52497
52498         * modules/unistr/u8-strchr: New file.
52499         * modules/unistr/u16-strchr: New file.
52500         * modules/unistr/u32-strchr: New file.
52501         * lib/unistr/u8-strchr.c: New file.
52502         * lib/unistr/u16-strchr.c: New file.
52503         * lib/unistr/u32-strchr.c: New file.
52504
52505         * modules/unistr/u8-strcmp: New file.
52506         * modules/unistr/u16-strcmp: New file.
52507         * modules/unistr/u32-strcmp: New file.
52508         * lib/unistr/u8-strcmp.c: New file.
52509         * lib/unistr/u16-strcmp.c: New file.
52510         * lib/unistr/u32-strcmp.c: New file.
52511
52512         * modules/unistr/u8-strcpy: New file.
52513         * modules/unistr/u16-strcpy: New file.
52514         * modules/unistr/u32-strcpy: New file.
52515         * lib/unistr/u8-strcpy.c: New file.
52516         * lib/unistr/u16-strcpy.c: New file.
52517         * lib/unistr/u32-strcpy.c: New file.
52518         * lib/unistr/u-strcpy.h: New file.
52519
52520         * modules/unistr/u8-strcspn: New file.
52521         * modules/unistr/u16-strcspn: New file.
52522         * modules/unistr/u32-strcspn: New file.
52523         * lib/unistr/u8-strcspn.c: New file.
52524         * lib/unistr/u16-strcspn.c: New file.
52525         * lib/unistr/u32-strcspn.c: New file.
52526         * lib/unistr/u-strcspn.h: New file.
52527
52528         * modules/unistr/u8-strdup: New file.
52529         * modules/unistr/u16-strdup: New file.
52530         * modules/unistr/u32-strdup: New file.
52531         * lib/unistr/u8-strdup.c: New file.
52532         * lib/unistr/u16-strdup.c: New file.
52533         * lib/unistr/u32-strdup.c: New file.
52534         * lib/unistr/u-strdup.h: New file.
52535
52536         * modules/unistr/u8-strlen: New file.
52537         * modules/unistr/u16-strlen: New file.
52538         * modules/unistr/u32-strlen: New file.
52539         * lib/unistr/u8-strlen.c: New file.
52540         * lib/unistr/u16-strlen.c: New file.
52541         * lib/unistr/u32-strlen.c: New file.
52542         * lib/unistr/u-strlen.h: New file.
52543
52544         * modules/unistr/u8-strmblen: New file.
52545         * modules/unistr/u16-strmblen: New file.
52546         * modules/unistr/u32-strmblen: New file.
52547         * lib/unistr/u8-strmblen.c: New file.
52548         * lib/unistr/u16-strmblen.c: New file.
52549         * lib/unistr/u32-strmblen.c: New file.
52550
52551         * modules/unistr/u8-strmbtouc: New file.
52552         * modules/unistr/u16-strmbtouc: New file.
52553         * modules/unistr/u32-strmbtouc: New file.
52554         * lib/unistr/u8-strmbtouc.c: New file.
52555         * lib/unistr/u16-strmbtouc.c: New file.
52556         * lib/unistr/u32-strmbtouc.c: New file.
52557
52558         * modules/unistr/u8-strncat: New file.
52559         * modules/unistr/u16-strncat: New file.
52560         * modules/unistr/u32-strncat: New file.
52561         * lib/unistr/u8-strncat.c: New file.
52562         * lib/unistr/u16-strncat.c: New file.
52563         * lib/unistr/u32-strncat.c: New file.
52564         * lib/unistr/u-strncat.h: New file.
52565
52566         * modules/unistr/u8-strncmp: New file.
52567         * modules/unistr/u16-strncmp: New file.
52568         * modules/unistr/u32-strncmp: New file.
52569         * lib/unistr/u8-strncmp.c: New file.
52570         * lib/unistr/u16-strncmp.c: New file.
52571         * lib/unistr/u32-strncmp.c: New file.
52572
52573         * modules/unistr/u8-strncpy: New file.
52574         * modules/unistr/u16-strncpy: New file.
52575         * modules/unistr/u32-strncpy: New file.
52576         * lib/unistr/u8-strncpy.c: New file.
52577         * lib/unistr/u16-strncpy.c: New file.
52578         * lib/unistr/u32-strncpy.c: New file.
52579         * lib/unistr/u-strncpy.h: New file.
52580
52581         * modules/unistr/u8-strnlen: New file.
52582         * modules/unistr/u16-strnlen: New file.
52583         * modules/unistr/u32-strnlen: New file.
52584         * lib/unistr/u8-strnlen.c: New file.
52585         * lib/unistr/u16-strnlen.c: New file.
52586         * lib/unistr/u32-strnlen.c: New file.
52587         * lib/unistr/u-strnlen.h: New file.
52588
52589         * modules/unistr/u8-strpbrk: New file.
52590         * modules/unistr/u16-strpbrk: New file.
52591         * modules/unistr/u32-strpbrk: New file.
52592         * lib/unistr/u8-strpbrk.c: New file.
52593         * lib/unistr/u16-strpbrk.c: New file.
52594         * lib/unistr/u32-strpbrk.c: New file.
52595         * lib/unistr/u-strpbrk.h: New file.
52596
52597         * modules/unistr/u8-strrchr: New file.
52598         * modules/unistr/u16-strrchr: New file.
52599         * modules/unistr/u32-strrchr: New file.
52600         * lib/unistr/u8-strrchr.c: New file.
52601         * lib/unistr/u16-strrchr.c: New file.
52602         * lib/unistr/u32-strrchr.c: New file.
52603
52604         * modules/unistr/u8-strspn: New file.
52605         * modules/unistr/u16-strspn: New file.
52606         * modules/unistr/u32-strspn: New file.
52607         * lib/unistr/u8-strspn.c: New file.
52608         * lib/unistr/u16-strspn.c: New file.
52609         * lib/unistr/u32-strspn.c: New file.
52610         * lib/unistr/u-strspn.h: New file.
52611
52612         * modules/unistr/u8-strstr: New file.
52613         * modules/unistr/u16-strstr: New file.
52614         * modules/unistr/u32-strstr: New file.
52615         * lib/unistr/u8-strstr.c: New file.
52616         * lib/unistr/u16-strstr.c: New file.
52617         * lib/unistr/u32-strstr.c: New file.
52618         * lib/unistr/u-strstr.h: New file.
52619
52620         * modules/unistr/u8-strtok: New file.
52621         * modules/unistr/u16-strtok: New file.
52622         * modules/unistr/u32-strtok: New file.
52623         * lib/unistr/u8-strtok.c: New file.
52624         * lib/unistr/u16-strtok.c: New file.
52625         * lib/unistr/u32-strtok.c: New file.
52626         * lib/unistr/u-strtok.h: New file.
52627
52628         * modules/unistr/u8-uctomb: New file.
52629         * modules/unistr/u16-uctomb: New file.
52630         * modules/unistr/u32-uctomb: New file.
52631         * lib/unistr/u8-uctomb.c: New file.
52632         * lib/unistr/u16-uctomb.c: New file.
52633         * lib/unistr/u32-uctomb.c: New file.
52634
52635         * MODULES.html.sh (Unicode string functions): Add the new modules.
52636
52637 2007-01-08  Bruno Haible  <bruno@clisp.org>
52638
52639         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
52640         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
52641         subdirectories.
52642
52643 2007-01-08  Karl Berry  <karl@gnu.org>
52644
52645         * doc/error.texi: mention that main() fns must set program_name
52646         when progname is used.
52647
52648 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
52649
52650         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
52651         WCTYPE_H is empty, for the benefit of builds from non-distclean
52652         directories.  Problem reported by Eric Blake in
52653         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
52654
52655 2007-01-08  Bruno Haible  <bruno@clisp.org>
52656
52657         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
52658         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
52659         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
52660         PROVIDE_CANONICALIZE_FILENAME_MODE.
52661         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
52662
52663 2007-01-08  Bruno Haible  <bruno@clisp.org>
52664
52665         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
52666         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
52667         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
52668         * lib/fts.c: Likewise.
52669         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
52670
52671 2006-12-25  Bruno Haible  <bruno@clisp.org>
52672
52673         * modules/utf8-ucs4-safe: New file.
52674         * lib/utf8-ucs4-safe.h: New file.
52675         * lib/unistr/utf8-ucs4-safe.c: New file.
52676
52677         * modules/utf16-ucs4-safe: New file.
52678         * lib/utf16-ucs4-safe.h: New file.
52679         * lib/unistr/utf16-ucs4-safe.c: New file.
52680
52681         * MODULES.html.sh (Unicode string functions): Add the new modules.
52682
52683 2007-01-08  Bruno Haible  <bruno@clisp.org>
52684
52685         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
52686         (Depends-on): Add unitypes.
52687         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
52688         (u8_mbtouc_aux): Move out to separate file.
52689         (u8_mbtouc): Use ucs4_t, uint8_t types.
52690         * lib/unistr/utf8-ucs4.c: New file.
52691
52692         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
52693         (Depends-on): Add unitypes.
52694         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
52695         (u16_mbtouc_aux): Move out to separate file.
52696         (u16_mbtouc): Use ucs4_t, uint16_t types.
52697         * lib/unistr/utf16-ucs4.c: New file.
52698
52699         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
52700         (Depends-on): Add unitypes.
52701         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
52702         (u8_uctomb_aux): Move out to separate file.
52703         (u8_uctomb): Use ucs4_t, uint8_t types.
52704         * lib/unistr/ucs4-utf8.c: New file.
52705
52706         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
52707         (Depends-on): Add unitypes.
52708         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
52709         (u16_uctomb_aux): Move out to separate file.
52710         (u16_uctomb): Use ucs4_t, uint16_t types.
52711         * lib/unistr/ucs4-utf16.c: New file.
52712
52713 2006-12-25  Bruno Haible  <bruno@clisp.org>
52714
52715         * modules/unitypes: New file.
52716         * lib/unitypes.h: New file.
52717         * MODULES.html.sh (func_all_modules): New section "Unicode string
52718         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
52719         this section. Add unitypes.
52720
52721 2007-01-08  Bruno Haible  <bruno@clisp.org>
52722
52723         Avoid variable names that conflict with those from libtool.
52724         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
52725         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
52726         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
52727         library_names_spec to acl_library_names_spec, hardcode_* to
52728         acl_hardcode_*.
52729         Reported by Ralf Wildenhues.
52730
52731 2007-01-08  Bruno Haible  <bruno@clisp.org>
52732
52733         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
52734         definition.
52735         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
52736         definition.
52737         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
52738         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
52739         definition.
52740         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
52741         definition.
52742         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
52743         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
52744         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
52745         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
52746         definition.
52747         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
52748         definition.
52749         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
52750         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
52751         GC_USE_<algorithm>.
52752         * lib/gc-libgcrypt.c: Likewise.
52753         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
52754         * modules/gc-arctwo (configure.ac): Likewise.
52755         * modules/gc-des (configure.ac): Likewise.
52756         * modules/gc-hmac-md5 (configure.ac): Likewise.
52757         * modules/gc-hmac-sha1 (configure.ac): Likewise.
52758         * modules/gc-md2 (configure.ac): Likewise.
52759         * modules/gc-md4 (configure.ac): Likewise.
52760         * modules/gc-md5 (configure.ac): Likewise.
52761         * modules/gc-random (configure.ac): Likewise.
52762         * modules/gc-rijndael (configure.ac): Likewise.
52763         * modules/gc-sha1 (configure.ac): Likewise.
52764
52765 2007-01-08  Bruno Haible  <bruno@clisp.org>
52766
52767         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
52768         macro definition.
52769         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
52770         definition.
52771         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
52772         definition.
52773         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
52774         * modules/fcntl-safer (configure.ac): Likewise.
52775         * modules/fopen-safer (configure.ac): Likewise.
52776         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
52777         GNULIB_FWRITEERROR macro definition.
52778
52779 2007-01-08  Bruno Haible  <bruno@clisp.org>
52780
52781         * m4/gnulib-common.m4: New file.
52782         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
52783         (func_get_filelist): Add m4/gnulib-common.m4.
52784
52785 2007-01-08  Bruno Haible  <bruno@clisp.org>
52786
52787         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
52788         command.
52789
52790 2007-01-08  Jim Meyering  <jim@meyering.net>
52791
52792         Use a more robust test for a "can't happen" condition.
52793         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
52794         narrowed the st_size value.  Presuming the "can't happen" condition
52795         is true, that narrowing could conceivably convert an invalid st_size
52796         value into a valid one.  Instead, use a change based on Matthew
52797         Woehlke's original patch.
52798
52799         Slight readability improvement: use an assert-like macro
52800         in place of literal "abort ()" uses.
52801         * lib/fts.c (fts_assert): Define.
52802         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
52803         Use this macro instead of a bare 'abort'.
52804
52805 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
52806
52807         Don't worry about using IRIX 5.3's wctype.h broken definitions;
52808         simply work around them.
52809         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
52810         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
52811         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
52812         declaring.
52813         Don't bother to define as macros, since the standard doesn't require it.
52814         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
52815         longer worry about IRIX 5.3.
52816         (HAVE_WCTYPE_CTMP_BUG): Remove.
52817
52818 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
52819
52820         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
52821         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
52822         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
52823         Problems reported by Georg Schwarz for IRIX 5.3.
52824
52825         * gnulib-tool (autoconf_minversion): Take the maximum version number
52826         found, not the minimum.  Problem reported by James Youngman.
52827
52828 2007-01-03  Karl Berry  <karl@gnu.org>
52829
52830         * doc/error.texi: new file, explaining interaction with progname.
52831         * doc/gnulib.texi: include it.  Update copyright.
52832
52833 2007-01-03  Simon Josefsson  <simon@josefsson.org>
52834
52835         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
52836         AC_CANONICAL_HOST, to improve autobuild outputs.
52837
52838 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
52839             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
52840
52841         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
52842         sockets, server sockets, and other file descriptors.  Count errors
52843         to compute the return value.  Reorder the code a bit to be easier
52844         to follow.  Don't set event bits that were not requested (except
52845         POLLERR and POLLHUP).
52846
52847 2007-01-01  Bruno Haible  <bruno@clisp.org>
52848
52849         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
52850
52851 2007-01-03  Jim Meyering  <jim@meyering.net>
52852
52853         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
52854
52855 2007-01-02  Bruno Haible  <bruno@clisp.org>
52856
52857         * modules/settime (Include): Require timespec.h.
52858         * modules/nanosleep (Include): Likewise.
52859
52860 2007-01-01  Bruno Haible  <bruno@clisp.org>
52861
52862         * gnulib-tool (func_emit_copyright_notice): Bump year.
52863         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
52864
52865 2007-01-01  Bruno Haible  <bruno@clisp.org>
52866
52867         Improve support for OpenBSD.
52868         * build-aux/config.rpath (libname_spec): Export.
52869         (library_names_spec): New variable. Export.
52870         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
52871         library_names_spec from the config.rpath output. Locate shared library
52872         through the name pattern in library_names_spec.
52873
52874 2007-01-01  Eric Blake  <ebb9@byu.net>
52875
52876         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
52877
52878 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
52879
52880         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
52881         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
52882         assume the C locale, and avoid an "eval" that could cause trouble.
52883         Problem with SORT reported by Bob Proulx.
52884
52885         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
52886         Define.  Trivial patch from Henning Nielsen Lund, originally
52887         sent to bug-grep@gnu.org today.
52888
52889 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
52890
52891         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
52892         struct stat.  Problem reported by Henning Nielsen Lund.
52893         * lib/acl.c: Include acl.h first, to check interface.  Don't
52894         bother to include sys/types.h and sys/stat.h again.
52895
52896 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
52897
52898         Import the following change from libc; problem reported by
52899         Sven Verdoolaege.
52900
52901         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
52902
52903         [BZ #1373]
52904         * lib/argp.h: Remove __NTH for __argp_usage inline function.
52905
52906 2006-12-28  Jim Meyering  <jim@meyering.net>
52907
52908         * build-aux/announce-gen: Do not assume that the package
52909         builds any of tar.gz, tar.bz2, and .xdelta files.
52910         Suggestion from Simon Josefsson.
52911
52912 2006-12-28  Simon Josefsson  <simon@josefsson.org>
52913
52914         * modules/announce-gen: New file.
52915
52916 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
52917
52918         * lib/mbchar.h: Just include <wctype.h>; the wctype module
52919         handles its gotchas now.
52920         * lib/mbswidth.c: Likewise.
52921         * lib/wcwidth.h: Likewise.
52922         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
52923         and iswcntrl; the wctype module does this stuff now.
52924         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
52925         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
52926         * modules/mbchar (Depends-on): Add wctype.
52927         * modules/mbswidth (Depends-on): Likewise.
52928         * modules/wcwidth (Depends-on): Likewise.
52929
52930 2006-12-27  Eric Blake  <ebb9@byu.net>
52931
52932         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
52933         module uses more than what <wctype.h> is required to provide.
52934
52935 2006-12-26  Eric Blake  <ebb9@byu.net>
52936
52937         * gnulib-tool (sed_extract_prog): Avoid space-tab.
52938
52939 2006-12-26  Eric Blake  <ebb9@byu.net>
52940
52941         * modules/absolute-header: New module.
52942         * modules/fcntl (Depends-on): Depend on it.
52943         * modules/inttypes (Depends-on): Likewise.
52944         * modules/stdint (Depends-on): Likewise.
52945         * modules/sys_stat (Depends-on): Likewise.
52946         * modules/wctype (Depends-on): Likewise.
52947         * MODULES.html.sh (Support for building libraries and
52948         executables): Document it.
52949
52950 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
52951
52952         * gnulib-tool (SED): Remove, undoing previous change.
52953         The problem was that it broke coreutils on Solaris, because
52954         "sed --posix" leaked into a makefile.
52955         (sed): New alias, if 'alias' and GNU sed.
52956
52957 2006-12-24  Jim Meyering  <jim@meyering.net>
52958
52959         Work around an fchownat bug in glibc-2.4:
52960         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
52961         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
52962         in spite of the -P option.
52963         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
52964         New macros.
52965         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
52966         * modules/openat (Files): Add lib/fchownat.c.
52967         * lib/openat.c (fchownat): Don't define here.  Move to...
52968         * lib/fchownat.c: ...this new file.
52969
52970 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
52971
52972         Fix bug reported by Bruno Haible in
52973         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
52974         where quotearg.c didn't compile on Mac OS X 10.2 because it
52975         lacks <wchar.h> and wint_t.
52976         * lib/wctype_.h (__wctype_wint_t): New type.
52977         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
52978         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
52979         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
52980         Arg is now of type __wctype_wint_t, not wint_t.
52981         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
52982         substitute HAVE_WINT_T.
52983         * modules/wctype (Files): Add m4/wint_t.m4.
52984         (wctype.h): Substitute HAVE_WINT_T.
52985
52986 2006-12-23  Bruno Haible  <bruno@clisp.org>
52987
52988         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
52989
52990 2006-12-23  Bruno Haible  <bruno@clisp.org>
52991
52992         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
52993         S_ISLNK.
52994         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
52995         mingw.
52996
52997 2006-12-22  Bruno Haible  <bruno@clisp.org>
52998
52999         * lib/copy-file.c: Include acl.h.
53000         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
53001         Close the file descriptors only after being done with copy_acl.
53002         * modules/copy-file (Depends-on): Add acl.
53003
53004 2006-12-22  Bruno Haible  <bruno@clisp.org>
53005
53006         * gnulib-tool (SED): New variable.
53007         Use $SED instead of sed everywhere.
53008
53009 2006-12-22  Bruno Haible  <bruno@clisp.org>
53010
53011         * modules/no-c++: New file.
53012         * m4/no-c++.m4: New file.
53013         * MODULES.html.sh (Support for building libraries and executables):
53014         Add no-c++.
53015
53016 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
53017
53018         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
53019         Include <limits.h>, and use its INT_MAX to rewrite the
53020         j loop so that it does not overflow 'int'.  Problem reported by
53021         Ralf Wildenhues in
53022         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
53023         Play it safe by shifting left by 1 rather than multiplying by 2,
53024         as GCC is less likely to optimize this away when the value
53025         is signed (when it assumes overflow leads to undefined behavior).
53026         Also, don't assume time_t uses two's complement.
53027
53028 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
53029
53030         * MODULES.html.sh: New module wctype.
53031         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
53032         * lib/fnmatch.c: Don't bother to include <wchar.h> before
53033         <wctype.h>, since the new wctype module should fix this.
53034         * lib/quotearg.c: Include <wctype.h> unconditionally, since
53035         the wctype module should arrange for it.
53036         * lib/regex_internal.h: Likewise.
53037         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
53038         since the wctype module should handle this now.
53039         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
53040         * modules/fnmatch (Depends-on): Add wctype.
53041         * modules/quotearg (Depends-on): Likewise.
53042         * modules/regex (Depends-on): Likewise.
53043
53044 2006-12-19  Bruno Haible  <bruno@clisp.org>
53045
53046         * lib/strdup.h [C++]: Wrap definitions in extern "C".
53047         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
53048
53049 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53050
53051         * modules/savewd (Depends-on): Fix dependency on fcntl.
53052
53053 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
53054
53055         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
53056         conforms to C99, rather than relying on the user's environment
53057         setting of STDINT_H.
53058
53059 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
53060         and Eric Blake  <ebb9@byu.net>
53061
53062         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
53063         This is more consistent with the other defines here.
53064         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
53065         Port to z/OS.  Problem reported by Paul Gilmartin.
53066         Change local vars to use gl_ prefix rather than ac_.
53067         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
53068         with other defines.
53069         * modules/double-slash-root: New module.
53070         * modules/dirname (Files): Remove m4/double-slash-root.m4.
53071         (Depends-on): Add double-slash-root.
53072         * MODULES.html.sh (File system functions): Mention new module.
53073
53074 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
53075
53076         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
53077         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
53078         This is for the benefit of gzip, which doesn't do i18n.
53079
53080 2006-12-12  Jim Meyering  <jim@meyering.net>
53081
53082         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
53083         Reported by Andreas Schwab <schwab@suse.de>.
53084
53085 2006-12-12  Bruno Haible  <bruno@clisp.org>
53086
53087         Merge these changes.
53088         2006-09-05  Bruno Haible  <bruno@clisp.org>
53089         * lib/iconvme.c (iconv_string): No need to save and restore errno when
53090         iconv_alloc succeeded.
53091         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
53092         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
53093         test for " && dest " at the end - dest is always != NULL there. Call
53094         iconv with 4xNULL arguments initially, to reset the state. Call iconv
53095         with 2xNULL arguments, also to flush the state storage. Handle the
53096         IRIX iconv behaviour. Realloc the final result, to throw away unused
53097         memory.
53098
53099 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
53100
53101         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
53102         and fchmodat unconditionally, since glibc 2.4 has them.
53103         Problem reported by Arkadiusz Miskiewicz.
53104
53105 2006-12-10  Bruno Haible  <bruno@clisp.org>
53106
53107         * gnulib-tool (func_import): Show the include files only for those
53108         modules that are copied and specified.
53109         Reported by Karl Berry.
53110
53111 2006-12-08  Jim Meyering  <jim@meyering.net>
53112
53113         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
53114         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
53115
53116         * build-aux/announce-gen: Add two new options, both optional:
53117         --bootstrap-tools=TOOL_LIST
53118               a comma-separated list of tools, e.g.,
53119               autoconf,automake,bison,gnulib
53120         --gnulib-snapshot-date=DATE
53121               if gnulib is in the bootstrap tool list,
53122               then report this as the snapshot date.
53123               If not specified, use the current date/time.
53124               If you specify a date here, be sure it's UTC.
53125
53126 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53127
53128         * tests/test-argp-2.sh: Fix test to match actual output.
53129         (func_compare): Fix sed script to be portable.
53130
53131 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
53132
53133         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
53134         workaround for this case.  It is not autoconfigured now; offhand
53135         it's hard to see how to autoconfigure it.
53136
53137 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
53138
53139         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
53140         a directory that is about to be chowned.  Such a directory's
53141         initial file permissions should permit the owner only and this
53142         should not be changed until after the chown, since the group and
53143         other bits would be incorrect if they granted permission before
53144         the chown.
53145
53146         Fix porting problem for iswctype reported by Georg Schwarz in:
53147         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
53148         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
53149         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
53150         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
53151         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
53152
53153 2006-12-03  Jim Meyering  <jim@meyering.net>
53154
53155         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
53156         p->fts_statp may not yet be defined.
53157         (fts_read): Instead, set it in the caller, once p->fts_statp is
53158         sure to be defined, and corresponds to a top-level directory.
53159         This bug made du -x fail.  Here's the coreutils test case:
53160         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
53161         Reported by Mike Frysinger.
53162
53163 2006-12-01  Jim Meyering  <jim@meyering.net>
53164
53165         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
53166         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
53167         Reported by Simon Josefsson.
53168
53169 2006-11-30  Jim Meyering  <jim@meyering.net>
53170
53171         * m4/warning.m4: Use the all-permissive copyright notice
53172         recommended by RMS (rather than LGPL).
53173         * m4/vararrays.m4: Likewise.
53174         * m4/flexmember.m4: Likewise.
53175
53176 2006-11-29  Bruno Haible  <bruno@clisp.org>
53177
53178         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
53179         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
53180         using +=.
53181         Reported by Simon Josefsson <simon@josefsson.org>.
53182
53183 2006-11-28  James Youngman <jay@gnu.org>
53184
53185         * README: Advise users that they might find the bug-gnulib@gnu.org
53186         and autotools-announce@gnu.org mailing lists useful.
53187
53188 2006-11-28  Bruno Haible  <bruno@clisp.org>
53189
53190         * m4/ptrdiff_max.m4: Remove file.
53191
53192 2006-11-21  Bruno Haible  <bruno@clisp.org>
53193
53194         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
53195         _AC_COMPUTE_INT.
53196         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
53197         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
53198         _AC_COMPUTE_INT.
53199         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
53200         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
53201         _AC_COMPUTE_INT.
53202         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
53203
53204 2006-11-28  Jim Meyering  <jim@meyering.net>
53205
53206         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
53207         warning from "gcc -Wshadow" about shadowing the builtin.
53208
53209 2006-11-27  Bruno Haible  <bruno@clisp.org>
53210
53211         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
53212         _AC_COMPUTE_INT.
53213         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
53214
53215 2006-11-27  Bruno Haible  <bruno@clisp.org>
53216             Paul Eggert  <eggert@cs.ucla.edu>
53217
53218         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
53219
53220 2006-11-26  Bruno Haible  <bruno@clisp.org>
53221
53222         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
53223         noinst_LTLIBRARIES.
53224
53225 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
53226             Bruno Haible  <bruno@clisp.org>
53227
53228         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
53229         if compiling with "gcc -ansi".
53230
53231 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
53232
53233         Fix some incompatibilities with gcc -ansi -pedantic.
53234         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
53235         if compiling pedantically with GCC, unless it's C99 or later.
53236         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
53237         it mishandles gcc -ansi -pedantic as well.
53238         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
53239         if gcc -pedantic.
53240         * lib/regexec.c (check_node_accept_bytes): Don't use auto
53241         initializers for struct if -pedantic, unless it's C99 or later.
53242
53243 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
53244
53245         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
53246         Don't close an fd more than once. Identical atimes indicate
53247         success, not failure.
53248
53249 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
53250
53251         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
53252
53253 2006-11-23  Jim Meyering  <jim@meyering.net>
53254
53255         * build-aux/announce-gen: New file.  From coreutils.
53256
53257 2006-11-22  Jim Meyering  <jim@meyering.net>
53258
53259         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
53260         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
53261         (fts_read): Use a temporary to narrow the overused st_size member
53262         before using it in a switch statement.  Reported by Matthew Woehlke.
53263
53264         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
53265         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
53266
53267 2006-11-20  Bruno Haible  <bruno@clisp.org>
53268
53269         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
53270         changequote instead of pairs of brackets.
53271         Reported by Andreas Schwab <schwab@suse.de>.
53272
53273 2006-11-21  Jim Meyering  <jim@meyering.net>
53274
53275         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
53276         so as to remain compatible with older compilers.
53277         Patch from Michael Deutschmann.
53278
53279 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
53280
53281         * MODULES.html.sh (File system functions): Add openat.
53282
53283         * lib/openat.h (rpl_fstatat): New macro, if
53284         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
53285         (fstatat): Define to rpl_fstatat under the same conditions,
53286         unless COMPILING_FSTATAT.
53287         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
53288         seems to have the bug.
53289         * lib/fstatat.c: New file.
53290         * modules/openat (Files): Add it.
53291
53292 2006-11-20  Bruno Haible  <bruno@clisp.org>
53293
53294         * Makefile: New file.
53295
53296 2006-11-20  Jim Meyering  <jim@meyering.net>
53297
53298         The beginnings of syntax-related checks for gnulib.
53299         * lib/Makefile: New file.
53300         * lib/t-idcache: New script.  Ensure that the two halves of
53301         idcache.c stay in sync.
53302
53303         * lib/idcache.c: Adjust comments in user- and group- portions to
53304         be more accurate, and to be consistent with one another.
53305
53306 2006-11-20  Jim Meyering  <jim@meyering.net>
53307
53308         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
53309         continue using the flexible array member (thus, this module performs
53310         half as many malloc calls), with the addition that...
53311         (getgroup, getuser): Consistently record a non-match via an empty
53312         "name" string, and map an empty string match to a NULL return value.
53313         * modules/idcache (Depends-on): Re-add flexmember.
53314
53315         * lib/idcache.c (getuser): Remove all uses of the register keyword.
53316         (getuidbyname, getgroup, getgidbyname): Likewise.
53317
53318         Use cleaner syntax: NULL rather than 0.
53319         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
53320
53321 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
53322
53323         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
53324         It mishandled the case where the group was missing.
53325         Problem reported by Greg Schafer.
53326         * modules/idcache: Likewise.
53327
53328 2006-11-18  Jim Meyering  <jim@meyering.net>
53329
53330         * check-module (%exempt_header): Add exception for some
53331         conditionally-included headers.
53332
53333         * modules/i-ring (Depends-on): Add verify.
53334         (License): Change to LGPL.
53335
53336 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
53337
53338         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
53339         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
53340         and inttostr.h.  Use snprintf rather than uinttostr, so that
53341         LGPLed code doesn't depend on GPLed.
53342
53343 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
53344
53345         * modules/inline (License): Change from GPL to LGPL.
53346
53347 2006-11-17  Jim Meyering  <jim@meyering.net>
53348
53349         * modules/d-type (License): Switch to LGPL.
53350
53351 2006-11-15  Bruno Haible  <bruno@clisp.org>
53352
53353         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
53354
53355 2006-11-15  Eric Blake  <ebb9@byu.net>
53356
53357         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
53358         the module dependency.
53359
53360 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53361             Bruno Haible  <bruno@clisp.org>
53362
53363         * gnulib-tool (func_create_testdir): Add license consistency check.
53364
53365 2006-11-15  Eric Blake  <ebb9@byu.net>
53366
53367         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
53368         random "(cached)" in configure output.
53369
53370 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53371
53372         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
53373         test for conforming inttypes.h is both announced and cached.
53374
53375         * MODULES.html.sh (seen_modules, seen_files): New variables.
53376         (func_module): Rewrite to use a few less gnulib-tool and sed
53377         invocations.  Avoid a couple of quadratic algorithms for ...
53378         (missed_modules, missed_files): ... these, with ...
53379         (func_append, func_tmpdir): ... these new functions, from
53380         gnulib-tool.  Analogously, install traps for cleanup.
53381
53382         * tests/test-gc.c (main): Remove unused variables.
53383         * tests/test-read-file.c: Include stdlib.h, for 'free'.
53384
53385 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
53386
53387         * modules/inttostr (License): Change to LGPL.
53388
53389 2006-11-14  Eric Blake  <ebb9@byu.net>
53390
53391         * modules/tempname (License): Change to LGPL.
53392
53393 2006-11-14  Eric Blake  <ebb9@byu.net>
53394
53395         * doc/functions.texi (Function Portability): *printf functions on
53396         Cygwin now understand all POSIX size specifiers.
53397
53398 2006-11-14  Bruno Haible  <bruno@clisp.org>
53399
53400         * modules/c-ctype (License): Change to LGPL.
53401
53402 2006-11-12  Bruno Haible  <bruno@clisp.org>
53403
53404         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
53405         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
53406         for GNOME libraries, for which the include files are installed in
53407         subdirectories of $prefix/include.
53408
53409 2006-11-12  Bruno Haible  <bruno@clisp.org>
53410
53411         * m4/lib-link.m4: Require at least autoconf-2.54.
53412         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
53413         name to underscores for the --with option.
53414
53415 2006-11-13  Bruno Haible  <bruno@clisp.org>
53416
53417         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
53418         the tests directory.
53419         Reported by Ralf Wildenhues.
53420
53421 2006-11-13  Bruno Haible  <bruno@clisp.org>
53422
53423         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
53424         (func_emit_initmacro_end): Undo the override here.
53425         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
53426         Works around the famous automake error in coreutils.
53427
53428 2006-11-13  Eric Blake  <ebb9@byu.net>
53429
53430         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
53431         element, not its node.
53432
53433 2006-11-12  Bruno Haible  <bruno@clisp.org>
53434
53435         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
53436         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
53437
53438 2006-11-12  Bruno Haible  <bruno@clisp.org>
53439
53440         * gnulib-tool: New option --local-symlink.
53441         (func_usage): Document it.
53442         (lsymbolic): New variable.
53443         (func_import, func_create_testdir): If --symlink was not specified,
53444         test whether --local-symlink was specified and the file comes from
53445         the local_gnulib_dir.
53446
53447 2006-11-12  Bruno Haible  <bruno@clisp.org>
53448
53449         * gnulib-tool (func_ln): New function.
53450         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
53451
53452 2006-11-12  Bruno Haible  <bruno@clisp.org>
53453
53454         Finish support for source files in subdirectories.
53455         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
53456         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
53457         AUTOMAKE_OPTIONS.
53458         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
53459
53460 2006-11-12  Bruno Haible  <bruno@clisp.org>
53461
53462         * gnulib-tool (func_get_automake_snippet): Synthesize also an
53463         EXTRA_lib_SOURCES augmentation.
53464         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
53465
53466 2006-11-12  Jim Meyering  <jim@meyering.net>
53467
53468         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
53469         file descriptors.  This also averts a failure on systems with
53470         native openat support when a traversed directory lacks "x" access.
53471         * lib/fts_.h: Include "i-ring.h"
53472         (struct FTS) [fts_fd_ring]: New member.
53473         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
53474         (FCHDIR): Add parentheses.
53475         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
53476         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
53477         When descending, rather than simply closing the previous
53478         fts_cwd_fd value, push that file descriptor onto the ring.
53479         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
53480         (fts_open): Initialize the new fd_ring member.
53481         (fts_close): Clear the ring.
53482         (fts_safe_changedir): When possible, use our new fd_ring to skip
53483         the diropen and fstat and dev/ino comparison that would normally
53484         accompany a virtual `chdir ("..")'.
53485
53486         * modules/fts (Depends-on): Add i-ring.
53487         * modules/i-ring: New module.
53488         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
53489         * m4/i-ring.m4: New file.
53490
53491 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53492
53493         * gnulib-tool (func_create_testdir): Fix replacement of
53494         `build-aux' in configure.ac.  Run autotools in gltests
53495         subdirectory.
53496         (func_create_testdir, func_create_megatestdir, test): There is
53497         no need for '--force' in most autotool invocations in a new
53498         tree.  Actually fail the whole test if any of the tools, or the
53499         configure or make stages fail.
53500
53501         Sync from Automake.
53502         * build-aux/gnupload: Revert last change.  Add pointer to upload
53503         instructions of the GNU Maintenance Instructions.
53504         Suggestion by Karl Berry.
53505
53506 2006-11-10  Jim Meyering  <jim@meyering.net>
53507
53508         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
53509
53510 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
53511
53512         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
53513         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
53514         (bind_textdomain_codeset) [! ENABLE_NLS]:
53515         Evaluate all the arguments.  That way, callers get compatible behavior
53516         if the arguments have side effects.  Also, it avoids some GCC
53517         diagnostics in some cases; Joel E. Denny reported problems when Bison
53518         was configured with --enable-gcc-warnigs.
53519
53520 2006-11-10  Jim Meyering  <jim@meyering.net>
53521
53522         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
53523         relevant options in CFLAGS (like -O, -fno-inline) are taken into
53524         account.
53525
53526 2006-11-10  Jim Meyering  <jim@meyering.net>
53527
53528         * modules/inline: New file/module.
53529         * modules/xalloc (Files): Remove m4/inline.m4.
53530         (Depends-on): Add inline, instead.
53531         * modules/oset: Likewise.
53532         * modules/list: Likewise.
53533
53534 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
53535
53536         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
53537         Problem reported by Matthew Woehlke.
53538
53539 2006-11-09  Bruno Haible  <bruno@clisp.org>
53540
53541         * lib/tempname.c (gen_tempname): Remove variant that invokes
53542         __gen_tempname.
53543         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
53544         __gen_tempname.
53545
53546 2006-11-08  Bruno Haible  <bruno@clisp.org>
53547
53548         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
53549         to 'yes' instead of 'cross-compiling'.
53550
53551 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
53552
53553         * lib/quotearg.h (quotearg_free): New decl.
53554         * lib/quotearg.c (quotearg_free): New function.
53555         (slot0, nslots, slotvec0, slotvec):
53556         Now file-scope so that quotearg_free can get at them.
53557
53558 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53559
53560         Sync from Automake.
53561         * build-aux/gnupload: Add missing 'gnu' to example URL.
53562         Report by Karl Berry.
53563
53564 2006-11-08  Bruno Haible  <bruno@clisp.org>
53565
53566         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
53567         Suggested by Paul Eggert.
53568
53569 2006-11-08  Jim Meyering  <jim@meyering.net>
53570
53571         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
53572         It's already included if !_LIBC.
53573         (fts_safe_changedir): Add a comment.
53574
53575 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
53576
53577         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
53578         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
53579         Matthew Woehlke.
53580
53581         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
53582         definitions up, to avoid colliding with change below.
53583         (static_inline) [HAVE_INLINE]: New macro.
53584         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
53585         Provide extern decls when !HAVE_INLINE.  Do not define unless
53586         static_inline is defined, either by us or by xmalloc.c.  Use
53587         static_inline rather than static inline.
53588         (XCALLOC): Optimize sizeof(T) = 1 case.
53589         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
53590
53591 2006-11-07  Bruno Haible  <bruno@clisp.org>
53592
53593         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
53594         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
53595         AC_C_INLINE.
53596         * modules/xalloc (Files): Add m4/inline.m4.
53597
53598 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53599
53600         * README: Fix typo.
53601         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
53602         (Miscellanous Notes): ...from this.
53603
53604 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
53605
53606         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
53607         Mention that offsetof should be used instead of sizeof.
53608         From Bruno Haible.
53609
53610 2006-11-07  Bruno Haible  <bruno@clisp.org>
53611
53612         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
53613
53614 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
53615
53616         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
53617         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
53618         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
53619         (gl_tree_add_before, gl_tree_add_after):
53620         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
53621         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
53622         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
53623         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
53624         (gl_linked_add_after, gl_linked_add_at): Likewise.
53625         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
53626         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
53627         (gl_tree_add_before, gl_tree_add_after): Likewise.
53628         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
53629         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
53630         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
53631
53632 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53633
53634         * lib/gl_oset.h: Use C comment style, not C++ comment style.
53635
53636 2006-11-06  Bruno Haible  <bruno@clisp.org>
53637
53638         * m4/inline.m4: New file.
53639         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
53640         * modules/list (Files): Add m4/inline.m4.
53641         * modules/oset (Files): Likewise.
53642
53643 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
53644
53645         * lib/idcache.c: Include <stddef.h>, for offsetof.
53646         (struct userid.name): Change from char * to a flexible array member.
53647         All uses changed.
53648         * modules/idcache (Depends-on): Add flexmember.
53649
53650         * MODULES.html.sh (Core language properties): New module flexmember.
53651         * modules/flexmember, m4/flexmember.m4: New files.
53652
53653         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
53654         inline functions that are identical with the old xnmalloc_inline,
53655         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
53656         that we can avoid some unnecessary integer multiplications and
53657         divisions in the common case where the element size is known at
53658         compile time.
53659         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
53660         needed.
53661         (xnboundedmalloc): Remove.
53662         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
53663         arguments, for consistency with rest of this header.
53664         (xcharalloc): Rewrite using XNMALLOC.
53665         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
53666         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
53667         versions have been moved to lib/xalloc.h and renamed to be the
53668         non-*_inline versions.
53669         (xmalloc, xrealloc): Implement without reference to the xnmalloc
53670         and xnrealloc functions, since those functions are now inline and
53671         now call us.
53672         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
53673         renaming described above.
53674         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
53675         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
53676         captures the dependency in AC_C_INLINE.
53677
53678         New module canonicalize-lgpl, proposed by Charles Wilson in
53679         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
53680         with a few small changes afterwards.
53681         * MODULES.html.sh (File system functions): New module
53682         canonicalize-lgpl.
53683         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
53684         and canonicalize_file_name.
53685         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
53686         * modules/canonicalize-lgpl: New files.
53687
53688 2006-11-05  Bruno Haible  <bruno@clisp.org>
53689
53690         * gnulib-tool (func_import, func_create_testdir): Create directories
53691         also for files in subdirectories of lib/.
53692
53693 2006-11-05  Bruno Haible  <bruno@clisp.org>
53694
53695         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
53696         ANSI C compliant.
53697
53698 2006-11-03  Bruno Haible  <bruno@clisp.org>
53699
53700         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
53701         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
53702         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
53703         (xnboundedmalloc): New inline function.
53704         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
53705         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
53706         xmalloc.
53707         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
53708         xmalloc.
53709         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
53710         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
53711         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
53712         xmalloc.
53713         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
53714         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
53715         xmalloc.
53716         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
53717         gl_tree_add_after): Use XMALLOC instead of xmalloc.
53718         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
53719         xmalloc.
53720         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
53721         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
53722         gl_tree_add_after): Use XMALLOC instead of xmalloc.
53723         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
53724         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
53725         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
53726         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
53727
53728 2006-11-03  Bruno Haible  <bruno@clisp.org>
53729
53730         * lib/c-ctype.h [C++]: Define functions without name mangling.
53731         * lib/fwriteerror.h [C++]: Likewise.
53732         * lib/gcd.h [C++]: Likewise.
53733         * lib/linebreak.h [C++]: Likewise.
53734
53735 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
53736
53737         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
53738         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
53739         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
53740         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
53741         Check for functions and headers just once.
53742         Check for declaration of canonicalize_file_name.
53743         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
53744
53745 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
53746
53747         * gnulib-tool (func_import): Fix typo in actioncmd.
53748
53749 2006-11-02  Bruno Haible  <bruno@clisp.org>
53750
53751         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
53752         newline sequence in the Makefile.am snippet as a space, like "make"
53753         does.
53754         Reported by Roger Persson <perrog@gmail.com>.
53755
53756 2006-11-01  Bruno Haible  <bruno@clisp.org>
53757
53758         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
53759         already declared in <string.h>.
53760         * lib/strcase.h (strncasecmp): Don't declare it if yes.
53761
53762 2006-11-01  Bruno Haible  <bruno@clisp.org>
53763
53764         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
53765         * lib/strcase.h: Include <string.h>.
53766         (strcasecmp): Define to rpl_strcasecmp here.
53767
53768 2006-11-01  Bruno Haible  <bruno@clisp.org>
53769
53770         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
53771
53772 2006-11-01  Eric Blake  <ebb9@byu.net>
53773
53774         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
53775
53776         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
53777
53778 2006-10-29  Bruno Haible  <bruno@clisp.org>
53779
53780         Make it compile in C++ mode.
53781         * lib/full-write.c (full_rw): Add a cast.
53782
53783 2006-11-01  Bruno Haible  <bruno@clisp.org>
53784
53785         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
53786         be POSIX compliant.
53787         Reported by Roger Persson <perrog@gmail.com>.
53788
53789 2006-11-01  Eric Blake  <ebb9@byu.net>
53790
53791         * lib/getopt_.h: Fix comments.
53792
53793 2006-10-31  Eric Blake  <ebb9@byu.net>
53794
53795         * modules/tmpdir (Depends-on): Add sys_stat.
53796         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
53797         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
53798         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
53799         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
53800         tempname.
53801
53802 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
53803
53804         Avoid some C++ diagnostics reported by Bruno Haible.
53805         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
53806         xmalloc.
53807         (quotearg_alloc): Use xcharalloc rather than xmalloc.
53808         (struct slotvec): Move to top level.
53809         (quotearg_n_options): Rewrite to avoid xmalloc.
53810         * lib/xalloc.h (xcharalloc): New function.
53811         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
53812         [defined __cplusplus]: Add function template that provides result
53813         type propagation.  This part of the change is from Bruno Haible.
53814
53815 2006-10-29  Bruno Haible  <bruno@clisp.org>
53816
53817         Make it compile in C++ mode.
53818         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
53819         * lib/strnlen1.c (strnlen1): Cast memchr result.
53820         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
53821         * lib/clean-temp.c (string_equals, string_hash): Add casts.
53822         (create_temp_dir): Rename local variable 'template'.
53823         (compile_csharp_using_sscli): Add cast.
53824         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
53825         * lib/findprog.c (find_in_path): Likewise.
53826         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
53827         * lib/wait-process.c (register_slave_subprocess): Likewise.
53828
53829 2006-10-22  Bruno Haible  <bruno@clisp.org>
53830
53831         * modules/tsearch: New file.
53832         * lib/tsearch.h: New file.
53833         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
53834         * m4/tsearch.m4: New file.
53835         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
53836
53837 2006-10-29  Eric Blake  <ebb9@byu.net>
53838
53839         * lib/arcfour.c: Assume config.h.
53840         * lib/arctwo.c: Likewise.
53841         * lib/base64.c: Likewise.
53842         * lib/check-version.c: Likewise.
53843         * lib/crc.c: Likewise.
53844         * lib/des.c: Likewise.
53845         * lib/gc-gnulib.c: Likewise.
53846         * lib/gc-libgcrypt.c: Likewise.
53847         * lib/gc-pbkdf2-sha1.c: Likewise.
53848         * lib/getaddrinfo.c: Likewise.
53849         * lib/getdelim.c: Likewise.
53850         * lib/getline.c: Likewise.
53851         * lib/hmac-md5.c: Likewise.
53852         * lib/hmac-sha1.c: Likewise.
53853         * lib/iconvme.c: Likewise.
53854         * lib/md2.c: Likewise.
53855         * lib/md4.c: Likewise.
53856         * lib/memxor.c: Likewise.
53857         * lib/read-file.c: Likewise.
53858         * lib/readline.c: Likewise.
53859         * lib/rijndael-alg-fst.c: Likewise.
53860         * lib/rijndael-api-fst.c: Likewise.
53861         * lib/xgetdomainname.c: Likewise.
53862
53863 2006-10-28  Eric Blake  <ebb9@byu.net>
53864
53865         * lib/xstrndup.c: Assume config.h.
53866
53867 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
53868
53869         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
53870         stat-macros.h is now for our own macros, whereas stat_h is for
53871         macros in the <sys/stat.h> name space.
53872         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
53873         (STAT_MACROS_H): Remove.
53874         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
53875         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
53876         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
53877         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
53878         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
53879         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
53880         Move these macros to ...
53881         * lib/stat_.h: here.  Don't include stat-macros.h.
53882         * lib/canonicalize.c: Don't include stat-macros.h.
53883         * lib/chown.c: Likewise.
53884         * lib/euidaccess.c: Likewise.
53885         * lib/file-type.c: Likewise.
53886         * lib/filemode.c: Likewise.
53887         * lib/glob.c: Likewise.
53888         * lib/isapipe.c: Likewise.
53889         * lib/lchown.c: Likewise.
53890         * lib/lstat.c: Likewise.
53891         * lib/mkdir-p.c: Likewise.
53892         * lib/rmdir.c: Likewise.
53893         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
53894         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
53895         unless mkdir isn't declared, to speed up 'configure'.
53896         Always create sys/stat.h, since it's unlikely any real sys/stat.h
53897         would define all the S_* symbols.
53898         * modules/canonicalize (Depends-on):
53899         Depend on sys_stat, not stat-macros.
53900         * modules/chown: Likewise.
53901         * modules/euidaccess: Likewise.
53902         * modules/filemode: Likewise.
53903         * modules/file-type: Likewise.
53904         * modules/glob: Likewise.
53905         * modules/isapipe: Likewise.
53906         * modules/lchown: Likewise.
53907         * modules/lstat: Likewise.
53908         * modules/mkancesdirs: Likewise.
53909         * modules/rmdir: Likewise.
53910         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
53911         * modules/modechange: Likewise.
53912         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
53913         (configure.ac): Remove gl_STAT_MACROS.
53914         * modules/sys_stat (Depends-on): Remove stat-macros.
53915
53916 2006-10-27  Bruno Haible  <bruno@clisp.org>
53917
53918         * m4/signed.m4: Remove file.
53919         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
53920         invocation.
53921         * modules/vasnprintf (Files): Remove m4/signed.m4.
53922
53923 2006-10-27  Bruno Haible  <bruno@clisp.org>
53924
53925         Update to GNU gettext 0.16.
53926         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
53927         m4/inttypes-h.m4, m4/signed.m4.
53928         * m4/gettext.m4: Update to GNU gettext 0.16.
53929         * m4/intl.m4: New file, from GNU gettext.
53930         * m4/intldir.m4: New file, from GNU gettext.
53931         * config/srclist.txt: Update
53932
53933 2006-10-27  Eric Blake  <ebb9@byu.net>
53934
53935         * MODULES.html.sh: Document tempname.
53936         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
53937         dependencies.
53938         (Files): Move lib/tempname.c...
53939         * modules/tempname: ...to this new module.
53940         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
53941         (gl_PREREQ_TEMPNAME): Move...
53942         * m4/tempname.m4: ...to this new file.
53943         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
53944         * modules/sys_stat (Depends-on): Add stat-macros.
53945         * lib/stat_.h (includes): Pick up stat macros.
53946         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
53947         if stat macros are broken.
53948         * lib/tempname.c (includes): No need to include "stat-macros.h".
53949         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
53950         (direxists, __path_search) [!_LIBC]: Don't compile these in
53951         gnulib; the tmpdir module covers that.
53952         * lib/tempname.h: New file.
53953
53954 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
53955
53956         * COPYING: Explain how gnulib-tool converts licence headers.
53957         Almost all wording by Eric Blake.
53958
53959 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
53960
53961         * lib/mbchar.h (is_basic_table): Make read-only.
53962         * lib/mbchar.c (is_basic_table): Likewise.
53963         Reported by John Darrington.
53964
53965 2006-10-25  Bruno Haible  <bruno@clisp.org>
53966
53967         * lib/progname.h (set_program_name): Undefine before defining.
53968
53969 2006-10-25  Bruno Haible  <bruno@clisp.org>
53970
53971         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
53972         false for non-gcc C++ compilers.
53973         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
53974
53975 2006-10-24  Bruno Haible  <bruno@clisp.org>
53976
53977         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
53978         iconv implementations like Irix iconv.
53979
53980 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
53981
53982         * modules/vararrays: New file.
53983         * m4/vararrays.m4: New file, taken from diffutils.
53984         * MODULES.html.sh: New module vararrays.
53985
53986 2006-10-24  Karl Berry  <karl@gnu.org>
53987
53988         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
53989         Don't call GNU Unix.
53990
53991 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53992
53993         * users.txt: Add Libtool.
53994
53995         Sync from Libtool:
53996
53997         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
53998
53999         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
54000         to gnulib's policy of including config.h unconditionally.
54001
54002 2006-10-24  Bruno Haible  <bruno@clisp.org>
54003
54004         * modules/wcwidth (Files): Add m4/wint_t.m4.
54005         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
54006         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
54007
54008 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
54009
54010         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
54011         to pacify GCC with some -W flags enabled.  Problem reported by
54012         Bruno Haible.
54013
54014 2006-10-24  Jim Meyering  <jim@meyering.net>
54015
54016         * MODULES.html.sh: Remove uinttostr.  It's not a module.
54017         Reported by Karl Berry.
54018
54019 2006-10-23  Bruno Haible  <bruno@clisp.org>
54020
54021         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
54022
54023 2006-10-24  Bruno Haible  <bruno@clisp.org>
54024
54025         * lib/gl_list.h: Use C comment style, not C++ comment style.
54026
54027 2006-10-23  Eric Blake  <ebb9@byu.net>
54028
54029         * lib/getaddrinfo.c (includes): Add missing include.
54030
54031 2006-10-23  Bruno Haible  <bruno@clisp.org>
54032             Paul Eggert  <eggert@cs.ucla.edu>
54033
54034         Ability to rename obstack_free.
54035         * lib/obstack.h (__obstack_free): New macro. Declare instead of
54036         obstack_free.
54037         (obstack_free): Invoke the __obstack_free macro.
54038         * lib/obstack.c (obstack_free): Use __obstack_free macro.
54039
54040 2006-10-23  Bruno Haible  <bruno@clisp.org>
54041             Paul Eggert  <eggert@cs.ucla.edu>
54042
54043         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
54044         __argc, __argv from the declaration. (They are defined as macros on
54045         mingw.)
54046
54047 2006-10-22  Bruno Haible  <bruno@clisp.org>
54048
54049         * doc/gnulib-intro.texi: New file.
54050         * doc/gnulib.texi: Include it.
54051
54052 2006-10-21  Bruno Haible  <bruno@clisp.org>
54053
54054         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
54055         "Introduction", "Miscellanous Notes", "Particular Modules".
54056
54057 2006-10-21  Bruno Haible  <bruno@clisp.org>
54058
54059         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
54060         Change mostlyclean-local rule to avoid sh syntax error from bash
54061         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
54062
54063 2006-10-23  Jim Meyering  <jim@meyering.net>
54064
54065         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
54066         in place of snprintf.
54067
54068         * modules/inttostr (Files): Add lib/uinttostr.c.
54069         * lib/uinttostr.c (inttostr): New file/function.
54070         * lib/inttostr.h (uinttostr): Declare.
54071         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
54072         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
54073         Add uinttostr.
54074         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
54075
54076 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
54077
54078         * lib/canonicalize.c (ELOOP): Define if not already defined.
54079         Problem reported by Bruno Haible in
54080         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
54081
54082 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
54083
54084         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
54085         Problem reported by Perry Smith and Ville Laurikari.
54086
54087         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
54088         uses.
54089
54090 2006-10-19  Bruno Haible  <bruno@clisp.org>
54091
54092         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
54093         for mingw.
54094
54095 2006-10-19  Bruno Haible  <bruno@clisp.org>
54096
54097         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
54098         Needed for mingw.
54099
54100 2006-10-19  Bruno Haible  <bruno@clisp.org>
54101
54102         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
54103
54104 2006-10-19  Bruno Haible  <bruno@clisp.org>
54105
54106         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
54107         it.
54108
54109 2006-10-19  Bruno Haible  <bruno@clisp.org>
54110
54111         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
54112         invocation.
54113
54114 2006-10-19  Bruno Haible  <bruno@clisp.org>
54115
54116         * gnulib-tool (func_create_testdir): Don't include ftruncate and
54117         mountlist by default.
54118
54119 2006-10-16  Bruno Haible  <bruno@clisp.org>
54120
54121         * lib/c-strstr.c: Include c-strstr.h.
54122
54123 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
54124
54125         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
54126         in a slash.
54127
54128 2006-10-18  Bruno Haible  <bruno@clisp.org>
54129
54130         * lib/lock.h [C++]: Wrap definitions in extern "C".
54131
54132 2006-10-18  Bruno Haible  <bruno@clisp.org>
54133
54134         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
54135         gl_LIBOBJS list.
54136
54137 2006-10-18  Bruno Haible  <bruno@clisp.org>
54138
54139         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
54140
54141 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
54142
54143         * lib/xstrtol.h: Include gettext.h.
54144         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
54145         Problem reported by Eric Blake.
54146         * modules/xstrtol (Depends-on): Add gettext-h.
54147
54148 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
54149
54150         * lib/strftime.c (advance): New macro.
54151         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
54152         incomplete type, so you can't add 0 to it.  Problem and patch
54153         reported by Eelco Dolstra for dietlibc.
54154
54155 2006-10-18  Jim Meyering  <jim@meyering.net>
54156
54157         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
54158         type for a local, and rename it: s/up/user_proc/.
54159
54160 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
54161
54162         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
54163         READ_UTMP_USER_PROCESS.
54164         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
54165
54166 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
54167
54168         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
54169         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
54170
54171 2006-10-17  Eric Blake  <ebb9@byu.net>
54172
54173         * lib/sigprocmask.c (sigprocmask): Fix typo.
54174
54175         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
54176
54177         * modules/clean-temp (Makefile.am): Don't add to make output...
54178         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
54179         config.h.
54180
54181 2006-10-17  Bruno Haible  <bruno@clisp.org>
54182
54183         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
54184         differently if DEFAULT_TEXT_DOMAIN is set.
54185
54186 2006-10-16  Bruno Haible  <bruno@clisp.org>
54187
54188         * lib/clean-temp.c: Include fwriteerror.h.
54189
54190 2006-10-16  Bruno Haible  <bruno@clisp.org>
54191
54192         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
54193
54194 2006-10-16  Bruno Haible  <bruno@clisp.org>
54195
54196         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
54197         * lib/sigprocmask.h: Include <sys/types.h>.
54198         (sigset_t): Use the system's definition if present.
54199
54200 2006-10-17  Eric Blake  <ebb9@byu.net>
54201
54202         * lib/xvasprintf.c (includes): Assume config.h.
54203         * lib/xasprintf.c (includes): Likewise.
54204
54205 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
54206
54207         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
54208         at least as wide as intmax_t.
54209
54210 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
54211
54212         (Imported from Automake.)
54213         * build-aux/gnupload: Update to version 1.1 of directive file.
54214
54215 2006-10-16  Eric Blake  <ebb9@byu.net>
54216
54217         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
54218         match Automake 1.10a.
54219
54220 2006-10-14  Bruno Haible  <bruno@clisp.org>
54221
54222         * modules/sigprocmask: New file.
54223         * lib/sigprocmask.h: New file.
54224         * lib/sigprocmask.c: New file.
54225         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
54226         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
54227         request sigprocmask.o.
54228         (gl_PREREQ_SIGPROCMASK): New macro.
54229         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
54230         (Depends-on): Add sigprocmask.
54231         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
54232         gt_SIGNALBLOCKING. Test for 'raise' only once.
54233         * lib/fatal-signal.c: Include sigprocmask.h.
54234         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
54235         unblock_fatal_signals): Define always.
54236         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54237         sigprocmask.
54238
54239 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
54240
54241         Sync from Automake.
54242         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
54243         which incorrectly sets the mode of an existing destination
54244         directory.  In some cases the unpatched install-sh could do the
54245         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
54246         system.  We hope this is rare in practice, but it's clearly worth
54247         fixing.  Problem reported by Alex Unleashed in
54248         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
54249         Also, don't bother to check for -m bugs unless we're using -m;
54250         suggested by Stepan Kasal.
54251
54252 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54253
54254         Sync from Automake.
54255         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
54256         `-c' flag, so they appear at the same position as in %FASTDEP%
54257         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
54258         which ignores unknown options only after the first non-option.
54259         Bug report against M4 by Nelson H. F. Beebe.
54260
54261 2006-10-13  Jim Meyering  <jim@meyering.net>
54262
54263         Fix a bug in yesterday's change.
54264         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
54265         p->fts_statp->st_dev would be used uninitialized.
54266         Ensures that we always call fts_stat on the very first entry.
54267         Miklos Szeredi reported that find -xdev stopped working.
54268
54269 2006-10-12  Bruno Haible  <bruno@clisp.org>
54270
54271         * gnulib-tool (func_get_automake_snippet): Append an automatically
54272         computed EXTRA_DIST augmentation.
54273         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
54274         * modules/alloca-opt (Makefile.am): Likewise.
54275         * modules/allocsa (Makefile.am): Likewise.
54276         * modules/arcfour (Makefile.am): Likewise.
54277         * modules/arctwo (Makefile.am): Likewise.
54278         * modules/argmatch (Makefile.am): Likewise.
54279         * modules/argz (Makefile.am): Likewise.
54280         * modules/atexit (Makefile.am): Likewise.
54281         * modules/backupfile (Makefile.am): Likewise.
54282         * modules/byteswap (Makefile.am): Likewise.
54283         * modules/c-strtod (Makefile.am): Likewise.
54284         * modules/c-strtold (Makefile.am): Likewise.
54285         * modules/calloc (Makefile.am): Likewise.
54286         * modules/canon-host (Makefile.am): Likewise.
54287         * modules/canonicalize (Makefile.am): Likewise.
54288         * modules/chdir-long (Makefile.am): Likewise.
54289         * modules/chdir-safer (Makefile.am): Likewise.
54290         * modules/check-version (Makefile.am): Likewise.
54291         * modules/chown (Makefile.am): Likewise.
54292         * modules/cloexec (Makefile.am): Likewise.
54293         * modules/close-stream (Makefile.am): Likewise.
54294         * modules/closeout (Makefile.am): Likewise.
54295         * modules/crc (Makefile.am): Likewise.
54296         * modules/csharpexec (Makefile.am): Likewise.
54297         * modules/cycle-check (Makefile.am): Likewise.
54298         * modules/des (Makefile.am): Likewise.
54299         * modules/dev-ino (Makefile.am): Likewise.
54300         * modules/dirfd (Makefile.am): Likewise.
54301         * modules/dirname (Makefile.am): Likewise.
54302         * modules/dup2 (Makefile.am): Likewise.
54303         * modules/eealloc (Makefile.am): Likewise.
54304         * modules/error (Makefile.am): Likewise.
54305         * modules/euidaccess (Makefile.am): Likewise.
54306         * modules/exclude (Makefile.am): Likewise.
54307         * modules/exitfail (Makefile.am): Likewise.
54308         * modules/fcntl-safer (Makefile.am): Likewise.
54309         * modules/fcntl (Makefile.am): Likewise.
54310         * modules/file-type (Makefile.am): Likewise.
54311         * modules/fileblocks (Makefile.am): Likewise.
54312         * modules/filemode (Makefile.am): Likewise.
54313         * modules/filenamecat (Makefile.am): Likewise.
54314         * modules/fnmatch (Makefile.am): Likewise.
54315         * modules/fopen-safer (Makefile.am): Likewise.
54316         * modules/fpending (Makefile.am): Likewise.
54317         * modules/fprintftime (Makefile.am): Likewise.
54318         * modules/free (Makefile.am): Likewise.
54319         * modules/fsusage (Makefile.am): Likewise.
54320         * modules/ftruncate (Makefile.am): Likewise.
54321         * modules/fts (Makefile.am): Likewise.
54322         * modules/gc-arcfour (Makefile.am): Likewise.
54323         * modules/gc-des (Makefile.am): Likewise.
54324         * modules/gc-hmac-md5 (Makefile.am): Likewise.
54325         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
54326         * modules/gc-md4 (Makefile.am): Likewise.
54327         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
54328         * modules/gc-sha1 (Makefile.am): Likewise.
54329         * modules/gc (Makefile.am): Likewise.
54330         * modules/getaddrinfo (Makefile.am): Likewise.
54331         * modules/getcwd (Makefile.am): Likewise.
54332         * modules/getdelim (Makefile.am): Likewise.
54333         * modules/getdomainname (Makefile.am): Likewise.
54334         * modules/getgroups (Makefile.am): Likewise.
54335         * modules/gethostname (Makefile.am): Likewise.
54336         * modules/gethrxtime (Makefile.am): Likewise.
54337         * modules/getline (Makefile.am): Likewise.
54338         * modules/getloadavg (Makefile.am): Likewise.
54339         * modules/getlogin_r (Makefile.am): Likewise.
54340         * modules/getndelim2 (Makefile.am): Likewise.
54341         * modules/getopt (Makefile.am): Likewise.
54342         * modules/getpagesize (Makefile.am): Likewise.
54343         * modules/getpass-gnu (Makefile.am): Likewise.
54344         * modules/getpass (Makefile.am): Likewise.
54345         * modules/getsubopt (Makefile.am): Likewise.
54346         * modules/gettime (Makefile.am): Likewise.
54347         * modules/gettimeofday (Makefile.am): Likewise.
54348         * modules/getugroups (Makefile.am): Likewise.
54349         * modules/getusershell (Makefile.am): Likewise.
54350         * modules/glob (Makefile.am): Likewise.
54351         * modules/group-member (Makefile.am): Likewise.
54352         * modules/hard-locale (Makefile.am): Likewise.
54353         * modules/hash (Makefile.am): Likewise.
54354         * modules/hmac-md5 (Makefile.am): Likewise.
54355         * modules/hmac-sha1 (Makefile.am): Likewise.
54356         * modules/human (Makefile.am): Likewise.
54357         * modules/idcache (Makefile.am): Likewise.
54358         * modules/imaxabs (Makefile.am): Likewise.
54359         * modules/imaxdiv (Makefile.am): Likewise.
54360         * modules/inet_ntop (Makefile.am): Likewise.
54361         * modules/inet_pton (Makefile.am): Likewise.
54362         * modules/intprops (Makefile.am): Likewise.
54363         * modules/inttostr (Makefile.am): Likewise.
54364         * modules/inttypes (Makefile.am): Likewise.
54365         * modules/isapipe (Makefile.am): Likewise.
54366         * modules/javaversion (Makefile.am): Likewise.
54367         * modules/lchmod (Makefile.am): Likewise.
54368         * modules/lchown (Makefile.am): Likewise.
54369         * modules/localcharset (Makefile.am): Likewise.
54370         * modules/long-options (Makefile.am): Likewise.
54371         * modules/lstat (Makefile.am): Likewise.
54372         * modules/malloc (Makefile.am): Likewise.
54373         * modules/mathl (Makefile.am): Likewise.
54374         * modules/mbchar (Makefile.am): Likewise.
54375         * modules/md2 (Makefile.am): Likewise.
54376         * modules/md4 (Makefile.am): Likewise.
54377         * modules/md5 (Makefile.am): Likewise.
54378         * modules/memcasecmp (Makefile.am): Likewise.
54379         * modules/memchr (Makefile.am): Likewise.
54380         * modules/memcmp (Makefile.am): Likewise.
54381         * modules/memcoll (Makefile.am): Likewise.
54382         * modules/memcpy (Makefile.am): Likewise.
54383         * modules/memmem (Makefile.am): Likewise.
54384         * modules/memmove (Makefile.am): Likewise.
54385         * modules/mempcpy (Makefile.am): Likewise.
54386         * modules/memrchr (Makefile.am): Likewise.
54387         * modules/memset (Makefile.am): Likewise.
54388         * modules/memxor (Makefile.am): Likewise.
54389         * modules/mkancesdirs (Makefile.am): Likewise.
54390         * modules/mkdir-p (Makefile.am): Likewise.
54391         * modules/mkdir (Makefile.am): Likewise.
54392         * modules/mkdtemp (Makefile.am): Likewise.
54393         * modules/mkstemp (Makefile.am): Likewise.
54394         * modules/mktime (Makefile.am): Likewise.
54395         * modules/modechange (Makefile.am): Likewise.
54396         * modules/mountlist (Makefile.am): Likewise.
54397         * modules/nanosleep (Makefile.am): Likewise.
54398         * modules/obstack (Makefile.am): Likewise.
54399         * modules/openat (Makefile.am): Likewise.
54400         * modules/pagealign_alloc (Makefile.am): Likewise.
54401         * modules/pathmax (Makefile.am): Likewise.
54402         * modules/physmem (Makefile.am): Likewise.
54403         * modules/poll (Makefile.am): Likewise.
54404         * modules/posixtm (Makefile.am): Likewise.
54405         * modules/posixver (Makefile.am): Likewise.
54406         * modules/putenv (Makefile.am): Likewise.
54407         * modules/quote (Makefile.am): Likewise.
54408         * modules/quotearg (Makefile.am): Likewise.
54409         * modules/raise (Makefile.am): Likewise.
54410         * modules/read-file (Makefile.am): Likewise.
54411         * modules/readline (Makefile.am): Likewise.
54412         * modules/readlink (Makefile.am): Likewise.
54413         * modules/readtokens (Makefile.am): Likewise.
54414         * modules/readutmp (Makefile.am): Likewise.
54415         * modules/realloc (Makefile.am): Likewise.
54416         * modules/regex (Makefile.am): Likewise.
54417         * modules/rename-dest-slash (Makefile.am): Likewise.
54418         * modules/rename (Makefile.am): Likewise.
54419         * modules/rijndael (Makefile.am): Likewise.
54420         * modules/rmdir (Makefile.am): Likewise.
54421         * modules/rpmatch (Makefile.am): Likewise.
54422         * modules/safe-read (Makefile.am): Likewise.
54423         * modules/safe-write (Makefile.am): Likewise.
54424         * modules/same-inode (Makefile.am): Likewise.
54425         * modules/same (Makefile.am): Likewise.
54426         * modules/save-cwd (Makefile.am): Likewise.
54427         * modules/savedir (Makefile.am): Likewise.
54428         * modules/setenv (Makefile.am): Likewise.
54429         * modules/settime (Makefile.am): Likewise.
54430         * modules/sha1 (Makefile.am): Likewise.
54431         * modules/sig2str (Makefile.am): Likewise.
54432         * modules/snprintf (Makefile.am): Likewise.
54433         * modules/stat-macros (Makefile.am): Likewise.
54434         * modules/stat-time (Makefile.am): Likewise.
54435         * modules/stdbool (Makefile.am): Likewise.
54436         * modules/stdint (Makefile.am): Likewise.
54437         * modules/stdlib-safer (Makefile.am): Likewise.
54438         * modules/stpcpy (Makefile.am): Likewise.
54439         * modules/stpncpy (Makefile.am): Likewise.
54440         * modules/strcase (Makefile.am): Likewise.
54441         * modules/strcasestr (Makefile.am): Likewise.
54442         * modules/strchrnul (Makefile.am): Likewise.
54443         * modules/strcspn (Makefile.am): Likewise.
54444         * modules/strdup (Makefile.am): Likewise.
54445         * modules/strerror (Makefile.am): Likewise.
54446         * modules/strftime (Makefile.am): Likewise.
54447         * modules/strndup (Makefile.am): Likewise.
54448         * modules/strnlen (Makefile.am): Likewise.
54449         * modules/strpbrk (Makefile.am): Likewise.
54450         * modules/strsep (Makefile.am): Likewise.
54451         * modules/strstr (Makefile.am): Likewise.
54452         * modules/strtod (Makefile.am): Likewise.
54453         * modules/strtoimax (Makefile.am): Likewise.
54454         * modules/strtok_r (Makefile.am): Likewise.
54455         * modules/strtol (Makefile.am): Likewise.
54456         * modules/strtoll (Makefile.am): Likewise.
54457         * modules/strtoul (Makefile.am): Likewise.
54458         * modules/strtoull (Makefile.am): Likewise.
54459         * modules/strtoumax (Makefile.am): Likewise.
54460         * modules/strverscmp (Makefile.am): Likewise.
54461         * modules/sys_socket (Makefile.am): Likewise.
54462         * modules/sys_stat (Makefile.am): Likewise.
54463         * modules/sysexits (Makefile.am): Likewise.
54464         * modules/time_r (Makefile.am): Likewise.
54465         * modules/timegm (Makefile.am): Likewise.
54466         * modules/timespec (Makefile.am): Likewise.
54467         * modules/tmpfile-safer (Makefile.am): Likewise.
54468         * modules/trim (Makefile.am): Likewise.
54469         * modules/unistd-safer (Makefile.am): Likewise.
54470         * modules/unlinkdir (Makefile.am): Likewise.
54471         * modules/unlocked-io (Makefile.am): Likewise.
54472         * modules/userspec (Makefile.am): Likewise.
54473         * modules/utime (Makefile.am): Likewise.
54474         * modules/utimecmp (Makefile.am): Likewise.
54475         * modules/utimens (Makefile.am): Likewise.
54476         * modules/vasnprintf (Makefile.am): Likewise.
54477         * modules/vasprintf (Makefile.am): Likewise.
54478         * modules/vsnprintf (Makefile.am): Likewise.
54479         * modules/xalloc (Makefile.am): Likewise.
54480         * modules/xgetcwd (Makefile.am): Likewise.
54481         * modules/xnanosleep (Makefile.am): Likewise.
54482         * modules/xreadlink (Makefile.am): Likewise.
54483         * modules/xstrtod (Makefile.am): Likewise.
54484         * modules/xstrtol (Makefile.am): Likewise.
54485         * modules/xstrtold (Makefile.am): Likewise.
54486         * modules/yesno (Makefile.am): Likewise.
54487         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
54488
54489 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
54490
54491         * modules/error (Makefile.am): Distribute files through
54492         EXTRA_DIST, not lib_SOURCES.
54493
54494 2006-10-12  Eric Blake  <ebb9@byu.net>
54495
54496         * modules/error (Makefile.am): Distribute files in /lib.
54497         * modules/obstack (Makefile.am): Likewise.
54498
54499 2006-10-12  Bruno Haible  <bruno@clisp.org>
54500
54501         * modules/acl (Makefile.am): Distribute all files in lib/ through
54502         EXTRA_DIST.
54503         * modules/arcfour (Makefile.am): Likewise.
54504         * modules/arctwo (Makefile.am): Likewise.
54505         * modules/argmatch (Makefile.am): Likewise.
54506         * modules/argz (Makefile.am): Likewise.
54507         * modules/atexit (Makefile.am): Likewise.
54508         * modules/backupfile (Makefile.am): Likewise.
54509         * modules/c-strtod (Makefile.am): Likewise.
54510         * modules/c-strtold (Makefile.am): Likewise.
54511         * modules/calloc (Makefile.am): Likewise.
54512         * modules/canon-host (Makefile.am): Likewise.
54513         * modules/canonicalize (Makefile.am): Likewise.
54514         * modules/chdir-long (Makefile.am): Likewise.
54515         * modules/chdir-safer (Makefile.am): Likewise.
54516         * modules/check-version (Makefile.am): Likewise.
54517         * modules/chown (Makefile.am): Likewise.
54518         * modules/cloexec (Makefile.am): Likewise.
54519         * modules/close-stream (Makefile.am): Likewise.
54520         * modules/closeout (Makefile.am): Likewise.
54521         * modules/crc (Makefile.am): Likewise.
54522         * modules/cycle-check (Makefile.am): Likewise.
54523         * modules/des (Makefile.am): Likewise.
54524         * modules/dirfd (Makefile.am): Likewise.
54525         * modules/dirname (Makefile.am): Likewise.
54526         * modules/dup2 (Makefile.am): Likewise.
54527         * modules/euidaccess (Makefile.am): Likewise.
54528         * modules/exclude (Makefile.am): Likewise.
54529         * modules/exitfail (Makefile.am): Likewise.
54530         * modules/fcntl-safer (Makefile.am): Likewise.
54531         * modules/file-type (Makefile.am): Likewise.
54532         * modules/fileblocks (Makefile.am): Likewise.
54533         * modules/filemode (Makefile.am): Likewise.
54534         * modules/filenamecat (Makefile.am): Likewise.
54535         * modules/fnmatch (Makefile.am): Likewise.
54536         * modules/fopen-safer (Makefile.am): Likewise.
54537         * modules/fpending (Makefile.am): Likewise.
54538         * modules/fprintftime (Makefile.am): Likewise.
54539         * modules/free (Makefile.am): Likewise.
54540         * modules/fsusage (Makefile.am): Likewise.
54541         * modules/ftruncate (Makefile.am): Likewise.
54542         * modules/fts (Makefile.am): Likewise.
54543         * modules/gc (Makefile.am): Likewise.
54544         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
54545         * modules/getaddrinfo (Makefile.am): Likewise.
54546         * modules/getcwd (Makefile.am): Likewise.
54547         * modules/getdelim (Makefile.am): Likewise.
54548         * modules/getdomainname (Makefile.am): Likewise.
54549         * modules/getgroups (Makefile.am): Likewise.
54550         * modules/gethostname (Makefile.am): Likewise.
54551         * modules/gethrxtime (Makefile.am): Likewise.
54552         * modules/getline (Makefile.am): Likewise.
54553         * modules/getloadavg (Makefile.am): Likewise.
54554         * modules/getlogin_r (Makefile.am): Likewise.
54555         * modules/getopt (Makefile.am): Likewise.
54556         * modules/getpass (Makefile.am): Likewise.
54557         * modules/getpass-gnu (Makefile.am): Likewise.
54558         * modules/getsubopt (Makefile.am): Likewise.
54559         * modules/gettime (Makefile.am): Likewise.
54560         * modules/gettimeofday (Makefile.am): Likewise.
54561         * modules/getugroups (Makefile.am): Likewise.
54562         * modules/getusershell (Makefile.am): Likewise.
54563         * modules/glob (Makefile.am): Likewise.
54564         * modules/group-member (Makefile.am): Likewise.
54565         * modules/hard-locale (Makefile.am): Likewise.
54566         * modules/hash (Makefile.am): Likewise.
54567         * modules/hmac-md5 (Makefile.am): Likewise.
54568         * modules/hmac-sha1 (Makefile.am): Likewise.
54569         * modules/human (Makefile.am): Likewise.
54570         * modules/idcache (Makefile.am): Likewise.
54571         * modules/imaxabs (Makefile.am): Likewise.
54572         * modules/imaxdiv (Makefile.am): Likewise.
54573         * modules/inet_ntop (Makefile.am): Likewise.
54574         * modules/inet_pton (Makefile.am): Likewise.
54575         * modules/inttostr (Makefile.am): Likewise.
54576         * modules/isapipe (Makefile.am): Likewise.
54577         * modules/lchown (Makefile.am): Likewise.
54578         * modules/long-options (Makefile.am): Likewise.
54579         * modules/lstat (Makefile.am): Likewise.
54580         * modules/malloc (Makefile.am): Likewise.
54581         * modules/mathl (Makefile.am): Likewise.
54582         * modules/mbchar (Makefile.am): Likewise.
54583         * modules/md2 (Makefile.am): Likewise.
54584         * modules/md4 (Makefile.am): Likewise.
54585         * modules/md5 (Makefile.am): Likewise.
54586         * modules/memcasecmp (Makefile.am): Likewise.
54587         * modules/memchr (Makefile.am): Likewise.
54588         * modules/memcmp (Makefile.am): Likewise.
54589         * modules/memcoll (Makefile.am): Likewise.
54590         * modules/memcpy (Makefile.am): Likewise.
54591         * modules/memmem (Makefile.am): Likewise.
54592         * modules/memmove (Makefile.am): Likewise.
54593         * modules/mempcpy (Makefile.am): Likewise.
54594         * modules/memrchr (Makefile.am): Likewise.
54595         * modules/memset (Makefile.am): Likewise.
54596         * modules/memxor (Makefile.am): Likewise.
54597         * modules/mkancesdirs (Makefile.am): Likewise.
54598         * modules/mkdir (Makefile.am): Likewise.
54599         * modules/mkdir-p (Makefile.am): Likewise.
54600         * modules/mkdtemp (Makefile.am): Likewise.
54601         * modules/mkstemp (Makefile.am): Likewise.
54602         * modules/mktime (Makefile.am): Likewise.
54603         * modules/modechange (Makefile.am): Likewise.
54604         * modules/mountlist (Makefile.am): Likewise.
54605         * modules/nanosleep (Makefile.am): Likewise.
54606         * modules/openat (Makefile.am): Likewise.
54607         * modules/pagealign_alloc (Makefile.am): Likewise.
54608         * modules/physmem (Makefile.am): Likewise.
54609         * modules/poll (Makefile.am): Likewise.
54610         * modules/posixtm (Makefile.am): Likewise.
54611         * modules/posixver (Makefile.am): Likewise.
54612         * modules/putenv (Makefile.am): Likewise.
54613         * modules/quote (Makefile.am): Likewise.
54614         * modules/quotearg (Makefile.am): Likewise.
54615         * modules/raise (Makefile.am): Likewise.
54616         * modules/read-file (Makefile.am): Likewise.
54617         * modules/readline (Makefile.am): Likewise.
54618         * modules/readlink (Makefile.am): Likewise.
54619         * modules/readtokens (Makefile.am): Likewise.
54620         * modules/readutmp (Makefile.am): Likewise.
54621         * modules/realloc (Makefile.am): Likewise.
54622         * modules/regex (Makefile.am): Likewise.
54623         * modules/rename (Makefile.am): Likewise.
54624         * modules/rename-dest-slash (Makefile.am): Likewise.
54625         * modules/rijndael (Makefile.am): Likewise.
54626         * modules/rmdir (Makefile.am): Likewise.
54627         * modules/rpmatch (Makefile.am): Likewise.
54628         * modules/safe-read (Makefile.am): Likewise.
54629         * modules/safe-write (Makefile.am): Likewise.
54630         * modules/same (Makefile.am): Likewise.
54631         * modules/save-cwd (Makefile.am): Likewise.
54632         * modules/savedir (Makefile.am): Likewise.
54633         * modules/setenv (Makefile.am): Likewise.
54634         * modules/settime (Makefile.am): Likewise.
54635         * modules/sha1 (Makefile.am): Likewise.
54636         * modules/sig2str (Makefile.am): Likewise.
54637         * modules/snprintf (Makefile.am): Likewise.
54638         * modules/stdlib-safer (Makefile.am): Likewise.
54639         * modules/stpcpy (Makefile.am): Likewise.
54640         * modules/stpncpy (Makefile.am): Likewise.
54641         * modules/strcase (Makefile.am): Likewise.
54642         * modules/strcasestr (Makefile.am): Likewise.
54643         * modules/strchrnul (Makefile.am): Likewise.
54644         * modules/strcspn (Makefile.am): Likewise.
54645         * modules/strdup (Makefile.am): Likewise.
54646         * modules/strerror (Makefile.am): Likewise.
54647         * modules/strftime (Makefile.am): Likewise.
54648         * modules/strndup (Makefile.am): Likewise.
54649         * modules/strnlen (Makefile.am): Likewise.
54650         * modules/strpbrk (Makefile.am): Likewise.
54651         * modules/strsep (Makefile.am): Likewise.
54652         * modules/strstr (Makefile.am): Likewise.
54653         * modules/strtod (Makefile.am): Likewise.
54654         * modules/strtoimax (Makefile.am): Likewise.
54655         * modules/strtok_r (Makefile.am): Likewise.
54656         * modules/strtol (Makefile.am): Likewise.
54657         * modules/strtoll (Makefile.am): Likewise.
54658         * modules/strtoul (Makefile.am): Likewise.
54659         * modules/strtoull (Makefile.am): Likewise.
54660         * modules/strtoumax (Makefile.am): Likewise.
54661         * modules/strverscmp (Makefile.am): Likewise.
54662         * modules/time_r (Makefile.am): Likewise.
54663         * modules/timegm (Makefile.am): Likewise.
54664         * modules/tmpfile-safer (Makefile.am): Likewise.
54665         * modules/unistd-safer (Makefile.am): Likewise.
54666         * modules/unlinkdir (Makefile.am): Likewise.
54667         * modules/userspec (Makefile.am): Likewise.
54668         * modules/utime (Makefile.am): Likewise.
54669         * modules/utimecmp (Makefile.am): Likewise.
54670         * modules/utimens (Makefile.am): Likewise.
54671         * modules/vasnprintf (Makefile.am): Likewise.
54672         * modules/vasprintf (Makefile.am): Likewise.
54673         * modules/vsnprintf (Makefile.am): Likewise.
54674         * modules/xalloc (Makefile.am): Likewise.
54675         * modules/xgetcwd (Makefile.am): Likewise.
54676         * modules/xnanosleep (Makefile.am): Likewise.
54677         * modules/xreadlink (Makefile.am): Likewise.
54678         * modules/xstrtod (Makefile.am): Likewise.
54679         * modules/xstrtol (Makefile.am): Likewise.
54680         * modules/xstrtold (Makefile.am): Likewise.
54681         * modules/yesno (Makefile.am): Likewise.
54682
54683 2006-10-12  Jim Meyering  <jim@meyering.net>
54684
54685         * m4/getloadavg.m4: Revert the change below.
54686
54687         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
54688         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
54689         fail with a symlink, which is what coreutils' ./bootstrap now
54690         creates by default.
54691
54692 2006-10-12  Bruno Haible  <bruno@clisp.org>
54693
54694         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
54695         mingw.
54696         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
54697         MSVC and mingw explicitly.
54698
54699 2006-10-11  Simon Josefsson  <jas@extundo.com>
54700             Bruno Haible  <bruno@clisp.org>
54701
54702         Add support for multiple gnulib-tool invocations in the scope of a
54703         single configure.ac file.
54704         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
54705         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
54706         with the same contents as the _LIBADD variable.
54707         (func_emit_initmacro_start, func_emit_initmacro_end,
54708         func_emit_initmacro_done): New functions.
54709         (func_import, func_create_testdir): Invoke them. Allow the identifiers
54710         gl_LIBOBJS and gl_LTLIBOBJS.
54711
54712 2006-10-11  Bruno Haible  <bruno@clisp.org>
54713
54714         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
54715         (func_create_testdir): Don't create po/Makefile.am, don't invoke
54716         autoreconf. Instead, invoke autopoint explicitly but move back the
54717         *.m4 files from gnulib.
54718
54719 2006-10-11  Bruno Haible  <bruno@clisp.org>
54720
54721         * gnulib-tool (func_usage): Make module names after --create-testdir
54722         optional.
54723         (func_create_testdir): If no module was specified, use nearly all
54724         modules.
54725
54726 2006-10-12  Jim Meyering  <jim@meyering.net>
54727
54728         Big performance improvement for fts-based tools that use FTS_NOSTAT.
54729         Avoid spurious inode-mismatch problems on non-POSIX file systems.
54730         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
54731         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
54732         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
54733         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
54734         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
54735         (fts_set_stat_required): New function.
54736         (fts_open): Defer the calls to fts_stat, if possible or requested.
54737         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
54738         into fts_stat itself.
54739         (fts_read): Perform any required (deferred) fts_stat call.
54740         (fts_build): Likewise, for the directory we're about to open and read.
54741         In the readdir loop, carefully decide whether each entry will require
54742         an eventual call to fts_stat, using dirent.d_type info if available.
54743         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
54744         a command line argument into this function.  Update all callers.
54745         Map a return value of FTS_DOT to FTS_D for a command line argument.
54746         * modules/fts (Depends-on): Add d-type.  Alphabetize.
54747         Thanks to Miklos Szeredi for his tenacity and for the initial
54748         bug report about "find" failing on a FUSE-based file system.
54749
54750         * lib/fts.c (fts_open): Use consistent indentation.
54751
54752 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
54753
54754         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
54755         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
54756         reported by Jim Meyering.  All uses of cache variables renamed
54757         to match Autoconf's.
54758         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
54759         the other one.
54760
54761         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
54762         Fix misspelling in diagnostic.
54763
54764 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
54765
54766         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
54767         defined.  Problem reported by Matthew Woehlke.
54768
54769         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
54770         Add support for Tandem NonStop R series.
54771         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
54772         Use new macro.
54773
54774         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
54775         (has_trailing_slash): Omit size arg; all callers changed.
54776         Omit 'inline', since it doesn't help performance and we'd
54777         need to configure it.
54778         Don't count //, ///, etc. as having a trailing slash.
54779         As a side effect, this removes a C99ism reported by Matthew Woehlke.
54780         (rpl_rename_dest_slash): On failure, use rename's errno rather
54781         than (in some cases) an incorrect or junk errno.
54782         Simplify code by removing need to compute length; this does
54783         cause it to make two passes instead of one over the file name,
54784         but it's worth it.
54785
54786         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
54787         change, since Autoconf's version may no longer be appropriate now
54788         that we are using CVS Autoconf's version.  Add support for Tandem.
54789
54790 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
54791             Bruno Haible  <bruno@clisp.org>
54792
54793         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
54794         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
54795         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
54796         gl_AC_TYPE_LONG_LONG.
54797
54798         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
54799         instead of HAVE_LONG_LONG.
54800         * lib/printf-args.c (printf_fetchargs): Likewise.
54801         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
54802         * lib/vasnprintf.c (VASNPRINTF): Likewise.
54803         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
54804         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
54805         gl_AC_TYPE_LONG_LONG.
54806
54807 2006-10-11  Bruno Haible  <bruno@clisp.org>
54808
54809         * m4/longlong.m4: Add comments.
54810         * m4/ulonglong.m4: Likewise.
54811
54812 2006-10-10  Bruno Haible  <bruno@clisp.org>
54813
54814         Make it possible to #define stpcpy, strdup to aliases.
54815         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
54816         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
54817
54818 2006-10-10  Bruno Haible  <bruno@clisp.org>
54819
54820         Make it possible to #define gcd to an alias.
54821         * lib/gcd.c: Include config.h.
54822
54823 2006-10-10  Bruno Haible  <bruno@clisp.org>
54824
54825         Make it possible to #define c_isascii to an alias.
54826         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
54827         defined. Undefine the macros before defining them, to avoid gcc
54828         warnings.
54829         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
54830         define NO_C_CTYPE_MACROS early.
54831
54832 2006-10-10  Bruno Haible  <bruno@clisp.org>
54833
54834         Make it possible to #define set_program_name to an alias.
54835         * lib/progname.c: Don't undefine set_program_name; instead, undefine
54836         ENABLE_RELOCATABLE early.
54837
54838 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
54839
54840         Port to Tandem NSK OSS, which has 64-bit signed int but at most
54841         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
54842         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
54843         More generally, don't assume that 64-bit signed int is available
54844         if unsigned int is, and vice versa.
54845         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
54846         unsigned symbols, not on their signed counterparts.
54847         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
54848         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
54849         (UINT64_C, UINTMAX_C):
54850         Likewise.
54851         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
54852         unsigned counterparts.
54853         (Have_long_long, Unsigned): New macros.
54854         (Int): Renamed from INT.
54855         (strtoimax): Use the new macros.
54856         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
54857         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
54858         * modules/inttypes (inttypes.h): Substitute
54859         HAVE_UNSIGNED_LONG_LONG_INT.
54860         * modules/stdint (stdint.h): Likewise.
54861         (Files): Add m4/ulonglong.m4.
54862
54863 2006-10-10  Bruno Haible  <bruno@clisp.org>
54864
54865         Fix a gcc -Wshadow warning.
54866         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
54867         to 'bucket'.
54868         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
54869         gl_linked_indexof_from_to): Likewise.
54870         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
54871         Likewise.
54872         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
54873         Likewise.
54874         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
54875         Reported by Eric Blake.
54876
54877 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
54878
54879         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
54880         for NetBSD.  Problem reported by Bruno Haible.
54881
54882 2006-10-09  Jim Meyering  <jim@meyering.net>
54883
54884         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
54885         Patch from Bruno Haible.
54886
54887 2006-10-09  Jim Meyering  <jim@meyering.net>
54888
54889         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
54890         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
54891         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
54892
54893 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
54894
54895         Don't include <config.h> twice; this doesn't work in some cases,
54896         e.g., when config.h has "#define intmax_t long long int" and
54897         we include <config.h>, <inttypes.h>, <config.h> in that order.
54898         Problem reported by Matthew Woehlke in:
54899         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
54900         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
54901         * lib/fts-cycle.c: Don't include config.h.
54902         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
54903         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
54904         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
54905         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
54906         inttypes.h.
54907         * lib/xstrtoumax.c: Likewise.
54908         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
54909         __strtol and the like, so that this module is more like its siblings.
54910         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
54911         Remove; no longer needed now that we assume gnulib inttypes.h.
54912
54913 2006-10-08  Bruno Haible  <bruno@clisp.org>
54914
54915         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
54916         option.
54917
54918 2006-10-07  Jim Meyering  <jim@meyering.net>
54919
54920         * modules/inttypes (inttypes.h): Revert what seems to have been
54921         an inadvertent part of today's change: use "|", not "/" in the
54922         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
54923
54924 2006-10-07  Bruno Haible  <bruno@clisp.org>
54925
54926         * modules/sublist: New file.
54927
54928 2006-10-07  Bruno Haible  <bruno@clisp.org>
54929
54930         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
54931         * modules/argz (argz.h): Likewise.
54932         * modules/arpa_inet (arpa/inet.h): Likewise.
54933         * modules/byteswap (byteswap.h): Likewise.
54934         * modules/configmake (configmake.h): Likewise.
54935         * modules/fcntl (fcntl.h): Likewise.
54936         * modules/fnmatch (fnmatch.h): Likewise.
54937         * modules/getopt (getopt.h): Likewise.
54938         * modules/glob (glob.h): Likewise.
54939         * modules/inttypes (inttypes.h): Likewise.
54940         * modules/netinet_in (netinet/in.h): Likewise.
54941         * modules/poll (poll.h): Likewise.
54942         * modules/stdbool (stdbool.h): Likewise.
54943         * modules/stdint (stdint.h): Likewise.
54944         * modules/sys_select (sys/select.h): Likewise.
54945         * modules/sys_socket (sys/socket.h): Likewise.
54946         * modules/sys_stat (sys/stat.h): Likewise.
54947         * modules/sysexits (sysexits.h): Likewise.
54948         * modules/unistd (unistd.h): Likewise.
54949         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
54950         Add a "DO NOT EDIT" comment to the generated file.
54951         (func_import): Likewise for gnulib-comp.m4.
54952
54953 2006-10-07  Bruno Haible  <bruno@clisp.org>
54954
54955         * lib/gl_sublist.h: New file.
54956         * lib/gl_sublist.c: New file.
54957
54958 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
54959
54960         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
54961         name (relative to the original working directory) and the file
54962         name component (relative to the temporary working directory).  All
54963         callers changed.
54964         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
54965         * lib/mkdir-p.c (make_dir_parents): Likewise.
54966         * lib/mkdir-p.h (make_dir_parents): Likewise.
54967
54968 2006-10-06  Eric Blake  <ebb9@byu.net>
54969
54970         Define several macros for use by the clean-temp module.
54971         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
54972         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
54973         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
54974
54975         * lib/clean-temp.h (close_stream_temp): New declaration.
54976         * lib/clean-temp.c (includes): Pull in headers according to what
54977         other modules are in use.
54978         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
54979
54980 2006-10-06  Bruno Haible  <bruno@clisp.org>
54981
54982         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
54983         instead of fopen, fwriteerror.
54984
54985 2006-10-06  Bruno Haible  <bruno@clisp.org>
54986
54987         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
54988         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
54989         int.
54990         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
54991         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
54992         Return an error indicator.
54993         Suggested by Eric Blake.
54994
54995 2006-10-06  Bruno Haible  <bruno@clisp.org>
54996
54997         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
54998         Reported by Eric Blake.
54999
55000 2006-10-06  Bruno Haible  <bruno@clisp.org>
55001
55002         * modules/closeout (Description): Mention stderr too.
55003
55004 2006-10-06  Bruno Haible  <bruno@clisp.org>
55005         and Paul Eggert  <eggert@cs.ucla.edu>
55006
55007         * lib/closeout.c (close_stdout): Also close stderr.
55008         * lib/closeout.h: Update comment.
55009
55010 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
55011
55012         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
55013         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
55014         * lib/dirchownmod.c: Include lchown.h.
55015         * lib/lchown.c: Don't include files that lchown.h now includes.
55016         Don't declare chown, since lchown.h now does that.
55017         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
55018         (lchown): Define to rpl_chown if lchown is declared but
55019         does not exist.  Declare using a prototype if lchown is not
55020         declared.  Add a copyright notice.
55021         * lib/mkstemp.h: Include <unistd.h>.
55022         * lib/openat.c: Include lchown.h.
55023
55024         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
55025         we now test for that separately.
55026         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
55027         rather than O_NOFOLLOW, when testing whether it's possible to
55028         avoid a race condition reliably.
55029         * lib/savewd.c (savewd_chdir): Likewise.
55030
55031         Remove macros that are no longer needed now that stdint.h is
55032         reliable.
55033         * lib/fsusage.c (UINTMAX_MAX): Remove.
55034         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
55035         * lib/utimecmp.c (SIZE_MAX): Remove.
55036
55037         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
55038
55039         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
55040         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
55041         O_NOATIME works.
55042
55043 2006-10-05  Bruno Haible  <bruno@clisp.org>
55044
55045         * lib/gl_list.h (gl_sortedlist_search_from_to,
55046         gl_sortedlist_indexof_from_to): New declarations.
55047         (gl_list_implementation): New fields sortedlist_search_from_to,
55048         sortedlist_indexof_from_to.
55049         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
55050         inline functions.
55051         * lib/gl_list.c (gl_sortedlist_search_from_to,
55052         gl_sortedlist_indexof_from_to): New functions.
55053         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
55054         function.
55055         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
55056         (gl_array_sortedlist_search_from_to): New function.
55057         (gl_array_list_implementation): Update.
55058         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
55059         function.
55060         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
55061         (gl_carray_sortedlist_search_from_to): New function.
55062         (gl_carray_list_implementation): Update.
55063         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
55064         gl_linked_sortedlist_indexof_from_to): New functions.
55065         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
55066         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
55067         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
55068         gl_tree_sortedlist_indexof_from_to): New functions.
55069         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
55070         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
55071         Update.
55072         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
55073         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
55074         Update.
55075
55076 2006-10-05  Bruno Haible  <bruno@clisp.org>
55077
55078         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
55079         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
55080         (struct gl_list_implementation): Add fields search_from_to,
55081         indexof_from_to. Remove fields search, indexof.
55082         (gl_list_search): Use the search_from_to method.
55083         (gl_list_search_from, gl_list_search_from_to): New functions.
55084         (gl_list_indexof): Use the indexof_from_to method.
55085         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
55086         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
55087         (gl_list_search_from, gl_list_search_from_to): New functions.
55088         (gl_list_indexof): Use the indexof_from_to method.
55089         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
55090         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
55091         gl_array_indexof. Add start_index, end_index arguments.
55092         (gl_array_search_from_to): Renamed from gl_array_search. Add
55093         start_index, end_index arguments.
55094         (gl_array_remove, gl_array_list_implementation): Update.
55095         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
55096         gl_carray_indexof. Add start_index, end_index arguments.
55097         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
55098         start_index, end_index arguments.
55099         (gl_carray_remove, gl_carray_list_implementation): Update.
55100         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
55101         gl_linked_search. Add start_index, end_index arguments.
55102         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
55103         start_index, end_index arguments.
55104         (gl_linked_remove): Update.
55105         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
55106         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
55107         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
55108         field to 'size_t'.
55109         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
55110         gl_tree_search. Add start_index, end_index arguments.
55111         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
55112         start_index, end_index arguments.
55113         (gl_tree_remove): Update.
55114         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
55115         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
55116         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
55117         function.
55118         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
55119         gl_tree_search. Add start_index, end_index arguments.
55120         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
55121         start_index, end_index arguments.
55122         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
55123         Update.
55124         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
55125
55126 2006-10-05  Bruno Haible  <bruno@clisp.org>
55127
55128         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
55129
55130         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
55131         fwriteerror_temp): New declarations.
55132         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
55133         (descriptors): New variable.
55134         (cleanup): First, close the descriptors.
55135         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
55136         fclose_temp, fwriteerror_temp): New functions.
55137
55138 2006-10-04  Jim Meyering  <jim@meyering.net>
55139
55140         * lib/fts.c (fts_open): Tiny comment change.
55141
55142 2006-10-04  Bruno Haible  <bruno@clisp.org>
55143
55144         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
55145         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
55146         gl_LOCK_BODY.
55147         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
55148         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
55149         gl_LOCK_EARLY_BODY.
55150         (gl_LOCK): Require gl_LOCK_BODY.
55151
55152 2006-10-04  Bruno Haible  <bruno@clisp.org>
55153
55154         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
55155         (gl_oset_search_atleast): New declaration.
55156         (struct gl_oset_implementation): Add field 'search_atleast'.
55157         (gl_oset_search_atleast): New inline function.
55158         * lib/gl_oset.c (gl_oset_search_atleast): New function.
55159         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
55160         (gl_array_oset_implementation): Update.
55161         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
55162         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
55163         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
55164
55165 2006-10-04  Bruno Haible  <bruno@clisp.org>
55166
55167         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
55168
55169 2006-10-03  Bruno Haible  <bruno@clisp.org>
55170
55171         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
55172         from gl_avltreehash_list_implementation.
55173
55174 2006-10-03  Bruno Haible  <bruno@clisp.org>
55175
55176         * lib/gl_oset.c (gl_oset_add): Fix return type.
55177
55178 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
55179
55180         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
55181
55182 2006-10-02  Eric Blake  <ebb9@byu.net>
55183
55184         * modules/strnlen (Depends-on): Add extensions.
55185
55186 2006-10-02  Eric Blake  <ebb9@byu.net>
55187
55188         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
55189         definition in 2.60+.
55190
55191 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
55192
55193         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
55194         checks.
55195
55196 2006-10-02  Bruno Haible  <bruno@clisp.org>
55197
55198         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
55199         to the AUTOMAKE_OPTIONS.
55200         Reported by Jim Meyering.
55201
55202 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
55203
55204         Work around bug in Solaris 10 /proc file system:
55205         /proc/self/fd/NNN/.. isn't the parent directory of
55206         the directory whose file descriptor is NNN.  This needs to
55207         be worked around at run time, not compile time, since a
55208         program might be built on Solaris 8, where things work, and
55209         run on Solaris 10.
55210         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
55211         to use the following interface instead:
55212         (OPENAT_BUFFER_SIZE): New macro.
55213         (openat_proc_name): New function.
55214         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
55215         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
55216         Likewise.
55217         * lib/openat-proc.c: New file.
55218         * modules/openat (Files): Add lib/openat-proc.c.
55219         (Depends-on): Add same-inode, stdbool.
55220         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
55221
55222 2006-09-29  Bruno Haible  <bruno@clisp.org>
55223
55224         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
55225         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
55226         argument. Set stdout_closed before testing for ferror, not after.
55227         (fwriteerror, fwriteerror_no_ebadf): New functions.
55228
55229 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55230
55231         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
55232
55233 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
55234
55235         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
55236         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
55237
55238 2006-09-28  Jim Meyering  <jim@meyering.net>
55239
55240         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
55241         Include <unistd.h>.
55242
55243 2006-09-28  Bruno Haible  <bruno@clisp.org>
55244
55245         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
55246         * modules/linkedhash-list (Depends-on): Likewise.
55247         * modules/rbtreehash-list (Depends-on): Likewise.
55248
55249 2006-09-28  Bruno Haible  <bruno@clisp.org>
55250
55251         * lib/strndup.h: Simplify the redefinition of strndup.
55252         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
55253         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
55254
55255 2006-09-28  Bruno Haible  <bruno@clisp.org>
55256
55257         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
55258         * lib/gl_linkedhash_list.c: Likewise.
55259         * lib/gl_rbtreehash_list.c: Likewise.
55260
55261 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
55262
55263         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
55264         getaddrinfo.
55265
55266         * lib/__fpending.h: Don't include <stdio_ext.h> unless
55267         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
55268         it causes <stdio_ext.h> to cause a compile-time error.
55269         Problem reported by Nelson H. F. Beebe.
55270         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
55271         of HAVE_DECL___PENDING.
55272
55273         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
55274         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
55275         declaration.
55276
55277 2006-09-27  Jim Meyering  <jim@meyering.net>
55278
55279         This file could end up with a definition for a function
55280         named __strndup, rather than rpl_strndup on a system with
55281         incomplete weak_alias support.
55282         * lib/strndup.c (strndup): Rename from __strndup.
55283         Remove #defines that used to map __strndup to strndup.
55284         Don't use K&R prototypes.
55285         Remove LIBC-related code, since this file is not sync'd with glibc.
55286         * lib/strndup.h: Revamp, accordingly.
55287         * m4/strndup.m4: Modernize.
55288
55289 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
55290
55291         * modules/savewd (Depends-on): Add 'raise'.
55292         * lib/savewd.c: Include <signal.h>, for 'raise'.
55293
55294 2006-09-26  Jim Meyering  <jim@meyering.net>
55295
55296         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
55297         when we detect Darwin 8.7.0's acl_get_file bug.
55298         Rearrange to perform the new (below) run-test while $LIBS
55299         contains any acl-related library.  Set USE_ACL at the end.
55300         (gl_ACL_GET_FILE): New function.
55301
55302 2006-09-26  Eric Blake  <ebb9@byu.net>
55303
55304         * lib/verror.c: Include <config.h> unconditionally.
55305
55306 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
55307
55308         * modules/clock-time (Maintainer): Add self.
55309         * modules/getlogin_r (Depends-on): Add extensions.
55310
55311 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55312
55313         * modules/clock-time: New module.
55314         * modules/nanosleep (Depends-on): Add clock-time.
55315         * modules/gethrxtime (Depends-on): Likewise.
55316         * modules/gettime (Depends-on): Likewise.
55317         * modules/settime (Depends-on): Likewise.
55318
55319         * modules/fts-lgpl: Depend on openat.
55320         * modules/mkancesdirs: Depend on savewd.
55321         * modules/mkdir-p: Likewise.
55322
55323 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55324
55325         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
55326
55327         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
55328         `gl_have_arbitrary_file_name_length_limit' to
55329         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
55330         actually works between configure runs.
55331
55332 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55333             Bruno Haible  <bruno@clisp.org>
55334
55335         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
55336
55337 2006-09-25  Jim Meyering  <jim@meyering.net>
55338
55339         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
55340         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
55341
55342 2006-09-25  Eric Blake  <ebb9@byu.net>
55343
55344         * gnulib-tool (func_import, func_create_testdir): Fix typos in
55345         exec's in 2006-09-18 patch when shuffling fds.
55346
55347 2006-09-25  Bruno Haible  <bruno@clisp.org>
55348
55349         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
55350         Reported by Jim Meyering.
55351
55352 2006-09-24  Jim Meyering  <jim@meyering.net>
55353
55354         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
55355         compare a pointer against a literal "0".  That caused failures with
55356         at least HP-UX's hpcc.
55357
55358 2006-09-22  Simon Josefsson  <jas@extundo.com>
55359
55360         * modules/gc-sha1:
55361         * modules/gc-md4:
55362         * modules/gc-hmac-sha1:
55363         * modules/gc-hmac-md5:
55364         * modules/gc-des:
55365         * modules/gc-arcfour: Distribute more files.
55366
55367 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55368
55369         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
55370         (gl_linked_iterator_from_to): Initialize struct completely.
55371         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
55372         (gl_tree_iterator_from_to): Likewise
55373         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
55374         * lib/gl_array_list.c [lint] (gl_array_iterator)
55375         (gl_array_iterator_from_to): Likewise.
55376         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
55377         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
55378         (gl_carray_iterator_from_to): Likewise.
55379
55380         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
55381         * lib/md4.c (md4_process_block): Remove unused variable.
55382         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
55383         parentheses for clarity.
55384
55385 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55386
55387         * modules/bison-i18n (Depends-on): Add gettext.
55388
55389 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55390
55391         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
55392         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
55393         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
55394         also add missing comma that caused broken test.
55395         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
55396         stdlib.h, for `abort'.
55397         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
55398         variables.
55399         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
55400         include unistd.h if present, for `rmdir'.
55401         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
55402         variables.
55403         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
55404         in the process include standard headers for prototypes.
55405         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
55406         gets declared on GNU/Linux.
55407         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
55408         unistd.h, for `rmdir'.
55409         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
55410
55411         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
55412         always true.
55413         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
55414
55415         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
55416
55417 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55418
55419         * gnulib-tool (func_version): Create output all at once.  This
55420         may help avoid triggering unnecessary SIGPIPEs, and at any
55421         rate it doesn't hurt.
55422
55423 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55424             Bruno Haible  <bruno@clisp.org>
55425
55426         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
55427         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
55428         * m4/signed.m4 (bh_C_SIGNED): Likewise.
55429
55430         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
55431         (gl_FUNC_VASPRINTF): Invoke it.
55432
55433 2006-09-22  Bruno Haible  <bruno@clisp.org>
55434
55435         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
55436         getloadavg.c as first argument.
55437
55438 2006-09-22  Bruno Haible  <bruno@clisp.org>
55439
55440         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
55441         at the beginning of the gl_INIT macro.
55442         * modules/getloadavg (configure.ac): Pass $gl_source_base to
55443         gl_GETLOADAVG.
55444
55445 2006-09-22  Bruno Haible  <bruno@clisp.org>
55446
55447         * gnulib-tool (func_create_megatestdir): Don't include the config-h
55448         module.
55449         Suggested by Ralf Wildenhues.
55450
55451 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
55452
55453         Import this patch from libc:
55454
55455         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
55456
55457         * lib/regex_internal.c (re_string_reconstruct): Handle
55458         offset < pstr->valid_raw_len && pstr->offsets_needed case.
55459         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
55460         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
55461         re_string_context_at.
55462
55463         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
55464         now requires it.
55465         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
55466         gl_REGEX now does it for us.
55467         (gl_REGEX): Add test taken from
55468         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
55469
55470         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
55471         Check that large offsets work.  Modernize Autoconf usages.
55472         Prefer "yes" to mean a good thing rather than a bad.
55473         Don't put "#define mkstemp" in config.h, as this might interfere
55474         with standard system headers that "#define mkstemp mkstemp64".
55475
55476         * modules/mkstemp (Depends-on): Add extensions, so that
55477         mkstemp is visible on some platforms.
55478         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
55479         (Include): Change to "mkstemp.h" from <stdlib.h>.
55480         (Files): Add mkstemp.h.
55481
55482         * lib/mkstemp.h: New file, since some standard headers
55483         #define mkstemp.
55484         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
55485         Include "mkstemp.h".
55486         Make the _LIBC code resemble glibc original more,
55487         e.g., use K&R style.
55488         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
55489         (mkstemp): Remove, since mkstemp.h does this for us.
55490         * lib/stdlib--.h: Include mkstemp.h.
55491
55492         Import this patch from libc:
55493
55494         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
55495
55496         * lib/tempname.c (__gen_tempname): Change attempts_min
55497         into a macro.  Use preprocessor to decide how to initialize
55498         attempts [Coverity CID 67].
55499
55500 2006-09-20  Bruno Haible  <bruno@clisp.org>
55501
55502         * lib/mkdtemp.c: Import from libc.
55503         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
55504                 * sysdeps/posix/tempname.c (__gen_tempname): Change
55505                 attempts_min into a macro.  Use preprocessor to decide how to
55506                 initialize attempts [Coverity CID 67].
55507         2001-11-27  Paul Eggert  <eggert@twinsun.com>
55508                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
55509                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
55510
55511 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55512
55513         * gnulib-tool (func_exit): New function, to allow to pass the
55514         exit status portably through the trap.  Use everywhere.
55515         (--help, --version): Signal a write error.
55516         (trap): catch SIGPIPE, for write errors.
55517         Exit at the end of the trap, with the correct exit status.
55518
55519 2006-09-19  Karl Berry  <karl@gnu.org>
55520
55521         * doc/gnulib.texi: note about the license texinfo files.
55522
55523 2006-09-19  Eric Blake  <ebb9@byu.net>
55524
55525         * gnulib-tool: Avoid space-tab.
55526
55527 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
55528
55529         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
55530         that prevented coreutils 6.1 from building.  Problem reported
55531         by Petter Reinholdtsen.
55532
55533 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
55534
55535         * gnulib-tool (avoidlist): Fix typo that broke options like
55536         --avoid=lock that are used by coreutils bootstrap.
55537
55538 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
55539
55540         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
55541         more systematically.
55542
55543 2006-09-18  Jim Meyering  <jim@meyering.net>
55544
55545         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
55546
55547 2006-09-18  Bruno Haible  <bruno@clisp.org>
55548
55549         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
55550
55551 2006-09-18  Bruno Haible  <bruno@clisp.org>
55552
55553         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
55554         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
55555         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
55556         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
55557         * m4/gettext.m4: Require autoconf >= 2.52.
55558         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
55559         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
55560         of gl_cv_header_inttypes_h.
55561
55562 2006-09-18  Bruno Haible  <bruno@clisp.org>
55563
55564         * lib/javaversion.c: Include configmake.h.
55565
55566 2006-09-18  Bruno Haible  <bruno@clisp.org>
55567
55568         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
55569         avoid that the while loops be executed in a subshell.
55570
55571 2006-09-18  Bruno Haible  <bruno@clisp.org>
55572
55573         * MODULES.html.sh (func_module): Break long lines.
55574         Suggested by Bruce Korb <bkorb@gnu.org>.
55575
55576 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55577
55578         Speed up by a factor of 1.12.
55579         * gnulib-tool (nl): New variable.
55580         (func_import): Rewrite include directive extraction to only read each
55581         directive once.
55582
55583 2006-09-17  Bruno Haible  <bruno@clisp.org>
55584
55585         * modules/javaversion (Makefile.am): Remove DEFS setting.
55586         (Depends-on): Add configmake, for PKGDATADIR definition.
55587
55588 2006-09-17  Bruno Haible  <bruno@clisp.org>
55589
55590         * gnulib-tool (func_create_testdir): Rewrite all files at once.
55591
55592 2006-09-17  Bruno Haible  <bruno@clisp.org>
55593
55594         * gnulib-tool (func_append): New function, stolen from libtool.m4.
55595         (func_modules_transitive_closure, func_modules_add_dummy,
55596         func_modules_to_filelist, func_import, func_create_testdir,
55597         func_create_megatestdir, ...): Use it wherever possible.
55598         Suggested by Ralf Wildenhues.
55599
55600 2006-09-16  Karl Berry  <karl@gnu.org>
55601
55602         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
55603         to avoid sectioning errors.
55604         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
55605         [ifinfo]: blank line after @center-ed titles.
55606         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
55607         Spell FSF address consistently with others.
55608         (These changes approved by rms.)
55609
55610 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55611
55612         Speed up by a factor of 1.61.
55613         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
55614         already checked module names again.
55615
55616 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55617
55618         Speed up by a factor of 1.13.
55619         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
55620         for new_files, and the input to func_add_or_update.
55621
55622 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55623
55624         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
55625         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
55626
55627 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
55628
55629         * modules/mkancesdirs (Depends-on): Add fcntl.
55630         * modules/savewd: New file.
55631         * MODULES.html.sh (File system functions): Add savewd.
55632
55633         * modules/configmake (Makefile.am): Add support for the
55634         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
55635
55636 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
55637
55638         * m4/savewd.m4: New file.
55639
55640 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
55641
55642         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
55643         (dirchownmod): New arg FD.  All callers changed.
55644         Use FD rather than opening the directory ourself, as opening is
55645         now the caller's responsibility.
55646         * lib/dirchownmod.h: Likewise.
55647         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
55648         hosts that require <sys/types.h> before <sys/stat.h>.  Include
55649         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
55650         (test_dir): Remove.
55651         (mkancesdirs): Return length of prefix of FILE that has already
55652         been made, or -2 if there is a child doing the work.  Redo
55653         algorithm so that it is O(N) rather than O(N**2).  Optimize away
55654         ".", and treat ".." specially since it might stray back into
55655         already-created areas.  Use a subprocess if necessary.  New arg
55656         WD; all users changed.  MAKE_DIR function should now return 1
55657         if it creates a directory that is not readable.  Return -2 if
55658         a child process is spun off.
55659         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
55660         Adjust signature to match code.
55661         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
55662         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
55663         all users changed.
55664         * lib/savewd.c, lib/savewd.h: New files.
55665
55666 2006-09-15  Jim Meyering  <jim@meyering.net>
55667
55668         * modules/rename-dest-slash: New module.
55669         * MODULES.html.sh (posix_compat): Add it here.
55670
55671         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
55672
55673 2006-09-15  Jim Meyering  <jim@meyering.net>
55674
55675         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
55676         file.
55677
55678         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
55679
55680 2006-09-15  Jim Meyering  <jim@meyering.net>
55681
55682         * lib/rename-dest-slash.c (has_trailing_slash): Use
55683         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
55684         (rpl_rename_dest_slash): Perform the cheaper trailing slash
55685         test before testing whether SRC is a directory.
55686         Suggestions from Bruno Haible.
55687
55688         Avoid a warning about an unused variable.
55689         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
55690         into the #ifdef block where it's used.
55691
55692         * lib/rename-dest-slash.c: New file.
55693
55694 2006-09-14  Bruno Haible  <bruno@clisp.org>
55695
55696         * lib/allocsa.c: Include <config.h> unconditionally.
55697         * lib/asnprintf.c: Likewise.
55698         * lib/asprintf.c: Likewise.
55699         * lib/c-strcasecmp.c: Likewise.
55700         * lib/c-strcasestr.c: Likewise.
55701         * lib/c-strncasecmp.c: Likewise.
55702         * lib/c-strstr.c: Likewise.
55703         * lib/classpath.c: Likewise.
55704         * lib/clean-temp.c: Likewise.
55705         * lib/concatpath.c: Likewise.
55706         * lib/copy-file.c: Likewise.
55707         * lib/csharpcomp.c: Likewise.
55708         * lib/csharpexec.c: Likewise.
55709         * lib/execute.c: Likewise.
55710         * lib/fatal-signal.c: Likewise.
55711         * lib/findprog.c: Likewise.
55712         * lib/fwriteerror.c: Likewise.
55713         * lib/gl_array_list.c: Likewise.
55714         * lib/gl_array_oset.c: Likewise.
55715         * lib/gl_avltree_list.c: Likewise.
55716         * lib/gl_avltree_oset.c: Likewise.
55717         * lib/gl_avltreehash_list.c: Likewise.
55718         * lib/gl_carray_list.c: Likewise.
55719         * lib/gl_linked_list.c: Likewise.
55720         * lib/gl_linkedhash_list.c: Likewise.
55721         * lib/gl_list.c: Likewise.
55722         * lib/gl_oset.c: Likewise.
55723         * lib/gl_rbtree_list.c: Likewise.
55724         * lib/gl_rbtree_oset.c: Likewise.
55725         * lib/gl_rbtreehash_list.c: Likewise.
55726         * lib/imaxabs.c: Likewise.
55727         * lib/imaxdiv.c: Likewise.
55728         * lib/javacomp.c: Likewise.
55729         * lib/javaexec.c: Likewise.
55730         * lib/javaversion.c: Likewise.
55731         * lib/linebreak.c: Likewise.
55732         * lib/localcharset.c: Likewise.
55733         * lib/lock.c: Likewise.
55734         * lib/mbchar.c: Likewise.
55735         * lib/mbswidth.c: Likewise.
55736         * lib/mkdtemp.c: Likewise.
55737         * lib/pipe.c: Likewise.
55738         * lib/printf-args.c: Likewise.
55739         * lib/printf-parse.c: Likewise.
55740         * lib/progname.c: Likewise.
55741         * lib/progreloc.c: Likewise.
55742         * lib/readlink.c: Likewise.
55743         * lib/sh-quote.c: Likewise.
55744         * lib/stpcpy.c: Likewise.
55745         * lib/stpncpy.c: Likewise.
55746         * lib/strcasecmp.c: Likewise.
55747         * lib/strcasestr.c: Likewise.
55748         * lib/strcspn.c: Likewise.
55749         * lib/striconv.c: Likewise.
55750         * lib/strncasecmp.c: Likewise.
55751         * lib/strnlen1.c: Likewise.
55752         * lib/strstr.c: Likewise.
55753         * lib/strtok_r.c: Likewise.
55754         * lib/tls.c: Likewise.
55755         * lib/tmpdir.c: Likewise.
55756         * lib/unicodeio.c: Likewise.
55757         * lib/unsetenv.c: Likewise.
55758         * lib/vasnprintf.c: Likewise.
55759         * lib/vasprintf.c: Likewise.
55760         * lib/wait-process.c: Likewise.
55761         * lib/xallocsa.c: Likewise.
55762         * lib/xsetenv.c: Likewise.
55763         * lib/xstriconv.c: Likewise.
55764
55765 2006-09-13  Simon Josefsson  <jas@extundo.com>
55766
55767         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
55768         that internally, suggested by Ralf Wildenhues
55769         <Ralf.Wildenhues@gmx.de>.
55770
55771 2006-09-13  Simon Josefsson  <jas@extundo.com>
55772
55773         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
55774         @LIBOBJS@.
55775         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55776
55777 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
55778
55779         * lib/_fpending.c: Include <config.h> unconditionally, since we no
55780         longer worry about uses that don't define HAVE_CONFIG_H.
55781         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
55782         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
55783         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
55784         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
55785         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
55786         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
55787         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
55788         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
55789         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
55790         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
55791         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
55792         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
55793         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
55794         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
55795         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
55796         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
55797         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
55798         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
55799         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
55800         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
55801         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
55802         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
55803         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
55804         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
55805         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
55806         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
55807         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
55808         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
55809         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
55810         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
55811         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
55812         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
55813         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
55814         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
55815         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
55816         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
55817         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
55818         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
55819         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
55820         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
55821         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
55822         Likewise.
55823
55824 2006-09-13  Eric Blake  <ebb9@byu.net>
55825
55826         * lib/getopt.c: Fix typo in last commit.
55827
55828 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
55829
55830         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
55831         dgettext.
55832
55833 2006-09-12  Jim Meyering  <jim@meyering.net>
55834
55835         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
55836         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
55837         Reported by Nelson H. F. Beebe.
55838
55839 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
55840
55841         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
55842         program_invocation_name and program_invocation_short_name are
55843         initialized.
55844         * lib/argp-namefrob.h: Move declarations of program_invocation_name
55845         and program_invocation_short_name to argp.h, so they are visible
55846         to user programs.
55847         * lib/argp.h: Likewise
55848
55849 2006-09-10  Bruno Haible  <bruno@clisp.org>
55850
55851         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
55852         m4/inttypes_h.m4, m4/uintmax_t.m4.
55853
55854 2006-09-10  Bruno Haible  <bruno@clisp.org>
55855
55856         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
55857         gl_AC_TYPE_UINTMAX_T.
55858
55859 2006-09-10  Bruno Haible  <bruno@clisp.org>
55860
55861         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
55862
55863 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
55864
55865         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
55866         convention.  Text proposed by Bruno Haible.
55867         (struct argp_option): Document the use of N_() wrappers.
55868
55869         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
55870         '\v', and translate the two parts separately, instead of feeding
55871         the whole string to gettext.  This allows to exclude
55872         '\v' from the strings visible to the translator by writing doc
55873         strings as N_("..") "\v" N_("..").
55874
55875 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
55876
55877         * config/srclist.txt: Undo latest change; the bug was fixed.
55878
55879 2006-09-09  Bruno Haible  <bruno@clisp.org>
55880
55881         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
55882         assignments if building a library without libtool.
55883         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
55884         in func_emit_lib_Makefile_am.
55885         (func_import): When building a static library libfoo.a, arrange to
55886         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
55887         (func_create_testdir): Likewise.
55888         * modules/gc (configure.ac, Makefile.am): If building statically,
55889         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
55890         * modules/iconvme (configure.ac, Makefile.am): Likewise.
55891         * modules/striconv (configure.ac, Makefile.am): Likewise.
55892         Based on a suggestion by Ralf Wildenhues.
55893
55894 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
55895
55896         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
55897         Check for unistd.h too, since Autoconf doesn't assume POSIX.
55898         Also:
55899
55900         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
55901         Add year_2050_test to catch glibc bug 2821
55902         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
55903
55904         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
55905         Prefer #ifdef to #if.
55906
55907         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
55908         Return from 'main' instead of calling 'exit'.
55909
55910 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
55911
55912         * lib/mktime.c (guess_time_tm): Fix bug where mktime
55913         returned the maximum time_t value rather than (time_t) -1.
55914         Problem originally reported by William Bardwell
55915         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
55916
55917         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
55918         Moved to here ...
55919         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
55920         ... from here.
55921
55922 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
55923
55924         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
55925         2821 is fixed.
55926
55927 2006-09-08  Jim Meyering  <jim@meyering.net>
55928
55929         Don't make generated files read-only.  That would bother too many
55930         people.  However, do retain the ability to work when targets are
55931         read-only: remove the destination and temporary files before writing
55932         them (when generated via sed or echo), or by using the -f option for
55933         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
55934         * modules/alloca-opt, modules/argz, modules/arpa_inet:
55935         * modules/byteswap, modules/configmake, modules/fcntl:
55936         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
55937         * modules/localcharset, modules/netinet_in, modules/poll:
55938         * modules/stdbool, modules/stdint, modules/sys_select:
55939         * modules/sys_socket, modules/sys_stat, modules/sysexits:
55940
55941 2006-09-08  Jim Meyering  <jim@meyering.net>
55942
55943         Avoid new build failure on FreeBSD 6.0.
55944         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
55945         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
55946         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
55947
55948 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55949
55950         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
55951
55952 2006-09-07  Jim Meyering  <jim@meyering.net>
55953
55954         Fix global typo in last change: use chmod u-w, not chmod u-x.
55955         Spotted by Paul Eggert and Bruce Korb.
55956         * modules/alloca-opt, modules/argz, modules/arpa_inet:
55957         * modules/byteswap, modules/configmake, modules/fcntl:
55958         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
55959         * modules/localcharset, modules/netinet_in, modules/poll:
55960         * modules/stdbool, modules/stdint, modules/sys_select:
55961         * modules/sys_socket, modules/sys_stat, modules/sysexits:
55962
55963 2006-09-06  Jim Meyering  <jim@meyering.net>
55964
55965         Make generated files be read-only.
55966         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
55967         Ensure that each generated file is now read-only.
55968         * modules/argz: Likewise.
55969         * modules/arpa_inet: Likewise.
55970         * modules/byteswap: Likewise.
55971         * modules/configmake: Likewise.
55972         * modules/fcntl: Likewise.
55973         * modules/fnmatch: Likewise.
55974         * modules/getopt: Likewise.
55975         * modules/glob: Likewise.
55976         * modules/inttypes: Likewise.
55977         * modules/netinet_in: Likewise.
55978         * modules/poll: Likewise.
55979         * modules/stdbool: Likewise.
55980         * modules/stdint: Likewise.
55981         * modules/sys_select: Likewise.
55982         * modules/sys_socket: Likewise.
55983         * modules/sys_stat: Likewise.
55984         * modules/sysexits: Likewise.
55985         * modules/localcharset: Same as above, but continue using temporary
55986         file named "t-$@" (why different?) rather than the "$@-t" used
55987         everywhere else.
55988
55989         * modules/sysexits (Makefile.am): Replace literal occurrences
55990         of "sysexit.h" more readable, and more consistent, "$@".
55991
55992 2006-09-06  Bruno Haible  <bruno@clisp.org>
55993
55994         * modules/striconv: New file.
55995         * modules/xstriconv: New file.
55996         * MODULES.html.sh (Internationalization functions): Add striconv,
55997         xstriconv.
55998
55999 2006-09-06  Bruno Haible  <bruno@clisp.org>
56000
56001         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
56002         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
56003         not using libtool correctly.
56004
56005 2006-09-06  Bruno Haible  <bruno@clisp.org>
56006
56007         * lib/striconv.h: New file.
56008         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
56009         iconvstring.c.
56010         * lib/xstriconv.h: New file.
56011         * lib/xstriconv.c: New file.
56012
56013 2006-09-06  Bruno Haible  <bruno@clisp.org>
56014
56015         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
56016         lib_..._LDFLAGS.
56017
56018 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56019
56020         * lib/argz_.h: Sync from Libtool.
56021
56022         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
56023                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
56024
56025         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
56026
56027 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
56028
56029         * modules/trim: New file.
56030
56031 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
56032
56033         * lib/trim.h: New file.
56034         * lib/trim.c: New file.
56035
56036 2006-09-05  Bruno Haible  <bruno@clisp.org>
56037
56038         * MODULES.html.sh (String handling): Add trim.
56039
56040 2006-09-04  Karl Berry  <karl@gnu.org>
56041
56042         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
56043         until next release.
56044
56045 2006-09-03  Bruno Haible  <bruno@clisp.org>
56046
56047         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
56048         correctly.
56049
56050 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
56051
56052         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
56053         not gl_GETLOADAVG.  Omit unneeded semicolons.
56054         Problems reported by Ralf Wildenhues in
56055         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
56056         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
56057         at the end, which is the usual gnulib style.
56058
56059         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
56060         of doing all the work ourselves.
56061         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
56062         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
56063
56064 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
56065
56066         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
56067         Problem reported by Ralf Wildenhues in
56068         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
56069
56070         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
56071         HAVE_STRUCT_STATFS_F_FSTYPENAME.
56072
56073 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
56074
56075         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
56076         yesterday's patch by changing test -n to test -z.
56077
56078 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
56079
56080         * modules/getloadavg (Files): Add m4/getloadavg.m4.
56081         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
56082         the former is now obsolescent.
56083
56084         * modules/chdir-long (Depends-on): Add fcntl.
56085
56086 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
56087
56088         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
56089         obsolescent, and programs should use gnulib instead.
56090         * m4/getloadavg.m4: New file, with contents taken from Autoconf
56091         but with prefixes changed.
56092
56093 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
56094
56095         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
56096         or stdbool.h, because they might not exist while configuring.
56097
56098         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
56099         Don't include unistd.h or limits.h; not needed, since chdir-long.h
56100         does that for us.
56101         (O_DIRECTORY): Remove.
56102
56103 2006-08-31  Eric Blake  <ebb9@byu.net>
56104
56105         * gnulib-tool: Don't let emacs change spaces to TAB.
56106
56107 2006-08-31  Bruno Haible  <bruno@clisp.org>
56108
56109         * gnulib-tool: When calling func_import more than once, do it in a
56110         subshell.
56111         Reported by Eric Blake <ebb9@byu.net>.
56112
56113 2006-08-31  Bruno Haible  <bruno@clisp.org>
56114
56115         * gnulib-tool (nl): Remove variable.
56116         (sed_transform_lib_file): Use more robust test for config-h module.
56117         (func_import): Fix typo in 2006-08-25 patch.
56118
56119 2006-08-31  Bruno Haible  <bruno@clisp.org>
56120
56121         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
56122         specified, augment Makefile.am variables instead of assigning them.
56123
56124 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
56125
56126         Work around a bug in both the Linux and SunOS 64-bit kernels:
56127         nanosleep mishandles sleeps for longer than 2**31 seconds.
56128         Problem reported by Frank v Waveren in
56129         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
56130         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
56131         Check for nanosleep bug.
56132         (LIB_NANOSLEEP): Append clock_gettime library if needed.
56133
56134 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
56135
56136         Work around a bug in both the Linux and SunOS 64-bit kernels:
56137         nanosleep mishandles sleeps for longer than 2**31 seconds.
56138         Problem reported by Frank v Waveren in
56139         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
56140         * lib/nanosleep.c (BILLION): New constant.
56141         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
56142         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
56143         implementation.
56144
56145 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
56146
56147         * modules/nanosleep (Depends-on): Add gettime.
56148
56149 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
56150         and Simon Josefsson  <jas@extundo.com>
56151         and Oskar Liljeblad  <oskar@osk.mine.nu>
56152
56153         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
56154         * gnulib-tool (func_import): New license type 'unmodifiable license
56155         text'.
56156         * modules/fdl: Use it.  Longer description.
56157         * module/gpl, module/lgpl: New files.
56158
56159 2006-08-30  Jim Meyering  <jim@meyering.net>
56160
56161         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
56162         shadowing the parameter.
56163
56164 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56165
56166         Sync from Libtool:
56167
56168         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56169
56170         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
56171         sharing with gnulib.  Report by Eric Blake.
56172
56173 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
56174
56175         * modules/isapipe: New file.
56176         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
56177
56178 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
56179
56180         * modules/configmake (Makefile.am): Add a comment, and omit
56181         the CONFIGMAKE_ prefix from generated macro names.  Suggested
56182         by Bruno Haible.
56183
56184 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
56185
56186         * m4/isapipe.m4: New file.
56187
56188 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
56189
56190         * lib/isapipe.c, lib/isapipe.h: New files.
56191
56192 2006-08-29  Jim Meyering  <jim@meyering.net>
56193
56194         * modules/configmake (Makefile.am): Make configmake.h depend on
56195         Makefile.  Otherwise, a stale configmake.h could hang around.
56196
56197 2006-08-29  Eric Blake  <ebb9@byu.net>
56198
56199         * lib/error.c (error_at_line, print_errno_message): Match libc, after
56200         resolution of upstream bug 3044.
56201
56202 2006-08-29  Bruno Haible  <bruno@clisp.org>
56203
56204         * modules/localcharset (Depends-on): Add configmake.
56205         (Makefile.am): Remove setting of LIBDIR through DEFS.
56206
56207 2006-08-29  Bruno Haible  <bruno@clisp.org>
56208
56209         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
56210         defined.
56211
56212 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
56213
56214         * modules/fcntl: New file.
56215         * modules/chdir-safer (Depends-on): Add fcntl.
56216         * modules/fts: Likewise.
56217         * modules/mkdir-p: Likewise.
56218
56219         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
56220         This undoes the most recent change, since we're now addressing the
56221         problem in a different way.
56222
56223         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
56224         into output, since the output might be called Makefile.am even
56225         if $makefile_name is something different.
56226         (func_import): Use $makefile_am rather than
56227         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
56228         empty.
56229
56230         * modules/inttypes (Files): Add m4/inttypes-h.m4.
56231
56232 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
56233
56234         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
56235         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
56236         recent change to stdint.m4, since we're now addressing the problem in a
56237         different way.
56238
56239 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
56240
56241         * m4/fcntl_h.m4: New file.
56242
56243 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
56244
56245         * lib/fcntl_.h: New file.
56246         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
56247         the fcntl module.
56248         * lib/dirchownmod.c: Likewise.
56249         * lib/fts.c: Likewise.
56250
56251         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
56252         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
56253         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
56254         just before including <inttypes.h>, to avoid circular inclusion.
56255
56256 2006-08-28  Jim Meyering  <jim@meyering.net>
56257
56258         * doc/visibility.texi: Actually read and correct the grammar of the
56259         sentence affected by yesterday's change.
56260
56261 2006-08-28  Eric Blake  <ebb9@byu.net>
56262
56263         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
56264         needs wrapper.
56265
56266 2006-08-28  Eric Blake  <ebb9@byu.net>
56267
56268         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
56269
56270 2006-08-28  Eric Blake  <ebb9@byu.net>
56271
56272         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
56273
56274 2006-08-28  Bruno Haible  <bruno@clisp.org>
56275
56276         * modules/c-strstr: New file, from GNU gettext.
56277         * MODULES.html.sh (String handling): Add c-strstr.
56278
56279 2006-08-28  Bruno Haible  <bruno@clisp.org>
56280
56281         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
56282         macros.
56283         Reported by Eric Blake.
56284
56285 2006-08-28  Bruno Haible  <bruno@clisp.org>
56286
56287         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
56288         (VASNPRINTF): Return a string of length > INT_MAX without failing.
56289         * lib/vasprintf.c: Include errno.h, limits.h.
56290         (EOVERFLOW): New fallback definition.
56291         (vasprintf): Test here whether the string length is > INT_MAX.
56292         * lib/vsnprintf.c: Include errno.h, limits.h.
56293         (EOVERFLOW): New fallback definition.
56294         (vsnprintf): Fix bug when generated string was too long for the buffer.
56295         Test here whether the string length is > INT_MAX.
56296
56297 2006-08-28  Bruno Haible  <bruno@clisp.org>
56298
56299         * lib/inttypes_.h (SCNX*): Remove definitions.
56300         Reported by Eric Blake.
56301
56302 2006-08-28  Bruno Haible  <bruno@clisp.org>
56303
56304         * lib/c-strstr.h: New file, from GNU gettext.
56305         * lib/c-strstr.c: New file, from GNU gettext.
56306
56307 2006-08-28  Bruno Haible  <bruno@clisp.org>
56308
56309         * gnulib-tool: Reorder some statements.
56310
56311 2006-08-28  Bruno Haible  <bruno@clisp.org>
56312
56313         * gnulib-tool: New option --makefile-name.
56314         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
56315         $makefile_name.
56316         (func_import): Write $makefile_name to the cache file, and read it from
56317         there unless explicitly specified. Use $makefile_name as file name
56318         instead of Makefile.am. Adjust the recommendations accordingly.
56319
56320 2006-08-28  Bruno Haible  <bruno@clisp.org>
56321
56322         * gnulib-tool (func_verify_module): Check against misapplying patch.
56323
56324 2006-08-28  Bruno Haible  <bruno@clisp.org>
56325
56326         * gnulib-tool (func_relativize, func_relconcat): New functions.
56327         Give an error if --local-dir is given with --update.
56328         Remove trailing slashes from $local_gnulib_dir.
56329         (func_import): Store the relativized $local_gnulib_dir in
56330         gnulib-cache.m4, and read it from there if not specified explicitly.
56331
56332 2006-08-28  Bruno Haible  <bruno@clisp.org>
56333
56334         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
56335         is the current directory. Respect also $local_gnulib_dir.
56336
56337 2006-08-28  Bruno Haible  <bruno@clisp.org>
56338             Simon Josefsson  <jas@extundo.com>
56339
56340         BeOS portability.
56341         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
56342
56343 2006-08-27  Jim Meyering  <jim@meyering.net>
56344
56345         * doc/visibility.texi: Remove duplicate word: "pointer".
56346
56347 2006-08-26  Bruno Haible  <bruno@clisp.org>
56348
56349         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
56350         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
56351         (Makefile.am): Create inttypes.h from inttypes_.h.
56352         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
56353
56354         * modules/imaxabs: New file.
56355
56356         * modules/imaxdiv: New file.
56357
56358 2006-08-26  Bruno Haible  <bruno@clisp.org>
56359
56360         * m4/inttypes.m4: New file.
56361         * m4/_inttypes_h.m4: Remove file.
56362         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
56363         PRI_MACROS_BROKEN.
56364         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
56365
56366         * m4/imaxabs.m4: New file.
56367
56368         * m4/imaxdiv.m4: New file.
56369
56370 2006-08-26  Bruno Haible  <bruno@clisp.org>
56371
56372         * lib/inttypes_.h: New file.
56373         * lib/inttypes.h: Remove file.
56374         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
56375
56376         * lib/imaxabs.c: New file.
56377
56378         * lib/imaxdiv.c: New file.
56379
56380 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
56381
56382         New config-h module, so that "make" output needn't be cluttered
56383         by -DHAVE_CONFIG_H.
56384         * MODULES.html.sh (Support for building libraries and executables):
56385         Add config-h.
56386         * modules/config-h: New file.
56387         * gnulib-tool (nl, sed_transform_lib_file): New vars.
56388         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
56389         the config-h module is used.
56390
56391         New configmake module, so that "make" output needn't be cluttered
56392         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
56393         * MODULES.html.sh (Support for building libraries and executables):
56394         Add configmake.
56395         * modules/configmake: New file.
56396
56397 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
56398
56399         * m4/config-h.m4: New file.
56400
56401 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
56402
56403         * config/srclist.txt: Add elisp-comp.
56404
56405 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
56406
56407         * MODULES.html.sh (Support for building libraries and executables):
56408         Add elisp-comp.
56409         * build-aux/elisp-comp: New file.
56410         * modules/elisp-comp: New file.
56411
56412 2006-08-24  Bruno Haible  <bruno@clisp.org>
56413
56414         * gnulib-tool (func_create_testdir): Use non-default values of
56415         sourcebase and m4base.
56416
56417 2006-08-24  Bruno Haible  <bruno@clisp.org>
56418
56419         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
56420         HTML structure.
56421
56422 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
56423
56424         * modules/openat (Depends-on): Add lchown.
56425
56426 2006-08-23  Bruno Haible  <bruno@clisp.org>
56427
56428         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
56429         of gl_LOCK_EARLY instead of gl_LOCK.
56430
56431 2006-08-23  Bruno Haible  <bruno@clisp.org>
56432
56433         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
56434         on OSF/1 to no.
56435         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
56436
56437 2006-08-23  Bruno Haible  <bruno@clisp.org>
56438
56439         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
56440         as unusable.
56441
56442         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
56443         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
56444         (gl_LOCK): New macro.
56445
56446 2006-08-22  Simon Josefsson  <jas@extundo.com>
56447
56448         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
56449         to md5 module.
56450
56451 2006-08-22  Simon Josefsson  <jas@extundo.com>
56452
56453         * MODULES.html.sh: Add "Support for maintaining and release
56454         projects".
56455
56456         * build-aux/gnupload: New file, from coreutils.
56457
56458 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
56459
56460         Avoid the need for AC_LIBSOURCES in m4 macros.
56461         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
56462         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
56463         * modules/check-version (EXTRA_DIST): Add check-version.h.
56464         * modules/crc (EXTRA_DIST): Add crc.h.
56465         * modules/des (EXTRA_DIST): Add des.h.
56466         * modules/gc (EXTRA_DIST): Add gc.h.
56467         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
56468         * modules/getline (EXTRA_DIST): Add getline.h.
56469         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
56470         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
56471         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
56472         * modules/md2 (EXTRA_DIST): Add md2.h.
56473         * modules/md4 (EXTRA_DIST): Add md4.h.
56474         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
56475         * modules/read-file (EXTRA_DIST): Add read-file.h.
56476         * modules/readline (EXTRA_DIST): Add readline.h.
56477         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
56478         rijndael-api-fst.h.
56479
56480 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
56481
56482         * m4/rijndael.m4 (gl_ARCFOUR):
56483         * m4/arctwo.m4 (gl_ARCTWO):
56484         * m4/check-version.m4 (gl_CHECK_VERSION):
56485         * m4/crc.m4 (gl_CRC):
56486         * m4/des.m4 (gl_DES):
56487         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
56488         * m4/gc.m4 (gl_GC):
56489         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
56490         * m4/getline.m4 (gl_FUNC_GETLINE):
56491         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
56492         * m4/hmac-md5.m4 (gl_HMAC_MD5):
56493         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
56494         * m4/md2.m4 (gl_MD2):
56495         * m4/md4.m4 (gl_MD4):
56496         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
56497         * m4/read-file.m4 (gl_FUNC_READ_FILE):
56498         * m4/readline.m4 (gl_FUNC_READLINE):
56499         * m4/rijndael.m4 (gl_RIJNDAEL):
56500         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
56501         to get the necessary .h files and whatnot.
56502
56503 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
56504
56505         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
56506         gnulib rather than the other way around.
56507         * config/srclistvars.sh (COREUTILS): Remove.
56508
56509 2006-08-22  Jim Meyering  <jim@meyering.net>
56510
56511         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
56512
56513         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
56514
56515 2006-08-22  Eric Blake  <ebb9@byu.net>
56516
56517         * modules/regexprops-generic: New file.
56518         * MODULES.html.sh (Support for building documentation): List it.
56519
56520 2006-08-22  Eric Blake  <ebb9@byu.net>
56521
56522         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
56523         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
56524         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
56525         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
56526
56527 2006-08-22  Bruno Haible  <bruno@clisp.org>
56528
56529         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
56530         and lib_LTLIBRARIES like the other lib_* variables.
56531
56532 2006-08-22  Bruno Haible  <bruno@clisp.org>
56533
56534         * build-aux/x-to-1.in: New file, from GNU gettext.
56535
56536 2006-08-22  Bruno Haible  <bruno@clisp.org>
56537
56538         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
56539         <utmpx.h> exists.
56540
56541 2006-08-22  Bruno Haible  <bruno@clisp.org>
56542
56543         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
56544         <utmpx.h> exists.
56545
56546 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
56547
56548         BeOS portability.
56549         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
56550         exist.
56551         Problem reported by Bruno Haible.
56552
56553 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
56554
56555         Avoid the need for AC_LIBSOURCES in m4 macros.
56556         * modules/acl (EXTRA_DIST): Add acl.h.
56557         * modules/argmatch (Files): Add m4/argmatch.m4.
56558         (configure.ac): Add gl_ARGMATCH.
56559         (EXTRA_DIST): Renamed from lib_SOURCES, for
56560         consistency with the other modules.  Remove argmatch.c.
56561         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
56562         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
56563         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
56564         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
56565         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
56566         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
56567         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
56568         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
56569         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
56570         * modules/closeout (EXTRA_DIST): Add closeout.h.
56571         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
56572         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
56573         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
56574         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
56575         dirname.h; remove basename.c and stripslash.c.
56576         * modules/exclude (EXTRA_DIST): Add exclude.h.
56577         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
56578         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
56579         * modules/file-type (EXTRA_DIST): Add file-type.h.
56580         * modules/filemode (EXTRA_DIST): Add filemode.h.
56581         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
56582         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
56583         * modules/fpending (EXTRA_DIST): Add __fpending.h.
56584         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
56585         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
56586         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
56587         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
56588         * modules/getdate (EXTRA_DIST): Add getdate.c.
56589         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
56590         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
56591         * modules/getpass (EXTRA_DIST): Add getpass.h.
56592         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
56593         * modules/group-member (EXTRA_DIST): Add group-member.h.
56594         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
56595         * modules/hash (EXTRA_DIST): Add hash.h.
56596         * modules/human (EXTRA_DIST): Add human.h.
56597         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
56598         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
56599         * modules/lchown (EXTRA_DIST): Add lchown.h.
56600         * modules/long-options (EXTRA_DIST): Add long-options.h.
56601         * modules/lstat (EXTRA_DIST): Add lstat.h.
56602         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
56603         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
56604         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
56605         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
56606         * modules/memxor (EXTRA_DIST): Add memxor.h.
56607         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
56608         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
56609         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
56610         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
56611         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
56612         * modules/physmem (EXTRA_DIST): Add physmem.h.
56613         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
56614         * modules/posixver (EXTRA_DIST): Add posixver.h.
56615         * modules/quote (EXTRA_DIST): Add quote.h.
56616         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
56617         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
56618         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
56619         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
56620         regex_internal.h regexec.c.
56621         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
56622         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
56623         * modules/same (EXTRA_DIST): Add same.h.
56624         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
56625         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
56626         * modules/savedir (EXTRA_DIST): Add savedir.h.
56627         * modules/sha1 (EXTRA_DIST): Add sha1.h.
56628         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
56629         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
56630         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
56631         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
56632         * modules/strdup (EXTRA_DIST): Add strdup.h.
56633         * modules/strftime (EXTRA_DIST): Add strftime.h.
56634         * modules/strndup (EXTRA_DIST): Add strndup.h.
56635         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
56636         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
56637         * modules/time_r (EXTRA_DIST): Add time_r.h.
56638         * modules/timespec (EXTRA_DIST): Add timespec.h.
56639         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
56640         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
56641         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
56642         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
56643         * modules/userspec (EXTRA_DIST): Add userspec.h.
56644         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
56645         * modules/utimens (EXTRA_DIST): Add utimens.h.
56646         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
56647         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
56648         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
56649         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
56650         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
56651         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
56652         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
56653         * modules/yesno (EXTRA_DIST): Add yesno.h.
56654
56655 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
56656
56657         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
56658
56659         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
56660         * m4/dev-ino.m4, same-inode.m4: Remove.
56661
56662         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
56663         * m4/acl.m4 (AC_FUNC_ACL):
56664         * m4/backupfile.m4 (gl_BACKUPFILE):
56665         * m4/c-strtod.m4 (gl_C99_STRTOLD):
56666         * m4/canon-host.m4 (gl_CANON_HOST):
56667         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
56668         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
56669         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
56670         * m4/cloexec.m4 (gl_CLOEXEC):
56671         * m4/close-stream.m4 (gl_CLOSE_STREAM):
56672         * m4/closeout.m4 (gl_CLOSEOUT):
56673         * m4/dirfd.m4 (gl_FUNC_DIRFD):
56674         * m4/dirname.m4 (gl_DIRNAME):
56675         * m4/exclude.m4 (gl_EXCLUDE):
56676         * m4/exitfail.m4 (gl_EXITFAIL):
56677         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
56678         * m4/file-type.m4 (gl_FILE_TYPE):
56679         * m4/filemode.m4 (gl_FILEMODE):
56680         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
56681         * m4/fpending.m4 (gl_FUNC_FPENDING):
56682         * m4/fprintftime.m4 (gl_FPRINTFTIME):
56683         * m4/fts.m4 (gl_FUNC_FTS):
56684         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
56685         * m4/getdate.m4 (gl_GETDATE):
56686         * m4/gethrxtime.m4 (gl_GETHRXTIME):
56687         * m4/getpagesize.m4 (gl_GETPAGESIZE):
56688         * m4/getpass.m4 (gl_FUNC_GETPASS):
56689         * m4/gettime.m4 (gl_GETTIME):
56690         * m4/getugroups.m4 (gl_GETUGROUPS):
56691         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
56692         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
56693         * m4/hard-locale.m4 (gl_HARD_LOCALE):
56694         * m4/hash.m4 (gl_HASH):
56695         * m4/idcache.m4 (gl_IDCACHE):
56696         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
56697         * m4/lchown.m4 (gl_FUNC_LCHOWN):
56698         * m4/long-options.m4 (gl_LONG_OPTIONS):
56699         * m4/lstat.m4 (gl_FUNC_LSTAT):
56700         * m4/md5.m4 (gl_MD5):
56701         * m4/memcasecmp.m4 (gl_MEMCASECMP):
56702         * m4/memcoll.m4 (gl_MEMCOLL):
56703         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
56704         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
56705         * m4/memxor.m4 (gl_MEMXOR):
56706         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
56707         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
56708         * m4/modechange.m4 (gl_MODECHANGE):
56709         * m4/mountlist.m4 (gl_MOUNTLIST):
56710         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
56711         * m4/openat.m4 (gl_FUNC_OPENAT):
56712         * m4/pathmax.m4 (gl_PATHMAX):
56713         * m4/physmem.m4 (gl_PHYSMEM):
56714         * m4/posixtm.m4 (gl_POSIXTM):
56715         * m4/posixver.m4 (gl_POSIXVER):
56716         * m4/quote.m4 (gl_QUOTE):
56717         * m4/quotearg.m4 (gl_QUOTEARG):
56718         * m4/readtokens.m4 (gl_READTOKENS):
56719         * m4/readutmp.m4 (gl_READUTMP):
56720         * m4/regex.m4 (gl_REGEX):
56721         * m4/safe-read.m4 (gl_SAFE_READ):
56722         * m4/safe-write.m4 (gl_SAFE_WRITE):
56723         * m4/same.m4 (gl_SAME):
56724         * m4/save-cwd.m4 (gl_SAVE_CWD):
56725         * m4/savedir.m4 (gl_SAVEDIR):
56726         * m4/settime.m4 (gl_SETTIME):
56727         * m4/sha1.m4 (gl_SHA1):
56728         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
56729         * m4/stat-macros.m4 (gl_STAT_MACROS):
56730         * m4/stat-time.m4 (gl_STAT_TIME):
56731         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
56732         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
56733         * m4/strdup.m4 (gl_FUNC_STRDUP):
56734         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
56735         * m4/strndup.m4 (gl_FUNC_STRNDUP):
56736         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
56737         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
56738         * m4/time_r.m4 (gl_TIME_R):
56739         * m4/timespec.m4 (gl_TIMESPEC):
56740         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
56741         * m4/unlinkdir.m4 (gl_UNLINKDIR):
56742         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
56743         * m4/userspec.m4 (gl_USERSPEC):
56744         * m4/utimecmp.m4 (gl_UTIMECMP):
56745         * m4/utimens.m4 (gl_UTIMENS):
56746         * m4/xalloc.m4 (gl_XALLOC):
56747         * m4/xgetcwd.m4 (gl_XGETCWD):
56748         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
56749         * m4/xreadlink.m4 (gl_XREADLINK):
56750         * m4/xstrtod.m4 (gl_XSTRTOD):
56751         * m4/yesno.m4 (gl_YESNO):
56752         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
56753         to get the necessary .h files and whatnot.
56754
56755 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
56756             Bruno Haible  <bruno@clisp.org>
56757
56758         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
56759         /bin/sh understanding of '!' conditional negation.
56760
56761 2006-08-21  Jim Meyering  <jim@meyering.net>
56762
56763         * modules/openat (Depends-on): Really alphabetize.
56764
56765         * modules/acl (Depends-on): Add error and quote.
56766
56767         * check-module (find_included_lib_files): Add at-func.c to the
56768         ok-to-include-more-than-once white list.
56769
56770         * modules/openat (Depends-on): Add lstat.  Alphabetize.
56771
56772 2006-08-21  Bruno Haible  <bruno@clisp.org>
56773
56774         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
56775         Emit a pkgdata_DATA variable only if some snippets add contents to it.
56776         Reported by Martin Lambers <marlam@marlam.de>.
56777
56778 2006-08-21  Bruno Haible  <bruno@clisp.org>
56779
56780         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
56781         specify an installation location, don't emit a noinst_LIBRARIES or
56782         noinst_LTLIBRARIES assignment.
56783
56784 2006-08-21  Bruno Haible  <bruno@clisp.org>
56785
56786         BeOS portability.
56787         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
56788         BeOS has mbrtowc() but no <wctype.h>.
56789
56790 2006-08-21  Bruno Haible  <bruno@clisp.org>
56791
56792         BeOS portability.
56793         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
56794         exist.
56795
56796 2006-08-21  Bruno Haible  <bruno@clisp.org>
56797
56798         BeOS portability.
56799         * lib/mbchar.h: Include <wctype.h> only if it exists.
56800
56801 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
56802
56803         Remove files that are no longer needed by their respective modules.
56804         * m4/obstack.m4: Remove.
56805         * m4/strerror_r.m4: Remove.
56806         * m4/uint32_t.m4: Remove.
56807         * m4/uintptr_t.m4: Remove.
56808         * m4/ullong_max.m4: Remove.
56809         * m4/xstrtoimax.m4: Remove.
56810         * m4/xstrtoumax.m4: Remove.
56811
56812         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
56813         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
56814         dependencies now capture this.
56815
56816         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
56817         Do not use AC_LIBSOURCES, since gnulib modules now do this.
56818         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
56819         * m4/human.m4 (gl_HUMAN): Likewise.
56820         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
56821         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
56822
56823         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
56824
56825         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
56826         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
56827         stdint.
56828         * m4/human.m4 (gl_HUMAN): Likewise.
56829         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
56830         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
56831         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
56832         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
56833         * m4/xstrtol (gl_XSTRTOL): Likewise.
56834
56835         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
56836         AC_TYPE_LONG_LONG_INT.
56837         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
56838         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
56839         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
56840         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
56841
56842         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
56843         on stdbool.
56844
56845         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
56846         (gl_PREREQ_XSTRTOUL): Remove.
56847
56848         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
56849
56850         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
56851         mode.
56852
56853 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
56854
56855         Add and change modules to make it easier for coreutils to use
56856         gnulib-tool.
56857         * modules/backupfile (Files): Remove m4/d-ino.m4.
56858         (Depends-on): Add d-ino.
56859         * modules/cycle-check (Depends-on): Add stdint.
56860         (lib_SOURCES): Add cycle-check.h.
56861         * modules/d-ino: New module.
56862         * modules/d-type: New module.
56863         * modules/error (Files): Remove m4/strerror_r.m4.
56864         * modules/filemode (Files): Add m4/st_dm_mode.m4.
56865         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
56866         m4/inttypes_h.m4, m4/uintmax_t.m4.
56867         (Depends-on): Add stdint.
56868         (lib_SOURCES): Add fsusage.h.
56869         * modules/getcwd (Files): Remove d-ino.m4.
56870         (Depends-on): Add d-ino.
56871         * modules/getndelim2 (Depends-on): Add stdint.
56872         * modules/glob (Files): Remove m4/d-type.m4.
56873         (Depends-on): Add d-type.
56874         * modules/host-os: New module.
56875         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
56876         m4/inttypes_h.m4, m4/uintmax_t.m4.
56877         * Depends-on: Add stdint.
56878         (lib_SOURCES): Add human.h.
56879         * modules/inttostr (Files): Remove m4/intmax_t.m4,
56880         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
56881         m4/uintmax_t.m4, m4/ulonglong.m4.
56882         (Depends-on): Add stdint.
56883         (EXTRA_DIST): Add inttostr.h.
56884         * modules/lchmod: New module.
56885         * modules/link-follow: New module.
56886         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
56887         (Depends-on): Add lchmod.
56888         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
56889         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
56890         (Depends-on): Add stdint.
56891         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
56892         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
56893         (Depends-on): Add stdint.
56894         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
56895         * modules/perl: New module.
56896         * modules/regex (Depends-on): Add stdint.
56897         * modules/rmdir-errno: New module.
56898         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
56899         m4/intmax_t.m4.
56900         (Depends-on): Add stdint.
56901         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
56902         m4/uintmax_t.m4.
56903         (Depends-on): Add stdint.
56904         * modules/unlink-busy: New module.
56905         * modules/utimecmp (Depends-on): Add stdint.
56906         * modules/uptime: New module.
56907         * modules/winsz-ioctl: New module.
56908         * modules/winsz-termios: New module.
56909         * modules/xnanosleep (Depends-on): Add nanosleep.
56910         * modules/ullong_max: Remove.
56911         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
56912         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
56913         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
56914         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
56915         (Depends-on): Add inttypes.
56916         (lib_SOURCES): Add xstrtol.h.
56917         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
56918         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
56919         * MODULES.html.sh: Move 'assert' into the assert section.
56920         Move 'dummy' into the linking section.
56921         Remove ullong_max.
56922         Add section for compatibility checks for POSIX:2001 functions,
56923         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
56924         winsz-ioctl, and winsz-termios into it.
56925         Add lchmod.
56926         Add top-level Misc section and put host-os, perl, and uptime
56927         into it.
56928
56929 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
56930
56931         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
56932         now assume the stdint module.  Do not include inttypes.h.
56933         * lib/fsusage.h: Likewise.
56934         * lib/getndelim2.c: Likewise.
56935         * lib/human.h: Likewise.
56936         * lib/inttostr.h: Likewise.
56937         * lib/obstack.c: Likewise.
56938         * lib/regex_internal.h: Likewise.
56939         * lib/tempname.c: Likewise.
56940         * lib/utimecmp.c: Likewise.
56941         * lib/xstrtol.h: Likewise.
56942
56943         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
56944
56945         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
56946         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
56947         * lib/xtime.h: Likewise.
56948
56949 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
56950
56951         * modules/openat (Files): Add lib/fchmodat.c.
56952         Fixes problem reported by Jay Youngman.
56953
56954 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
56955
56956         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
56957         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
56958
56959 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
56960             Bruno Haible  <bruno@clisp.org>
56961
56962         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
56963         and is a script that invokes bison. Tighten the code. Add comments.
56964
56965 2006-08-18  Jim Meyering  <jim@meyering.net>
56966
56967         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
56968         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
56969         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
56970         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
56971
56972 2006-08-18  Bruno Haible  <bruno@clisp.org>
56973
56974         * modules/bison-i18n: New file.
56975         * MODULES.html.sh (Internationalization functions): Add it.
56976
56977 2006-08-18  Bruno Haible  <bruno@clisp.org>
56978
56979         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
56980         sys/statvfs.h. When getmntinfo was found, check its declaration and
56981         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
56982
56983 2006-08-18  Bruno Haible  <bruno@clisp.org>
56984
56985         * m4/bison-i18n.m4: New file, from bison.
56986
56987 2006-08-18  Bruno Haible  <bruno@clisp.org>
56988
56989         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
56990         (ME_DUMMY): Treat "kernfs" as a dummy.
56991         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
56992
56993 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
56994
56995         Update from coreutils.
56996
56997         2006-08-15  Jim Meyering  <jim@meyering.net>
56998
56999         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
57000
57001         2006-01-17  Jim Meyering  <jim@meyering.net>
57002
57003         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
57004
57005         2006-01-11  Jim Meyering  <jim@meyering.net>
57006
57007         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
57008         Check for the lchmod function.
57009
57010 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
57011
57012         Update from coreutils.
57013
57014         * lib/__fpending.h: Add copyright notice.
57015         * lib/fprintftime.h: Likewise.
57016         * lib/savedir.c: Use (C) in copyright notice.
57017         * lib/savedir.h: Likewise.
57018
57019         2006-08-15  Jim Meyering  <jim@meyering.net>
57020
57021         * lib/at-func.c: New file, with the logic of all emulated at-functions.
57022         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
57023         in support of the EXPECTED_ERRNO macro.
57024         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
57025         definitions.  Instead, define the appropriate symbols and include
57026         "at-func.c".
57027         * lib/mkdirat.c (mkdirat): Likewise.
57028         * lib/fchmodat.c (fchmodat): Likewise.
57029         (ENOSYS): Remove definition.
57030         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
57031         it.  Don't include "unistd--.h" -- it wasn't ever used.
57032
57033         2006-01-17  Jim Meyering  <jim@meyering.net>
57034
57035         Rewrite fts.c not to change the current working directory,
57036         by using openat, fstatat, fdopendir, etc..
57037
57038         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
57039         (HAVE_OPENAT_SUPPORT): Define.
57040         [_LIBC] (fchdir): Don't undef or define; no longer used.
57041         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
57042         Now, this `function' always succeeds, and consumes its file descriptor
57043         parameter -- so callers must not close such FDs.  Update callers.
57044         (diropen_fd, opendirat, cwd_advance_fd): New functions.
57045         (diropen): Add parameter, SP.  Adjust all callers.
57046         Implement using diropen_fd, rather than open.
57047         (fts_open): Initialize new member, fts_cwd_fd.
57048         Remove fts_rft-setting code.
57049         (fts_close): Close fts_cwd_fd, if necessary.
57050         (__opendir2): Define in terms of opendir or opendirat,
57051         depending on whether the FST_NOCHDIR flag is set.
57052         (fts_build): Since fts_safe_changedir consumes its FD, and since
57053         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
57054         and close the dup'd file descriptor upon failure.
57055         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
57056         (fts_safe_changedir): Tweak semantics to reflect that this function
57057         now calls cwd_advance_fd and hence consumes its FD argument.
57058         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
57059         [struct FTS] (fts_rft): Remove now-unused member.
57060         [struct FTS] (fts_cycle.state): Improve comment.
57061
57062         * lib/openat.c (openat_needs_fchdir): New function.
57063         * lib/openat.h (openat_needs_fchdir): Declare it.
57064
57065 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
57066
57067         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
57068         Problem and fix reported by Pádraig Brady in
57069         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
57070
57071 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
57072
57073         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
57074
57075 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
57076
57077         * lib/memcoll.c (memcoll): Optimize for the common case where the
57078         arguments are bytewise equal.
57079
57080 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
57081
57082         * doc/regexprops-generic.texi: Add a copyright notice.
57083
57084 2006-08-15  Bruno Haible  <bruno@clisp.org>
57085
57086         * modules/tmpdir (License): Change to LGPL.
57087
57088 2006-08-15  Bruno Haible  <bruno@clisp.org>
57089
57090         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
57091         module.
57092
57093 2006-08-14  Simon Josefsson  <jas@extundo.com>
57094
57095         * config/srclist.txt: Add gnupload.
57096
57097 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
57098
57099         Change copyright notice from LGPL 2 to GPL 2, since that's the
57100         standard form used in the gnulib repository.
57101         * tests/test-lock.c: Likewise.
57102         * tests/test-stdint.c: Likewise.
57103         * tests/test-tls.c: Likewise.
57104
57105         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
57106         prelude-manager.  User shorter URLs for GNU projects, without '?'.
57107         Add copyright notice.
57108
57109         * check-module: Add copyright notice.  Output a copyright
57110         notice if "--version" is specified.
57111         * modules/COPYING: New file.
57112         * tests/test-getaddrinfo.c: Add copyright notice.
57113         * tests/test-verify.c: Likewise.
57114
57115 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
57116
57117         Change copyright notice from LGPL 2 to GPL 2, since that's the
57118         standard form used in the gnulib repository.
57119         * lib/lock.c: LGPL -> GPL.
57120         * lib/lock.h: Likewise.
57121         * lib/strnlen1.c: Likewise.
57122         * lib/strnlen1.h: Likewise.
57123         * lib/tls.c: Likewise.
57124         * lib/tls.h: Likewise.
57125         * lib/tmpdir.c: Likewise.
57126
57127         * lib/TODO: Remove; this belongs only in coreutils.
57128
57129 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
57130
57131         Add copyright notices to long-enough files that lack them, since
57132         otherwise the files aren't clearly free.  Use the same notice that
57133         getdate.texi already uses.
57134         * doc/alloca-opt.texi: Add copyright notice.
57135         * doc/alloca.texi: Likewise.
57136         * doc/ctime.texi: Likewise.
57137         * doc/functions.texi: Likewise.
57138         * doc/gcd.texi: Likewise.
57139         * doc/gnulib-tool.texi: Likewise.
57140         * doc/inet_ntoa.texi: Likewise.
57141         * doc/visibility.texi: Likewise.
57142
57143         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
57144         * doc/quote.texi: Add copyright notice.
57145
57146         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
57147         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
57148         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
57149         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
57150         is now obsolete, and give a pointer to the Sun list.
57151         Add copyright notice.
57152
57153 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
57154
57155         * config/srclistvars.sh: Add copyright notice.
57156
57157 2006-08-14  Eric Blake  <ebb9@byu.net>
57158
57159         Import the following change from libc:
57160
57161         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
57162
57163         Upstream bug 2997.
57164         * lib/misc/error.c: Add space between program name and message if file
57165         name is missing.
57166
57167 2006-08-12  Karl Berry  <karl@gnu.org>
57168
57169         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
57170         remove, these originate in gnulib now.
57171
57172 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57173
57174         * doc/Makefile (standards.info standards.html standards.dvi):
57175         Also depend on make-stds.texi.
57176
57177 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
57178
57179         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
57180         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
57181
57182         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
57183         in wchar_t.  Problem reported by Eric Blake.
57184
57185         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
57186         LEN is smaller than SIZE.  Suggested by Bruno Haible.
57187         Also, help the compiler to keep LEN in a register.
57188
57189 2006-08-11  Eric Blake  <ebb9@byu.net>
57190
57191         * users.txt: Sort.  Add tar.
57192
57193 2006-08-11  Bruno Haible  <bruno@clisp.org>
57194
57195         * users.txt: New file.
57196
57197 2006-08-11  Bruno Haible  <bruno@clisp.org>
57198
57199         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
57200         before <wchar.h>. Needed for OSF/1 and BSD/OS.
57201
57202 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
57203
57204         * modules/snprintf (Depends-on): Remove minmax.
57205         (Maintainer): Add self and Bruno.
57206
57207 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
57208
57209         * lib/.cppi-disable: Add snprintf.h, socket_.h.
57210         * lib/snprintf.c: Include <errno.h> and <limits.h>.
57211         (EOVERFLOW): Define if the system does not.
57212         Do not include "minmax.h"; it wasn't used.
57213         (snprintf): Don't assume size_t promotes to an unsigned type.
57214         Fix bug when generated string was too long for the buffer: the
57215         buffer's contents are supposed to be the initial prefix of the
57216         output.  Don't assume vasnprintf returns EOVERFLOW if the size
57217         exceeds INT_MAX; do the check ourselves.
57218
57219         Import the following changes from libc:
57220
57221         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
57222
57223         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
57224         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
57225         set wc to the byte which couldn't be converted.
57226         (re_string_reconstruct): Don't clear valid_raw_len before calling
57227         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
57228         tip_context using re_string_context_at.
57229
57230         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
57231
57232         * lib/posix/regex.h: g++ still cannot handled [restrict].
57233
57234         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
57235
57236         * lib/posix/regex.h: Remove special handling for VMS.
57237
57238 2006-08-10  Jim Meyering  <jim@meyering.net>
57239
57240         * modules/same-inode: New module.
57241         * modules/dev-ino: New module.
57242         * modules/cycle-check: Depend on these modules, rather than simply
57243         including their .h files.
57244         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
57245         required via m4/cycle-check.m4.
57246         * modules/same: Depend on new same-inode module, rather than
57247         including same-inode.h.
57248         * modules/chdir-safer: New file.
57249
57250         * modules/chown (Depends-on): Add stat-macros.
57251
57252 2006-08-10  Jim Meyering  <jim@meyering.net>
57253
57254         * m4/cycle-check.m4: New file.
57255         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
57256         * m4/dev-ino.m4, m4/same-inode.m4: New files.
57257
57258 2006-08-10  Eric Blake  <ebb9@byu.net>
57259
57260         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
57261         in from original proposal.
57262
57263 2006-08-10  Eric Blake  <ebb9@byu.net>
57264         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
57265
57266         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
57267         namespace.
57268
57269 2006-08-10  Bruno Haible  <bruno@clisp.org>
57270
57271         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
57272         as well.
57273
57274 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
57275
57276         Sync from coreutils.
57277
57278         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
57279
57280         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
57281         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
57282
57283 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
57284
57285         * modules/restrict: Remove; no longer needed now that we assume
57286         Autoconf 2.59 or later.
57287         * MODULES.html.sh: Remove 'restrict'.
57288         * modules/argp (Depends-on): Remove 'restrict'.
57289         * modules/base64 (Depends-on): Likewise.
57290         * modules/gc (Depends-on): Likewise.
57291         * modules/getaddrinfo (Depends-on): Likewise.
57292         * modules/glob (Depends-on): Likewise.
57293         * modules/inet_ntop (Depends-on): Likewise.
57294         * modules/inet_pton (Depends-on): Likewise.
57295         * modules/memxor (Depends-on): Likewise.
57296         * modules/regex (Depends-on): Likewise.
57297         * modules/strtok_r (Depends-on): Likewise.
57298         * modules/time_r (Depends-on): Likewise.
57299
57300 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
57301
57302         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
57303         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
57304         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
57305         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
57306         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
57307         * m4/memxor.m4 (gl_MEMXOR): Likewise.
57308         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
57309         gl_C_RESTRICT replaced by AC_C_RESTRICT.
57310
57311         Merge from coreutils.
57312         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
57313         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
57314         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
57315         * m4/time_r.m4 (gl_TIME_R): Likewise.
57316
57317 2006-08-09  Karl Berry  <karl@gnu.org>
57318
57319         * config/srclist.txt: no more gettext-tools, per Bruno.
57320
57321 2006-08-08  Eric Blake  <ebb9@byu.net>
57322
57323         * modules/verror: New module.
57324         * MODULES.html.sh: Document it.
57325
57326 2006-08-08  Eric Blake  <ebb9@byu.net>
57327
57328         * lib/verror.h, lib/verror.c: New files.
57329
57330 2006-08-08  Eric Blake  <ebb9@byu.net>
57331
57332         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
57333         verror_at_line output complies with GNU Coding Standards even when
57334         file is NULL.
57335
57336 2006-08-07  Bruno Haible  <bruno@clisp.org>
57337
57338         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
57339         versions of AIX.
57340         Reported by Ralf Wildenhues.
57341
57342 2006-08-07  Bruno Haible  <bruno@clisp.org>
57343
57344         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
57345         in an AC_DEFUN. Needed so that the autoconf snippets can use
57346         AC_REQUIRE.
57347
57348 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57349
57350         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
57351         Initialize pkgdata_DATA.
57352         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
57353         overriding it.
57354
57355 2006-08-06  Eric Blake  <ebb9@byu.net>
57356
57357         * lib/error.h: Fold in some upstream changes from glibc.
57358         * lib/error.c: Likewise.
57359
57360 2006-08-04  Bruno Haible  <bruno@clisp.org>
57361
57362         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
57363         Make the mostlyclean-local rule depend on mostlyclean-generic.
57364         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
57365
57366 2006-07-31  Bruno Haible  <bruno@clisp.org>
57367
57368         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
57369         <stdlib.h>, <string.h>.
57370
57371 2006-07-30  Bruno Haible  <bruno@clisp.org>
57372
57373         * modules/readlink (License): Change to LGPL.
57374
57375 2006-07-30  Bruno Haible  <bruno@clisp.org>
57376
57377         * modules/javaversion (Makefile.am): Distribute javaversion.java and
57378         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
57379         set PKGDATADIR to point to it.
57380
57381 2006-07-30  Bruno Haible  <bruno@clisp.org>
57382
57383         * modules/csharpexec (configure.ac): Comment out macro invocation.
57384         * modules/javaexec (configure.ac): Likewise.
57385         * modules/javacomp-script (configure.ac): Likewise.
57386
57387         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
57388
57389 2006-07-30  Bruno Haible  <bruno@clisp.org>
57390
57391         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
57392         linked-list.
57393
57394 2006-07-30  Bruno Haible  <bruno@clisp.org>
57395
57396         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
57397
57398 2006-07-30  Bruno Haible  <bruno@clisp.org>
57399
57400         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
57401         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
57402         get removed.
57403
57404 2006-07-29  Bruno Haible  <bruno@clisp.org>
57405
57406         Make it possible for gnulib-tool to work with locally modified or
57407         augmented gnulib repositories.
57408         * gnulib-tool (func_usage): Document --local-dir option.
57409         (local_gnulib_dir): New variable.
57410         Handle --local-dir option.
57411         (func_lookup_file): New function.
57412         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
57413         (func_get_description, func_get_filelist, func_get_description,
57414         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
57415         func_get_automake_snippet, func_get_include_directive,
57416         func_get_license, func_get_maintainer): Use func_lookup_file.
57417         (func_import, func_create_testdir): Use func_lookup_file.
57418
57419 2006-07-29  Bruno Haible  <bruno@clisp.org>
57420
57421         * modules/setenv (Depends-on): Add unistd.
57422
57423 2006-07-29  Bruno Haible  <bruno@clisp.org>
57424
57425         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
57426
57427 2006-07-29  Bruno Haible  <bruno@clisp.org>
57428
57429         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
57430
57431 2006-07-29  Bruno Haible  <bruno@clisp.org>
57432
57433         * gnulib-tool (import, update): If there is no Makefile.am, look at
57434         aclocal.m4, instead of bailing out.
57435
57436 2006-07-29  Bruno Haible  <bruno@clisp.org>
57437
57438         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
57439         Categorize the options by when they are useful.
57440
57441 2006-07-29  Bruno Haible  <bruno@clisp.org>
57442
57443         * gnulib-tool (func_usage): Document option --no-libtool.
57444         Handle option --no-libtool.
57445         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
57446         for changed semantics of $libtool variable.
57447         (func_import): Likewise. If libtool is not used, show this through
57448         an option --no-libtool.
57449         (func_create_testdir): Update.
57450
57451 2006-07-29  Bruno Haible  <bruno@clisp.org>
57452
57453         * gnulib-tool (func_import): Extend error message about missing
57454         --doc-base.
57455
57456 2006-07-29  Bruno Haible  <bruno@clisp.org>
57457
57458         * gnulib-tool (func_import): Don't create the $docbase directory if
57459         there is no file to store there.
57460
57461 2006-07-29  Bruno Haible  <bruno@clisp.org>
57462
57463         * gnulib-tool (autoconf_minversion): If a --dir option is given and
57464         relevant, look for configure.ac there, not in the current directory.
57465         Also use a simple search for AC_PREREQ, not "autoconf --trace".
57466
57467 2006-07-29  Bruno Haible  <bruno@clisp.org>
57468
57469         * gnulib-tool (SORT): New variable.
57470         (func_usage): Undocument --assume-autoconf option.
57471         Remove --assume-autoconf option handling.
57472         (autoconf_minversion): Determine from the contents of configure.ac.
57473         (func_import): Remove autoconf_minversion handling.
57474         Suggested by Eric Blake.
57475
57476 2006-07-29  Bruno Haible  <bruno@clisp.org>
57477
57478         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
57479
57480 2006-07-29  Bruno Haible  <bruno@clisp.org>
57481
57482         * config/srclist.txt (*setenv.[ch]): Remove rules.
57483
57484 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57485
57486         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
57487
57488 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57489
57490         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
57491         arpa/inet.h.
57492
57493 2006-07-28  Simon Josefsson  <jas@extundo.com>
57494
57495         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
57496         * modules/inet_pton (Depends-on): Likewise.
57497
57498 2006-07-28  Simon Josefsson  <jas@extundo.com>
57499
57500         * m4/netinet_in_h.m4: New file.
57501
57502 2006-07-28  Simon Josefsson  <jas@extundo.com>
57503
57504         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
57505         #include's.
57506
57507 2006-07-28  Simon Josefsson  <jas@extundo.com>
57508
57509         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
57510         #include's.
57511
57512 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
57513
57514         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
57515         setgid on directories only if they set these bits.
57516         * lib/modechange.h: Remove obsolete comment about masks.
57517
57518 2006-07-28  Eric Blake  <ebb9@byu.net>
57519
57520         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
57521         macro expansion.
57522
57523 2006-07-28  Bruno Haible  <bruno@clisp.org>
57524
57525         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
57526
57527 2006-07-28  Bruno Haible  <bruno@clisp.org>
57528
57529         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
57530
57531 2006-07-28  Bruno Haible  <bruno@clisp.org>
57532
57533         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
57534         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
57535         Define fallbacks.
57536         Avoids link error on FreeBSD 4.x.
57537         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
57538
57539         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
57540         encoding.
57541         * lib/mbswidth.c (iswcntrl): Likewise.
57542
57543 2006-07-27  Bruno Haible  <bruno@clisp.org>
57544
57545         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
57546         test.
57547
57548 2006-07-27  Bruno Haible  <bruno@clisp.org>
57549
57550         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
57551         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
57552         defined.
57553
57554 2006-07-26  Eric Blake  <ebb9@byu.net>
57555
57556         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
57557
57558 2006-07-26  Eric Blake  <ebb9@byu.net>
57559
57560         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
57561         like mingw that lack mkstemp.
57562         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
57563         avoid compilation warning on mingw.
57564
57565 2006-07-26  Bruno Haible  <bruno@clisp.org>
57566
57567         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
57568         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
57569         INT_FAST*_MIN, INTPTR_MIN.
57570
57571 2006-07-25  Bruno Haible  <bruno@clisp.org>
57572
57573         * modules/version-etc (Depends-on): Add stdarg.
57574
57575 2006-07-25  Bruno Haible  <bruno@clisp.org>
57576
57577         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
57578         complex commands.
57579
57580 2006-07-25  Bruno Haible  <bruno@clisp.org>
57581
57582         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
57583         defined in <stdarg.h> or config.h.
57584
57585 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
57586
57587         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
57588         (gl_STDIO_SAFER): Remove.
57589
57590 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
57591
57592         * MODULES.html.sh (File stream based Input/Output):
57593         Add fopen-safer, tmpfile-safer; remove stdio-safer.
57594         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
57595         * modules/fopen-safer, modules/tmpfile-safer: New files.
57596         * modules/stdio-safer: Remove.
57597
57598 2006-07-24  Bruno Haible  <bruno@clisp.org>
57599
57600         * modules/tmpdir: New file.
57601         * MODULES.html.sh (File system functions): Add it.
57602
57603 2006-07-24  Bruno Haible  <bruno@clisp.org>
57604
57605         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
57606         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
57607
57608 2006-07-24  Bruno Haible  <bruno@clisp.org>
57609
57610         * modules/clean-temp: New file.
57611
57612 2006-07-24  Bruno Haible  <bruno@clisp.org>
57613
57614         * m4/tmpdir.m4: New file, from GNU gettext.
57615
57616 2006-07-24  Bruno Haible  <bruno@clisp.org>
57617
57618         * lib/tmpdir.h: New file, from GNU gettext.
57619         * lib/tmpdir.c: New file, from GNU gettext.
57620
57621 2006-07-24  Bruno Haible  <bruno@clisp.org>
57622
57623         * lib/clean-temp.h: New file, from GNU gettext.
57624         * lib/clean-temp.c: New file, from GNU gettext.
57625
57626 2006-07-23  Eric Blake  <ebb9@byu.net>
57627
57628         * modules/stdio-safer (Files): Add tmpfile-safer.c.
57629         (Depends-on): Add binary-io.
57630
57631 2006-07-23  Eric Blake  <ebb9@byu.net>
57632
57633         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
57634
57635 2006-07-23  Eric Blake  <ebb9@byu.net>
57636
57637         * lib/tmpfile-safer.c: New file.
57638         * lib/stdio-safer.h (fopen_safer): Add prototype.
57639         * lib/stdio--.h (tmpfile): Make safer.
57640
57641 2006-07-23  Bruno Haible  <bruno@clisp.org>
57642
57643         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
57644         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
57645         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
57646         gl_linked_remove_at): Use it.
57647
57648 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57649         and Simon Josefsson <jas@extundo.com>
57650
57651         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
57652
57653         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
57654
57655 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
57656
57657         * modules/close-stream: New file.
57658         * modules/closeout (Description): Make it clear that it exits
57659         with a diagnostic on error.
57660         (Depends-on): Add close-stream.  Remove fpending, stdbool.
57661         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
57662
57663 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
57664
57665         * m4/close-stream.m4: New file.
57666
57667 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
57668
57669         * lib/close-stream.c, lib/close-stream.h: New files.
57670
57671 2006-07-22  Bruno Haible  <bruno@clisp.org>
57672
57673         Merge from GNU gettext 0.15.
57674
57675         2006-05-01  Bruno Haible  <bruno@clisp.org>
57676
57677                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
57678
57679         2006-07-22  Bruno Haible  <bruno@clisp.org>
57680
57681                 * modules/javaversion: New file.
57682                 * MODULES.html.sh (Java): Add javaversion.
57683
57684         2006-03-12  Bruno Haible  <bruno@clisp.org>
57685
57686                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
57687
57688         2005-12-04  Bruno Haible  <bruno@clisp.org>
57689
57690                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
57691                 (untested).
57692
57693         2006-06-21  Bruno Haible  <bruno@clisp.org>
57694
57695                 Avoid warnings from recent versions of mcs.
57696                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
57697                 -o, -L, -r any more. Use options documented since mcs-1.0
57698                 instead. Similarly for -g.
57699
57700         2005-12-04  Bruno Haible  <bruno@clisp.org>
57701
57702                 * build-aux/csharpcomp.sh.in: Suffix for resources is
57703                 .resources, not .resource.
57704
57705         2005-07-09  Bruno Haible  <bruno@clisp.org>
57706
57707                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
57708                 add a .dll suffix.
57709                 Reported by Mark Junker <mjscod@gmx.de>.
57710
57711         2006-07-22  Bruno Haible  <bruno@clisp.org>
57712
57713                 * modules/gettext: Upgrade to gettext-0.15.
57714                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
57715                 m4/visibility.m4.
57716                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
57717
57718 2006-07-22  Bruno Haible  <bruno@clisp.org>
57719
57720         Merge from GNU gettext 0.15.
57721
57722         2006-03-25  Bruno Haible  <bruno@clisp.org>
57723
57724                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
57725
57726         2006-07-21  Bruno Haible  <bruno@clisp.org>
57727
57728                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
57729                 "1.1".
57730
57731         2006-05-09  Bruno Haible  <bruno@clisp.org>
57732
57733                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
57734                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
57735                 for the conftestver execution.
57736
57737         2006-05-01  Bruno Haible  <bruno@clisp.org>
57738
57739                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
57740                 optional target-version argument. Verify that the compiler
57741                 groks source of the specified source-version, or add -source
57742                 option as necessary. Verify that the compiler produces
57743                 bytecode in the specified target-version, or add -target and
57744                 -source options as necessary. Make the result of the test
57745                 available as variable CONF_JAVAC. Also log error output in
57746                 config.log.
57747
57748         2006-03-11  Bruno Haible  <bruno@clisp.org>
57749
57750                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
57751
57752         2006-05-09  Bruno Haible  <bruno@clisp.org>
57753
57754                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
57755                 CLASSPATH_SEPARATOR to a semicolon.
57756
57757         2006-03-12  Bruno Haible  <bruno@clisp.org>
57758
57759                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
57760                 available as variable CONF_JAVA, for subsequent autoconf
57761                 tests. Also log error output in config.log.
57762
57763         2006-07-19  Bruno Haible  <bruno@clisp.org>
57764
57765                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
57766                 that getline works on glibc2 systems. Needed to avoid trouble
57767                 in relocatable.c.
57768                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
57769
57770         2005-12-04  Bruno Haible  <bruno@clisp.org>
57771
57772                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
57773                 launcher (untested).
57774
57775         2005-12-04  Bruno Haible  <bruno@clisp.org>
57776
57777                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
57778
57779         2006-07-22  Bruno Haible  <bruno@clisp.org>
57780
57781                 * gettext.m4: Update from GNU gettext-0.15.
57782                 * nls.m4: Likewise.
57783                 * po.m4: Likewise.
57784                 * inttypes-pri.m4: Likewise.
57785                 * inttypes-h.m4: Renamed from inttypes.m4.
57786                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
57787
57788 2006-07-22  Bruno Haible  <bruno@clisp.org>
57789
57790         Merge from GNU gettext 0.15.
57791
57792         2005-07-05  Bruno Haible  <bruno@clisp.org>
57793
57794                 * printf-args.c (printf_fetchargs): Work around broken
57795                 definition of wint_t on mingw.
57796
57797         2005-02-12  Bruno Haible  <bruno@clisp.org>
57798
57799                 * xallocsa.h: Add extern "C" for C++.
57800
57801         2006-05-17  Bruno Haible  <bruno@clisp.org>
57802
57803                 Cygwin portability.
57804                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
57805
57806         2006-04-30  Bruno Haible  <bruno@clisp.org>
57807
57808                 * progreloc.c: Include <mach-o/dyld.h> if available.
57809                 (find_executable): Use _NSGetExecutablePath when possible.
57810
57811         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
57812
57813                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
57814                 function.
57815
57816         2005-12-29  Bruno Haible  <bruno@clisp.org>
57817
57818                 * progreloc.c (set_program_name_and_installdir): Fix
57819                 compilation error.
57820
57821         2005-12-04  Bruno Haible  <bruno@clisp.org>
57822
57823                 Cygwin portability.
57824                 * progreloc.c: Include <windows.h> also on Cygwin.
57825                 (find_executable): Add support for Cygwin.
57826                 (set_program_name_and_installdir): Handle also platforms with
57827                 nonempty EXEEXT.
57828
57829         2006-07-11  Bruno Haible  <bruno@clisp.org>
57830
57831                 * javacomp.c: Fix a comment.
57832                 Reported by Jim Meyering.
57833
57834         2006-04-30  Bruno Haible  <bruno@clisp.org>
57835
57836                 * javacomp.h (compile_java_class): Add source_version,
57837                 target_version arguments.
57838                 * javacomp.c: Rewritten to choose only a compiler that
57839                 respects the specified source_version and target_version.
57840
57841         2006-06-27  Bruno Haible  <bruno@clisp.org>
57842
57843                 Assume correct S_ISDIR macro.
57844                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
57845
57846         2006-07-22  Bruno Haible  <bruno@clisp.org>
57847
57848                 * javaversion.h: New file, from GNU gettext.
57849                 * javaversion.c: New file, from GNU gettext.
57850                 * javaversion.java: New file, from GNU gettext.
57851                 * javaversion.class: New file, from GNU gettext.
57852
57853         2006-05-17  Bruno Haible  <bruno@clisp.org>
57854
57855                 Cygwin portability.
57856                 * javaexec.c (execute_java_class): Test for jview program
57857                 also on Cygwin.
57858
57859         2006-04-09  Bruno Haible  <bruno@clisp.org>
57860
57861                 * fatal-signal.c: Don't include string.h.
57862                 (at_fatal_signal): Use a copying loop instead of memcpy.
57863
57864         2005-12-04  Bruno Haible  <bruno@clisp.org>
57865
57866                 * csharpexec.c: Add support for 'clix' launcher (untested).
57867                 (execute_csharp_using_sscli): New function.
57868                 (execute_csharp_program): Call it.
57869
57870         2006-06-21  Bruno Haible  <bruno@clisp.org>
57871
57872                 Avoid warnings from recent versions of mcs.
57873                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
57874                 -o, -L, -r any more. Use options documented since mcs-1.0
57875                 instead. Similarly for -g.
57876
57877         2005-07-09  Bruno Haible  <bruno@clisp.org>
57878
57879                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
57880                 add a .dll suffix.
57881                 Reported by Mark Junker <mjscod@gmx.de>.
57882
57883         2006-06-17  Bruno Haible  <bruno@clisp.org>
57884
57885                 * config.charset: Update for NetBSD 3.0.
57886
57887         2006-05-17  Bruno Haible  <bruno@clisp.org>
57888
57889                 Cygwin portability.
57890                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
57891
57892         2006-05-16  Bruno Haible  <bruno@clisp.org>
57893
57894                 * localcharset.c [CYGWIN]: Include <windows.h>.
57895                 (get_charset_aliases): For Cygwin, return the same CPxxx
57896                 aliases list as under WIN32.
57897                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
57898                 the environment variables. Fall back to GetACP().
57899
57900         2006-04-05  Bruno Haible  <bruno@clisp.org>
57901
57902                 * config.charset: Update Juan Manuel Guerrero's address.
57903
57904         2005-02-12  Bruno Haible  <bruno@clisp.org>
57905
57906                 * allocsa.h: Add extern "C" for C++.
57907
57908         2005-02-10  Bruno Haible  <bruno@clisp.org>
57909
57910                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
57911                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
57912
57913         2006-07-22  Bruno Haible  <bruno@clisp.org>
57914
57915                 * gettext.h: Update to GNU gettext-0.15.
57916
57917 2006-07-22  Bruno Haible  <bruno@clisp.org>
57918
57919         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
57920         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
57921         lib-prefix.m4, longdouble.m4, ssize_t.m4.
57922
57923 2006-07-21  Eric Blake  <ebb9@byu.net>
57924
57925         * modules/stdlib-safer: New file.
57926         * MODULES.html.sh (File stream based Input/Output): Add
57927         stdlib-safer.
57928
57929 2006-07-21  Eric Blake  <ebb9@byu.net>
57930
57931         * lib/stdlib-safer.h: New file from coreutils, required by
57932         stdlib--.h.
57933
57934 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
57935
57936         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
57937
57938 2006-07-20  Bruno Haible  <bruno@clisp.org>
57939
57940         * gnulib-tool: Recognize new option --assume-autoconf.
57941         (autoconf_minversion): New variable.
57942         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
57943
57944 2006-07-20  Bruno Haible  <bruno@clisp.org>
57945
57946         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
57947
57948 2006-07-19  Derek R. Price  <derek@ximbiot.com>
57949
57950         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
57951         Reindent and repaginate.
57952
57953 2006-07-19  Derek Price  <derek@ximbiot.com>
57954
57955         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
57956         Correct grammar.
57957
57958 2006-07-17  Bruno Haible  <bruno@clisp.org>
57959
57960         * modules/list: New file.
57961         * modules/array-list: New file.
57962         * modules/carray-list, modules/carray-list-tests: New files.
57963         * modules/linked-list, modules/linked-list-tests: New files.
57964         * modules/avltree-list, modules/avltree-list-tests: New files.
57965         * modules/rbtree-list, modules/rbtree-list-tests: New files.
57966         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
57967         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
57968         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
57969         * modules/oset: New file.
57970         * modules/array-oset: New file.
57971         * modules/avltree-oset, modules/avltree-oset-tests: New files.
57972         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
57973         * tests/test-carray_list.c: New file.
57974         * tests/test-linked_list.c: New file.
57975         * tests/test-avltree_list.c: New file.
57976         * tests/test-rbtree_list.c: New file.
57977         * tests/test-linkedhash_list.c: New file.
57978         * tests/test-avltreehash_list.c: New file.
57979         * tests/test-rbtreehash_list.c: New file.
57980         * tests/test-avltree_oset.c: New file.
57981         * tests/test-rbtree_oset.c: New file.
57982         * MODULES.html.sh (Container data structures): New section.
57983
57984 2006-07-17  Bruno Haible  <bruno@clisp.org>
57985
57986         * m4/gl_list.m4: New file.
57987
57988 2006-07-17  Bruno Haible  <bruno@clisp.org>
57989
57990         * lib/gl_list.h: New file.
57991         * lib/gl_list.c: New file.
57992         * lib/gl_array_list.h: New file.
57993         * lib/gl_array_list.c: New file.
57994         * lib/gl_carray_list.h: New file.
57995         * lib/gl_carray_list.c: New file.
57996         * lib/gl_linked_list.h: New file.
57997         * lib/gl_linked_list.c: New file.
57998         * lib/gl_anylinked_list1.h: New file.
57999         * lib/gl_anylinked_list2.h: New file.
58000         * lib/gl_avltree_list.h: New file.
58001         * lib/gl_avltree_list.c: New file.
58002         * lib/gl_anyavltree_list1.h: New file.
58003         * lib/gl_anyavltree_list2.h: New file.
58004         * lib/gl_rbtree_list.h: New file.
58005         * lib/gl_rbtree_list.c: New file.
58006         * lib/gl_anyrbtree_list1.h: New file.
58007         * lib/gl_anyrbtree_list2.h: New file.
58008         * lib/gl_anytree_list1.h: New file.
58009         * lib/gl_anytree_list2.h: New file.
58010         * lib/gl_linkedhash_list.h: New file.
58011         * lib/gl_linkedhash_list.c: New file.
58012         * lib/gl_anyhash_list1.h: New file.
58013         * lib/gl_anyhash_list2.h: New file.
58014         * lib/gl_avltreehash_list.h: New file.
58015         * lib/gl_avltreehash_list.c: New file.
58016         * lib/gl_rbtreehash_list.h: New file.
58017         * lib/gl_rbtreehash_list.c: New file.
58018         * lib/gl_anytreehash_list1.h: New file.
58019         * lib/gl_anytreehash_list2.h: New file.
58020
58021         * lib/gl_oset.h: New file.
58022         * lib/gl_oset.c: New file.
58023         * lib/gl_array_oset.h: New file.
58024         * lib/gl_array_oset.c: New file.
58025         * lib/gl_avltree_oset.h: New file.
58026         * lib/gl_avltree_oset.c: New file.
58027         * lib/gl_rbtree_oset.h: New file.
58028         * lib/gl_rbtree_oset.c: New file.
58029         * lib/gl_anytree_oset.h: New file.
58030
58031 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
58032
58033         * m4/mkancesdirs.m4: New file.
58034         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
58035         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
58036         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
58037         it.
58038
58039 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
58040
58041         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
58042         * lib/mkancesdirs.h: New files.
58043         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
58044         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
58045         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
58046         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
58047         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
58048         callers changed.  Revamp internals significantly, by not
58049         attempting to create directories that are temporarily more
58050         permissive than the final results.  Do not attempt to use
58051         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
58052         This removes some race conditions, fixes some bugs, and simplifies
58053         things.  Use new dirchownmod function to do owner and mode changes.
58054         * lib/mkdir-p.h: Likewise.
58055         * lib/modechange.c (octal_to_mode): New function.
58056         (struct mode_change): New member mentioned.
58057         (make_node_op_equals): New arg mentioned.  All callers changed.
58058         (mode_compile): Keep track of which mode bits the user has explicitly
58059         mentioned.
58060         (mode_adjust): New arg DIR, so that we implement the X op correctly.
58061         New arg PMODE_BITS, to keep track of which mode bits the user
58062         mentioned; it treats S_ISUID and S_ISGID speciall.
58063         All callers changed.
58064         * lib/modechange.h: Likewise.
58065
58066 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
58067
58068         * MODULES.html.sh: Add mkancestors.
58069         * modules/mkancesdirs: New module.
58070         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
58071         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
58072         The chdir-safer and afs files are now orphans; I'll remove them
58073         unless someone speaks up.
58074         Add lib/dirchownmod.c, lib/dirchownmod.h.
58075         (Depends-on): Remove alloca, chown, save-cwd, dirname.
58076         Add lchown, mkancesdirs.
58077         (Maintainer): Add self.
58078
58079 2006-07-15  Karl Berry  <karl@gnu.org>
58080
58081         * gnulib-tool: help message wording/arrangement.
58082
58083 2006-07-14  Simon Josefsson  <jas@extundo.com>
58084
58085         * doc/gnulib.texi (Libtool and Windows): New section.
58086
58087 2006-07-12  Simon Josefsson  <jas@extundo.com>
58088
58089         * modules/gendocs (License): Fix license, approved by Karl.
58090
58091 2006-07-12  Eric Blake  <ebb9@byu.net>
58092
58093         * MODULES.html.sh: Add gendocs.
58094
58095 2006-07-11  Eric Blake  <ebb9@byu.net>
58096
58097         * modules/fdl: New module, to install doc/fdl.texi.
58098         * MODULES.html.sh: Add new section for documentation modules.
58099         * gnulib-tool: Avoid space-tab.
58100         (--doc-base): New option, to manage files from doc.
58101
58102 2006-07-11  Eric Blake  <ebb9@byu.net>
58103
58104         * m4/absolute-header.m4: Fix comments to match recent change.
58105
58106 2006-07-11  Eric Blake  <ebb9@byu.net>
58107
58108         * gnulib-tool: List --doc-base before --tests-base.
58109
58110 2006-07-11  Derek R. Price  <derek@ximbiot.com>
58111
58112         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
58113
58114 2006-07-11  Bruno Haible  <bruno@clisp.org>
58115
58116         * README: Mention where to put documentation.
58117
58118 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58119
58120         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
58121
58122 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
58123
58124         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
58125         to stdint.m4.
58126
58127 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
58128
58129         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
58130         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
58131         "no/such/file/stdint.h" when there is no such file, so that
58132         the resulting C code can be parsed by dodgy compilers.
58133         Problems reported by Bob Proulx.
58134
58135 2006-07-10  Derek R. Price  <derek@ximbiot.com>
58136
58137         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
58138         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
58139         macros into the GNU _D_EXACT_NAMLEN.
58140         * lib/savedir.c:  Likewise.
58141         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
58142
58143 2006-07-10  Derek R. Price  <derek@ximbiot.com>
58144         and Paul Eggert  <eggert@cs.ucla.edu>
58145
58146         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
58147         * m4/savedir.m4:
58148         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
58149         macros into the GNU _D_EXACT_NAMLEN.
58150
58151 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
58152
58153         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
58154         around the absolute name, to work around a problem with the HP-UX
58155         11.23 native C compiler, reported by Bob Proulx.
58156
58157 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
58158
58159         * doc/maintain.texi, make-stds.texi: Sync from
58160         <http://savannah.gnu.org/projects/gnustandards>.
58161
58162 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
58163
58164         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
58165
58166 2006-07-09  Jim Meyering  <jim@meyering.net>
58167
58168         * m4/glob.m4: Remove a doubled word in a comment.
58169
58170 2006-07-09  Jim Meyering  <jim@meyering.net>
58171
58172         * lib/argp-pv.c: Remove a doubled word in a comment.
58173         * lib/check-version.c (check_version): Likewise.
58174         * lib/javacomp.c (compile_java_class): Likewise.
58175
58176 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
58177
58178         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
58179         for the benefit of people using Autoconf 2.60.  If you want to
58180         support older Autoconf versions you can copy m4/onceonly_2_57.m4
58181         (or m4/onceonly.m4, if pre-2.57) manually.
58182
58183 2006-07-08  Jim Meyering  <jim@meyering.net>
58184
58185         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
58186         comment.
58187         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
58188         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
58189         comment.
58190
58191 2006-07-08  Jim Meyering  <jim@meyering.net>
58192
58193         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
58194
58195 2006-07-07  Simon Josefsson  <jas@extundo.com>
58196
58197         * tests/test-crc.c: Change expected crc value, the test vector
58198         were probably computed using the old broken crc.c?
58199
58200 2006-07-06  Simon Josefsson  <jas@extundo.com>
58201
58202         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
58203         now the canonical place for the M4 file).
58204
58205         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
58206         from the sys_socket dependency now.
58207
58208         * modules/inet_pton (Files): Ditto.
58209
58210         * modules/inet_ntop (Files): Ditto.
58211
58212 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
58213
58214         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
58215         not gl_PREREQ_GETUSERSHELL.
58216
58217 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58218
58219         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
58220         with only one argument, for Autoconf 2.60.
58221         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
58222         expand to nothing, so add a shell command to avoid syntax error.
58223         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
58224
58225 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58226
58227         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
58228
58229 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
58230
58231         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
58232         no longer needed.  Check for isblank decl.
58233         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
58234         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
58235         of existence.
58236
58237 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
58238
58239         * lib/getloadavg.c: Use __VMS, not VMS.
58240         * lib/getopt.c: Likewise.
58241         * lib/getpagesize.h: Likewise.
58242         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
58243         and probably does not work.
58244
58245 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
58246
58247         * lib/.cppi-disable: Add wcwidth.
58248         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
58249         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
58250         (ISGRAPH): Remove.  All uses changed to isgraph.
58251         (FOLD) [!defined _LIBC]: Remove special case.
58252         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
58253         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
58254         HAVE_ISBLANK.
58255         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
58256         case.
58257
58258 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
58259
58260         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
58261         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
58262         brackets.  Other minor changes to suppress some compiler
58263         warnings.
58264
58265 2006-07-06  Derek R. Price  <derek@ximbiot.com>
58266         and Paul Eggert  <eggert@cs.ucla.edu>
58267
58268         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
58269         of invoking obsolescent AC_HEADER_DIRENT macro.
58270         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
58271         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
58272         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
58273         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
58274         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
58275         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
58276         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
58277         * m4/readdir.m4: Remove; no longer needed.
58278
58279 2006-07-06  Derek R. Price  <derek@ximbiot.com>
58280         and Paul Eggert  <eggert@cs.ucla.edu>
58281
58282         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
58283         Don't worry about this obsolete case any more.
58284         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
58285         directories.
58286         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
58287         worry about this obsolete case any more.
58288         * lib/fts.c: Likewise.
58289         * lib/getcwd.c: Likewise.
58290         * lib/glob.h: Likewise.
58291         * lib/savedir.c: Likewise.
58292
58293 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
58294
58295         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
58296         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
58297         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
58298         needed.
58299         All uses removed.
58300         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
58301         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
58302         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
58303         needed.
58304         * m4/getdate.m4 (gl_GETDATE): Likewise.
58305         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
58306         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
58307         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
58308         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
58309         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
58310         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
58311         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
58312         needed.
58313
58314 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
58315
58316         * lib/memcasecmp.c: Include <limits.h>.
58317         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
58318         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
58319         Don't assume isdigit succeeds only on '0' through '9'.
58320
58321 2006-07-05  Eric Blake  <ebb9@byu.net>
58322
58323         * modules/getaddrinfo (Depends-on): Add snprintf.
58324
58325 2006-07-05  Eric Blake  <ebb9@byu.net>
58326
58327         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
58328         to avoid 'header present but could not be compiled' on cygwin.
58329
58330 2006-07-05  Eric Blake  <ebb9@byu.net>
58331
58332         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
58333         missing from netdb.h.
58334         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
58335
58336 2006-07-05  Derek R. Price  <derek@ximbiot.com>
58337
58338         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
58339         no longer needed.
58340         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
58341         * m4/getdate.m4 (gl_GETDATE): Likewise.
58342         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
58343         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
58344         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
58345         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
58346         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
58347
58348 2006-07-05  Derek R. Price  <derek@ximbiot.com>
58349
58350         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
58351         All uses of is_space replaced by isspace.
58352         * lib/exit.h: Don't talk about STDC_HEADERS.
58353         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
58354         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
58355         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
58356         replaced by isprint etc.
58357         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
58358         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
58359         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
58360         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
58361         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
58362         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
58363
58364 2006-07-05  Bruno Haible  <bruno@clisp.org>
58365
58366         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
58367         the function exists, before testing against AIX.
58368         Reported by Martin Lambers <marlam@marlam.de>.
58369
58370 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
58371
58372         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
58373         From Mark D. Baushke.
58374
58375 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
58376
58377         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
58378         to the absolute name, not just one, to bypass Sun C 5.8's
58379         "warning: #include of /usr/include/... may be non-portable".
58380
58381 2006-07-04  Eric Blake  <ebb9@byu.net>
58382
58383         * modules/dirname-tests: New test module.
58384         * tests/test-dirname.c: New file, replacing dirname.c
58385         TEST_DIRNAME section that was recently deleted.
58386
58387 2006-07-04  Bruno Haible  <bruno@clisp.org>
58388
58389         Assume ANSI C header files and <ctype.h> functions.
58390         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
58391         (mbsnwidth): Use isprint, iscntrl instead.
58392
58393 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
58394
58395         Merge from coreutils.
58396         * MODULES.html.sh: Add xstrtold.
58397         * modules/xstrtold: New file.
58398         * modules/cycle-check (Files): Add lib/same-inode.h.
58399         * modules/dirname (Files): Add m4/double-slash-root.m4.
58400         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
58401         * modules/mkdir-p (Files): Add lib/same-inode.h.
58402         * modules/same (Files): Add lib/same-inode.h.
58403
58404 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
58405
58406         * m4/absolute-header.m4: Renamed from full-header-path.m4.
58407         This is to keep the terminology clean; POSIX talks about
58408         "absolute pathnames", not "full pathnames", but the GNU
58409         Coding Standards say to use "path" for something else;
58410         so use "absolute" to keep both sides happy.
58411         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
58412         Set gl_absolute_header, not gl_full_header_path.
58413         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
58414         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
58415         All uses changed.
58416
58417         Merge from coreutils.
58418
58419         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
58420
58421         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
58422         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
58423         want to require the building of c-strtod.o.
58424         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
58425         needs -lm directly.
58426         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
58427
58428         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
58429
58430         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
58431         --as-needed option if available.  Problem reported by Albert Chin in
58432         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
58433         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
58434         cc merely issues a bunch of annoying warnings for --as-needed
58435         (this problem was reported by Bob Proulx).  Also, try linking with
58436         -lm to detect a bug in binutils 2.16 (this problem was reported
58437         by Ralf Wildenhues).
58438
58439         2006-06-18  Jim Meyering  <jim@meyering.net>
58440
58441         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
58442         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
58443         macro.
58444         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
58445         also check for glibc-2.4's abort-inducing bug.
58446
58447         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
58448         Low-probability clean-up should be to use rmdir to get rid of
58449         the just-created directory, not unlink.
58450
58451         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
58452         configure fail, and request a bug report to inform us about it.
58453         Add a comment that, barring reports to the contrary, in 2007 we'll
58454         assume ftruncate is universally available.
58455
58456         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
58457
58458         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
58459
58460         2006-03-12  Jim Meyering  <jim@meyering.net>
58461
58462         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
58463         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
58464         * m4/same.m4 (gl_SAME): Likewise.
58465         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
58466
58467         2006-03-11  Eric Blake  <ebb9@byu.net>
58468
58469         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
58470         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
58471         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
58472         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
58473
58474 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
58475
58476         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
58477         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
58478         reported by Mark D. Baushke, one in
58479         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
58480
58481         Merge from coreutils.
58482
58483         * lib/.cppi-disable: Add stdint_.h.
58484         * lib/.cvsignore: Add stdint.h.
58485
58486         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
58487
58488         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
58489         both double and long double versions.
58490         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
58491         * lib/xstrtold.c: New file.
58492         * lib/xstrtod.h (xstrtold): New decl.
58493
58494         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
58495
58496         * lib/filemode.c (setst): Remove.
58497         (strmode): Rewrite to avoid setst.  This makes the code shorter,
58498         (arguably) clearer, and the generated code is a bit smaller on my
58499         Debian GNU/Linux stable x86 host.
58500
58501         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
58502
58503         * lib/filemode.c: Include "filemode.h" first, to test the interface.
58504         Assume that filemode.h includes sys/types.h and sys/stat.h.
58505         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
58506         (ftypelet): Reorder to put common cases first, for efficiency.
58507         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
58508         to do 'M'.
58509         (strmode): Renamed from mode_string, and now stores 12 bytes instead
58510         of 10, for compatibility with FreeBSD.  All callers changed.
58511         (filemodestring): Now stores 12 bytes instead of 10, and sets file
58512         types that can't be deduced solely from st_mode.  First arg is now a
58513         const pointer.
58514         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
58515         (strmode): Renamed from mode_string.
58516         (filemodestring): New decl.
58517         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
58518         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
58519         needed.
58520         (S_ISPORT, S_ISWHT): New macros, if not already defined.
58521
58522         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
58523
58524         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
58525         fsusage.h now does that.  Include fsusage.h first, to test interface.
58526         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
58527         at most one method (the old code could have generated decls that
58528         didn't conform to C89, not that this was ever exercised).
58529         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
58530
58531         2006-03-19  Jim Meyering  <jim@meyering.net>
58532
58533         Work even in a chroot where d_ino values for entries in "/"
58534         don't match the stat.st_ino values for the same names.
58535         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
58536         number, iterate through all entries again, using lstat instead.
58537         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
58538         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
58539
58540         * lib/getcwd.c (__getcwd): Clarify a comment.
58541         Use memcpy in place of a call to strcpy.
58542
58543         2006-03-12  Jim Meyering  <jim@meyering.net>
58544
58545         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
58546         matches that of the current directory (which we're about to chdir ".."
58547         out of), then save the dev-ino of the parent, instead.
58548
58549         * lib/same-inode.h (SAME_INODE): New file/macro.
58550         * lib/chdir-safer.c (SAME_INODE): Remove definition.
58551         Include "same-inode.h", instead.
58552         * lib/same.c: Likewise.
58553         * lib/cycle-check.h: Include "same-inode.h".
58554         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
58555         * lib/cycle-check.c (SAME_INODE): Remove definition.
58556         * lib/root-dev-ino.h: Include "same-inode.h".
58557
58558         2006-03-11  Eric Blake  <ebb9@byu.net>
58559
58560         * lib/same.c (same_name): s/base_name/last_component/
58561         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
58562         * lib/filenamecat.c (file_name_concat): Likewise.
58563
58564         2006-03-11  Eric Blake  <ebb9@byu.net>,
58565                     Paul Eggert  <eggert@cs.ucla.edu>
58566
58567         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
58568         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
58569         drive prefix.
58570         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
58571         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
58572         (last_component): New method.
58573         * lib/dirname.c (dir_len): Determine when drive letters need a
58574         subsequent slash.  Preserve // when it is special.
58575         (dir_name): Don't append dot when drive letter is absolute.
58576         [TEST_DIRNAME]: Move into a full-blown gnulib test.
58577         * lib/basename.c (base_name): New semantics - malloc the result.
58578         Preserve // when it is special.  Preserve relative files that look
58579         like drive letters.
58580         (base_len): Preserve // when it is special.
58581         (last_component): New method, similar to old base_name semantics.
58582         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
58583         base_name.  Strip redundant slashes from ///.
58584
58585 2006-07-03  Jim Meyering  <jim@meyering.net>
58586
58587         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
58588         macro is used before the first cycle_check call.
58589
58590 2006-07-03  Eric Blake  <ebb9@byu.net>
58591
58592         * modules/dirname (Depends-on): Add xstrndup.
58593
58594 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
58595
58596         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
58597         test cases, so that config.log is a bit easier to follow.
58598
58599 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
58600
58601         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
58602         both are 64 bits, since this seems to be the tradition, and this
58603         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
58604         we ever run into a host that prefers long long to long in this
58605         case, we'll need another configure-time test.  Problem reported by
58606         Jim Meyering.
58607
58608 2006-07-02  Eric Blake  <ebb9@byu.net>
58609
58610         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
58611
58612 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
58613
58614         * modules/inttypes (Depends-on): No longer depends on stdint.
58615         * modules/stdint (Description): Say more about assumptions.
58616         Say that the fast types might differ.  Say macros are used.
58617         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
58618         (Makefile.am): Revise list of substituted symbols to match
58619         new stdint.m4.
58620         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
58621         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
58622         * tests/test-stdint.c (verify_same_types)
58623         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
58624         the code conforms to C99/C89.
58625         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
58626         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
58627
58628 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
58629
58630         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
58631         but fix a bug, by requiring at least 64 bits.
58632         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
58633         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
58634         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
58635         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
58636
58637         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
58638         changes.  Make 2.59 a prerequisite.  Check and substitute for
58639         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
58640         inttypes.h.  Do not use special include files; just use the
58641         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
58642         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
58643         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
58644         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
58645         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
58646         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
58647         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
58648         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
58649         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
58650         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
58651         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
58652         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
58653         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
58654         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
58655         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
58656         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
58657         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
58658         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
58659         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
58660         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
58661         WINT_MAX.  Check for C99 conformance more strictly, by detecting
58662         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
58663         not check for things that C99 does not require, e.g., int8_t.  If
58664         a test isn't needed unless <stdint.h> isn't working, and is
58665         unlikely to be needed for any other reason, then don't do it
58666         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
58667         size_t, since we assume C89 freestanding at least.  Do not check
58668         for sig_atomic_t, wchar_t, or wint_t, since the code now does
58669         the right thing even if the types are not defined.  Instead use:
58670         (gl_STDINT_TYPE_PROPERTIES): New macro.
58671         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
58672         testing whether <sys/types.h> clashes, as Autoconf does this for
58673         us now.  All uses removed.
58674         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
58675         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
58676         (gl_CHECK_TYPE_SAME):
58677         Remove; no longer needed.
58678         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
58679         exists, since we'll return 0 anyway in that case.
58680         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
58681
58682 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
58683
58684         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
58685         possible collision with system files.
58686         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
58687         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
58688         WCHAR_MIN and WCHAR_MAX in this case.
58689         (<stddef.h>): Do not include; no longer needed.
58690         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
58691         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
58692         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
58693         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
58694         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
58695         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
58696         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
58697         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
58698         !defined(__c99))]: Include in this case too, since it's harmless
58699         now.
58700         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
58701         dangerous to do so.
58702         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
58703         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
58704         (_STDINT_MIN, _STDINT_MAX): New macros.
58705         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
58706         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
58707         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
58708         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
58709         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
58710         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
58711         macros, not typedefs; this simplifies things quite a bit.
58712         Use long int for all types narrower than int64_t.
58713         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
58714         Define in terms of long long int or int64_t or long int,
58715         not int64_t or int32_t.  This saves some compile-time testing.
58716         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
58717         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
58718         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
58719         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
58720         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
58721         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
58722         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
58723         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
58724         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
58725         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
58726         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
58727         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
58728         undef any previous version and define our own version, for
58729         simplicity and consistency with the new macros for types.
58730         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
58731         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
58732         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
58733         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
58734         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
58735         @WINT_T_SUFFIX@ to keep things simple here.
58736         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
58737         Simplify by assuming typical 8/16/32/64 host, since we're
58738         already doing that elsewhere anyway.
58739         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
58740         and assume long long int is 64 bits if available.  This
58741         speeds up 'configure'.
58742
58743 2006-07-01  Eric Blake  <ebb9@byu.net>
58744
58745         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
58746         Reported by Andreas Buening.
58747
58748 2006-07-01  Eric Blake  <ebb9@byu.net>
58749
58750         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
58751
58752 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
58753
58754         * lib/getaddrinfo.c: fixed typo
58755
58756 2006-06-29  Jim Meyering  <jim@meyering.net>
58757
58758         * modules/strftime (Maintainer): Add my name, since with the
58759         FPRINTFTIME changes strftime.c has forked from glibc.
58760
58761 2006-06-29  Eric Blake  <ebb9@byu.net>
58762
58763         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
58764
58765 2006-06-29  Eric Blake  <ebb9@byu.net>
58766
58767         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
58768
58769 2006-06-29  Eric Blake  <ebb9@byu.net>
58770
58771         * lib/stat_.h: New file.
58772
58773 2006-06-29  Eric Blake  <ebb9@byu.net>
58774
58775         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
58776         unused static function.
58777
58778 2006-06-29  Eric Blake  <ebb9@byu.net>
58779
58780         * doc/functions.texi (Function Portability): Document missing lstat
58781         on mingw.
58782
58783 2006-06-29  Eric Blake  <ebb9@byu.net>
58784
58785         * MODULES.html.sh: Add sys_stat.
58786         * modules/sys_stat: New module.
58787         * modules/mkstemp (Depends-on): Add sys_stat.
58788
58789 2006-06-29  Derek R. Price  <derek@ximbiot.com>
58790
58791         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
58792
58793 2006-06-29  Derek R. Price  <derek@ximbiot.com>
58794
58795         * m4/c-bs-a.m4: Removed.
58796
58797 2006-06-29  Derek R. Price  <derek@ximbiot.com>
58798
58799         * lib/strftime.c: Assume strftime() exists.
58800
58801 2006-06-29  Derek Price  <derek@ximbiot.com>
58802
58803         * modules/c-bs-a: Removed - \a is C89.
58804         * MODULES.html.sh: Remove c-bs-a.
58805
58806 2006-06-29  Bruno Haible  <bruno@clisp.org>
58807
58808         * modules/wcwidth (License): Change to LGPL.
58809
58810 2006-06-28  Simon Josefsson  <jas@extundo.com>
58811
58812         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
58813         on _WIN32.
58814
58815         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
58816         getnameinfo.
58817
58818 2006-06-28  Simon Josefsson  <jas@extundo.com>
58819
58820         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
58821
58822 2006-06-28  Simon Josefsson  <jas@extundo.com>
58823
58824         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
58825         functions there.  It will succeed on Windows XP, but on Windows
58826         2000 and (presumably) earlier, it will fail, and use the internal
58827         re-implementation.
58828         (use_win32_p): New function.
58829         (getaddrinfo): Use strtoul on servname, to support numeric ports.
58830         Support AI_NUMERICSERV to disable getservbyname.
58831         (getnameinfo): New function, only supports
58832         NI_NUMERICHOST|NI_NUMERICSERV for now.
58833
58834         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
58835         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
58836         getnameinfo.
58837
58838 2006-06-28  Eric Blake  <ebb9@byu.net>
58839
58840         * modules/wcwidth: New file.
58841         * modules/mbchar (Depends-on): Add wcwidth.
58842         * modules/mbswidth (Depends-on): Add wcwidth.
58843         * MODULES.html.sh: Add wcwidth.
58844
58845 2006-06-28  Eric Blake  <ebb9@byu.net>
58846
58847         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
58848         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
58849
58850 2006-06-28  Eric Blake  <ebb9@byu.net>
58851
58852         * lib/xvasprintf.h: Fix comments.
58853
58854 2006-06-28  Eric Blake  <ebb9@byu.net>
58855
58856         * lib/mbchar.h (wcwidth): Include wcwidth.h.
58857         * lib/mbswidth.c (wcwidth): Move from here...
58858         * lib/wcwidth.h: ...to this new file.
58859
58860 2006-06-28  Derek R. Price  <derek@ximbiot.com>
58861
58862         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
58863
58864         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
58865         it's obsolete.
58866         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
58867
58868 2006-06-28  Derek R. Price  <derek@ximbiot.com>
58869
58870         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
58871         Autoconf 2.60 says this stuff was obsolete.
58872
58873 2006-06-28  Bruno Haible  <bruno@clisp.org>
58874
58875         * modules/wcwidth (Files): Add m4/wchar_t.m4.
58876
58877 2006-06-28  Bruno Haible  <bruno@clisp.org>
58878
58879         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
58880         gt_TYPE_WCHAR_T.
58881
58882 2006-06-28  Bruno Haible  <bruno@clisp.org>
58883
58884         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
58885         declaration for wcwidth.
58886         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
58887
58888 2006-06-28  Bruno Haible  <bruno@clisp.org>
58889
58890         * lib/mkdtemp.c [MINGW]: Include <io.h>.
58891         (mkdir): Define using _mkdir.
58892
58893 2006-06-28  Bruno Haible  <bruno@clisp.org>
58894
58895         * lib/getaddrinfo.h: Fix POSIX URL.
58896         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
58897         _WIN32.
58898         (use_win32_p): Make static.
58899         (getaddrinfo): Reject service name if it is empty or does not consist
58900         solely of decimal digits, or if its value is > 65535.
58901         (getnameinfo): Remove useless casts.
58902
58903 2006-06-27  Simon Josefsson  <jas@extundo.com>
58904
58905         * modules/sys_select: New file, suggested by Bruno Haible, Paul
58906         Eggert and Martin Lambers.
58907
58908 2006-06-27  Simon Josefsson  <jas@extundo.com>
58909
58910         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
58911         Eggert and Martin Lambers.
58912
58913 2006-06-27  Bruno Haible  <bruno@clisp.org>
58914
58915         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
58916         result to 0, not to empty.
58917         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
58918
58919 2006-06-27  Bruno Haible  <bruno@clisp.org>
58920
58921         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
58922
58923 2006-06-26  Simon Josefsson  <jas@extundo.com>
58924
58925         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
58926         present.
58927
58928 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
58929
58930         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
58931         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
58932         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
58933
58934 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
58935
58936         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
58937
58938 2006-06-26  Bruno Haible  <bruno@clisp.org>
58939
58940         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
58941
58942 2006-06-26  Bruno Haible  <bruno@clisp.org>
58943
58944         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
58945
58946 2006-06-26  Bruno Haible  <bruno@clisp.org>
58947
58948         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
58949         SGI C compiler in pre-C99 mode.
58950         Suggested by Mark D. Baushke and Larry Jones.
58951
58952 2006-06-26  Bruno Haible  <bruno@clisp.org>
58953
58954         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
58955         WCHAR_MAX.
58956         Reported by Mark D. Baushke and Larry Jones.
58957
58958 2006-06-26  Bruno Haible  <bruno@clisp.org>
58959
58960         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
58961         in pre-C99 mode.
58962         Suggested by Mark D. Baushke and Larry Jones.
58963
58964 2006-06-23  Simon Josefsson  <jas@extundo.com>
58965             Bruno Haible  <bruno@clisp.org>
58966
58967         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
58968         Emit mostlyclean-local rule.
58969         (func_emit_tests_Makefile_am): Likewise.
58970         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
58971
58972 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
58973
58974         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
58975
58976 2006-06-23  Bruno Haible  <bruno@clisp.org>
58977
58978         * tests/test-stdint.c: Update to match ISO C 99 Technical
58979         Corrigendum 1.
58980
58981 2006-06-23  Bruno Haible  <bruno@clisp.org>
58982
58983         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
58984
58985 2006-06-23  Bruno Haible  <bruno@clisp.org>
58986
58987         * lib/stdint_.h: Treat IRIX like OpenBSD.
58988
58989 2006-06-23  Bruno Haible  <bruno@clisp.org>
58990
58991         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
58992         ISO C 99 Technical Corrigendum 1.
58993
58994 2006-06-22  Simon Josefsson  <jas@extundo.com>
58995
58996         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
58997         MinGW.
58998
58999 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
59000
59001         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
59002         needed.  Some compiler complained about some of them.  Problem reported
59003         by Larry Jones in
59004         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
59005
59006 2006-06-21  Simon Josefsson  <jas@extundo.com>
59007
59008         * tests/test-getaddrinfo.c: New file.
59009
59010         * modules/getaddrinfo-tests: New file.
59011
59012         * MODULES.html.sh: Add inet_pton.
59013
59014         * modules/inet_pton: New file.
59015
59016 2006-06-21  Simon Josefsson  <jas@extundo.com>
59017
59018         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
59019         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
59020         of using the (limited) gnulib implementation on Windows XP.
59021
59022         * m4/inet_pton.m4: New file.
59023
59024 2006-06-21  Simon Josefsson  <jas@extundo.com>
59025
59026         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
59027         variable.
59028
59029         * lib/socket_.h: Don't define WINVER.
59030
59031         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
59032         slightly modified to work in gnulib.
59033
59034 2006-06-21  Simon Josefsson  <jas@extundo.com>
59035
59036         * doc/gnulib.texi (Windows sockets): Add.
59037
59038 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
59039
59040         * lib/read-file.c (fread_file): Start with buffer allocation of
59041         0 bytes rather than 1 byte; this simplifies the code.
59042         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
59043         code to free buffer and save/restore errno.
59044         (internal_read_file): Remove unused local.
59045
59046 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
59047
59048         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
59049         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
59050         Problem reported by Denis Excoffier in
59051         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
59052
59053 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59054
59055         * modules/sys_socket, modules/socklen: Include sys/types since
59056         FreeBSD 4.x's sys/socket.h needs it.
59057
59058 2006-06-19  Simon Josefsson  <jas@extundo.com>
59059
59060         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
59061
59062 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
59063
59064         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
59065
59066 2006-06-19  Bruno Haible  <bruno@clisp.org>
59067
59068         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
59069         and FULL_PATH_INTTYPES_H in angle brackets.
59070         Reported by Mark D. Baushke <mdb@gnu.org>.
59071
59072 2006-06-17  Eric Blake  <ebb9@byu.net>
59073
59074         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
59075         errno.
59076
59077 2006-06-17  Bruno Haible  <bruno@clisp.org>
59078
59079         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
59080         <sys/inttypes.h>.
59081
59082 2006-06-17  Bruno Haible  <bruno@clisp.org>
59083
59084         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
59085         whether errno is declared. Assume <errno.h> declares errno.
59086
59087 2006-06-17  Bruno Haible  <bruno@clisp.org>
59088
59089         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
59090
59091 2006-06-17  Bruno Haible  <bruno@clisp.org>
59092
59093         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
59094         problem on Solaris 2.5.1.
59095
59096 2006-06-16  Eric Blake  <ebb9@byu.net>
59097
59098         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
59099         * lib/unicodeio.c [!defined errno]: Likewise.
59100         * lib/strtol.c [!defined errno]: Likewise.
59101         * lib/strtod.c [!defined errno]: Likewise.
59102
59103 2006-06-15  Eric Blake  <ebb9@byu.net>
59104
59105         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
59106
59107 2006-06-15  Eric Blake  <ebb9@byu.net>
59108
59109         * config/srclist.txt (ssize_t.m4): Lose sync.
59110
59111 2006-06-15  Bruno Haible  <bruno@clisp.org>
59112
59113         * modules/stdint (Files): Include m4/full-header-path.m4,
59114         m4/size_max.m4, m4/wchar_t.m4.
59115         (Makefile.am): Many more substitutions.
59116         * modules/stdint-tests: New file.
59117         * tests/test-stdint.c: New file.
59118
59119 2006-06-15  Bruno Haible  <bruno@clisp.org>
59120
59121         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
59122         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
59123         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
59124         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
59125         gl_CHECK_TYPE_SAME): New macros.
59126
59127 2006-06-15  Bruno Haible  <bruno@clisp.org>
59128
59129         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
59130
59131 2006-06-15  Bruno Haible  <bruno@clisp.org>
59132
59133         * lib/stdint_.h: Rewritten to be fully auto-configured.
59134         Fixes bug on HP-UX/IA64.
59135
59136 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
59137
59138         * lib/getdate.y (__attribute__): Don't define if already defined.
59139         Problem reported by Larry Jones.
59140         * lib/utimens.c (__attribute__): Likewise.
59141
59142 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
59143
59144         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
59145         reported by Andreas Schwab.
59146
59147 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59148             Bruno Haible  <bruno@clisp.org>
59149
59150         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
59151         check for the declaration of strnlen and a run test that exposes the
59152         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
59153         rpl_strndup.
59154
59155 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59156             Bruno Haible  <bruno@clisp.org>
59157
59158         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
59159
59160 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59161
59162         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
59163         compile test, for Tru64 4.0D.
59164
59165 2006-05-28  Karl Berry  <karl@gnu.org>
59166
59167         * config/srclist.txt (printf-args.c): lose sync.
59168
59169 2006-05-26  Martin Lambers  <marlam@marlam.de>
59170
59171         * lib/getpass.c: Updates the test for the native W32 API, and adds
59172         missing includes, thus fixing compilation warnings.
59173
59174 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
59175
59176         * lib/exclude.c (exclude_fnmatch): New function.
59177         (excluded_file_name): Call exclude_fnmatch.
59178         * lib/exclude.h (excluded_file_name): New prototype
59179
59180 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
59181
59182         * lib/tempname.c (small_open, large_open): New macros.
59183         (__open, __open64) [!_LIBC]: Remove.
59184         (__gen_tempname): Use small_open and large_open instead of __open
59185         and __open64.  This fixes a portability bug on HP-UX 11.11i
59186         reported by Simon Wing-Tang in
59187         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
59188
59189 2006-05-24  Bruno Haible  <bruno@clisp.org>
59190
59191         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
59192         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
59193         Reported by Thorsten Maerz <torte@netztorte.de> via
59194         Aaron Stone <aaron@serendipity.cx>.
59195
59196 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
59197
59198         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
59199         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
59200         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
59201         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
59202         not really conditional on the cache.
59203         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
59204
59205 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
59206
59207         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
59208         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
59209         (my_usleep): Don't mishandle maximum value.
59210
59211 2006-05-19  Jim Meyering  <jim@meyering.net>
59212
59213         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
59214
59215 2006-05-17  Bruno Haible  <bruno@clisp.org>
59216
59217         Cygwin portability.
59218         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
59219
59220 2006-05-17  Bruno Haible  <bruno@clisp.org>
59221
59222         * lib/stdint_.h: Fix recognition of Cygwin.
59223
59224 2006-05-15  Bruno Haible  <bruno@clisp.org>
59225
59226         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
59227         on libtool patch by Ralf Wildenhues.
59228
59229 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
59230
59231         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
59232         test for C99 conformance; (bool) 0.5 is an integer constant
59233         expression, but (bool) -0.5 is not.  Problem reported by Fedor
59234         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
59235
59236 2006-05-11  Simon Josefsson  <jas@extundo.com>
59237
59238         * m4/xvasprintf.m4: Fix obvious typo.
59239
59240 2006-05-11  Jim Meyering  <jim@meyering.net>
59241
59242         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
59243         James Lemley.
59244
59245 2006-05-10  Simon Josefsson  <jas@extundo.com>
59246
59247         * lib/md4.c: Typo fix, update copyright years.
59248         (K1, K2): Don't use L because it turn computations into 64-bit on
59249         64-bit platforms.
59250
59251 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
59252
59253         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
59254         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
59255         unwanted sign propagation, e.g., on hosts with 64-bit int.
59256         There still are some problems with reeelly weird theoretical hosts
59257         (e.g., 33-bit int) but it's not worth worrying about now.
59258         * lib/sha1.c (rol): Likewise.
59259         (K1, K2, K3, K4): Remove unnecessary L suffix.
59260
59261 2006-05-10  Bruno Haible  <bruno@clisp.org>
59262
59263         * lib/des.c: Cast to avoid warnings.
59264
59265 2006-05-09  Bruno Haible  <bruno@clisp.org>
59266
59267         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
59268         (Depends-on): Depend also on xsize, stdarg.
59269         (configure.ac): Add gl_XVASPRINTF.
59270
59271 2006-05-09  Bruno Haible  <bruno@clisp.org>
59272
59273         * m4/xvasprintf.m4: New file.
59274
59275 2006-05-09  Bruno Haible  <bruno@clisp.org>
59276
59277         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
59278         (EOVERFLOW): Define fallback value.
59279         (xstrcat): New function.
59280         (xvasprintf): Recognize the special case of a string concatenation.
59281
59282 2006-05-08  Eric Blake  <ebb9@byu.net>
59283
59284         * gnulib-tool (func_version): Base copyright year on CVS date.
59285         (func_emit_copyright_notice): New function.
59286         (func_emit_lib_Makefile_am): Use it.
59287         (func_emit_tests_Makefile_am): Likewise.
59288         (func_import): Likewise.
59289
59290 2006-05-08  Bruno Haible  <bruno@clisp.org>
59291
59292         * modules/stdarg: New file.
59293         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
59294
59295 2006-05-08  Bruno Haible  <bruno@clisp.org>
59296
59297         * m4/stdarg.m4: New file, from GNU gettext.
59298
59299 2006-05-08  Bruno Haible  <bruno@clisp.org>
59300
59301         * config/srclist.txt (build-aux/config.rpath): different from latest
59302         release.
59303
59304 2006-05-08  Bruno Haible  <bruno@clisp.org>
59305
59306         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
59307
59308 2006-05-05  Jim Meyering  <jim@meyering.net>
59309
59310         * m4/warning.m4: New file, derived from bison's file by the same name.
59311
59312 2006-05-03  Bruno Haible  <bruno@clisp.org>
59313
59314         * lib/stdint_.h: Shorter URL.
59315         * lib/inttypes.h: Likewise.
59316
59317 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
59318
59319         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
59320
59321 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
59322
59323         * lib/verify.h: Document the internals better.  Most of this change
59324         was written by Bruno Haible.
59325
59326 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
59327
59328         * doc/verify.texi: New file, partly based on a proposal by
59329         Bruno Haible.
59330
59331 2006-05-02  Bruno Haible  <bruno@clisp.org>
59332
59333         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
59334         test from here...
59335         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
59336
59337 2006-04-29  Bruno Haible  <bruno@clisp.org>
59338
59339         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
59340         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
59341
59342 2006-04-29  Bruno Haible  <bruno@clisp.org>
59343
59344         * gnulib-tool: Make --update option actually work.
59345
59346 2006-04-29  Bruno Haible  <bruno@clisp.org>
59347
59348         * doc/gcd.texi: New file.
59349         * doc/gnulib.texi: Include it.
59350
59351 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
59352
59353         * lib/getdate.y (get_date): When adding relative date, start with the
59354         initial time, not with the result of the first mktime call.
59355
59356 2006-04-25  Bruno Haible  <bruno@clisp.org>
59357
59358         * gnulib-tool (func_import): Output the include directives in three
59359         blocks, sorted separately.
59360         Reported by Ben Pfaff <blp@cs.stanford.edu>.
59361
59362 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
59363
59364         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
59365         to define main with arguments, for C++.  Reported by Eric Blake.
59366         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
59367         Prefer 'int main ()' to 'int main (void)', for C++.
59368         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
59369         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
59370         for 'main', for C99 and C++.
59371
59372 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
59373
59374         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
59375         Don't assume that exit status -1 is valid.
59376         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
59377         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
59378         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
59379         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
59380         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
59381         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
59382         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
59383         functions can be used without declaring them, or that you can
59384         exit with status -1.
59385         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
59386
59387 2006-04-24  Karl Berry  <karl@gnu.org>
59388
59389         * config/srclist.txt (longdouble.m4): sync lost.
59390
59391 2006-04-24  Eric Blake  <ebb9@byu.net>
59392
59393         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
59394
59395 2006-04-24  Bruno Haible  <bruno@clisp.org>
59396
59397         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
59398         poll() implementation in AIX.
59399         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59400
59401 2006-04-24  Bruno Haible  <bruno@clisp.org>
59402
59403         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
59404         assigned exactly once.
59405
59406 2006-04-23  Claudio Fontana  <claudio@gnu.org>
59407             Bruno Haible  <bruno@clisp.org>
59408
59409         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
59410         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
59411         for AM_CPPFLAGS.
59412
59413 2006-04-23  Bruno Haible  <bruno@clisp.org>
59414
59415         * modules/copy-file: Depend on unistd.
59416         * modules/execute: Likewise.
59417         * modules/fatal-signal: Likewise.
59418         * modules/findprog: Likewise.
59419         * modules/mkdtemp : Likewise.
59420         * modules/pipe: Likewise.
59421         * modules/wait-process: Likewise.
59422
59423 2006-04-23  Bruno Haible  <bruno@clisp.org>
59424
59425         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
59426         condition was already detected.
59427         Reported by Ben Pfaff <blp@cs.stanford.edu>.
59428
59429 2006-04-23  Bruno Haible  <bruno@clisp.org>
59430
59431         * lib/copy-file.c: Include <unistd.h> unconditionally.
59432         * lib/execute.c: Likewise.
59433         * lib/fatal-signal.c: Likewise.
59434         * lib/findprog.c: Likewise.
59435         * lib/mkdtemp.c: Likewise.
59436         * lib/pipe.h: Likewise.
59437         * lib/pipe.c: Likewise.
59438         * lib/wait-process.h: Likewise.
59439
59440 2006-04-23  Bruno Haible  <bruno@clisp.org>
59441
59442         * gnulib-tool (func_usage): Fix --import description. Document
59443         --update.
59444         (func_import): Create temporary file in a temporary directory, if
59445         --dry-run is specified. Silence errors from 'grep' when there are no
59446         m4 files in $m4dir.
59447         (func_create_testdir): Silence errors from 'grep' when there are no
59448         m4 files in $m4dir.
59449         Reported by Karl Berry <karl@freefriends.org>.
59450
59451 2006-04-20  Bruno Haible  <bruno@clisp.org>
59452
59453         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
59454         one argument, so that the code will be portable to Autoconf 2.60.
59455         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
59456         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
59457         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
59458
59459 2006-04-19  Derek Price  <derek@ximbiot.com>
59460             Eric Blake  <ebb9@byu.net>
59461
59462         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
59463         rather than "/full/path.h".  Update comment to match.  Shorten &
59464         generalize m4_translit call via AS_TR_CPP.
59465
59466 2006-04-19  Derek Price  <derek@ximbiot.com>
59467             Eric Blake  <ebb9@byu.net>
59468
59469         * lib/inttypes.h: Correct grammar in comment.
59470
59471 2006-04-18  Derek Price  <derek@ximbiot.com>
59472             Paul Eggert  <eggert@cs.ucla.edu>
59473
59474         * modules/inttypes: New file.
59475         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
59476
59477 2006-04-18  Derek Price  <derek@ximbiot.com>
59478             Paul Eggert  <eggert@cs.ucla.edu>
59479
59480         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
59481         New files.
59482
59483 2006-04-18  Derek Price  <derek@ximbiot.com>
59484             Paul Eggert  <eggert@cs.ucla.edu>
59485
59486         * lib/inttypes.h: New file.
59487         * lib/strtoimax.c: Assume <inttypes.h>.
59488
59489 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
59490
59491         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
59492         isn't mounted.  Problem reported by Kir Kolyshkin.
59493
59494 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
59495
59496         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
59497         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
59498         Derek R. Price.
59499         * lib/regex.h (RE_DUP_MAX): Update comment to match current
59500         implementation.
59501
59502 2006-04-12  Eric Blake  <ebb9@byu.net>
59503
59504         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
59505         is now done automatically by the corresponding Autoconf macro.
59506
59507 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
59508
59509         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
59510         time_r.h.
59511
59512 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
59513
59514         Merge regex changes from libc, removing some of our
59515         POSIX-conformance changes that were rejected and redoing them in a
59516         less-intrusive way.
59517
59518         * lib/regcomp.c (re_compile_internal, init_dfa):
59519         Length arg is now size_t, not Idx.  All uses changed.
59520         (peek_token): Forward decl now says internal_function.
59521         (__re_error_msgid, __re_error_msgid_idx):
59522         Now static rather than extern with attribute_hidden.
59523         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
59524         For some reason libc prefers K&R style defns for external functions.
59525         (regerror) [!defined _LIBC]: Likewise.
59526         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
59527         (seek_collating_symbol_entry, lookup_collation_sequence_value):
59528         (build_range_exp, build_collating_symbol):
59529         Use K&R-style defn.
59530         (re_compile_fastmap): Use '\0' to memset, not 0.
59531         (utf8_sb_map): Make the calculations more obvious.
59532         (init_dfa, parse_bracket_exp, build_charclass_op):
59533         Call calloc and cast result, as glibc does.
59534         (init_word_char, fetch_token, peek_token, peek_token_bracket):
59535         (build_range_exp, build_collating_symbol):
59536         Now internal functions.
59537
59538         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
59539
59540         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
59541         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
59542         Don't depend on VMS; depend on __VMS instead, for POSIX
59543         namespace cleanness.
59544         (regoff_t): Define to ssize_t, not long int.
59545
59546         Remove the REG_ macros named below.  Instead, make the old names
59547         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
59548         __USE_GNU_REGEX.
59549         (REG_BACKSLASH_ESCAPE_IN_LISTS):
59550         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
59551         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
59552         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
59553         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
59554         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
59555         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
59556         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
59557         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
59558         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
59559         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
59560         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
59561         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
59562         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
59563         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
59564         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
59565         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
59566         (REG_NREGS):
59567         Remove.  All uses replaced by the old RE_* names.
59568         (RE_BACKSLASH_ESCAPE_IN_LISTS):
59569         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
59570         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
59571         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
59572         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
59573         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
59574         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
59575         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
59576         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
59577         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
59578         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
59579         Don't bother having these macros be independent of each others'
59580         values, since they no longer exist in the POSIX name space.
59581
59582         Rename the following member names back to their old names,
59583         unless !__USE_GNU_REGEX.  All uses changed back.
59584         (buffer): Renamed from re_buffer.
59585         (allocated): Renamed from re_allocated.
59586         (used): Renamed from re_used.
59587         (syntax): Renamed from re_syntax.
59588         (fastmap): Renamed from re_fastmap.
59589         (translate): Renamed from re_translate.
59590         (can_be_null): Renamed from re_can_be_null.
59591         (regs_allocated): Renamed from re_regs_allocated.
59592         (fastmap_accurate): Renamed from re_fastmap_accurate.
59593         (no_sub): Renamed from re_no_sub.
59594         (not_bol): Renamed from re_not_bol.
59595         (not_eol): Renamed from re_not_eol.
59596         (newline_anchor): Renamed from re_newline_anchor.
59597         (num_regs): Renamed from rm_num_regs.
59598         (start): Renamed from rm_start.
59599         (end): Renamed from rm_end.
59600
59601         (free_state): Move up a bit.
59602
59603         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
59604         #define to be empty.
59605         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
59606         when that is what is intended.
59607         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
59608         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
59609         (MAX): New macro.
59610         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
59611         All uses changed back to re_malloc, etc.  It's now the caller's
59612         responsibility to check for overflow; all callers changed.
59613         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
59614         (re_x2nrealloc): Remove.
59615         (free_state): Remove decl.
59616
59617         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
59618         (re_set_registers, re_exec):
59619         Use K&R-style defn.
59620
59621         2006-01-31  Roland McGrath  <roland@redhat.com>
59622
59623         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
59624         Reported by Mike Frysinger <vapier@gentoo.org>.
59625
59626         2006-01-15  Andreas Jaeger  <aj@suse.de>
59627
59628         [BZ #1950]
59629         * lib/regex_internal.c (re_string_reconstruct): Adjust for
59630         build_wcs_upper_buffer change.
59631         (build_wcs_upper_buffer): Change return type.
59632
59633         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
59634
59635         * lib/regex_internal.h: Include <stdint.h> if available.
59636
59637         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
59638
59639         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
59640
59641         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
59642
59643         * lib/regcomp.c: Adjust for changed secondary hash function.
59644
59645         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
59646
59647         * lib/regex.h: Pretty printing.
59648         Clean up namespace a bit.
59649
59650         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
59651
59652         * lib/regexec.c (update_cur_sifted_state, check_arrival,
59653         check_arrival_add_next_nodes): Avoid using uninitialized variable.
59654
59655         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
59656                     Ulrich Drepper  <drepper@redhat.com>
59657
59658         [BZ #1302]
59659         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
59660         changed.
59661         (bitset_word_t): Renamed from bitset_word.  All uses changed.
59662
59663         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
59664
59665         [BZ #281]
59666         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
59667         * lib/regcomp.c: Remove unnecessary uses of
59668         unsigned RE_TRANSLATE_TYPE.
59669         * lib/regex_internal.h: Likewise.
59670         * lib/regex_internal.c: Likewise.
59671         * lib/regexec.c: Likewise.
59672         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
59673
59674         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
59675
59676         * lib/regexec.c (find_recover_state): Remove unnecessary
59677         initialization.
59678         (transit_state_bkref): Make DFA a const pointer.
59679         (get_subexp): Likewise.
59680         (check_arrival): Likewise.
59681         (update_cur_sifted_state): Likewise.
59682         (re_search_internal): Likewise.
59683         (prune_impossible_nodes): Likewise.
59684         (acquire_init_state_context): Likewise.
59685         (proceed_next_node): Likewise.
59686         (set_regs): Likewise.
59687         (free_fail_stack_return): Likewise.
59688         (check_arrival_expand_ecl): Mark DFA parameter as const.
59689         (check_arrival_expand_ecl_sub): Likewise.
59690         (check_subexp_limits): Likewise.
59691         (sub_epsilon_src_nodes):  Likewise.
59692         (add_epsilon_src_nodes):  Likewise.
59693         (merge_state_array): Likewise.
59694         (update_regs): Likewise.
59695         (build_trtable): Likewise.
59696         (sift_states_backward): Mark MCTX parameter as const.
59697         (build_sifted_states): Likewise.
59698         (update_cur_sifted_state): Likewise.
59699         (sift_states_mkref): Likewise.
59700         (check_arrival_expand_ecl): Mark eclosure as const.
59701         (check_dst_limits_calc_pos_1): Likewise.
59702         * lib/regex_internal.h (re_match_context_t): Make dfa a const
59703         pointer.
59704
59705         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
59706
59707         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
59708         (transit_state_sb): Likewise.
59709         (transit_state_mb): Likewise.
59710         (sift_states_iter_mb): Likewise.
59711         (check_arrival_add_next_nodes): Likewise.
59712         (check_node_accept_bytes): Change first parameter to pointer-to-const.
59713         [_LIBC] (re_search_2_stub): Use mempcpy.
59714
59715         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
59716         mbrtowc for very simple UTF-8 case.
59717
59718         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
59719         a pointer-to-const.
59720         (re_acquire_state_context): Likewise.
59721         * lib/regex_internal.h: Adjust prototypes.
59722
59723         * lib/regex.c: Prevent using C++ compilers.
59724
59725         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
59726         (re_acquire_state_context): Likewise.
59727
59728 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
59729
59730         * modules/regex (Depends-on): Add ssize_t.
59731
59732 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
59733
59734         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
59735         translation table.
59736
59737 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
59738
59739         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
59740
59741 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
59742             Bruno Haible  <bruno@clisp.org>
59743
59744         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
59745         <sys/types.h> and <inttypes.h>.
59746
59747 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59748
59749         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
59750         `__error_t_defined', so argp.h will not typedef the former.
59751
59752 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
59753
59754         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
59755         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
59756         glibc names.  Even if glibc is changed to conform to POSIX, the
59757         traditional names will be available anyway, since regex depends on
59758         the extensions module.  Also, fix a longstanding typo in the
59759         implementation of Spencer ERE test #75 from grep 2.3.  Problems
59760         reported by Emanuele Giaquinta.  Also, change sense of cached
59761         variable, so that the message makes sense.
59762
59763 2006-03-24  Simon Josefsson  <jas@extundo.com>
59764
59765         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
59766         including some doc fixes.
59767         (base64_encode_alloc): Fix +1 bug on allocation failures.
59768
59769 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59770
59771         * lib/base64.c (base64_encode): Do not read past end of array with
59772         unsanitized input on systems with CHAR_BIT > 8.
59773
59774 2006-03-24  Eric Blake  <ebb9@byu.net>
59775
59776         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
59777
59778 2006-03-22  Karl Berry  <karl@gnu.org>
59779
59780         * config/srclist.txt (*setenv.[ch]): get from coreutils.
59781         * config/srclistvars.sh (COREUTILS): new var.
59782
59783 2006-03-17  Jim Meyering  <jim@meyering.net>
59784
59785         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
59786         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
59787
59788 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
59789
59790         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
59791         no longer needs it.  Instead, check that regoff_t is as least
59792         as wide as ptrdiff_t.
59793
59794         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
59795         so that our regex.h stays compatible with the installed regex.
59796         This is helpful for installers who configure --without-included-regex.
59797         Problem reported by Emanuele Giaquinta.
59798
59799 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
59800
59801         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
59802         Typedef to long int, not to off_, as POSIX will likely change
59803         in that direction.
59804
59805 2006-03-15  Eric Blake  <ebb9@byu.net>
59806
59807         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
59808
59809 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
59810
59811         * lib/argp-help.c (validate_uparams): Fix typo
59812         * lib/argp-parse.c (argp_default_options): Consistently begin help
59813         messages with a lowercase letter.
59814
59815 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
59816
59817         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
59818         overrun buffers and shouldn't be used (much as gets shouldn't be
59819         used).
59820         * lib/time_r.c (asctime_r, ctime_r): Likewise.
59821
59822 2006-03-08  Simon Josefsson  <jas@extundo.com>
59823
59824         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
59825         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59826
59827 2006-03-08  Simon Josefsson  <jas@extundo.com>
59828
59829         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
59830         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59831
59832 2006-03-08  Simon Josefsson  <jas@extundo.com>
59833
59834         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
59835         signal that configure disabled the device.
59836
59837 2006-03-08  Simon Josefsson  <jas@extundo.com>
59838
59839         * build-aux/maint.mk: Fix refresh-po, to handle no translated
59840         languages.
59841
59842 2006-03-07  Simon Josefsson  <jas@extundo.com>
59843
59844         * modules/getopt (Depends-on): Add unistd.
59845
59846         * modules/unistd: New file.
59847
59848 2006-03-07  Simon Josefsson  <jas@extundo.com>
59849
59850         * modules/gc-random: New file.
59851
59852 2006-03-07  Simon Josefsson  <jas@extundo.com>
59853
59854         * m4/unistd_h.m4: New file.
59855
59856 2006-03-07  Simon Josefsson  <jas@extundo.com>
59857
59858         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
59859         test to be side-effect free by storing the result in the cache
59860         variable gl_cv_lib_readline, and moving the assignment of
59861         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
59862         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59863
59864 2006-03-07  Simon Josefsson  <jas@extundo.com>
59865
59866         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
59867         error on missing devices (the functions will return an error).
59868
59869         * m4/gc.m4: Move random stuff to gc-random.m4
59870
59871 2006-03-07  Simon Josefsson  <jas@extundo.com>
59872
59873         * lib/unistd_.h: New file.
59874
59875 2006-03-07  Simon Josefsson  <jas@extundo.com>
59876
59877         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
59878
59879 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
59880
59881         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
59882         Problem reported by Juan Manuel Guerrero.
59883
59884 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
59885
59886         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
59887         the unistd module.
59888         * lib/getlogin_r.c: Likewise.
59889         * lib/getlogin_r.h: Likewise.
59890         * lib/glob.c: Likewise.
59891         * lib/pagealign_alloc.c: Likewise.
59892         * lib/unistd_.h: Remove; no longer needed.
59893
59894 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
59895
59896         * MODULES.html.sh (Support for systems lacking POSIX:2001):
59897         Add unistd.
59898         * modules/c-stack (Depends-on): Add unistd.
59899         * modules/getlogin_r: Likewise.
59900         * modules/glob: Likewise.
59901         * modules/pagealign_alloc: Likewise.
59902         * modules/unistd (Files): Remove lib/unistd_.h.
59903         (EXTRA_DIST): Remove.
59904         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
59905         need unistd_.h.
59906         (MOSTLYCLEANFILES): Remove unistd.h-t.
59907
59908 2006-03-03  Simon Josefsson  <jas@extundo.com>
59909
59910         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
59911
59912 2006-03-03  Simon Josefsson  <jas@extundo.com>
59913
59914         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
59915         libidn and bison.
59916
59917 2006-03-03  Simon Josefsson  <jas@extundo.com>
59918
59919         * build-aux/maint.mk: Add indent target.
59920
59921 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
59922
59923         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
59924         our replacement poll.h in any case, to avoid a differing
59925         declaration from a system header.  Seen on AIX.
59926
59927 2006-03-01  Simon Josefsson  <jas@extundo.com>
59928
59929         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
59930         <kasal@ucw.cz>.
59931
59932 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
59933
59934         * modules/gettime (Depends-on): Add extensions module.
59935         * modules/nanosleep (Depends-on): Likewise.
59936         * modules/settime (Depends-on): Likewise.
59937
59938 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
59939
59940         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
59941         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
59942         pedantically.
59943         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
59944         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
59945
59946         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
59947         not "==".  Reported by Ralf Wildenhues.
59948
59949 2006-03-01  Karl Berry  <karl@gnu.org>
59950
59951         * doc/Copyright/request-*: new files, synced from gnuorg.
59952
59953 2006-03-01  Karl Berry  <karl@gnu.org>
59954
59955         * config/srclist.txt (Copyright/*): new entries.
59956
59957 2006-02-28  Simon Josefsson  <jas@extundo.com>
59958
59959         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
59960
59961 2006-02-27  Simon Josefsson  <jas@extundo.com>
59962
59963         * lib/base64.h: Indent #define's.  From Jim Meyering
59964         <jim@meyering.net>.
59965
59966 2006-02-27  Jim Meyering  <jim@meyering.net>
59967
59968         Revert the change of 2006-02-24, so these files can continue
59969         to be sync'd from gettext.
59970         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
59971         of `config.h'.
59972
59973 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
59974
59975         * modules/intprops: New file.
59976         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
59977         Add intprops.
59978         * modules/getloadavg (Files): Remove lib/intprops.h.
59979         (Depends-on): Add intprops.
59980         * modules/human: Likewise.
59981         * modules/inttostr: Likewise.
59982         * modules/openat: Likewise.
59983         * modules/sig2str: Likewise.
59984         * modules/userspec: Likewise.
59985         * modules/utimecmp: Likewise.
59986         * modules/xnanosleep: Likewise.
59987         * modules/xstrtol: Likewise.
59988
59989 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
59990
59991         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
59992         * modules/lock-tests (TESTS): Use $(EXEEXT).
59993         * modules/tls-tests: Likewise.
59994         * modules/argp-tests: Likewise.
59995         (check_PROGRAMS): New var, replacing...
59996         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
59997
59998 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59999
60000         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
60001         `config.h'.
60002
60003 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
60004
60005         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
60006
60007 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60008
60009         Sync from coreutils.
60010         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
60011         gl_CHDIR_SAFER.
60012
60013 2006-02-22  Jim Meyering  <jim@meyering.net>
60014
60015         Sync from coreutils.
60016         * m4/chdir-safer.m4: New file.
60017
60018 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
60019
60020         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
60021         AT_FDCWD exceeds INT_MAX.
60022         * lib/openat.h (AT_FDCWD): Likewise.
60023
60024 2006-02-17  Eric Blake  <address@hidden>
60025
60026         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
60027
60028 2006-02-16  Simon Josefsson  <jas@extundo.com>
60029
60030         * modules/getaddrinfo (Depends-on): Add sys_socket.
60031
60032 2006-02-15  Simon Josefsson  <jas@extundo.com>
60033
60034         * build-aux/maint.mk: Add dsyntax-check rule.
60035
60036 2006-02-15  Eric Blake  <ebb9@byu.net>
60037
60038         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
60039         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
60040         'present but cannot compile' warnings on cygwin.
60041         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
60042         use ws2tcpip.h if sys/socket.h works.
60043         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
60044         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
60045
60046 2006-02-14  Simon Josefsson  <jas@extundo.com>
60047
60048         * modules/maintainer-makefile (Files): Rename.
60049
60050         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
60051         and (the local) Makefile.cfg to maint-cfg.mk.
60052
60053         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
60054         to the latter.
60055
60056         * modules/maintainer-makefile: New module.
60057
60058         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
60059         severaly stripped to make it possible to build it up from scratch
60060         with reliable tests.
60061
60062         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
60063         fixes to permit overriding the default actions when configure and
60064         makefile are not available.
60065
60066 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
60067
60068         Sync from coreutils.
60069         * modules/lstat (Depends-on): Don't depend on xalloc.
60070         (License): Change from GPL to LGPL, since this is now simply a
60071         replacement for a libc function.
60072
60073 2006-02-14  Jim Meyering  <jim@meyering.net>
60074
60075         Sync from coreutils.
60076
60077         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
60078         failure on deficient systems, and simplify gnulib lgpl dependencies.
60079         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
60080         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
60081
60082         * lib/xalloc-die.c: Remove unused definition of N_.
60083
60084 2006-02-14  Jim Meyering  <jim@meyering.net>
60085
60086         Sync from coreutils.
60087         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
60088         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
60089         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
60090         double-quote uses of that variable, to accommodate the rare case in
60091         which getmntent is available in none of the libraries checked.  This
60092         happens at least on FreeBSD 5.0.
60093
60094 2006-02-13  Simon Josefsson  <jas@extundo.com>
60095
60096         * gnulib-tool (Usage): Fix --import, from
60097         karl@freefriends.org (Karl Berry).
60098
60099 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
60100
60101         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
60102
60103 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
60104
60105         * lib/argp-namefrob.h: Restore changes accidentally lost during the
60106         "autoupdate" on 2005-12-12.
60107
60108 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
60109
60110         * modules/closeout (Depends-on): Remove atexit.
60111
60112 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
60113
60114         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
60115         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
60116
60117 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
60118
60119         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
60120         __EXTENSIONS__ if this causes compilation to fail.  Problem
60121         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
60122         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
60123
60124 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
60125
60126         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
60127         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
60128         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
60129         All uses changed.
60130
60131 2006-01-26  Simon Josefsson  <jas@extundo.com>
60132
60133         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
60134         prototype is visible on mingw32.
60135
60136         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
60137         for mingw32.
60138
60139         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
60140         mingw32).
60141
60142 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
60143
60144         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
60145         attempt to open for write; this always fails, at least on POSIX
60146         hosts.  This reinstates the 2006-01-09 change, which was
60147         inadvertently removed.
60148
60149 2006-01-26  Bruno Haible  <bruno@clisp.org>
60150
60151         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
60152         Reported by Paul Eggert.
60153
60154 2006-01-26  Bruno Haible  <bruno@clisp.org>
60155             Paul Eggert  <eggert@cs.ucla.edu>
60156
60157         * lib/stdbool_.h (_Bool)
60158         [(! (defined __cplusplus || defined __BEOS__)
60159           && !defined __GNUC__
60160           && !(defined __HP_cc || defined __xlc__
60161                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
60162                || defined __sgi))]:
60163         #define to signed char in these cases too; this simplifies
60164         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
60165         etc., separately) and makes it more conservative.
60166
60167 2006-01-25  Simon Josefsson  <jas@extundo.com>
60168
60169         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
60170         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
60171         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
60172
60173 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
60174
60175         * lib/argp-namefrob.h: Bugfix. Remove stray #
60176
60177 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
60178
60179         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
60180         so that we test the test.
60181         Check for yet another HP-UX cc bug involving *bool |= bool.
60182
60183 2006-01-25  Karl Berry  <karl@gnu.org>
60184
60185         * config/srclist.txt (vasnprintf.c): sync lost.
60186
60187 2006-01-25  Jim Meyering  <jim@meyering.net>
60188
60189         Sync from the stable (b5) branch of coreutils:
60190
60191         * lib/fts.c (fts_children): Don't let close() clobber errno from
60192         failed fchdir().
60193
60194         * lib/fts.c (fts_stat): When following a symlink-to-directory,
60195         don't necessarily interpret stat-fails+lstat-succeeds as indicating
60196         a dangling symlink.  That can also happen at least for ELOOP.
60197         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
60198         FYI, this bug predates the inclusion of fts.c in coreutils.
60199
60200         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
60201         in their own block, so pre-c99 compilers don't object.
60202
60203         Avoid the double-free (first in fts_read, second in fts_close) that
60204         would occur when an `active' directory is made inaccessible (e.g.,
60205         via chmod a-x) during a traversal.
60206         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
60207         before returning.  Reproduce this failure by
60208         mkdir -p a/b; cd a; chmod a-x . b
60209         Reported by Stavros Passas.
60210
60211 2006-01-25  Jim Meyering  <jim@meyering.net>
60212
60213         * lib/fileblocks.c: Remove more useless parentheses.
60214         * lib/readutmp.h: Likewise.
60215
60216 2006-01-25  Bruno Haible  <bruno@clisp.org>
60217
60218         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
60219         warnings.
60220         Reported by Paul Eggert.
60221
60222 2006-01-25  Bruno Haible  <bruno@clisp.org>
60223
60224         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
60225         rid of a trap command. For Solaris sh.
60226         Reported by Mark D. Baushke <mdb@gnu.org>.
60227
60228 2006-01-24  Simon Josefsson  <jas@extundo.com>
60229
60230         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
60231         Bruno.
60232
60233 2006-01-24  Karl Berry  <karl@gnu.org>
60234
60235         * config/srclist.txt (argp-namefrob.h): sync lost.
60236
60237 2006-01-24  Jim Meyering  <jim@meyering.net>
60238
60239         * modules/openat (Files): Add lib/intprops.h.
60240         From Mark D. Baushke.
60241
60242 2006-01-24  Jim Meyering  <jim@meyering.net>
60243
60244         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
60245         Reported by Mark D. Baushke.
60246
60247 2006-01-24  Jim Meyering  <jim@meyering.net>
60248
60249         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
60250
60251 2006-01-24  Bruno Haible  <bruno@clisp.org>
60252
60253         * modules/strnlen (Maintainer): Change from glibc to all.
60254
60255 2006-01-24  Bruno Haible  <bruno@clisp.org>
60256
60257         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
60258         Patch by Paul Eggert.
60259
60260 2006-01-24  Bruno Haible  <bruno@clisp.org>
60261
60262         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
60263         already has it.
60264         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
60265         2005-11-26.
60266
60267         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
60268         'signed char' to avoid problems with the built-in _Bool type.
60269         Reported by Paul Eggert on 2005-11-26.
60270
60271 2006-01-24  Bruno Haible  <bruno@clisp.org>
60272
60273         * gnulib-tool (func_import): Avoid constructing complicated sed
60274         expressions inside backquote.
60275         Report and solution by Mark D. Baushke <mdb@gnu.org>.
60276
60277 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
60278
60279         These changes imported from libc.
60280         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
60281         test and two separate function calls.
60282         * lib/strndup.c (__strndup): Add libc_hidden_def.
60283
60284 2006-01-23  Simon Josefsson  <jas@extundo.com>
60285
60286         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
60287         Remove the test_*_SOURCES variable: automake infers it by default.
60288         * modules/tls-tests: Likewise.
60289
60290 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
60291
60292         Work around porting bugs reported by Dieter in
60293         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
60294         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
60295         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
60296         Include "getopt.h" first, to check interface.
60297         (getenv): Declare only if defined HAVE_DECL_GETENV &&
60298         !HAVE_DECL_GETENV.
60299         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
60300         (__strndup): Revert to K&R-style function dfns, the glibc style.
60301         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
60302         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
60303         Include strnlen.h first, to get prototype properly.
60304         (strnlen): Renamed from __strnlen.
60305         Remove weak alias.
60306
60307 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
60308
60309         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
60310
60311 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
60312
60313         * config/srclist.txt: Adjust to reflect glibc reorganization.
60314         This affects only comments.
60315
60316 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
60317
60318          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
60319          Reported by Bruce Korb <bkorb@gnu.org>.
60320
60321 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
60322
60323         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
60324         to pacify gcc -Wswitch-default.
60325
60326 2006-01-22  Bruno Haible  <bruno@clisp.org>
60327
60328         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
60329         temporary buffer for sprintf, take into account the precision also
60330         for 'd', 'i', 'u', 'o', 'x', 'X'.
60331
60332 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
60333
60334         * modules/argp-tests: New module
60335         * tests/test-argp.c: New file
60336         * tests/test-argp-2.sh: New file
60337
60338 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
60339
60340         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
60341         (__argp_base_name): Removed
60342         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
60343         typo.
60344         (__argp_base_name): Provide macro definition or extern declaration
60345         depending on the configuration
60346
60347 2006-01-20  Simon Josefsson  <jas@extundo.com>
60348
60349         * modules/inet_ntop (Depends-on): Depend on sys_socket.
60350
60351 2006-01-20  Simon Josefsson  <jas@extundo.com>
60352
60353         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
60354
60355 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
60356
60357         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
60358         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
60359         Suggested by Bruno Haible.
60360
60361 2006-01-20  Karl Berry  <karl@gnu.org>
60362
60363         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
60364         until changes propagate, I guess.
60365
60366 2006-01-19  Simon Josefsson  <jas@extundo.com>
60367
60368         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
60369
60370 2006-01-19  Simon Josefsson  <jas@extundo.com>
60371
60372         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
60373
60374 2006-01-19  Simon Josefsson  <jas@extundo.com>
60375
60376         * gnulib-tool: Set check_PROGRAMS.
60377
60378         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
60379         modules/des-tests, modules/gc-arcfour-tests,
60380         modules/gc-arctwo-tests, modules/gc-des-tests,
60381         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
60382         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
60383         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
60384         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
60385         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
60386         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
60387         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
60388         test_*_SOURCES.
60389
60390 2006-01-18  Simon Josefsson  <jas@extundo.com>
60391
60392         * modules/socklen (Depends-on): Depend on sys_socket.
60393
60394 2006-01-18  Simon Josefsson  <jas@extundo.com>
60395
60396         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
60397         modules/des-tests, modules/gc-arcfour-tests,
60398         modules/gc-arctwo-tests, modules/gc-des-tests,
60399         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
60400         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
60401         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
60402         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
60403         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
60404         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
60405         $(EXEEXT) to automake TESTS variable, for mingw32.
60406
60407 2006-01-17  Simon Josefsson  <jas@extundo.com>
60408
60409         * modules/socklen (Include): Need sys/socket.h.
60410
60411 2006-01-17  Bruno Haible  <bruno@clisp.org>
60412
60413         * modules/ssize_t (Include): Add <sys/types.h>.
60414
60415 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
60416
60417         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
60418         it's not portable and it doesn't work with cross-compiles.
60419         Problem reported by Bruno Haible.  Fix missing-$ typo in
60420         'test "gl_cv_ignore_unused_libraries" ...' that prevented
60421         -zignore from being used with Sun's C compiler.
60422
60423 2006-01-12  Simon Josefsson  <jas@extundo.com>
60424
60425         * lib/base64.c: Fix warning, reported by Bruno Haible
60426         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
60427
60428 2006-01-12  Bruno Haible  <bruno@clisp.org>
60429
60430         * modules/ldd: New file.
60431         * build-aux/ldd.sh.in: New file.
60432         * MODULES.html.sh (Support for building libraries and executables): Add
60433         ldd.
60434
60435 2006-01-12  Bruno Haible  <bruno@clisp.org>
60436
60437         * m4/ldd.m4: New file.
60438
60439 2006-01-12  Bruno Haible  <bruno@clisp.org>
60440
60441         * gnulib-tool (func_import, func_create_testdir): Don't go into an
60442         endless loop while replacing $auxdir with build-aux.
60443
60444 2006-01-11  Simon Josefsson  <jas@extundo.com>
60445
60446         * lib/stdint_.h (SIZE_MAX): Add missing (.
60447
60448 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
60449
60450         Sync from coreutils.
60451         * lib/md5.c: Fix commentary typos.
60452         (alignof, UNALIGNED_P): No need for a GCC-specific version.
60453         * lib/md5.h (__attribute__): Remove; unused.
60454         * lib/sha1.c: Fix commentary to match md5 better.
60455         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
60456         so that we don't need to worry about alignment.  All uses changed.
60457         This merges the 2005-10-28 md5 change into sha1.
60458
60459 2006-01-11  Jim Meyering  <jim@meyering.net>
60460
60461         Sync from coreutils.
60462         * lib/md5.c (OP): Fix spacing.
60463
60464 2006-01-11  Bruno Haible  <bruno@clisp.org>
60465
60466         Ensure automatic ordering between gl_LOCK and gl_ARGP.
60467         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
60468         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
60469
60470 2006-01-11  Bruno Haible  <bruno@clisp.org>
60471
60472         Ensure automatic ordering between gl_LOCK and gl_ARGP.
60473         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
60474         the "early" section as well.
60475
60476 2006-01-11  Bruno Haible  <bruno@clisp.org>
60477
60478         Avoid "ar: no archive members specified" error on MacOS X.
60479         * gnulib-tool (func_modules_add_dummy): New function.
60480         (func_import, func_create_testdir): Invoke it.
60481
60482 2006-01-11  Bruno Haible  <bruno@clisp.org>
60483
60484         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
60485         with $auxdir in AC_CONFIG_FILES statements.
60486
60487 2006-01-11  Bruno Haible  <bruno@clisp.org>
60488
60489         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
60490         Initialize also noinst_HEADERS to empty.
60491
60492 2006-01-11  Bruno Haible  <bruno@clisp.org>
60493
60494         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
60495         variables.
60496         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
60497         autoreconf.
60498
60499 2006-01-11  Bruno Haible  <bruno@clisp.org>
60500
60501         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
60502         overridable by the user.
60503         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60504
60505 2006-01-10  Simon Josefsson  <jas@extundo.com>
60506
60507         * modules/sys_socket: New file.
60508
60509 2006-01-10  Simon Josefsson  <jas@extundo.com>
60510
60511         * m4/sys_socket_h.m4: New file.
60512
60513 2006-01-10  Simon Josefsson  <jas@extundo.com>
60514
60515         * lib/socket_.h: New file.
60516
60517 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
60518
60519         * modules/readutmp (Maintainer): Add myself.
60520
60521 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
60522
60523         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
60524         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
60525         People who are still concerned with buggy memcmp implementations
60526         can invoke gl_FUNC_MEMCMP themselves.
60527
60528 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
60529
60530         * lib/regex_internal.h (BITSET_WORD_BITS):
60531         Work around a bug in 64-bit PGC (before version 6.1-2), where the
60532         preprocessor mishandles large unsigned values as if they were signed.
60533         Problem reported by Claudio Fontana in
60534         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
60535
60536 2006-01-10  Jim Meyering  <jim@meyering.net>
60537
60538         Avoid the double-free (first in fts_read, second in fts_close) that
60539         would occur when an `active' directory is made inaccessible (e.g.,
60540         via chmod a-x) during a traversal.
60541         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
60542         before returning.  Reproduce this failure by
60543         mkdir -p a/b; cd a; chmod a-x . b
60544         Reported by Stavros Passas.
60545
60546         Sync from coreutils.
60547         * lib/sha1.c: Tweak grammar in a comment.
60548
60549 2006-01-10  Jim Meyering  <jim@meyering.net>
60550
60551         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
60552         Patch by Joerg Sonnenberger.
60553
60554 2006-01-10  Bruno Haible  <bruno@clisp.org>
60555
60556         * modules/readutmp: Depend on module free.
60557         * modules/strtok_r: Depend on module restrict.
60558
60559 2006-01-10  Bruno Haible  <bruno@clisp.org>
60560
60561         * modules/gettext (configure.ac): Add an invocation of
60562         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
60563
60564 2006-01-10  Bruno Haible  <bruno@clisp.org>
60565
60566         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
60567         Reported by Werner Lemberg <wl@gnu.org>.
60568
60569 2006-01-10  Bruno Haible  <bruno@clisp.org>
60570
60571         * lib/localcharset.c: Update from GNU gettext.
60572
60573 2006-01-10  Bruno Haible  <bruno@clisp.org>
60574
60575         * lib/argp.h (__const): Remove macro. Use const instead.
60576         * lib/argp-fmtstream.h (__const): Likewise.
60577         * lib/glob_.h (__const): Remove macro.
60578         * lib/glob-libc.h: Use const instead of __const.
60579
60580 2006-01-10  Bruno Haible  <bruno@clisp.org>
60581
60582         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
60583         variable.
60584         Needed to avoid an automake error regarding the 'gettext' module.
60585
60586 2006-01-09  Simon Josefsson  <jas@extundo.com>
60587
60588         * modules/inet_ntop (Depends-on): Add restrict.
60589
60590 2006-01-09  Simon Josefsson  <jas@extundo.com>
60591
60592         * modules/gc-rijndael-tests (License): Put under LGPL.
60593
60594         * modules/gc-des-tests (License): Likewise.
60595
60596         * modules/gc-arcfour-tests (License): Likewise.
60597
60598         * modules/gc-arctwo-tests (License): Likewise.
60599
60600         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
60601
60602         * modules/gc-hmac-sha1-tests (Files): Likewise.
60603
60604         * modules/gc-hmac-md5-tests (License): Likewise.
60605
60606         * modules/gc-sha1-tests (License): Likewise.
60607
60608         * modules/gc-md5-tests (License): Likewise.
60609
60610         * modules/gc-md4-tests (License): Likewise.
60611
60612         * modules/gc-md2-tests (License): Likewise.
60613
60614         * modules/gc-tests (License): Likewise.
60615
60616         * modules/des-tests (License): Likewise.
60617
60618         * modules/md4-tests (License): Likewise.
60619
60620         * modules/md2-tests (License): Likewise.
60621
60622 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
60623
60624         Sync from coreutils:
60625
60626         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
60627         * modules/lib-ignore: New file.
60628         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
60629         chdir-safer.m4, lchmod.m4.
60630         * modules/openat: Add mkdirat.c, openat-priv.h.
60631
60632 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
60633
60634         Sync from coreutils.
60635         * m4/lib-ignore.m4: New file.
60636         * m4/lchmod.m4: New file.
60637
60638 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
60639
60640         Sync from coreutils.
60641         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
60642         for write access: POSIX says that must fail.
60643         * lib/fts.c (diropen): Likewise.
60644         * lib/save-cwd.c (save_cwd): Likewise.
60645         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
60646         well, for minor improvements on hosts that lack O_DIRECTORY.
60647         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
60648         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
60649         Fall back on chown if open failed with EACCES.
60650
60651         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
60652         Report an error at compile-time if only a 1-second nominal clock
60653         resolution is found.
60654
60655         * lib/lchmod.h: New file.
60656         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
60657         (make_dir_parents): Use lchown rather than chown, and
60658         lchmod rather than chmod.
60659
60660         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
60661         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
60662         "proc" reported by n0dalus.
60663
60664         * lib/mountlist.c: Include <limits.h>.
60665         (dev_from_mount_options)
60666         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
60667         New function.  It no longer assumes "dev=" has the System V meaning
60668         on Linux (since it doesn't).  It also parses "dev=" more carefully.
60669         (read_file_system_list)
60670         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
60671         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
60672         dev= in that case.
60673
60674         * lib/posixtm.h (PDS_PRE_2000): New macro.
60675         * lib/posixtm.c (year): Arg is now syntax_bits rather than
60676         allow_century.  All usages changed.  Reject dates outside the range
60677         1969-1999 if PDS_PRE_2000 is used.
60678
60679 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
60680
60681         Sync from coreutils.
60682         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
60683         (Time of day items): Mention the possibility of leap seconds.
60684         Problem reported by Dr. David Alan Gilbert.
60685
60686 2006-01-09  Jim Meyering  <jim@meyering.net>
60687
60688         Sync from coreutils.
60689
60690         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
60691
60692         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
60693
60694         * lib/modechange.c (mode_compile): Reject an invalid mode string
60695         that starts with an octal digit.  From Andreas Gruenbacher.
60696
60697         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
60698         and dup to open_safer and dup_safer, respectively.
60699         (openat_permissive): Fix typo in comment.
60700
60701         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
60702         "gettext.h"; either no longer needed or are guaranteed by openat.h.
60703         (_): Remove; no longer needed.
60704         (openat): Renamed from rpl_openat; no need for rpl_openat
60705         since openat.h renames openat for us.
60706         Replace most of the body with a call to openat_permissive,
60707         to avoid duplicate code.
60708         Port to (probably hypothetical) environments were mode_t is
60709         wider than int.
60710         (openat_permissive): Require mode arg, so that we can check
60711         types better.  Put it just after flags.  Change cwd failure
60712         indicator from pointer-to-bool to pointer-to-errno-value.
60713         All callers changed.
60714         Invoke openat_save_fail and/or openat_restore_fail if
60715         cwd_errno is null, so that openat can call us.
60716         (openat_permissive, fdopendir, fstatat, unlinkat):
60717         Simplify errno handling to avoid some duplicate code,
60718         as it's OK to set errno on success.
60719         * lib/openat.h: Revamp code so that function macros depend on
60720         __OPENAT_PREFIX only, not also on AT_FDCWD.
60721         (openat_ro): Remove.  Caller changed to use openat_permissive.
60722         (openat_permissive): Now a macro, if not a function.
60723         (openat_restore_fail, openat_save_fail): Now always functions,
60724         since mkdirat needs them even if __OPENAT_PREFIX is defined.
60725
60726         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
60727         and openat.c.
60728         * lib/mkdirat.c: Include openat-priv.h.
60729         Remove definitions of macros defined therein.
60730         * lib/openat.c: Likewise.
60731
60732         * lib/mkdirat.c (mkdirat): New file and function.
60733         * lib/openat.h (mkdirat): Declare.
60734
60735         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
60736
60737         * lib/openat.h (openat_permissive): Declare.
60738         (openat_ro): Define.
60739
60740         * lib/openat.c (EXPECTED_ERRNO): New macro.
60741         (openat_permissive): New function -- used in remove.c rewrite.
60742         (all functions): Set errno just before returning, only if there
60743         was an actual failure.
60744         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
60745
60746         Emulate openat-family functions using Linux's procfs, if possible.
60747         Idea and some code based on Ulrich Drepper's glibc changes.
60748
60749         * lib/openat.c: (BUILD_PROC_NAME): New macro.
60750         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
60751         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
60752         before falling back on save_cwd and restore_cwd.
60753         (fdopendir, fstatat, unlinkat): Likewise.
60754
60755         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
60756         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
60757
60758         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
60759         as second argument to va_arg.  Otherwise, some versions of gcc
60760         warn that `if this code is reached, the program will abort'.
60761
60762 2006-01-09  Jim Meyering  <jim@meyering.net>
60763
60764         Sync from coreutils.
60765         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
60766         Require openat-priv.h.
60767
60768 2006-01-09  Bruno Haible  <bruno@clisp.org>
60769
60770         * modules/strnlen (Include): Use strnlen.h.
60771
60772 2006-01-09  Bruno Haible  <bruno@clisp.org>
60773
60774         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
60775
60776 2006-01-09  Bruno Haible  <bruno@clisp.org>
60777
60778         * lib/sysexit_.h (EX_OK): New macro.
60779         Suggested by Martin Lambers <marlam@marlam.de>.
60780
60781 2006-01-09  Bruno Haible  <bruno@clisp.org>
60782
60783         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
60784         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
60785
60786 2006-01-09  Bruno Haible  <bruno@clisp.org>
60787
60788         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
60789         numbers.
60790
60791 2006-01-09  Bruno Haible  <bruno@clisp.org>
60792
60793         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
60794         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
60795         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
60796         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
60797
60798 2006-01-09  Bruno Haible  <bruno@clisp.org>
60799
60800         * build-aux/javacomp.sh.in: New file, moved from lib/.
60801         * modules/javacomp-script (Files): Update.
60802         (configure.ac): Add AC_CONFIG_FILES invocation.
60803         (EXTRA_DIST): Remove variable.
60804
60805         * build-aux/javaexec.sh.in: New file, moved from lib/.
60806         * modules/javaexec (Files): Update.
60807         (configure.ac): Add AC_CONFIG_FILES invocation.
60808         (EXTRA_DIST): Remove javaexec.sh.in.
60809
60810         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
60811         * modules/csharpcomp-script (Files): Update.
60812         (configure.ac): Add AC_CONFIG_FILES invocation.
60813         (EXTRA_DIST): Remove variable.
60814
60815         * build-aux/csharpexec.sh.in: New file, moved from lib/.
60816         * modules/csharpexec (Files): Update.
60817         (configure.ac): Add AC_CONFIG_FILES invocation.
60818         (EXTRA_DIST): Remove csharpexec.sh.in.
60819
60820 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
60821
60822         Sync from coreutils.
60823
60824         Add POSIX ACL support
60825         * lib/acl.h (copy_acl, set_acl): Add declarations.
60826         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
60827         systems other than Linux.
60828         (chmod_or_fchmod): New function: use fchmod when possible,
60829         and chmod otherwise.
60830         (file_has_acl): Add a POSIX ACL implementation, with a
60831         Linux-specific subcase.
60832         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
60833         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
60834         acls are unsupported.
60835         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
60836         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
60837         are unsupported.
60838
60839 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
60840
60841         Sync from coreutils.
60842         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
60843
60844 2006-01-07  Bruno Haible  <bruno@clisp.org>
60845
60846         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
60847         gl_EARLY.
60848
60849 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
60850
60851         * lib/strftime.c (tzname): Don't declare if it is already #defined.
60852         Problem reported for Mingw by Mark Junker.
60853
60854 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
60855
60856         * README: Gnulib normally doesn't generate a tarball.
60857
60858 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
60859
60860         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
60861         long int, not int, for nanosecond counts, so that people who are
60862         used to POSIX struct timespec won't be surprised.  Reported by Jim
60863         Meyering.
60864
60865 2005-12-28  Bruno Haible  <bruno@clisp.org>
60866
60867         * build-aux/config.rpath: Update from GNU gettext.
60868
60869 2005-12-16  Jim Meyering  <jim@meyering.net>
60870
60871         * modules/fprintftime: New module.
60872         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
60873
60874 2005-12-16  Jim Meyering  <jim@meyering.net>
60875
60876         * m4/fprintftime.m4: New file.
60877
60878 2005-12-16  Jim Meyering  <jim@meyering.net>
60879
60880         * lib/fprintftime.c, lib/fprintftime.h: New files.
60881
60882 2005-12-15  Simon Josefsson  <jas@extundo.com>
60883
60884         * modules/socklen (configure.ac): Fix M4 macro name, to align with
60885         new m4/socklen.m4.
60886
60887 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
60888
60889         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
60890         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
60891
60892 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
60893
60894         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
60895         * lib/argp-help.c (fill_in_uparams): Check if the constructed
60896         struct uparams is valid. Fall back to the default values if it is
60897         not.
60898
60899 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
60900
60901         * modules/argp (Files): Add argp-pin.c
60902         (Depends-on): dirname
60903         (lib_SOURCES): Add argp-pin.c
60904
60905 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
60906
60907         * m4/argp.m4:  Check if program_invocation_name and
60908         program_invocation_short_name are declared and define appropriate
60909         macros if they are not.
60910
60911 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
60912
60913         * lib/argp-help.c (__argp_base_name): New function
60914         (__argp_short_program_name): Rewrite using __argp_base_name
60915         * lib/argp-namefrob.h: Define program_invocation_name and
60916         program_invocation_short_name if requested
60917         (__argp_base_name): Add prototype
60918         * lib/argp-parse.c (argp_def): Use gettext wrappers
60919         (argp_default_parser): Use __argp_base_name
60920         * lib/argp-pin.c: New file. Defines program_invocation_name and
60921         program_invocation_short_name on systems that lack them.
60922
60923 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
60924
60925         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
60926         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
60927         porting problem reported by Georg Schwarz in
60928         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
60929
60930 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
60931
60932         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
60933         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
60934         porting problem reported by Georg Schwarz in
60935         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
60936
60937 2005-12-05  Bruno Haible  <bruno@clisp.org>
60938
60939         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
60940         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
60941         Reported by Mark Junker <mjscod@gmx.de>.
60942
60943 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
60944
60945         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
60946         Use implementation from Albert Chin, with some
60947         comments/corrections by Stepan Kasal and myself.
60948
60949 2005-12-02  Bruno Haible  <bruno@clisp.org>
60950
60951         * gnulib-tool (func_import): Accept GPLed build tool modules when
60952         --lgpl is given.
60953         * modules/csharpcomp-script: New file.
60954         * modules/csharpcomp: Depend on it.
60955         * modules/javacomp-script: New file.
60956         * modules/javacomp: Depend on it.
60957         Suggested by Simon Josefsson.
60958
60959 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
60960
60961         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
60962         statement, to work around an HP-UX 10.20 compiler bug reported by
60963         Peter O'Gorman.
60964
60965 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
60966
60967         * modules/savedir (Depends-on): Add openat.
60968
60969 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
60970
60971         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
60972         (uintmax_t) [defined uintmax_t]: Do not declare.
60973         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
60974         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
60975         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
60976         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
60977         sake of portability to weird hosts that C allows (though we don't
60978         know of any practical examples).
60979
60980         * lib/savedir.h (fdsavedir): New decl.
60981         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
60982         contains most of the former guts of savedir.
60983         (savedir): Use savedirstream.
60984         Include "openat.h".
60985
60986 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
60987
60988         * modules/obstack (Files): Add m4/ulonglong.m4.
60989         Problem reported by Davide Angelocola.
60990
60991 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
60992
60993         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
60994         coreutils no longer futzes with rounding modes.
60995
60996 2005-11-14  Jim Meyering  <jim@meyering.net>
60997
60998         * lib/mkstemp-safer.c: Include <config.h>, required for possible
60999         replacement of mkstemp.
61000
61001 2005-11-10  Simon Josefsson  <jas@extundo.com>
61002
61003         * lib/readline.c: Remove EOL.
61004
61005 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
61006
61007         * modules/gethrxtime (Depends-on): Add gettime.
61008
61009 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
61010
61011         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
61012         or gettimeofday; no longer needed.
61013
61014 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
61015
61016         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
61017         time business.
61018         (gethrxtime) [! (HAVE_NANOUPTIME
61019         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
61020         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
61021         our own approximation.
61022
61023 2005-11-08  Eric Blake  <ebb9@byu.net>
61024
61025         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
61026
61027 2005-11-08  Eric Blake  <ebb9@byu.net>
61028
61029         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
61030
61031 2005-11-04  Bruno Haible  <bruno@clisp.org>
61032
61033         * gnulib-tool: Implement --update mode.
61034
61035 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
61036
61037         Fix porting problem reported by Theodoros V. Kalamatianos.
61038         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
61039         Don't assume that futimes failing means we must fail.
61040
61041 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
61042
61043         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
61044         variables to suggest the intended function of the PATH_MAX check.
61045
61046 2005-10-30  Kean Johnston  <jkj@sco.com>
61047
61048         Trivial changes to support SCO systems.
61049         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
61050         as PATH_MAX.
61051         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
61052         where __ptr is null when no I/O is pending.
61053
61054 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
61055
61056         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
61057         leave errno alone.  Problem reported by Dmitry V. Levin.
61058
61059 2005-10-28  Simon Josefsson  <jas@extundo.com>
61060
61061         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
61062         Test more.
61063
61064         * tests/test-gc-md2.c, tests/test-md2.c: New files.
61065
61066         * modules/md2, modules/md2-tests: New files.
61067
61068 2005-10-28  Simon Josefsson  <jas@extundo.com>
61069
61070         * m4/inet_ntop.m4: More tests.
61071
61072         * m4/gc-md2.m4, md2.m4: New file.
61073
61074 2005-10-28  Simon Josefsson  <jas@extundo.com>
61075
61076         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
61077         "restrict" keywords, as per POSIX.  Protect the function
61078         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
61079         Don't use K&R prototypes.  Check the sprintf return values.
61080         Re-define EAFNOSUPPORT if not present.  Indent.
61081
61082         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
61083         suggested by Bruno Haible <bruno@clisp.org>.
61084
61085         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
61086
61087         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
61088
61089         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
61090         libgcrypt).
61091
61092         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
61093
61094         * lib/md2.h, lib/md2.c: New files.
61095
61096 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
61097
61098         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
61099         errno alone.  Problem reported by Frederic Jolliton.
61100
61101 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
61102
61103         * modules/verify (License): Change from GPL to LGPL.  This is a
61104         tiny module and there are apparently near-equivalents that are
61105         under the BSD license.
61106
61107 2005-10-24  Simon Josefsson  <jas@extundo.com>
61108
61109         * modules/sha1: Relicense to LGPL.
61110
61111 2005-10-24  Simon Josefsson  <jas@extundo.com>
61112
61113         * lib/md4.h: Shrink buffer size, now that we changed the type.
61114
61115 2005-10-23  Simon Josefsson  <jas@extundo.com>
61116
61117         * gnulib-tool (func_import): Fix --tests-base.
61118
61119 2005-10-22  Simon Josefsson  <jas@extundo.com>
61120
61121         * modules/arcfour (Depends-on): Need stdint.
61122
61123 2005-10-22  Simon Josefsson  <jas@extundo.com>
61124
61125         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
61126         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
61127
61128 2005-10-22  Simon Josefsson  <jas@extundo.com>
61129
61130         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
61131         suggested by Bruno Haible <bruno@clisp.org>.
61132
61133 2005-10-22  Simon Josefsson  <jas@extundo.com>
61134
61135         * lib/crc.h: Include stddef.h, for size_t.
61136
61137 2005-10-22  Simon Josefsson  <jas@extundo.com>
61138
61139         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
61140         arcfour_context struct (simplify test vector testing in GNU
61141         Shishi).
61142
61143 2005-10-21  Simon Josefsson  <jas@extundo.com>
61144
61145         * modules/des, modules/des-tests: New files.
61146
61147         * modules/gc-des, modules/gc-des-tests: New files.
61148
61149         * tests/test-des.c, tests/test-gc-des.c: New file.
61150
61151 2005-10-21  Simon Josefsson  <jas@extundo.com>
61152
61153         * modules/arctwo, modules/arctwo-tests: New files.
61154
61155         * tests/test-arctwo.c: New file.
61156
61157         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
61158
61159         * tests/test-gc-arctwo.c: New file.
61160
61161 2005-10-21  Simon Josefsson  <jas@extundo.com>
61162
61163         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
61164         Bruno Haible <bruno@clisp.org>.
61165
61166         * m4/gc-des.m4: New file.
61167
61168 2005-10-21  Simon Josefsson  <jas@extundo.com>
61169
61170         * m4/arctwo.m4: New file.
61171
61172         * m4/gc-arctwo.m4: New file.
61173
61174 2005-10-21  Simon Josefsson  <jas@extundo.com>
61175
61176         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
61177         block.
61178
61179 2005-10-21  Simon Josefsson  <jas@extundo.com>
61180
61181         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
61182         <bruno@clisp.org>.
61183
61184         * lib/hmac-sha1.c (hmac_sha1): Likewise.
61185
61186         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
61187         Bruno Haible <bruno@clisp.org>.
61188
61189         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
61190         <bruno@clisp.org>.
61191
61192 2005-10-21  Simon Josefsson  <jas@extundo.com>
61193
61194         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
61195
61196 2005-10-21  Simon Josefsson  <jas@extundo.com>
61197
61198         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
61199
61200 2005-10-21  Simon Josefsson  <jas@extundo.com>
61201
61202         * lib/des.h, lib/des.c: New files.
61203
61204         * lib/gc-gnulib.c: Support DES.c
61205
61206 2005-10-21  Simon Josefsson  <jas@extundo.com>
61207
61208         * lib/arctwo.h, lib/arctwo.c: New files.
61209
61210         * lib/gc-gnulib.c: Support ARCTWO.
61211
61212 2005-10-21  Simon Josefsson  <jas@extundo.com>
61213
61214         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
61215         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61216
61217 2005-10-21  Simon Josefsson  <jas@extundo.com>
61218
61219         * gnulib-tool (func_import, func_create_testdir): Define automake
61220         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
61221         Makefile.am snippet),
61222         suggested by Bruno Haible <bruno@clisp.org>.
61223
61224         * modules/gc (Makefile.am): Use it.
61225
61226 2005-10-21  Bruno Haible  <bruno@clisp.org>
61227
61228         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
61229         patch.
61230
61231 2005-10-19  Simon Josefsson  <jas@extundo.com>
61232
61233         * tests/test-gc-rijndael.c: New file.
61234
61235         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
61236
61237 2005-10-19  Simon Josefsson  <jas@extundo.com>
61238
61239         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
61240         interface too.
61241
61242 2005-10-19  Simon Josefsson  <jas@extundo.com>
61243
61244         * tests/test-gc-arcfour.c: New file.
61245
61246         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
61247
61248 2005-10-19  Simon Josefsson  <jas@extundo.com>
61249
61250         * modules/gc-md4, modules/gc-md4-tests: New file.
61251
61252         * tests/test-gc-md4.c: New file.
61253
61254 2005-10-19  Simon Josefsson  <jas@extundo.com>
61255
61256         * m4/gc-md4.m4: New file.
61257
61258 2005-10-19  Simon Josefsson  <jas@extundo.com>
61259
61260         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
61261         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
61262         <kasal@ucw.cz>.
61263
61264 2005-10-19  Simon Josefsson  <jas@extundo.com>
61265
61266         * m4/gc-arcfour.m4: New file.
61267
61268         * m4/gc-rijndael.m4: New file.
61269
61270 2005-10-19  Simon Josefsson  <jas@extundo.com>
61271
61272         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
61273
61274 2005-10-19  Simon Josefsson  <jas@extundo.com>
61275
61276         * lib/gc-gnulib.c: Support ARCFOUR.
61277
61278 2005-10-19  Simon Josefsson  <jas@extundo.com>
61279
61280         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
61281         support.
61282
61283         * lib/gc.h: Add ECB enum type.
61284
61285         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
61286
61287 2005-10-18  Simon Josefsson  <jas@extundo.com>
61288
61289         * tests/test-md5.c: New file.
61290
61291         * modules/md5-tests: New file.
61292
61293 2005-10-18  Simon Josefsson  <jas@extundo.com>
61294
61295         * tests/test-md4.c: New file.
61296
61297         * modules/md4, modules/md4-tests: New files.
61298
61299 2005-10-18  Simon Josefsson  <jas@extundo.com>
61300
61301         * m4/md4.m4: New file.
61302
61303 2005-10-18  Simon Josefsson  <jas@extundo.com>
61304
61305         * lib/md4.h, lib/md4.c: New files, based on md5.?.
61306
61307 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
61308
61309         * gnulib-tool (func_create_testdir): Omit the second check whether
61310         BUILT_SOURCES in nonempty.
61311
61312 2005-10-17  Simon Josefsson  <jas@extundo.com>
61313
61314         * tests/test-rijndael.c: New file.
61315
61316 2005-10-17  Simon Josefsson  <jas@extundo.com>
61317
61318         * modules/sha1: Depend on stdint instead of md5.
61319
61320         * modules/md5: Depend on stdint, remove uint32_t.
61321
61322 2005-10-17  Simon Josefsson  <jas@extundo.com>
61323
61324         * modules/gc-sha1-tests: New file.
61325
61326         * tests/test-gc-sha1.c: New file.
61327
61328 2005-10-17  Simon Josefsson  <jas@extundo.com>
61329
61330         * m4/md5.m4: Remove call to uint32_t.m4.
61331
61332 2005-10-17  Simon Josefsson  <jas@extundo.com>
61333
61334         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
61335
61336         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
61337         md5.h.
61338
61339         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
61340
61341         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
61342
61343 2005-10-17  Simon Josefsson  <jas@extundo.com>
61344
61345         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
61346
61347 2005-10-17  Simon Josefsson  <jas@extundo.com>
61348
61349         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
61350
61351 2005-10-17  Simon Josefsson  <jas@extundo.com>
61352
61353         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
61354
61355         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
61356
61357 2005-10-17  Bruno Haible  <bruno@clisp.org>
61358
61359         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
61360         that it can also be used in a test.
61361
61362 2005-10-16  Bruno Haible  <bruno@clisp.org>
61363
61364         * gnulib-tool (func_emit_tests_Makefile_am): Also define
61365         TESTS_ENVIRONMENT, so that individual tests can augment it.
61366
61367         * gnulib-tool (func_create_testdir): Use an intermediate target for
61368         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
61369         macros, like $(ALLOCA_H), which cannot be passed through the command
61370         line.
61371
61372 2005-10-15  Simon Josefsson  <jas@extundo.com>
61373
61374         * modules/rijndael-tests: New file.
61375
61376         * modules/rijndael: New file.
61377
61378 2005-10-15  Simon Josefsson  <jas@extundo.com>
61379
61380         * m4/rijndael.m4: New file.
61381
61382 2005-10-15  Simon Josefsson  <jas@extundo.com>
61383
61384         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
61385
61386         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
61387
61388 2005-10-14  Simon Josefsson  <jas@extundo.com>
61389
61390         * tests/test-arcfour.c: New file.
61391
61392         * modules/arcfour, modules/arcfour-tests: New files.
61393
61394 2005-10-14  Simon Josefsson  <jas@extundo.com>
61395
61396         * m4/arcfour.m4: New file.
61397
61398 2005-10-14  Simon Josefsson  <jas@extundo.com>
61399
61400         * lib/arcfour.h, lib/arcfour.c: New files.
61401
61402 2005-10-14  Roland McGrath  <roland@redhat.com>
61403
61404         Import from libc.  [BZ #1331]
61405         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
61406         macro argument.
61407         Reported by Matej Vela <vela@debian.org>.
61408
61409 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
61410
61411         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
61412         include <wchar.h>; no longer needed.
61413
61414 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
61415
61416         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
61417
61418 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
61419         and  Ulrich Drepper  <drepper@redhat.com>
61420
61421         Import from libc.
61422         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
61423         instead of inline stream orientation test and two separate
61424         function calls.  Pay no attention to USE_IN_LIBIO.
61425
61426 2005-10-13  Simon Josefsson  <jas@extundo.com>
61427
61428         * modules/gc-hmac-md5-tests: New file.
61429
61430         * tests/test-gc-hmac-sha1.c: New file.
61431
61432         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
61433
61434         * modules/gc-hmac-md5-tests: New file.
61435
61436         * tests/test-gc-md5.c: New file.
61437
61438         * modules/gc-md5-tests: New file.
61439
61440 2005-10-13  Simon Josefsson  <jas@extundo.com>
61441
61442         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
61443         Move memory allocation outside of loop.
61444
61445 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
61446
61447         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
61448         intermediate directory is in a read-only file system.  Problem
61449         reported by Eric Blake.
61450
61451 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
61452
61453         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
61454
61455 2005-10-12  Simon Josefsson  <jas@extundo.com>
61456
61457         * tests/test-hmac-sha1.c: New file.
61458
61459         * modules/hmac-sha1-tests: New file.
61460
61461         * modules/hmac-sha1: New file.
61462
61463 2005-10-12  Simon Josefsson  <jas@extundo.com>
61464
61465         * modules/gc-sha1: New file.
61466
61467 2005-10-12  Simon Josefsson  <jas@extundo.com>
61468
61469         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
61470
61471         * tests/test-gc-pbkdf2-sha1.c: New file.
61472
61473 2005-10-12  Simon Josefsson  <jas@extundo.com>
61474
61475         * modules/gc-md5, modules/gc-hmac-md5: New files.
61476
61477         * modules/gc (Files): Remove md5, memxor and hmac files.
61478
61479 2005-10-12  Simon Josefsson  <jas@extundo.com>
61480
61481         * m4/gc-pbkdf2-sha1.m4: New file.
61482
61483         * m4/gc-hmac-sha1.m4: New file.
61484
61485         * m4/gc-sha1: New file.
61486
61487         * m4/hmac-sha1.m4: New file.
61488
61489 2005-10-12  Simon Josefsson  <jas@extundo.com>
61490
61491         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
61492
61493         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
61494
61495 2005-10-12  Simon Josefsson  <jas@extundo.com>
61496
61497         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
61498         suggested by Bruno Haible <bruno@clisp.org>.
61499
61500 2005-10-12  Simon Josefsson  <jas@extundo.com>
61501
61502         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
61503
61504 2005-10-12  Simon Josefsson  <jas@extundo.com>
61505
61506         * lib/gc-pbkdf2-sha1.c: New file.
61507
61508         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
61509
61510 2005-10-12  Simon Josefsson  <jas@extundo.com>
61511
61512         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
61513
61514         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
61515
61516 2005-10-12  Simon Josefsson  <jas@extundo.com>
61517
61518         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
61519         GC_USE_HMAC_MD5, respectively.
61520
61521         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
61522         (gc_md5): Fix typo.
61523
61524         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
61525
61526         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
61527
61528         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
61529
61530 2005-10-12  Bruno Haible  <bruno@clisp.org>
61531
61532         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
61533         Reported by Stepan Kasal <kasal@ucw.cz>.
61534
61535 2005-10-11  Simon Josefsson  <jas@extundo.com>
61536
61537         * tests/test-crc.c: New file.
61538
61539         * modules/crc, modules/crc-tests: New files.
61540
61541 2005-10-11  Simon Josefsson  <jas@extundo.com>
61542
61543         * m4/crc.m4: New file.
61544
61545 2005-10-11  Simon Josefsson  <jas@extundo.com>
61546
61547         * lib/gc.h: Add gc_hash and gc_hash_buffer.
61548
61549         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
61550
61551         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
61552
61553 2005-10-11  Simon Josefsson  <jas@extundo.com>
61554
61555         * lib/crc.h, lib/crc.c: New files.
61556
61557         * lib/gc.h (gc_hash_buffer): Add doc.
61558
61559 2005-10-11  Bruno Haible  <bruno@clisp.org>
61560
61561         * modules/c-strcasestr: New file.
61562         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
61563
61564 2005-10-11  Bruno Haible  <bruno@clisp.org>
61565
61566         * modules/c-strcase: New file.
61567         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
61568
61569 2005-10-11  Bruno Haible  <bruno@clisp.org>
61570
61571         * lib/strcasecmp.c: Include limits.h.
61572         (strcasecmp): Avoid integer overflow on exotic platforms.
61573         * lib/strncasecmp.c: Include limits.h.
61574         (strncasecmp): Avoid integer overflow on exotic platforms.
61575         Reported by Paul Eggert.
61576
61577 2005-10-11  Bruno Haible  <bruno@clisp.org>
61578
61579         * lib/c-strcasestr.h: New file, from GNU gettext.
61580         * lib/c-strcasestr.c: New file, from GNU gettext.
61581
61582 2005-10-11  Bruno Haible  <bruno@clisp.org>
61583
61584         * lib/c-strcase.h: New file, from GNU gettext.
61585         * lib/c-strcasecmp.c: New file, from GNU gettext.
61586         * lib/c-strncasecmp.c: New file, from GNU gettext.
61587
61588 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
61589
61590         * modules/mempcpy (License): GPL -> LGPL.
61591         * modules/strchrnul (License): Likewise.
61592         * modules/sysexits (License): Likewise.
61593
61594 2005-10-08  Simon Josefsson  <jas@extundo.com>
61595
61596         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
61597
61598 2005-10-07  Simon Josefsson  <jas@extundo.com>
61599
61600         * m4/memxor.m4: Remove gl_C_RESTRICT call.
61601
61602 2005-10-06  Simon Josefsson  <jas@extundo.com>
61603
61604         * tests/test-hmac-md5.c: New file.
61605
61606         * modules/hmac-md5-tests: New file.
61607
61608         * modules/hmac-md5: New file.
61609
61610 2005-10-06  Simon Josefsson  <jas@extundo.com>
61611
61612         * m4/hmac-md5.m4: New file.
61613
61614         * m4/memxor.m4: Require gl_C_RESTRICT.
61615
61616 2005-10-06  Simon Josefsson  <jas@extundo.com>
61617
61618         * lib/memxor.c (memxor): Avoid casts and warnings.
61619
61620 2005-10-06  Simon Josefsson  <jas@extundo.com>
61621
61622         * lib/hmac-md5.c: New file.
61623
61624         * lib/hmac.h: New file.
61625
61626 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
61627
61628         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
61629         promotes to int, not unsigned int, to catch the AIX 5.3
61630         compiler bug.
61631
61632 2005-10-05  Simon Josefsson  <jas@extundo.com>
61633
61634         * modules/memxor: New file.
61635
61636         * modules/iconv (Files): Move config.rpath to havelib, it is used
61637         there.
61638
61639         * modules/havelib (Files): Add config.rpath.
61640
61641 2005-10-05  Simon Josefsson  <jas@extundo.com>
61642
61643         * m4/memxor.m4: New file.
61644
61645 2005-10-05  Simon Josefsson  <jas@extundo.com>
61646
61647         * lib/memxor.c (memxor): Fix compiler error.
61648
61649         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
61650         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
61651
61652         * lib/memxor.h, lib/memxor.c: New files.
61653
61654         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
61655         we assume all systems have it, suggested by Jim Meyering
61656         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
61657         any systems lack sys/socket.h; mingw32 is known to lack it, but we
61658         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
61659         same reasons.
61660
61661 2005-10-05  Simon Josefsson  <jas@extundo.com>
61662
61663         * config/srclist.txt: Add glibc bug 1423 for md5.h.
61664
61665 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
61666
61667         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
61668         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
61669         needed, since the source code now assumes these .h files.
61670
61671 2005-10-05  Derek Price  <derek@ximbiot.com>
61672
61673         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
61674
61675 2005-10-05  Bruno Haible  <bruno@clisp.org>
61676
61677         * modules/stdint (License): Change to LGPL.
61678
61679 2005-10-04  Simon Josefsson  <jas@extundo.com>
61680
61681         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
61682         D. Baushke" <mdb@gnu.org>.
61683
61684 2005-10-04  Bruno Haible  <bruno@clisp.org>
61685
61686         * lib/verify.h (verify_true): Provide alternative definition for C++.
61687
61688 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
61689
61690         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
61691         (SSIZE_MAX): New macro, if not already defined.
61692         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
61693         than 2 GiB.
61694
61695 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
61696
61697         Sync from coreutils.
61698         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
61699         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
61700         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
61701         ULLONG_MAX doesn't work with 2.7.2.1.
61702
61703 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
61704
61705         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
61706         From Ben Pfaff.
61707
61708         * modules/exclude (Depends-on): Depend on verify.
61709         * modules/strtoimax (Depends-on): Likewise.
61710         * modules/utimecmp (Depends-on): Likewise.
61711
61712 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
61713
61714         * lib/exclude.c: Include verify.h.
61715         (verify): Remove.  All callers changed to use verify.h's version.
61716         * lib/strtoimax.c: Likewise.
61717         * lib/utimecmp.c: Likewis.e
61718
61719         Sync from coreutils.
61720         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
61721         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
61722         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
61723         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
61724         bother returning ENOSYS if settimeofday or stime fails; just let
61725         them return whatever errno they want to return.
61726         * lib/utimens.c: Include unistd.h, for dup2.
61727         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
61728         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
61729
61730 2005-10-02  Jim Meyering  <jim@meyering.net>
61731
61732         Sync from coreutils.
61733         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
61734         from glibc-2.2.5 that fails for read-only files.
61735
61736 2005-10-02  Jim Meyering  <jim@meyering.net>
61737
61738         Sync from coreutils.
61739         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
61740         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
61741         `#if HAVE_CONFIG_H'.
61742         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
61743         Remove AT_FDCWD test.
61744         Do not consume the fd unless successful.
61745         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
61746         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
61747         block, so that we don't even try to compile it if settimeofday is
61748         available.  This works around a compilation failure on OSF1 V5.1,
61749         due to stime requiring a `long int*' while tv_sec is `int'.
61750
61751 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
61752
61753         Sync from coreutils.
61754         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
61755         against `yes', rather than just testing for nonempty.
61756
61757 2005-10-01  Simon Josefsson  <jas@extundo.com>
61758
61759         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
61760         and Darwin.
61761
61762         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
61763         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
61764         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
61765         freeaddrinfo and gai_strerror are declared by the POSIX headers.
61766         Check if struct addrinfo is declared.
61767
61768 2005-10-01  Simon Josefsson  <jas@extundo.com>
61769
61770         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
61771         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
61772         AI_* and EAI_* definitions.  Protect function declarations.
61773
61774 2005-10-01  Jim Meyering  <jim@meyering.net>
61775
61776         Sync from coreutils.
61777
61778         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
61779         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
61780         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
61781         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
61782         in the inet and nsl libraries.  Required on Solaris 5.7.
61783
61784 2005-10-01  Jim Meyering  <jim@meyering.net>
61785
61786         Sync from coreutils.
61787         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
61788         in the inet and nsl libraries.  Required on Solaris 5.7.
61789
61790 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
61791
61792         * lib/getdelim.c (getdelim): Remove unused variables.
61793
61794 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
61795
61796         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
61797         so that the code works even with ancient cpp.  Portability problem
61798         with GCC 2.7.2.1 reported by Thomas M.Ott.
61799
61800 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
61801
61802         * modules/regex (Depends-on): Add strcase.
61803
61804         * modules/gethostname (Licence): Change from GPL to LGPL, since
61805         gethostname.c is a trivial implementation of a standard library
61806         function.
61807         * modules/poll (License): Change from GPL to LGPL, since it's
61808         derived from LGPL code.
61809
61810 2005-09-27  Jim Meyering  <jim@meyering.net>
61811
61812         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
61813         HAVE_CONFIG_H.
61814
61815         * lib/intprops.h (signed_type_or_expr__): Define.
61816         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
61817         for unsigned types.
61818
61819 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
61820
61821         * lib/verify.h (verify_expr): Remove, replacing with:
61822         (verify_true): New macro that returns true instead of void.
61823         (verify_type__): Remove.
61824         (verify): Use verify_true rather than verify_type__.
61825
61826 2005-09-26  Bruno Haible  <bruno@clisp.org>
61827
61828         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
61829         is necessary.
61830         (lib_SOURCES): Remove mbchar.c.
61831         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
61832         (Files): Add m4/mbrtowc.m4.
61833         * modules/mbiter: Likewise.
61834         * modules/mbuiter: Likewise.
61835
61836 2005-09-26  Bruno Haible  <bruno@clisp.org>
61837
61838         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
61839         compile mbchar.c if they are not both present.
61840         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
61841         * m4/mbiter.m4 (gl_MBITER): Likewise.
61842         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
61843         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
61844         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
61845
61846 2005-09-25  Jim Meyering  <jim@meyering.net>
61847
61848         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
61849         also uses socklen_t.
61850
61851 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
61852
61853         * lib/utimens.c (ENOSYS): Define if not already defined.
61854         (futimens): Support having a null PATH if the file descriptor
61855         is nonnegative.
61856
61857         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
61858         Remove.
61859         (__attribute): Define to empty unless GCC 3.1 or later.
61860         This works around a core dump on OpenBSD 3.4, which has GCC
61861         2.95.3, which dumps core when given __attribute__(()).  It also
61862         simplifies other tests, since we really don't want to bother with
61863         worrying about which ancient version of GCC supported what.
61864         Original problem reported by Yoann Vandoorselaere, with part of
61865         the fix suggested by Derek Price.
61866
61867 2005-09-24  Jim Meyering  <jim@meyering.net>
61868
61869         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
61870         so we can once again use a positive bitfield width of 1 -- now we
61871         don't have to explain why we were using a bitfield width of 2.
61872
61873 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
61874
61875         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
61876         and similarly for the other external symbols.  Problem reported
61877         by James Gallager.
61878
61879         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
61880         bug reported by Jim Meyering.
61881
61882         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
61883         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
61884         not needed, since socklen is a prerequisite module.
61885
61886 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
61887
61888         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
61889         Problem reported by Eric Blake.
61890         (getaddrinfo): Initialize se so that it's not garbage.
61891         Redo internal storage allocation so that it doesn't make unportable
61892         assumptions about alignment.
61893         Fix a memory leak.
61894
61895         * lib/utimens.c (futimens): Use futimesat if available.
61896         Prefer it to futimes since it doesn't have the futimes bug.
61897
61898         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
61899         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
61900         Instead, declare a function that returns a pointer to an array,
61901         and use verify_type__ to declare the size of the array.
61902         Problem and germ of a solution reported by Bruno Haible.
61903         (verify_type__): Use 2, not 1, for bitfield size, to avoid
61904         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
61905
61906 2005-09-23  Jim Meyering  <jim@meyering.net>
61907
61908         Sync from coreutils.
61909         Correct build failure (socklen_t not defined) on at least
61910         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
61911         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
61912
61913 2005-09-23  Jim Meyering  <jim@meyering.net>
61914
61915         * modules/getaddrinfo (Depends-on): Add socklen.
61916
61917 2005-09-23  Bruno Haible  <bruno@clisp.org>
61918
61919         * tests/test-verify.c: New file.
61920
61921 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
61922
61923         Sync from coreutils.
61924
61925         * modules/argmatch (Depends-on): Add verify.
61926         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
61927         unistd-safer.
61928         * modules/save-cwd (Depends-on): Likewise.
61929
61930         * modules/openat (Files): Add lib/openat-die.c.
61931         (Depends-on): Remove error, exitfail.
61932         Add dirname.
61933
61934         * modules/verify: New file.
61935         * MODULES.html.sh (Diagnostics <assert.h>): New section,
61936         with "verify" module.
61937
61938 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
61939
61940         Sync from coreutils.
61941
61942         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
61943         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
61944         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
61945         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
61946         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
61947         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
61948         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
61949         Don't bother checking for string.h, stdlib.h, unistd.h.
61950         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
61951         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
61952         module's job.
61953         * m4/jm-macros.m4 (gl_MACROS): Likewise.
61954         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
61955
61956         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
61957         (gl_GETDATE): Use it.
61958
61959         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
61960
61961 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
61962
61963         Sync from coreutils.
61964
61965         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
61966         stat-time.h.
61967         * lib/argmatch.h: Include verify.h
61968         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
61969         (ARGMATCH_ASSERT): Remove; unused.
61970         * lib/canonicalize.c: Assume STDC_HEADERS.
61971         * lib/exclude.c: Include "strcase.h".
61972         * lib/regex_internal.h [!defined _LIBC]: Likewise.
61973         * lib/getusershell.c: Include stdio--.h rather than stdio.h
61974         and stdio-safer.h.
61975         (getusershell): Call fopen, not fopen_safer.
61976         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
61977         Do not include unistd-safer.h.
61978         (save_cwd): Don't call fd_safer; no longer needed
61979         now that we include fcntl--.h.
61980
61981         * lib/getdate.y (relative_time): New type.
61982         (RELATIVE_TIME_0): New constant.
61983         (parser_control): Use relative_time instead of doing it ourselves.
61984         (%union): Add new relative_time rel member.
61985         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
61986         Now typeless.
61987         (relunit, relunit_snumber): Now of type rel.
61988         (zone, rel, relunit, get_date): Adjust to above changes.
61989
61990         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
61991         Do not include unistd-safer.h.
61992         (getloadavg): Don't call fd_safer; no longer needed
61993         now that we include fcntl--.h.
61994
61995         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
61996         (make_dir_parents): Treat ENOSYS like EEXIST.
61997
61998         Improve quality of diagnostics on restore_cwd failure.
61999         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
62000         (make_dir_parents): Last arg is now int * (for errno), not bool *.
62001         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
62002         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
62003         each time through the loop.  Do not diagnose restore_cwd failure;
62004         that is the caller's job (and perhaps the caller does not care).
62005
62006         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
62007         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
62008         If the file already exists but is not a directory, don't bother
62009         to try to make its parents.
62010         Close potential file descriptor leak if we can't chdir("/") (!).
62011         Don't always return true if chdir($PWD) fails; return true only
62012         if the requested action was done successfully (except for the
62013         chdir($PWD)).
62014         Don't log final directory unless we actually made it.
62015         Refactor to avoid duplicate code to fix up permissions.
62016         Don't attempt to fix up parent permissions if chdir($PWD) fails.
62017
62018         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
62019         to make it a bit faster and (I hope) clearer.
62020         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
62021         Fix bug in formats like %2N.
62022
62023         * lib/verify.h: New file.
62024
62025 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
62026
62027         Sync from coreutils.
62028         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
62029
62030 2005-09-22  Jim Meyering  <jim@meyering.net>
62031
62032         Sync from coreutils.
62033
62034         * m4/lstat.m4 (gl_FUNC_LSTAT):
62035         Use AC_LIBSOURCES to require lstat.c and lstat.h.
62036         Remove obsolete comment.
62037         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
62038         * m4/xstrtod.m4: Likewise.
62039
62040         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
62041
62042 2005-09-22  Jim Meyering  <jim@meyering.net>
62043
62044         Sync from coreutils.
62045
62046         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
62047
62048         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
62049         the .tm_year member, since otherwise gcc-4.0 would now warn about
62050         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
62051
62052         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
62053         order to avoid an unsuppressible warning from gcc on 64-bit systems.
62054
62055         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
62056         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
62057         when run in a time zone for which daylight savings time is in effect
62058         for the starting date.
62059
62060         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
62061         stop us from restricting permissions of just-created absolute-named
62062         directories.
62063         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
62064         to restore initial working directory.
62065         * lib/mkdir-p.c (make_dir_parents): New parameter:
62066         different_working_dir, to tell caller if/when we change the working
62067         directory and are unable to return to the initial one.
62068         * lib/mkdir-p.h (make_dir_parents): Update prototype.
62069         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
62070         `return false'.  This fixes a bug introduced on 2004-07-30.
62071
62072         * lib/openat.c (fdopendir): Be sure to close the supplied
62073         file descriptor before returning.  This makes our replacement
62074         implementation a little closer to Solaris's, where fdopendir
62075         ties the file descriptor to the returned DIR* pointer.
62076         * lib/openat.c (unlinkat): New function.
62077         * lib/openat.h (unlinkat): Add prototype.
62078         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
62079         (openat_restore_fail): Rename from openat_restore_die.
62080         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
62081
62082         Provide an alternative to exiting immediately upon save_cwd or
62083         restore_cwd failure.  Now, an application can arrange e.g.,
62084         to perform a longjump in that case.
62085         * lib/openat.c: Include dirname.h.
62086         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
62087         (rpl_openat, fdopendir, fstatat): Call openat_save_die
62088         and openat_restore_die rather than calling error directly.
62089         Don't include "error.h" or "exitfail.h"; they're no longer needed.
62090
62091         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
62092         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
62093         define.
62094
62095         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
62096         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
62097                             int utc, int nanoseconds);
62098         Background:
62099         date should not have to allocate a megabyte of virtual memory to
62100         handle a format argument like +%1048575T.  When implemented with
62101         strftime, it must allocate such a buffer, use strftime to fill it
62102         in, print it, then free it.
62103         With fprintftime, it simply prints everything and exits.
62104         With no need for memory allocation, that's one fewer way to fail.
62105         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
62106         optional field width, not before, so we accept %9:z, not %:9z.
62107         (my_strftime): Be sure to use L_('x') for literals.
62108
62109         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
62110         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
62111         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
62112         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
62113         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
62114         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
62115         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
62116         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
62117         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
62118         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
62119         * lib/xgethostname.c, lib/xreadlink.c:
62120         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
62121
62122         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
62123         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
62124         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
62125         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
62126         and don't include <sys/file.h>).
62127
62128 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
62129
62130         Sync from coreutils.
62131
62132         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
62133         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
62134         [!LDAV_DONE]: Avoid unused variable warning.
62135
62136 2005-09-21  Bruno Haible  <bruno@clisp.org>
62137
62138         * lib/unicodeio.h (unicode_to_mb): New declaration.
62139
62140 2005-09-20  Derek Price  <derek@ximbiot.com>
62141
62142         * lib/getaddrinfo.c: Don't include <netdb.h> included from
62143         getaddrinfo.h.
62144
62145 2005-09-20  Bruno Haible  <bruno@clisp.org>
62146
62147         * gnulib-tool: Remove trailing slashes from the values specified for
62148         --source-base, --m4-base, --tests-base, --aux-dir.
62149         Suggested by Simon Josefsson <jas@extundo.com>.
62150
62151 2005-09-20  Bruno Haible  <bruno@clisp.org>
62152
62153         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
62154         func_modules_to_filelist, func_import, func_create_testdir): Make all
62155         sorting results locale-independent, so that gnulib-cache.m4 doesn't
62156         change when gnulib-tool is invoked in a different locale.
62157
62158 2005-09-19  Simon Josefsson  <jas@extundo.com>
62159
62160         * m4/socklen.m4: Fix typo.
62161
62162 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62163
62164         Use a consistent style for including <config.h>.
62165         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
62166         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
62167         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
62168         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
62169         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
62170         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
62171         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
62172         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
62173         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
62174         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
62175         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
62176         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
62177         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
62178         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
62179         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
62180         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
62181         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
62182         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
62183         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
62184         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
62185         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
62186         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
62187         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
62188         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
62189         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
62190         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
62191         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
62192         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
62193         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
62194         lib/xstrtoumax.c, lib/yesno.c:
62195         Standardize inclusion of config.h.
62196         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
62197         lib/inttostr.h:  Removed inclusion of config.h from header files.
62198         * lib/inttostr.c:  Adjusted in-tree users.
62199         * lib/timespec.h: Remove superfluous warning to include config.h.
62200         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
62201         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
62202         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
62203         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
62204         config.h with HAVE_CONFIG_H.
62205
62206 2005-09-19  Jim Meyering  <jim@meyering.net>
62207
62208         * modules/pathmax (License): Change to LGPL.
62209
62210 2005-09-19  Derek Price  <derek@ximbiot.com>
62211
62212         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
62213
62214 2005-09-19  Bruno Haible  <bruno@clisp.org>
62215
62216         * gnulib-tool (import): Provide default for --tests-base.
62217
62218 2005-09-19  Bruno Haible  <bruno@clisp.org>
62219
62220         * doc/quote.texi: New file, extracted from gnulib.texi.
62221         * doc/ctime.texi: New file, extracted from gnulib.texi.
62222         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
62223         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
62224         * doc/gnulib.texi: Include them.
62225
62226 2005-09-18  Bruno Haible  <bruno@clisp.org>
62227
62228         Portability fix.
62229         * gnulib-tool (func_readlink): New function.
62230         (func_ln_if_changed): Use it.
62231
62232 2005-09-18  Bruno Haible  <bruno@clisp.org>
62233
62234         * gnulib-tool: Support --with-tests also with --import.
62235         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
62236         (func_import): Use variables $testsbase and $inctests. Emit a
62237         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
62238         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
62239         SUBDIRS += $testsdir.
62240         (func_create_testdir): Update.
62241
62242 2005-09-18  Bruno Haible  <bruno@clisp.org>
62243
62244         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
62245         instead of $dry_run.
62246         (func_cp_if_changed, func_mv_if_changed): Remove functions.
62247         (func_ln_if_changed): Don't handle dry-run here.
62248         (func_import): In dry-run mode, detect more precisely which actions
62249         would be performed, and don't use "...ing" verbs.
62250
62251 2005-09-18  Bruno Haible  <bruno@clisp.org>
62252
62253         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
62254         (func_import): Use join on two temporary files instead of three nested
62255         loops, in order to determine which files are new or old.
62256
62257 2005-09-18  Bruno Haible  <bruno@clisp.org>
62258
62259         * gnulib-tool (func_import): Comment out code that spits out the
62260         new files with --dry-run.
62261
62262 2005-09-18  Bruno Haible  <bruno@clisp.org>
62263
62264         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
62265
62266 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
62267
62268         * lib/stat-time.h: New file.
62269         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
62270         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
62271         in a different way.
62272         (timespec_cmp): New function.
62273         * lib/utimecmp.c: Include stat-time.h.
62274         (SYSCALL_RESOLUTION): Depend on whether various struct stat
62275         members exist, not on the obsolescent ST_MTIM_NSEC.
62276         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
62277
62278 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
62279
62280         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
62281
62282 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
62283
62284         * MODULES.html.sh (File system functions): Add stat-time.
62285         * modules/stat-time: New file.
62286         * modules/timespec (Files): Remove m4/st_mtim.m4; this
62287         is now done in a different way, by the stat-time module.
62288         * modules/utimecmp (Depends-on): Add stat-time.
62289
62290 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
62291
62292         * m4/st_mtim.m4: Remove.  Superseded by...
62293         * m4/stat-time.m4: New file.
62294         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
62295         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
62296
62297 2005-09-15  Derek Price  <derek@ximbiot.com>
62298
62299         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
62300
62301 2005-09-15  Derek Price  <derek@ximbiot.com>
62302
62303         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
62304         * lib/regex_internal.c: Ditto, using this...
62305         (__GNUC_PREREQ): ...new macro.
62306         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
62307         using...
62308         (__GNUC_PREREQ): ...this new macro.
62309
62310         * lib/strstr.h: Include string.h. Define strstr as a macro here.
62311
62312 2005-09-15  Derek Price  <derek@ximbiot.com>
62313             Paul Eggert  <eggert@cs.ucla.edu>
62314
62315         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
62316         changes, consolidating in...
62317         * lib/regex_internal.h: ...this file.
62318
62319 2005-09-13  Jim Meyering  <jim@meyering.net>
62320
62321         * lib/canon-host.c: Filter through gnu indent and reword comments
62322         slightly.
62323         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
62324
62325 2005-09-13  Derek Price  <derek@ximbiot.com>
62326
62327         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
62328         failure.
62329         Reported by Jim Meyering  <jim@meyering.net>.
62330
62331 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
62332
62333         * lib/base64.c: Typo.
62334         (base64_encode): Put b64str in initialized data section.
62335
62336 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
62337
62338         Merge glibc and coreutils changes into gnulib, plus a few
62339         extra fixes.
62340         * lib/md5.c: Use #error rather than a string.
62341         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
62342         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
62343         (__attribute__): Define to empty for non recent-GCC.
62344         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
62345         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
62346         Renamed from their non-__ counterparts, with new macros replacing
62347         them if not _LIBC.  Add __THROW attribute.
62348         (rol): Remove.
62349         (struct md5_ctx): Align buffer if using GCC.
62350         * lib/sha1.h (struct sha1_ctx): Likewise.
62351         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
62352         The old name was backwards.
62353         (NOTSWAP): Remove; not used.
62354         (rol): New macro, moved here from md5.h.
62355         (sha1_process_block): Remove a FIXME that doesn't make sense.
62356
62357 2005-09-12  Derek Price  <derek@ximbiot.com>
62358
62359         Return usable errors from canon-host.
62360         * lib/canon-host.h: New file.
62361         * lib/canon-host.c (canon_host): Wrap...
62362         (canon_host_r): ...this new function, which now relies exclusively on
62363         getaddrinfo.
62364         (ch_strerror): New function.
62365         (last_cherror): New global.
62366         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
62367         interface.
62368         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
62369         void *.
62370         (freeaddrinfo): Free ai->ai_canonname when set.
62371
62372 2005-09-12  Derek Price  <derek@ximbiot.com>
62373
62374         Make canon-host require getaddrinfo.
62375         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
62376         AC_LIBSOURCE canon-host.h.  Call...
62377         (gl_PREREQ_CANON_HOST): ...this new function, which requires
62378         gl_GETADDRINFO.
62379         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
62380
62381 2005-09-12  Derek Price  <derek@ximbiot.com>
62382
62383         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
62384         LGPL.
62385         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
62386
62387 2005-09-12  Derek Price  <derek@ximbiot.com>
62388
62389         * lib/gai_strerror.c: Include config.h when available.  Include
62390         getaddrinfo.h before other headers to test interface.
62391         Reported by Larry Jones <lawrence.jones@ugs.com>.
62392
62393 2005-09-12  Derek Price  <derek@ximbiot.com>
62394             Paul Eggert  <eggert@cs.ucla.edu>
62395
62396         * modules/glob (Files): Add glob-libc.h.
62397
62398 2005-09-12  Derek Price  <derek@ximbiot.com>
62399             Paul Eggert  <eggert@cs.ucla.edu>
62400
62401         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
62402         glob_.h, glob-libc.h.
62403         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
62404
62405 2005-09-12  Derek Price  <derek@ximbiot.com>
62406             Paul Eggert  <eggert@cs.ucla.edu>
62407
62408         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
62409         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
62410         protecting things that should be done only in gnulib contexts.
62411         * lib/glob_.h: New file, containing only the glob things needed for
62412         gnulib.
62413         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
62414         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
62415         (glob, globfree, glob_pattern_p): Now defined simply in terms of
62416         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
62417         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
62418         and to respect the namespace rules better.
62419
62420 2005-09-08  Simon Josefsson  <jas@extundo.com>
62421
62422         * modules/socklen: New file.
62423
62424 2005-09-08  Simon Josefsson  <jas@extundo.com>
62425
62426         * m4/socklen.m4: New file.
62427
62428 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
62429
62430         * modules/utimens (Files): Add m4/utimbuf.m4, since
62431         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
62432         Reported by Sergey Poznyakoff.
62433
62434 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
62435
62436         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
62437         definitions, since that's the preferred style in glibc.
62438         Fix a minor spacing issue, and update copyright notice to match
62439         glibc's.
62440
62441 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
62442
62443         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
62444
62445 2005-09-06  Simon Josefsson  <jas@extundo.com>
62446
62447         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
62448         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
62449
62450 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
62451
62452         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
62453         warning.
62454
62455 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
62456
62457         * config/srclist.txt: Add glibc bug 1302.
62458
62459 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
62460
62461         Change bitset word type from unsigned int to unsigned long int,
62462         as this has better performance on typical 64-bit hosts.
62463         Port bitset code to hosts with unusual word sizes.
62464         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
62465         (build_collating_symbol):
62466         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
62467         argument is a bitset.  This is merely a style issue, but it makes
62468         it clearer that an entire array is expected.
62469         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
62470         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
62471         Port to the case where bitset_word is not the same as unsigned int.
62472         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
62473         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
62474         Likewise.
62475         * lib/regexec.c (check_dst_limits_calc_pos_1,
62476         check_subexp_matching_top):
62477         (build_trtable, group_nodes_into_DFAstates):
62478         Likewise.
62479         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
62480         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
62481         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
62482         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
62483         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
62484         * lib/regcomp.c (optimize_subexps, lower_subexp):
62485         Work even if bitset_word has holes in its bitwise representation.
62486         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
62487         * lib/regexec.c (check_dst_limits_calc_pos_1,
62488         check_subexp_matching_top):
62489         Likewise.
62490         * lib/regex_internal.c (re_string_reconstruct):
62491         Don't assume UCHAR_MAX == 255.
62492         * lib/regex_internal.h (bitset_set_all): Likewise.
62493         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
62494         All uses changed.
62495         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
62496         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
62497         All uses changed.
62498         (BITSET_WORD_MAX): New macro.
62499         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
62500         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
62501         (bitset_empty, bitset_copy):
62502         Prefer sizeof (bitset) to multiplying it out ourselves.
62503         (bitset_not_merge): Remove; unused.
62504         (bitset_contain): Return bool, not unsigned int with one bit on.
62505         All callers changed.
62506         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
62507         alignment than re_node_set; do this by defining a new internal
62508         type struct dests_alloc and using it to allocate memory.
62509
62510 2005-09-05  Bruno Haible  <bruno@clisp.org>
62511
62512         * gnulib-tool (func_import): Fix comparison in handling of symbolic
62513         links.
62514
62515 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
62516
62517         * modules/size_max (Makefile.am): Add size_max.h
62518
62519 2005-09-04  Derek Price  <derek@ximbiot.com>
62520
62521         * gnulib-tool (func_import): Fix reversed $symbolic logic.
62522
62523 2005-09-03  Simon Josefsson  <jas@extundo.com>
62524
62525         * gnulib-tool: Fix typo.
62526
62527 2005-09-03  Simon Josefsson  <jas@extundo.com>
62528
62529         * config/srclist.txt: Add glibc bug 1293.
62530
62531 2005-09-03  Derek Price  <derek@ximbiot.com>
62532
62533         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
62534         From Larry Jones <lawrence.jones@ugs.com>.
62535
62536 2005-09-02  Simon Josefsson  <jas@extundo.com>
62537
62538         * modules/socklen: New file.
62539
62540 2005-09-02  Simon Josefsson  <jas@extundo.com>
62541
62542         * modules/havelib: New module.
62543
62544         * modules/gettext, modules/iconv, modules/lock, modules/readline:
62545         Use havelib.
62546
62547 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
62548
62549         Check for arithmetic overflow when calculating sizes, to prevent
62550         some buffer-overflow issues.  These patches are conservative, in the
62551         sense that when I couldn't determine whether an overflow was possible,
62552         I inserted a run-time check.
62553         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
62554         macros.
62555         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
62556         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
62557         (re_xnrealloc, re_x2nrealloc): New inline functions.
62558         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
62559         parse_bracket_exp):
62560         (build_equiv_class, build_charclass): Check for arithmetic overflow
62561         in size expression calculations.
62562         * lib/regex_internal.c (re_string_realloc_buffers):
62563         (build_wcs_upper_buffer, re_node_set_add_intersect):
62564         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
62565         (re_dfa_add_node, register_state): Likewise.
62566         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
62567         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
62568         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
62569         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
62570
62571 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
62572
62573         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
62574         m4/ulonglong.m4.  Problem reported by Martin Lambers.
62575
62576 2005-09-02  Bruno Haible  <bruno@clisp.org>
62577
62578         Support for lib vs. lib64 distinction on biarch platforms.
62579         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
62580         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
62581         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
62582
62583 2005-09-02  Bruno Haible  <bruno@clisp.org>
62584
62585         * gnulib-tool (import): In the other first-use case, provide defaults
62586         as well.
62587
62588 2005-09-02  Bruno Haible  <bruno@clisp.org>
62589
62590         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
62591         patches not yet found in the latest gettext release.
62592
62593 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
62594
62595         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
62596         to avoid a collision with bits/local_lim.h in glibc.
62597         All uses changed.  Problem reported by Dmitry V. Levin in
62598         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
62599
62600         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
62601         bugs in int versus size_t comparisons.
62602         (re_string_context_at): Fix bug where the code assumed that
62603         Idx is signed.
62604
62605         Use bool where appropriate.
62606         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
62607         All callers changed.
62608         (calc_eclosure_iter): Likewise, for ROOT arg.
62609         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
62610         (build_charclass_op): Likewise, for NON_MATCH arg.
62611         * lib/regex_internal.c (re_string_allocate, re_string_construct):
62612         (re_string_construct_common): Likewise, for ICASE arg.
62613         * lib/regexec.c (re_search_2_stub, re_search_stub):
62614         Likewise, for RET_LEN arg.
62615         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
62616         (set_regs): Likewise, for FL_BACKTRACK arg.
62617         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
62618         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
62619         (calc_eclosure_iter, parse_bracket_exp):
62620         Use bool for internal variables that are booleans.
62621         * lib/regexec.c (re_search_internal, check_matching,
62622         proceed_next_node):
62623         (set_regs, build_sifted_states, sift_states_bkref):
62624         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
62625         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
62626         (find_collation_sequence_value):
62627         Likewise.
62628         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
62629         (re_node_set_compare):
62630         Return bool, not int. All callers changed.
62631         * lib/regexec.c (check_halt_node_context, check_dst_limits):
62632         (build_trtable, check_node_accept): Likewise.
62633         * lib/regex_internal.h: Include stdbool.h.
62634
62635         Fix bugs uncovered when converting to bool.
62636         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
62637         failure instead of charging ahead blindly.
62638         * lib/regex_internal.c (register_state): Likewise.
62639         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
62640         for freeing internal storage.
62641         (group_nodes_into_DFA_states): Use unsigned int, not int, for
62642         bitset pieces used as boolean, to avoid undefined behavior
62643         on hosts that do int overflow checking.
62644
62645 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
62646
62647         * config/srclist.txt: Add glibc bugs 1285-1287.
62648
62649 2005-09-01  Jim Meyering  <jim@meyering.net>
62650
62651         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
62652         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
62653         Require gl_STAT_MACROS, too.
62654
62655 2005-09-01  Bruno Haible  <bruno@clisp.org>
62656
62657         * gnulib-tool (import): In the first-use case, provide defaults.
62658
62659 2005-09-01  Bruno Haible  <bruno@clisp.org>
62660
62661         * gnulib-tool (func_import): Remove the .tmp files.
62662
62663 2005-09-01  Bruno Haible  <bruno@clisp.org>
62664
62665         * gnulib-tool (func_import): Fix handling of symbolic links.
62666
62667 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
62668
62669         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
62670         old glibc regex code mishandles strings longer than 2**31 bytes.
62671         This patch fixes this when the regex code is used in gnulib
62672         (i.e., outside glibc).
62673
62674         This patch should not affect the use of the regex code inside
62675         glibc.  No doubt this problem also needs to be handled for glibc
62676         as well, but the result will be an incompatible change to the
62677         glibc ABI, and the old ABI will have to be supported too.  That
62678         can be the the subject for another patch.
62679
62680         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
62681         governing whether the rest of this patch is active.  By default,
62682         the macro is disabled and the patch has no effect.
62683         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
62684         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
62685         (struct re_pattern_buffer, re_search, re_search_2, re_match):
62686         (re_match_2, re_set_registers): Use the new types.
62687         * lib/regex_internal.h (Idx, re_hashval_t): New types.
62688         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
62689         New macros.
62690         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
62691         (re_string_context_at, bin_tree_t, re_dfastate_t):
62692         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
62693         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
62694         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
62695         (re_string_char_size_at, re_string_wchar_at):
62696         (re_string_elem_size_at):
62697         Use the new types and macros to port to 64-bit hosts.
62698         Use unsigned types for internal values, so that the code
62699         mostly works even for arrays larger than SSIZE_MAX.
62700         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
62701         (search_duplicated_node, calc_eclosure_iter, fetch_number):
62702         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
62703         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
62704         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
62705         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
62706         (calc_inveclosure, parse_dup_op, build_range_exp):
62707         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
62708         (fetch_number, create_token_tree, mark_opt_subexp):
62709         Likewise.
62710         * lib/regex_internal.c (re_string_construct_common,
62711         create_ci_newstate):
62712         (create_cd_newstate, re_string_allocate, re_string_construct):
62713         (re_string_realloc_buffers, build_wcs_upper_buffer):
62714         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
62715         (re_string_reconstruct, re_string_peek_byte_case):
62716         (re_string_fetch_byte_case, re_string_context_at):
62717         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
62718         (re_node_set_init_copy, re_node_set_add_intersect):
62719         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
62720         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
62721         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
62722         (re_acquire_state, re_acquire_state_context, register_state):
62723         Likewise.
62724         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
62725         search_cur_bkref_entry):
62726         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
62727         (re_search_internal, re_search_2_stub, re_search_stub)
62728         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
62729         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
62730         (update_cur_sifted_state, check_dst_limits):
62731         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
62732         (check_subexp_limits, sift_states_bkref, merge_state_array):
62733         (check_subexp_matching_top, get_subexp, get_subexp_sub):
62734         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
62735         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
62736         (expand_bkref_cache, check_node_accept_bytes):
62737         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
62738         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
62739         (acquire_init_state_context, check_halt_node_context):
62740         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
62741         (sift_states_backward, clean_state_log_if_needed):
62742         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
62743         (find_recover_state, transit_state_sb, transit_state_mb):
62744         (transit_state_bkref, build_trtable, match_ctx_clean):
62745         Likewise.
62746         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
62747         to work around an assumption that REG_MISSING is negative.
62748
62749         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
62750         (seek_collating_symbol_entry) [defined _LIBC]:
62751         (lookup_collation_sequence_value) [defined _LIBC]:
62752         (build_range_exp, build_collating_symbol) [defined _LIBC]:
62753         Use prototypes rather than old-style function definitions.
62754         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
62755         (transit_state_sb) [0]:
62756         (find_collation_sequence_value) [defined _LIBC]: Likewise.
62757
62758         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
62759         rm_eo.
62760
62761         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
62762         (optimize_subexps, lower_subexp):
62763         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
62764         since the signed shift might overflow.  Use 1u<<31 instead.
62765         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
62766         Likewise.
62767         * lib/regexec.c (check_dst_limits_calc_pos_1,
62768         check_subexp_matching_top): Likewise.
62769
62770         * lib/regcomp.c (optimize_subexps, lower_subexp):
62771         Use CHAR_BIT rather than 8, for clarity.
62772         * lib/regexec.c (check_dst_limits_calc_pos_1):
62773         (check_subexp_matching_top): Likewise.
62774         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
62775         have to worry about portability issues when shifting it left.
62776         Remove no-longer-needed test for table_size > 0.
62777         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
62778         in a word, as the resulting behavior is undefined.
62779         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
62780         in one case, a <= should have been an <, and in another case the
62781         whole test was missing.
62782         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
62783         the standard name CHAR_BIT.
62784         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
62785         this is not true on one's complement and signed-magnitude hosts.
62786
62787         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
62788         next_last_offset.
62789         (struct re_dfa_t): Remove unused member states_alloc.
62790         * lib/regcomp.c (init_dfa): Don't initialize unused members.
62791
62792 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
62793
62794         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
62795         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
62796         and large-file glibc and in 32-bit large-file Solaris.
62797
62798 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
62799
62800         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
62801         lengths fit in regoff_t; this isn't true if regoff_t is the same
62802         width as size_t.
62803         * lib/regex.c (re_search_internal): 5th arg is LAST_START
62804         (= START + RANGE) instead of RANGE.  This avoids overflow
62805         problems when regoff_t is the same width as size_t.
62806         All callers changed.
62807         (re_search_2_stub): Check for overflow when adding the
62808         sizes of the two strings.
62809         (re_search_stub): Check for overflow when adding START
62810         to RANGE; if it occurs, substitute the extreme value.
62811
62812 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
62813
62814         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
62815
62816 2005-08-31  Jim Meyering  <jim@meyering.net>
62817
62818         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
62819         a pointer-to-const.
62820         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
62821         (register_state): Likewise.
62822         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
62823         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
62824         (group_nodes_into_DFAstates): Likewise.
62825
62826 2005-08-31  Jim Meyering  <jim@meyering.net>
62827
62828         * check-module: Add a FIXME comment.
62829
62830 2005-08-31  Eric Blake  <ebb9@byu.net>
62831
62832         * modules/unistd-safer (Files): Add unistd--.h.
62833         * modules/stdio-safer (Files): Add stdio--.h.
62834
62835 2005-08-31  Derek Price  <derek@ximbiot.com>
62836
62837         * lib/getdelim.c (getdelim): Return EOF on EOF.
62838         Reported by Larry Jones <lawrence.jones@ugs.com>.
62839
62840 2005-08-31  Bruno Haible  <bruno@clisp.org>
62841
62842         Avoid unnecessary diffs in the generated lib/Makefile.am.
62843         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
62844         the generated files.
62845         (func_import): Don't set cmd.
62846
62847 2005-08-31  Bruno Haible  <bruno@clisp.org>
62848
62849         * lib/strstr.c: Include <stddef.h>, for NULL.
62850         * lib/strcasestr.c: Likewise.
62851         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
62852
62853 2005-08-31  Bruno Haible  <bruno@clisp.org>
62854
62855         * gnulib-tool: New option --macro-prefix.
62856         (func_import): Use macro_prefix.
62857         (import): Handle option --macro-prefix.
62858
62859 2005-08-31  Bruno Haible  <bruno@clisp.org>
62860
62861         * gnulib-tool (import): Rename most ac_* variables to cached_*.
62862         Also use new variables cached_lgpl, cached_libtool.
62863
62864 2005-08-31  Bruno Haible  <bruno@clisp.org>
62865
62866         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
62867         always instantiating them.
62868
62869 2005-08-31  Bruno Haible  <bruno@clisp.org>
62870
62871         * gnulib-tool (func_import): Read the previous cached settings
62872         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
62873         earlier added by gnulib but are now dropped. Warn when a gnulib file
62874         overwrites a non-gnulib file.
62875
62876 2005-08-31  Bruno Haible  <bruno@clisp.org>
62877
62878         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
62879         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
62880         projects that don't keep autogenerated files in CVS. Put into
62881         actioncmd only the specified modules, not the transitive closure.
62882
62883 2005-08-31  Bruno Haible  <bruno@clisp.org>
62884
62885         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
62886         Create directories that shall be filled.
62887         (import): Don't look for gl_* macros in configure.ac. Recurse across
62888         all directories containing a gnulib-cache.m4 files, if meaningful.
62889
62890 2005-08-31  Bruno Haible  <bruno@clisp.org>
62891
62892         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
62893         (import): Set seen_libtool when we see gl_LIBTOOL.
62894
62895 2005-08-31  Bruno Haible  <bruno@clisp.org>
62896
62897         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
62898         declaration macro definitions from generated gnulib.m4.
62899
62900 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
62901
62902         * lib/iconvme.h: Add prototype for iconv_alloc.
62903
62904 2005-08-29  Simon Josefsson  <jas@extundo.com>
62905
62906         * lib/iconvme.c: Fix errno.
62907
62908 2005-08-29  Bruno Haible  <bruno@clisp.org>
62909
62910         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
62911         that it works when the directory contains spaces.
62912
62913 2005-08-29  Bruno Haible  <bruno@clisp.org>
62914
62915         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
62916
62917 2005-08-29  Bruno Haible  <bruno@clisp.org>
62918
62919         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
62920         Emit more advice.
62921
62922 2005-08-29  Bruno Haible  <bruno@clisp.org>
62923         and Stepan Kasal  <kasal@ucw.cz>
62924
62925         * check-module: If more parameters are given, check each of them
62926         separately; add more exceptions, as noted by Jim Meyering.
62927         (check_module): New procedure.
62928         (%exempt_header): Now contains all exceptions.
62929
62930 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
62931
62932         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
62933
62934 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
62935
62936         * lib/iconvme.c: Split iconv_string into iconv_alloc.
62937
62938 2005-08-28  Bruno Haible  <bruno@clisp.org>
62939
62940         * m4/gnulib-tool.m4: New file.
62941
62942 2005-08-27  Jim Meyering  <jim@meyering.net>
62943
62944         * modules/unistd-safer (Files): Add pipe-safer.c.
62945         * modules/fcntl-safer (Files): Add creat-safer.c.
62946
62947 2005-08-27  Jim Meyering  <jim@meyering.net>
62948
62949         * m4/stdlib-safer.m4: New file.  From coreutils.
62950         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
62951         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
62952         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
62953         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
62954         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
62955
62956 2005-08-27  Jim Meyering  <jim@meyering.net>
62957
62958         * lib/fopen-safer.c: Merge minor changes from coreutils.
62959         * lib/dup-safer.c: Likewise.
62960         * lib/fd-safer.c: Likewise.
62961
62962         Merge from coreutils.
62963         * lib/stdio--.h: New file.
62964         * lib/stdlib--.h: New file.
62965         * lib/mkstemp-safer.c: New file.
62966
62967         GNU tar needs these.
62968         * lib/pipe-safer.c: New file.
62969         * lib/creat-safer.c: New file.
62970         * lib/fcntl--.h (creat): Define to creat_safer.
62971         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
62972         * lib/unistd--.h (pipe): Define to pipe_safer.
62973         * lib/unistd-safer.h: Declare pipe_safer.
62974
62975 2005-08-26  Simon Josefsson  <jas@extundo.com>
62976
62977         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
62978         Haible <bruno@clisp.org>.
62979
62980 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
62981
62982         * lib/regex_internal.h: Remove all references to
62983         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
62984         or better.
62985         (bitset_not, bitset_merge, bitset_not_merge):
62986         (bitset_mask, re_string_allocate, re_string_construct):
62987         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
62988         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
62989         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
62990         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
62991         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
62992         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
62993         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
62994         (re_acquire_state_context):
62995         Remove unnecessary forward decls.
62996         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
62997         Put __attribute at function definition,
62998         now that the function decl has been removed.
62999         * lib/regex_internal.c (re_string_peek_byte_case):
63000         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
63001         Likewise.
63002
63003 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
63004
63005         * m4/regex.m4: Add AC_PREREQ(2.50).
63006         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
63007
63008 2005-08-25  Simon Josefsson  <jas@extundo.com>
63009
63010         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
63011         __fsetlocking.
63012
63013 2005-08-25  Simon Josefsson  <jas@extundo.com>
63014
63015         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
63016         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
63017         GLIBC specific code.
63018
63019 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
63020
63021         Make regex safe for g++.  This fixes one real bug (an "err"
63022         that should have been "*err").  g++ problem reported by
63023         Sam Steingold.
63024         * lib/regex_internal.h (re_calloc): New macro, consistent with
63025         re_malloc etc.  All callers of calloc changed to use re_calloc.
63026         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
63027         not int.  All callers changed.
63028         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
63029         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
63030         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
63031         (find_recover_state): Change "err" to "*err"; this fixes what
63032         appears to be a real bug.
63033         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
63034         versus int.
63035
63036 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
63037
63038         * modules/regex (Depends-on): Add malloc, since the code
63039         assumes that !malloc(0) means failure.
63040
63041 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
63042
63043         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
63044
63045         alloca modernization/simplification for regex.
63046         * lib/regex.c: Remove portability cruft for alloca.  This no longer
63047         needs to be at the start of the file, and can be moved into
63048         regex_internal.h and simplified.
63049         * lib/regex_internal.h: Include <alloca.h>.
63050         (__libc_use_alloca) [!defined _LIBC]: New macro.
63051         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
63052         now works outside glibc.
63053
63054 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
63055
63056         * config/srclist.txt: Add glibc bugs 1241, 1245.
63057
63058 2005-08-25  Jim Meyering  <jim@meyering.net>
63059
63060         * lib/open-safer.c: Include <config.h>.
63061         Otherwise, we'd lose LARGEFILE support in any file using
63062         e.g. "fcntl--.h"
63063
63064 2005-08-25  Bruno Haible  <bruno@clisp.org>
63065
63066         * m4/minmax.m4: Require autoconf 2.52.
63067         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
63068         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
63069         alternatives of translit over the alphabet.
63070         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
63071
63072 2005-08-24  Simon Josefsson  <jas@extundo.com>
63073
63074         * tests/test-getpass.c: New file.
63075
63076 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
63077
63078         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
63079         for GNU regex features.
63080
63081 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
63082
63083         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
63084         * lib/regex.h (regerror): Likewise.
63085
63086         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
63087         requires this.  (The code never needed it.)
63088
63089         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
63090         All uses of recently-renamed identifiers changed to use the new,
63091         POSIX-compliant names.  The code will build and run just fine
63092         without these changes, but it's better to eat our own dog food
63093         and use the standard-conforming names.
63094
63095         * lib/regex.h: Fix a multitude of POSIX name space violations.
63096         These changes have an effect only for programs that define
63097         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
63098         do not change anything for programs compiled in the normal way.
63099         Also, there is no effect on the ABI.
63100
63101         (_REGEX_SOURCE): New macro.
63102         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
63103         defined and _GNU_SOURCE is not; this fixes a name space violation.
63104
63105         Rename the following macros to obey POSIX requirements.
63106         The old names are still visible as macros if _REGEX_SOURCE is defined.
63107         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
63108         RE_BACKSLASH_ESCAPE_IN_LISTS.
63109         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
63110         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
63111         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
63112         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
63113         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
63114         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
63115         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
63116         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
63117         (REG_INTERVALS): renamed from RE_INTERVALS.
63118         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
63119         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
63120         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
63121         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
63122         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
63123         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
63124         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
63125         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
63126         RE_UNMATCHED_RIGHT_PAREN_ORD.
63127         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
63128         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
63129         (REG_DEBUG): renamed from RE_DEBUG.
63130         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
63131         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
63132         unusual, since we can't clash with the POSIX REG_ICASE.
63133         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
63134         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
63135         (REG_NO_SUB): renamed from RE_NO_SUB.
63136         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
63137         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
63138         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
63139         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
63140         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
63141         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
63142         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
63143         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
63144         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
63145         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
63146         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
63147         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
63148         RE_SYNTAX_POSIX_MINIMAL_BASIC.
63149         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
63150         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
63151         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
63152         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
63153         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
63154         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
63155         (REG_FIXED): Renamed from REGS_FIXED.
63156         (REG_NREGS): Renamed from RE_NREGS.
63157
63158         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
63159         of other REG_* macros, since POSIX says the user is allowed to
63160         #undef these macros selectively.
63161
63162         (reg_errcode_t): Update comment stating what other tables need
63163         to be consistent.
63164
63165         Rename the following enum values to obey POSIX requirements.
63166         The old names are still visible as macros.
63167         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
63168         is not defined, since GNU is supposed to be a superset of POSIX as
63169         much as possible, and since we want reg_errcode_t to be a signed
63170         type for implementation consistency.
63171         (_REG_NOERROR): Renamed from REG_NOERROR.
63172         (_REG_NOMATCH): Renamed from REG_NOMATCH.
63173         (_REG_BADPAT): Renamed from REG_BADPAT.
63174         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
63175         (_REG_ECTYPE): Renamed from REG_ECTYPE.
63176         (_REG_EESCAPE): Renamed from REG_EESCAPE.
63177         (_REG_ESUBREG): Renamed from REG_ESUBREG.
63178         (_REG_EBRACK): Renamed from REG_EBRACK.
63179         (_REG_EPAREN): Renamed from REG_EPAREN.
63180         (_REG_EBRACE): Renamed from REG_EBRACE.
63181         (_REG_BADBR): Renamed from REG_BADBR.
63182         (_REG_ERANGE): Renamed from REG_ERANGE.
63183         (_REG_ESPACE): Renamed from REG_ESPACE.
63184         (_REG_BADRPT): Renamed from REG_BADRPT.
63185         (_REG_EEND): Renamed from REG_EEND.
63186         (_REG_ESIZE): Renamed from REG_ESIZE.
63187         (_REG_ERPAREN): Renamed from REG_ERPAREN.
63188         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
63189         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
63190         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
63191         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
63192
63193         (_REG_RE_NAME, _REG_RM_NAME): New macros.
63194         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
63195         changed.  But support the old name if the new one is not defined
63196         and if _REGEX_SOURCE.
63197
63198         Change the following member names in struct re_pattern_buffer.
63199         The old names are still supported if !_REGEX_SOURCE.
63200         The new names are always supported, regardless of _REGEX_SOURCE.
63201         (re_buffer): Renamed from buffer.
63202         (re_allocated): Renamed from allocated.
63203         (re_used): Renamed from used.
63204         (re_syntax): Renamed from syntax.
63205         (re_fastmap): Renamed from fastmap.
63206         (re_translate): Renamed from translate.
63207         (re_can_be_null): Renamed from can_be_null.
63208         (re_regs_allocated): Renamed from regs_allocated.
63209         (re_fastmap_accurate): Renamed from fastmap_accurate.
63210         (re_no_sub): Renamed from no_sub.
63211         (re_not_bol): Renamed from not_bol.
63212         (re_not_eol): Renamed from not_eol.
63213         (re_newline_anchor): Renamed from newline_anchor.
63214
63215         Change the following member names in struct re_registers.
63216         The old names are still supported if !_REGEX_SOURCE.
63217         The new names are always supported, regardless of _REGEX_SOURCE.
63218         (rm_num_regs): Renamed from num_regs.
63219         (rm_start): Renamed from start.
63220         (rm_end): Renamed from end.
63221
63222         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
63223         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
63224         Prepend __ to parameter names.
63225
63226         Undo yesterday's changes.
63227
63228 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
63229
63230         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
63231         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
63232         lib/regex.c.
63233
63234 2005-08-24  Jim Meyering  <jim@meyering.net>
63235
63236         Sync from coreutils.
63237         * m4/fcntl-safer.m4: New file.
63238
63239         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
63240         and object files for this module.
63241
63242 2005-08-24  Jim Meyering  <jim@meyering.net>
63243
63244         Sync from coreutils.
63245         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
63246
63247 2005-08-24  Jim Meyering  <jim@meyering.net>
63248
63249         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
63250         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
63251
63252 2005-08-24  Jim Meyering  <jim@meyering.net>
63253
63254         * modules/fcntl-safer: New module.
63255         * modules/fts (Depends-on): Add fcntl-safer.
63256         * MODULES.html.sh (File descriptor based Input/Output):
63257         Add fcntl-safer.
63258
63259 2005-08-24  Bruno Haible  <bruno@clisp.org>
63260
63261         Support for unit test modules.
63262         * modules/README: Mention tests modules.
63263         * modules/TEMPLATE-TESTS: New file.
63264         * gnulib-tool: New options --extract-tests-module, --with-tests and
63265         --tests-base (unused for the moment).
63266         (testsbase, inctests): New variables.
63267         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
63268         (func_verify_module): Exclude TEMPLATE-TESTS.
63269         (func_verify_nontests_module, func_verify_tests_module): New functions.
63270         (func_get_dependencies): Add implicit dependency for tests modules.
63271         (func_get_tests_module): New function.
63272         (func_modules_transitive_closure): When --with-tests was specified,
63273         include the unit tests as well, unless explicitly avoided.
63274         (func_emit_lib_Makefile_am): Ignore the tests modules here.
63275         (func_emit_tests_Makefile_am): New function.
63276         (func_create_testdir): When --with-tests was specified, emit a
63277         tests/ directory.
63278         * MODULES.html.sh (Future developments): Update.
63279
63280 2005-08-24  Bruno Haible  <bruno@clisp.org>
63281
63282         * modules/tls-tests: New file.
63283         * tests/test-tls.c: New file, from GNU gettext.
63284
63285 2005-08-24  Bruno Haible  <bruno@clisp.org>
63286
63287         * modules/lock-tests: New file.
63288         * tests/test-lock.c: New file, from GNU gettext.
63289
63290 2005-08-24  Bruno Haible  <bruno@clisp.org>
63291
63292         * lib/lock.h: Add multiple inclusion guard.
63293         * lib/tls.h: Add multiple inclusion guard.
63294
63295 2005-08-24  Bruno Haible  <bruno@clisp.org>
63296
63297         * gnulib-tool: Add support for the --aux-dir option to
63298         --create-testdir, --create-megatestdir, --test, --megatest.
63299         (func_create_testdir, func_create_megatestdir): Optionally emit a
63300         AC_CONFIG_AUX_DIR directive.
63301         (create-testdir, create-megatestdir, test, megatest): Provide a
63302         default value for $auxdir.
63303
63304 2005-08-24  Bruno Haible  <bruno@clisp.org>
63305
63306         * gnulib-tool (import): Use compound statement instead of subshell
63307         where possible.
63308
63309 2005-08-24  Bruno Haible  <bruno@clisp.org>
63310
63311         * gnulib-tool (import): Change --aux-dir default to "build-aux".
63312
63313 2005-08-24  Bruno Haible  <bruno@clisp.org>
63314
63315         * gnulib-tool (func_version): Update.
63316
63317 2005-08-24  Bruno Haible  <bruno@clisp.org>
63318
63319         * gnulib-tool (func_import, func_create_testdir,
63320         func_create_megatestdir): Quote all autoconf macro arguments.
63321
63322 2005-08-24  Bruno Haible  <bruno@clisp.org>
63323
63324         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
63325         option --force, because --force causes the aclocal.m4 of each
63326         subdirectory to be newer than the corresponding config.h.in.
63327
63328 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
63329
63330         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
63331         All contents moved to gl_REGEX.
63332         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
63333         assume that it does.
63334
63335 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
63336
63337         * lib/regex.h (REG_NOSYS)
63338         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
63339         Define, since POSIX requires it as of 2001.
63340         (_REG_ENOSYS)
63341         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
63342         New private symbol, used to keep the enum signed in all cases.
63343         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
63344         Youngman in
63345         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
63346
63347         * lib/regex_internal.c (re_string_skip_chars, register_state):
63348         (calc_state_hash):
63349         Remove forward decls; no longer needed now that we use prototypes.
63350         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
63351         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
63352         (clean_state_log_if_needed): Likewise.
63353
63354 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
63355
63356         * config/srclist.txt: Add glibc bugs 1231-1233.
63357
63358 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
63359
63360         Fix problems reported by Sam Steingold in
63361         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
63362         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
63363         assumed that reg_errcode_t is a signed type, which is not
63364         necessarily true if _XOPEN_SOURCE is not defined.
63365         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
63366         since some compilers warn about it otherwise.
63367
63368 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
63369
63370         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
63371         (init_word_char, create_initial_state, duplicate_node_closure):
63372         (fetch_token, peek_token_bracket, build_range_exp):
63373         (build_collating_symbol): Remove forward decls; no longer needed
63374         now that we use prototypes.
63375
63376         * lib/regcomp.c:
63377         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
63378         (re_compile_fastmap_iter, regcomp, regerror, regfree):
63379         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
63380         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
63381         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
63382         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
63383         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
63384         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
63385         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
63386         (build_range_exp, build_collating_symbol, parse_bracket_exp):
63387         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
63388         (build_charclass, build_charclass_op, fetch_number, create_tree):
63389         (create_token_tree, mark_opt_subexp, duplicate_tree):
63390         Use prototypes rather than old-style definitions.
63391
63392         * lib/regex_internal.c:
63393         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
63394         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
63395         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
63396         (re_string_reconstruct, re_string_peek_byte_case):
63397         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
63398         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
63399         (re_node_set_init_copy, re_node_set_add_intersect):
63400         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
63401         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
63402         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
63403         (re_acquire_state, re_acquire_state_context, register_state):
63404         (create_ci_newstate, create_cd_newstate, free_state):
63405         Likewise.
63406         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
63407         re_search_2):
63408         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
63409         (re_search_internal, prune_impossible_nodes):
63410         (acquire_init_state_context, check_matching, static):
63411         (check_halt_node_context, check_halt_state_context, proceed_next_node):
63412         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
63413         (update_regs, sift_states_backward, build_sifted_states):
63414         (clean_state_log_if_needed, merge_state_array):
63415         (update_cur_sifted_state, add_epsilon_src_nodes):
63416         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
63417         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
63418         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
63419         (find_recover_state, check_subexp_matching_top, transit_state_mb):
63420         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
63421         (check_arrival, check_arrival_add_next_nodes):
63422         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
63423         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
63424         (check_node_accept_bytes, check_node_accept, extend_buffers):
63425         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
63426         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
63427         (sift_ctx_init):
63428         Likewise.
63429
63430         * lib/regex_internal.h:
63431         (re_string_allocate, re_string_construct, re_string_reconstruct):
63432         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
63433         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
63434         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
63435         (re_string_context_at, re_string_peek_byte_case):
63436         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
63437         is defined, since we now use prototypes always.
63438
63439         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
63440         C89 or better.  All uses removed.
63441
63442 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
63443
63444         * config/srclist.txt: Add glibc bugs 1220-1227.
63445
63446 2005-08-20  Jim Meyering  <jim@meyering.net>
63447
63448         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
63449         of unused local, dfa.
63450
63451 2005-08-20  Bruno Haible  <bruno@clisp.org>
63452
63453         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
63454
63455 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
63456
63457         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
63458         (re_node_set_insert_last, re_dfa_add_node):
63459         Rename local variables to avoid GCC shadowing warnings.
63460
63461 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
63462
63463         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
63464         [defined lint]: Suppress bogus uninitialized-variable warnings.
63465
63466         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
63467         and let the caller return REG_ESPACE if out of space.  This
63468         removes an uninitialied-variable warning with GCC 4.0.1, and also
63469         avoids taking the address of a local variable.  All callers
63470         changed.
63471
63472 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
63473
63474         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
63475         $LIBCSRC/posix/regexec.c.
63476         Add glibc bug 1217 for regcomp.c.
63477
63478 2005-08-19  Jim Meyering  <jim@meyering.net>
63479
63480         * lib/regexec.c (proceed_next_node): Redo local variables to
63481         avoid GCC shadowing warnings.
63482
63483 2005-08-18  Bruno Haible  <bruno@clisp.org>
63484
63485         * lib/strstr.c (strstr): Fix return value in multibyte case.
63486         * lib/strcasestr.c (strcasestr): Likewise.
63487
63488 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
63489
63490         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
63491
63492 2005-08-17  Jim Meyering  <jim@meyering.net>
63493
63494         Make the %s format (seconds since the epoch) work for a negative
63495         number and when used with a zero-padded field width, e.g. %015s.
63496
63497         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
63498         label so that it precedes the code to set `digits'.  Otherwise,
63499         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
63500         print `00-22'.  Now, it prints `-0022', as it should.
63501
63502 2005-08-17  Bruno Haible  <bruno@clisp.org>
63503
63504         * modules/strstr (Files): Add m4/mbrtowc.m4.
63505         (Depends-on): Add mbuiter.
63506
63507 2005-08-17  Bruno Haible  <bruno@clisp.org>
63508
63509         * modules/strcasestr: New file.
63510         * MODULES.html.sh (String handling, based on ANSI C 89): Add
63511         strcasestr.
63512
63513 2005-08-17  Bruno Haible  <bruno@clisp.org>
63514
63515         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
63516
63517 2005-08-17  Bruno Haible  <bruno@clisp.org>
63518
63519         * modules/mbuiter: New file.
63520         * MODULES.html.sh (Extended multibyte and wide character utilities):
63521         Add mbuiter.
63522
63523 2005-08-17  Bruno Haible  <bruno@clisp.org>
63524
63525         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
63526         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
63527
63528 2005-08-17  Bruno Haible  <bruno@clisp.org>
63529
63530         * m4/strcasestr.m4: New file.
63531
63532 2005-08-17  Bruno Haible  <bruno@clisp.org>
63533
63534         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
63535         * lib/strstr.c: Completely rewritten, with multibyte locale support.
63536
63537 2005-08-17  Bruno Haible  <bruno@clisp.org>
63538
63539         * lib/strcasestr.h: New file.
63540         * lib/strcasestr.c: New file.
63541
63542 2005-08-17  Bruno Haible  <bruno@clisp.org>
63543
63544         * lib/strcasecmp.c: Use mbuiter.h.
63545
63546 2005-08-17  Bruno Haible  <bruno@clisp.org>
63547
63548         * lib/mbuiter.h: New file.
63549
63550 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
63551
63552         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
63553         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
63554         and gl_GETOPT are both invoked via different paths (as happens
63555         with GNU tar CVS because it uses both argp and getopt), the former
63556         wins.
63557
63558 2005-08-16  Bruno Haible  <bruno@clisp.org>
63559
63560         * modules/tls: New file.
63561         * MODULES.html.sh (Multithreading): Add tls.
63562
63563 2005-08-16  Bruno Haible  <bruno@clisp.org>
63564
63565         * modules/strnlen1: New file.
63566         * MODULES.html.sh (String handling): Add strnlen1.
63567
63568 2005-08-16  Bruno Haible  <bruno@clisp.org>
63569
63570         * modules/strcase (Files): Add m4/mbrtowc.m4.
63571         (Depends-on): Add strnlen1, mbchar.
63572
63573 2005-08-16  Bruno Haible  <bruno@clisp.org>
63574
63575         * modules/mbiter: New file.
63576         * MODULES.html.sh (Extended multibyte and wide character utilities):
63577         Add mbiter.
63578
63579 2005-08-16  Bruno Haible  <bruno@clisp.org>
63580
63581         * modules/mbfile: New file.
63582         * MODULES.html.sh (Extended multibyte and wide character utilities):
63583         Add mbfile.
63584
63585 2005-08-16  Bruno Haible  <bruno@clisp.org>
63586
63587         * modules/mbchar: New file.
63588         * MODULES.html.sh (Extended multibyte and wide character utilities):
63589         New section.
63590
63591 2005-08-16  Bruno Haible  <bruno@clisp.org>
63592
63593         * m4/tls.m4: New file, from GNU gettext.
63594
63595 2005-08-16  Bruno Haible  <bruno@clisp.org>
63596
63597         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
63598         always.
63599         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
63600
63601 2005-08-16  Bruno Haible  <bruno@clisp.org>
63602
63603         * m4/mbiter.m4: New file.
63604
63605 2005-08-16  Bruno Haible  <bruno@clisp.org>
63606
63607         * m4/mbfile.m4: New file.
63608
63609 2005-08-16  Bruno Haible  <bruno@clisp.org>
63610
63611         * m4/mbchar.m4: New file.
63612
63613 2005-08-16  Bruno Haible  <bruno@clisp.org>
63614
63615         * lib/tls.h: New file, from GNU gettext.
63616         * lib/tls.c: New file, from GNU gettext.
63617
63618 2005-08-16  Bruno Haible  <bruno@clisp.org>
63619
63620         * lib/strnlen1.h: New file.
63621         * lib/strnlen1.c: New file.
63622
63623 2005-08-16  Bruno Haible  <bruno@clisp.org>
63624
63625         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
63626         (mbi_init): Update.
63627         (mbi_avail, mbi_advance): Let the iteration end before the terminating
63628         NUL byte, not after it.
63629
63630 2005-08-16  Bruno Haible  <bruno@clisp.org>
63631
63632         * lib/strcase.h (strcasecmp): Add note in comments.
63633         * lib/strncasecmp.c: Use code from strcasecmp.c.
63634         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
63635         (strcasecmp): Work correctly in multibyte locales.
63636
63637 2005-08-16  Bruno Haible  <bruno@clisp.org>
63638
63639         * lib/mbiter.h: New file.
63640
63641 2005-08-16  Bruno Haible  <bruno@clisp.org>
63642
63643         * lib/mbfile.h: New file.
63644
63645 2005-08-16  Bruno Haible  <bruno@clisp.org>
63646
63647         * lib/mbchar.h: New file.
63648         * lib/mbchar.c: New file.
63649
63650 2005-08-16  Bruno Haible  <bruno@clisp.org>
63651
63652         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
63653         the valid ones. Makes the comparison operations transitive:
63654         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
63655         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
63656
63657 2005-08-15  Simon Josefsson  <jas@extundo.com>
63658
63659         * modules/ssize_t (License): Change to 'unlimited'.
63660
63661         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
63662
63663 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
63664
63665         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
63666         Add comments for each pending glibc patch.
63667
63668 2005-08-15  Bruno Haible  <bruno@clisp.org>
63669
63670         * lib/regex.h (__restrict_arr): Don't define to __restrict if
63671         __cplusplus is defined.
63672
63673 2005-08-14  Jim Meyering  <jim@meyering.net>
63674
63675         Sync from coreutils.
63676
63677         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
63678         Use the hash-table-based cycle-detection code not just when
63679         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
63680         Reported by James Youngman in
63681         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
63682         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
63683         FTS_TIGHT_CYCLE_CHECK.
63684         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
63685         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
63686         once again.
63687         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
63688         * lib/fts.c (fd_safer): Remove decl.
63689         Include fcntl--.h rather than unistd-safer.h
63690         (fts_safe_changedir): Don't call fd_safer; no longer needed
63691         now that we include fcntl--.h.
63692
63693 2005-08-12  Simon Josefsson  <jas@extundo.com>
63694
63695         * modules/getndelim2: Use ssize_t module.
63696         * modules/getnline: Likewise.
63697         * modules/safe-read: Likewise.
63698         * modules/xreadlink: Likewise.
63699
63700         * modules/ssize_t: New file.
63701
63702 2005-08-12  Simon Josefsson  <jas@extundo.com>
63703
63704         * m4/readline.m4: Look for termcap, curses or ncurses if required.
63705
63706 2005-08-12  Simon Josefsson  <jas@extundo.com>
63707
63708         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
63709         ssize_t.
63710
63711 2005-08-12  Simon Josefsson  <jas@extundo.com>
63712
63713         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
63714         readline, getdelim and check_version.
63715         (Support for systems lacking ISO C 99: Sizes of integer types):
63716         Add size_max.
63717
63718 2005-08-12  Bruno Haible  <bruno@clisp.org>
63719
63720         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
63721
63722 2005-08-11  Simon Josefsson  <jas@extundo.com>
63723
63724         * modules/readline: New file.
63725
63726         * modules/strnlen (Files): Add strnlen.h.
63727
63728 2005-08-11  Simon Josefsson  <jas@extundo.com>
63729
63730         * m4/readline.m4: New file.
63731
63732 2005-08-11  Simon Josefsson  <jas@extundo.com>
63733
63734         * lib/readline.h, readline.c: New file.
63735
63736 2005-08-11  Simon Josefsson  <jas@extundo.com>
63737
63738         * doc/gnulib.texi (Initial import, Finishing touches): Mention
63739         gl_AVOID.
63740
63741 2005-08-11  Bruno Haible  <bruno@clisp.org>
63742
63743         * lib/strnlen.h (strnlen): Change parameter name to match comment.
63744
63745 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
63746
63747         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
63748
63749 2005-08-10  Simon Josefsson  <jas@extundo.com>
63750
63751         * tests/test-iconvme.c: New file.
63752
63753 2005-08-10  Simon Josefsson  <jas@extundo.com>
63754
63755         * m4/strnlen.m4: New file.
63756
63757         * m4/strndup.m4: Don't check for strnlen declaration, done in
63758         strnlen.m4.
63759
63760 2005-08-10  Simon Josefsson  <jas@extundo.com>
63761
63762         * lib/strndup.c: Use strnlen.h.
63763
63764         * lib/strnlen.h: New file.
63765
63766 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
63767
63768         * README: Typos.
63769
63770 2005-08-02  Simon Josefsson  <jas@extundo.com>
63771
63772         * modules/readline: New file.
63773
63774 2005-08-02  Simon Josefsson  <jas@extundo.com>
63775
63776         * modules/getdelim: New file.
63777
63778         * modules/getline: Rewrite, don't use getndelim2.
63779
63780 2005-08-02  Simon Josefsson  <jas@extundo.com>
63781
63782         * m4/getline.m4: Separate out getdelim stuff into separate module.
63783
63784         * m4/getdelim.m4: New file.
63785
63786 2005-08-02  Simon Josefsson  <jas@extundo.com>
63787
63788         * lib/getline.h, getline.c: Rewrite.
63789
63790         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
63791
63792 2005-07-31  Bruno Haible  <bruno@clisp.org>
63793
63794         * lib/lock.h (gl_lock_initializer): New macro.
63795         (gl_lock_define_initialized): Use it.
63796         (gl_rwlock_initializer): New macro.
63797         (gl_rwlock_define_initialized): Use it.
63798         (gl_recursive_lock_initializer): New macro.
63799         (gl_recursive_lock_define_initialized): Use it.
63800
63801 2005-07-30  Karl Berry  <karl@gnu.org>
63802
63803         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
63804         Report from Ben Pfaff, regarding getopt.
63805
63806 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
63807
63808         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
63809         normal way.
63810         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
63811         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
63812         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
63813         (gl_GETOPT): Use the new macros.  Most of the implementation
63814         is moved to the new macros.  This is for programs like Emacs
63815         that don't want all the functionality of gl_GETOPT.
63816
63817 2005-07-26  Bruno Haible  <bruno@clisp.org>
63818
63819         * m4/lock.m4: Update from GNU gettext.
63820
63821 2005-07-26  Bruno Haible  <bruno@clisp.org>
63822
63823         * lib/lock.h: Update from GNU gettext.
63824         * lib/lock.c: Update from GNU gettext.
63825
63826 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
63827
63828         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
63829         obsolescent AC_TRY_RUN.  Include the default includes files, for
63830         'exit'.
63831
63832 2005-07-24  Bruno Haible  <bruno@clisp.org>
63833
63834         * modules/visibility: New file.
63835         * MODULES.html.sh (Misc): Add visibility.
63836
63837 2005-07-24  Bruno Haible  <bruno@clisp.org>
63838
63839         * m4/visibility.m4: New file.
63840
63841 2005-07-24  Bruno Haible  <bruno@clisp.org>
63842
63843         * doc/visibility.texi: New file.
63844
63845 2005-07-22  Bruno Haible  <bruno@clisp.org>
63846
63847         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
63848         $(ALLOCA_H), redundant through BUILT_SOURCES.
63849         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
63850         redundant through BUILT_SOURCES.
63851         * modules/byteswap (Makefile.am): Remove explicit dependency on
63852         $(BYTESWAP_H), redundant through BUILT_SOURCES.
63853         * modules/fnmatch (Makefile.am): Remove explicit dependency on
63854         $(FNMATCH_H), redundant through BUILT_SOURCES.
63855         * modules/getopt (Makefile.am): Remove explicit dependency on
63856         $(GETOPT_H), redundant through BUILT_SOURCES.
63857         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
63858         redundant through BUILT_SOURCES.
63859         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
63860         redundant through BUILT_SOURCES.
63861         * modules/stdbool (Makefile.am): Remove explicit dependency on
63862         $(STDBOOL_H), redundant through BUILT_SOURCES.
63863         * modules/stdint (Makefile.am): Remove explicit dependency on
63864         $(STDINT_H), redundant through BUILT_SOURCES.
63865         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
63866         Remove explicit dependency on $(SYSEXITS_H).
63867         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
63868
63869 2005-07-18  Simon Josefsson  <jas@extundo.com>
63870
63871         * lib/check-version.c (check_version): Accept identical versions too.
63872
63873 2005-07-18  Bruno Haible  <bruno@clisp.org>
63874
63875         * modules/lock: New file.
63876         * MODULES.html.sh (Multithreading): New section.
63877
63878 2005-07-18  Bruno Haible  <bruno@clisp.org>
63879
63880         * m4/lock.m4: New file, from GNU gettext.
63881
63882 2005-07-18  Bruno Haible  <bruno@clisp.org>
63883
63884         * lib/lock.h: New file, from GNU gettext.
63885         * lib/lock.c: New file, from GNU gettext.
63886
63887 2005-07-18  Bruno Haible  <bruno@clisp.org>
63888
63889         * lib/lock.h (gl_once_t): New type.
63890         (gl_once_define, gl_once): New macros.
63891         * lib/lock.c (fresh_once): New variable.
63892         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
63893         functions.
63894
63895 2005-07-16  Simon Josefsson  <jas@extundo.com>
63896
63897         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
63898         workaround, suggested by Bruno.
63899
63900 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
63901
63902         * modules/xalloc (Depends-on): Add xalloc-die.
63903         * modules/xvasprintf (Depends-on): Add xalloc-die.
63904
63905 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
63906
63907         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
63908         with a minor change.
63909
63910 2005-07-15  Bruno Haible  <bruno@clisp.org>
63911
63912         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
63913         When using lib/poll.c, define poll as rpl_poll.
63914
63915 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
63916
63917         * modules/argp (Depends-on): Remove unlocked-io.
63918
63919 2005-07-14  Derek Price  <derek@ximbiot.com>
63920
63921         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
63922         for glob symlink bug.
63923
63924 2005-07-14  Bruno Haible  <bruno@clisp.org>
63925
63926         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
63927         Instead, test for *_unlocked function declarations directly.
63928
63929 2005-07-11  Simon Josefsson  <jas@extundo.com>
63930
63931         * modules/size_max: New file.
63932
63933         * modules/xsize: Depend on size_max module for size_max.m4.
63934
63935 2005-07-11  Simon Josefsson  <jas@extundo.com>
63936
63937         * lib/size_max.h: New file.
63938
63939 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
63940
63941         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
63942         copyright symbol and the year.
63943         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
63944         (version_etc_va): Use parameterized copyright notice.
63945         Reword to conform to the current GNU coding standards.
63946
63947 2005-07-11  Karl Berry  <karl@gnu.org>
63948
63949         * doc/gnulib.texi (Quoting): new node.
63950         (Initial import): more info, from Patrice.
63951
63952 2005-07-11  Bruno Haible  <bruno@clisp.org>
63953
63954         * gnulib-tool (func_usage): Document option --avoid.
63955         (Command line options): Handle --avoid.
63956         (func_acceptable): New function.
63957         (func_modules_transitive_closure): Use it.
63958
63959 2005-07-11  Bruno Haible  <bruno@clisp.org>
63960
63961         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
63962         Reported by Jim Meyering.
63963
63964 2005-07-10  Bruno Haible  <bruno@clisp.org>
63965
63966         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
63967         Needed when size_t is smaller than 'unsigned int'.
63968         Reported by Paul Eggert.
63969
63970 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
63971
63972         * modules/argp (Depends-on): Add unlocked-io
63973
63974 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
63975
63976         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
63977         block of defines.
63978
63979 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
63980
63981         * config/srclist.txt: Comment out regcomp.c, since we have a porting
63982         fix now.
63983
63984 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
63985         and Paul Eggert  <eggert@cs.ucla.edu>
63986
63987         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
63988         in wint_t, not wchar_t.  Remove now-unnecessary cast.
63989
63990 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
63991
63992         * modules/regex (Files): Add lib/regex_internal.c,
63993         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
63994         (Depends-on): Add extensions.
63995         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
63996
63997 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
63998
63999         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
64000         pathconf.
64001         * m4/same.m4 (gl_SAME): Likewise.
64002         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
64003
64004         * m4/regex.m4: Adjust to new libc regex implementation.
64005         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
64006         all the .c and .h parts of (the new) regex.
64007         Quote the m4 stuff better.
64008         Check for RE_ICASE bug of old gnulib.
64009         Check for REG_STARTEND of recent libc.
64010         Rename local variables from jm_* to gl_*.
64011         Quote operand of "test -f".
64012         Say "recent enough" version of libc, not "version 2".
64013         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
64014         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
64015         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
64016         Remove check for btowc, isascii.
64017         Require AM_LANGINFO_CODESET.
64018
64019 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
64020
64021         * lib/regex.c, regex.h: Sync from libc.
64022         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
64023         * lib/regexec.c:
64024         New files, synced from libc, except that regex_internal.h
64025         currently has a small porting fix.
64026
64027 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
64028
64029         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
64030         regex_internal.c, regexec.c.
64031         Add regex_internal.h too, but as a comment, since the libc version
64032         is currently broken in gnulib mode.
64033
64034 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
64035
64036         Support programs like Emacs that use gnulib but not gettext.
64037         * MODULES.html.sh (Internationalization functions): Add gettext-h.
64038         * modules/gettext-h: New file.
64039         * modules/gettext (Files): Remove lib/gettext.h.
64040         (Depends-on): Add gettext-h.
64041         (Makefile.am): Remove lib_SOURCES.
64042         * modules/argmatch, modules/c-stack, modules/closeout:
64043         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
64044         * modules/execute, modules/file-type, modules/getaddrinfo:
64045         * modules/getopt, modules/human, modules/javacomp:
64046         * modules/javaexec, modules/mkdir-p, modules/obstack:
64047         * modules/openat, modules/pagealign_alloc, modules/pipe:
64048         * modules/quotearg, modules/regex, modules/rpmatch:
64049         * modules/unicodeio, modules/userspec, modules/version-etc:
64050         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
64051         * modules/xsetenv:
64052         Depend on gettext-h, not gettext.
64053
64054 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
64055
64056         * gnulib-tool (func_import): Add support for 'public domain' license.
64057         * modules/alloca, modules/atexit, modules/memmove:
64058         Now public domain, not GPL.
64059         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
64060         * modules/realloc, modules/strerror, modules/strtod:
64061         Now LGPL, not GPL.
64062
64063 2005-07-05  Bruno Haible  <bruno@clisp.org>
64064
64065         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
64066         autoconf CVS. Needed for mingw.
64067
64068 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
64069
64070         Remove the dependency of the strftime module on the tzset module.
64071         * modules/strftime (Depends-on): Remove dependency on tzset.
64072
64073 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
64074
64075         Remove the dependency of the strftime module on the tzset module.
64076         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
64077         gl_FUNC_TZSET_CLOBBER.
64078
64079 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
64080
64081         Remove the dependency of the strftime module on the tzset module.
64082         * lib/strftime.c (my_strftime)
64083         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
64084         Copy the input structure, to work around some of the bug with
64085         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
64086         Solaris releases, you should also use the tzset module, but we won't
64087         require it as a dependency any more since we don't want LGPLed code
64088         to depend on GPLed code.
64089
64090 2005-07-02  Jim Meyering  <jim@meyering.net>
64091
64092         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
64093         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
64094         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
64095         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
64096
64097 2005-07-02  Jim Meyering  <jim@meyering.net>
64098
64099         * lib/backupfile.c (backup_args): Change a `0' to NULL.
64100
64101 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
64102
64103         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
64104         declares only 'struct timespec;' (!).
64105
64106 2005-07-01  Jim Meyering  <jim@meyering.net>
64107
64108         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
64109         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
64110         * lib/save-cwd.c, tempname.c:
64111         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
64112         and don't include <sys/file.h>).
64113
64114 2005-06-29  Jim Meyering  <jim@meyering.net>
64115
64116         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
64117         type name.  Use the variable name instead.
64118         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
64119         Likewise.
64120
64121 2005-06-28  Simon Josefsson  <jas@extundo.com>
64122
64123         * modules/check-version (Files): Add check-version.m4.
64124
64125 2005-06-28  Simon Josefsson  <jas@extundo.com>
64126
64127         * m4/check-version.m4: New file, suggested by Jim Meyering
64128         <jim@meyering.net>.
64129
64130 2005-06-28  Simon Josefsson  <jas@extundo.com>
64131
64132         * lib/check-version.h, lib/check-version.c: New files.
64133
64134 2005-06-28  Simon Josefsson  <jas@extundo.com>
64135
64136         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
64137         collision with global variable.  Better indentation.  Don't
64138         increment buffer pointer beyond buffer end.  Based on comments
64139         from Paul Eggert <eggert@cs.ucla.edu>.
64140
64141         * lib/base64.h: Indent.
64142
64143 2005-06-28  Simon Josefsson  <jas@extundo.com>
64144
64145         * doc/gnulib.texi (Library version handling): New section.
64146
64147 2005-06-28  Jim Meyering  <jim@meyering.net>
64148
64149         * check-module (find_included_lib_files): Hard-code another
64150         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
64151         but modules/fts-lgpl (correctly) does not list those files.
64152
64153         * modules/canonicalize (Files): Add lib/pathmax.h.
64154
64155 2005-06-25  Simon Josefsson  <jas@extundo.com>
64156
64157         * modules/check-version: New file.
64158
64159 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
64160
64161         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
64162         initializer of struct addrinfo, as an indication that we don't
64163         care how many members the structure has.
64164
64165 2005-06-24  Derek Price  <derek@ximbiot.com>
64166         and Bruno Haible  <bruno@clisp.org>
64167
64168         Remove stat module & update lstat.
64169         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
64170         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
64171         * m4/stat.m4: Remove this file.
64172
64173 2005-06-24  Derek Price  <derek@ximbiot.com>
64174         and Bruno Haible  <bruno@clisp.org>
64175
64176         Remove stat module & update lstat.
64177         * lib/stat.c: Remove this file...
64178         (slash_aware_lstat): ...moving this content and its support...
64179         * lib/lstat.c (rpl_lstat): ...into here.
64180         * lib/lstat.h: New file.
64181
64182 2005-06-24  Derek Price  <derek@ximbiot.com>
64183         and Bruno Haible  <bruno@clisp.org>
64184
64185         Remove stat module & update lstat.
64186         * config/srclist.txt (libc sources): Remove stat.
64187
64188 2005-06-24  Derek Price  <derek@ximbiot.com>
64189         and Bruno Haible  <bruno@clisp.org>
64190
64191         Remove stat module & update lstat.
64192         * MODULES.html.sh (stat): Remove.
64193         * MODULES.html: Regenerated.
64194         * modules/lstat (Description): Correct function name.
64195         (Files): Add "lstat.h".
64196         (Depends-on): Remove stat, add xalloc, stat-macros.
64197         * modules/stat: Remove this file.
64198         (Include): Add "lstat.h", remove <sys/stat.h>.
64199
64200 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
64201
64202         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
64203         (ranged_convert): Don't save conversion in a temporary struct.
64204         This causes a warning with GCC 4.0.0, and anyway in the typical
64205         case it's not worth the extra 100 bytes or so of code.
64206         (ranged_convert, __mktime_internal): When calling a function via a
64207         pointer P, use P () rather than (*P) (), as we now assume C89 or
64208         better.
64209
64210 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
64211
64212         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
64213         "who -r" failed to give output.  Problem reported by Tim Waugh.
64214
64215         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
64216         (xcalloc): Use it to avoid needless tests.
64217         Problem reported by Jim Meyering.
64218
64219 2005-06-20  Derek Price  <derek@ximbiot.com>
64220
64221         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
64222         unnecessary for Autoconfs > 2.59c.
64223
64224 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
64225
64226         * lib/argp.h (__option_is_short): Check upper limit of
64227         __key. Isprint() requires its argument to have the value
64228         of an unsigned char or EOF.
64229
64230 2005-06-16  Jim Meyering  <jim@meyering.net>
64231
64232         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
64233         when either N or S is zero.
64234
64235 2005-06-16  Derek Price  <derek@ximbiot.com>
64236
64237         * m4/bison.m4: Declare YACC & YFLAGS precious.
64238
64239 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
64240
64241         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
64242         multibyte string or pattern, fall back on unibyte matching.
64243         Problem reported by James Youngman.
64244
64245 2005-06-08  Bruno Haible  <bruno@clisp.org>
64246
64247         * modules/csharpcomp: New file.
64248         * MODULES.html.sh (C#): Add csharpcomp.
64249
64250 2005-06-08  Bruno Haible  <bruno@clisp.org>
64251
64252         * m4/csharpcomp.m4: New file, from GNU gettext.
64253
64254 2005-06-08  Bruno Haible  <bruno@clisp.org>
64255
64256         * lib/csharpcomp.h: New file, from GNU gettext.
64257         * lib/csharpcomp.c: New file, from GNU gettext.
64258         * lib/csharpcomp.sh.in: New file, from GNU gettext.
64259
64260 2005-06-08  Bruno Haible  <bruno@clisp.org>
64261
64262         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
64263         warning on mingw.
64264
64265 2005-06-07  Derek Price  <derek@ximbiot.com>
64266
64267         Sync from CVS.
64268         * lib/glob_.h: Indent nested #ifdef.
64269
64270 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
64271
64272         Sync from coreutils.
64273         Use "file name" when talking about file names, instead of "filename"
64274         or "path", as per the GNU coding standards.
64275         * lib/mkdir-p.c: Renamed from makepath.c.
64276         (make_dir_parents): Renamed from make_path.  All callers changed.
64277         * lib/mkdir-p.h: Likewise.  All includers changed.
64278         * lib/filenamecat.c: Renamed from path-concat.c.
64279         (file_name_concat): Renamed from path_concat.  All callers changed.
64280         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
64281         * lib/filenamecat.h: Likewise.  All includers changed.
64282         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
64283         in comments or local variable names.
64284         * lib/basename.c: Likewise.
64285         * lib/canonicalize.c, canonicalize.h: Likewise.
64286         * lib/dirname.c, dirname.h: Likewise.
64287         * lib/euidaccess.c: Likewise.
64288         * lib/exclude.c: Likewise
64289         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
64290         * lib/fsusage.c, fsuage.h: Likewise.
64291         * lib/fts.c, fts_.h: Likewise.
64292         * lib/getcwd.c: Likewise.
64293         * lib/getloadavg.c: Likewise.
64294         * lib/mkstemp.c: Likewise.
64295         * lib/mountlist.c, mountlist.h: Likewise.
64296         * lib/openat.c, openat.h: Likewise.
64297         * lib/readlink-stub.c: Likewise.
64298         * lib/readutmp.c, readutmp.h: Likewise.
64299         * lib/rename.c: Likewise.
64300         * lib/rmdir.c: Likewise.
64301         * lib/same.c: Likewise.
64302         * lib/savedir.c: Likewise.
64303         * lib/stripslash.c: Likewise.
64304         * lib/tempname.c: Likewise.
64305         * lib/xreadlink.c: Likewise.
64306         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
64307         All uses changed.
64308         * lib/exclude.h: Likewise.
64309
64310         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
64311         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
64312         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
64313         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
64314         * lib/pathmax.h: Include <limits.h> unconditionally, since other
64315         files have been getting away with it for years (MORE/BSD 4.3
64316         is extinct now).
64317         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
64318         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
64319
64320         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
64321         Define to 256, not 255, as per modern POSIX.
64322
64323 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
64324
64325         Sync from coreutils.
64326         Use "file name" when talking about file names, instead of "filename"
64327         or "path", as per the GNU coding standards.
64328         * MODULES.html.sh: mkdir-p renamed from makepath.
64329         filenamecat renamed from path-concat.
64330         * modules/filenamecat: Renamed from modules/path-concat.
64331         (Files): filenamecat.h and filenamecat.c renamed from
64332         path-concat.h and path-concat.c.
64333         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
64334         (Include): filenamecat.h, not path-concat.h.
64335         * modules/mkdir-p: Renamed from modules/makepath.
64336         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
64337         makepath.c.
64338         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
64339         (Include): mkdir-p.h, not makepath.h.
64340
64341 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
64342
64343         Sync from coreutils.
64344         * m4/mkdir-p.m4: Renamed from makepath.m4.
64345         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
64346         Rename files from makepath.c to mkdir-p.c, and from
64347         makepath.h to mkdir-p.h.
64348         * m4/filenamecat.m4: Renamed from path-concat.m4.
64349         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
64350         Rename files from path-concat.c to filenamecat.c,
64351         and from path-concat.h to filenamecat.h.
64352         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
64353         "file name" in local variables or comments.
64354         * m4/rename.m4: Likewise.
64355
64356 2005-06-01  Bruno Haible  <bruno@clisp.org>
64357
64358         * modules/csharpexec: New file.
64359         * MODULES.html.sh (C#): New section.
64360
64361 2005-06-01  Bruno Haible  <bruno@clisp.org>
64362
64363         * m4/csharp.m4: New file, from GNU gettext.
64364         * m4/csharpexec.m4: New file, from GNU gettext.
64365
64366 2005-06-01  Bruno Haible  <bruno@clisp.org>
64367
64368         * lib/csharpexec.h: New file, from GNU gettext.
64369         * lib/csharpexec.c: New file, from GNU gettext.
64370         * lib/csharpexec.sh.in: New file, from GNU gettext.
64371
64372 2005-05-31  Derek Price  <derek@ximbiot.com>
64373             Paul Eggert  <eggert@cs.ucla.edu>
64374
64375         Sync from cvs.
64376         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
64377
64378 2005-05-31  Derek Price  <derek@ximbiot.com>
64379             Paul Eggert  <eggert@cs.ucla.edu>
64380
64381         Sync from cvs.
64382         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
64383
64384 2005-05-29  Derek Price  <derek@ximbiot.com>
64385
64386         * config/srclist.txt (glob_.h, glob.c): Add these files.
64387
64388 2005-05-29  Derek Price  <derek@ximbiot.com>
64389
64390         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
64391         * modules/glob: New file.
64392         * modules/getlogin_r: Add link to POSIX spec in description.
64393
64394 2005-05-29  Derek Price  <derek@ximbiot.com>
64395             Paul Eggert  <eggert@cs.ucla.edu>
64396
64397         * m4/glob.m4: New file.
64398
64399 2005-05-29  Derek Price  <derek@ximbiot.com>
64400             Paul Eggert  <eggert@cs.ucla.edu>
64401
64402         * lib/glob_.h, lib/glob.c: New files.
64403
64404 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
64405
64406         * modules/fts (Files): Remove m4/inttypes-pri.m4.
64407         * modules/fts-lgpl (Depends-on): Remove gettext.
64408
64409 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
64410
64411         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
64412         and don't require gt_INTTYPES_PRI.
64413
64414 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
64415
64416         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
64417
64418         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
64419         the configuration hassle isn't worth it.
64420         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
64421         (LONGEST_MODIFIER, PRIuMAX): Remove.
64422
64423 2005-05-27  Bruno Haible  <bruno@clisp.org>
64424
64425         * lib/getlogin_r.h: Remove second include of <stddef.h>.
64426
64427 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
64428
64429         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
64430         _POSIX_PTHREAD_SEMANTICS for Solaris.
64431
64432 2005-05-25  Derek Price  <derek@ximbiot.com>
64433
64434         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
64435
64436 2005-05-25  Derek Price  <derek@ximbiot.com>
64437             Paul Eggert  <eggert@cs.ucla.edu>
64438
64439         * modules/getlogin_r, m4/getlogin_r.m4: New files.
64440         * lib/getlogin_r.c, getlogin_r.h: New files.
64441
64442 2005-05-25  Bruno Haible  <bruno@clisp.org>
64443             Derek Price  <derek@ximbiot.com>
64444
64445         * lib/getlogin_r.h: Simplify API documentation.
64446
64447 2005-05-23  Derek Price  <derek@ximbiot.com>
64448
64449         * modules/minmax (Files): Add m4/minmax.m4.
64450         (configure.ac): Add gl_MINMAX.
64451
64452 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
64453
64454         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
64455         so that unistd-safer.h (GPL'ed code) need not be included.
64456
64457 2005-05-22  Bruno Haible  <bruno@clisp.org>
64458
64459         * m4/minmax.m4: New file.
64460         Based on a patch by Derek Price <derek@ximbiot.com>.
64461
64462 2005-05-22  Bruno Haible  <bruno@clisp.org>
64463
64464         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
64465         (INT64_MIN): Fix definition.
64466         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
64467
64468         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
64469         NEED_SIGNED_INT_TYPES.
64470
64471         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
64472         HAVE_SYSTEM_INTTYPES.
64473
64474 2005-05-22  Bruno Haible  <bruno@clisp.org>
64475
64476         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
64477         Also include <sys/param.h> if it defines MIN, MAX.
64478         Based on a patch by Derek Price <derek@ximbiot.com>.
64479
64480 2005-05-21  Jim Meyering  <jim@meyering.net>
64481
64482         * modules/fts (Files): Add m4/inttypes-pri.m4.
64483         (Depends-on): Add lstat and remove gettext.  Alphabetize.
64484
64485 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
64486
64487         New fts module.
64488         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
64489         (setup_dir, free_dir): New functions.
64490         (enter_dir, leave_dir): Define trivial
64491         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
64492         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
64493         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
64494         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
64495         Move to fts-cycle.c.
64496         (fts_open): Use setup_dir.
64497         (fts_close): Use free_dir.
64498         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
64499         This adds a label and some gotos, but the alternatives were messier.
64500         Check for memory allocation failure when entering a dir.
64501         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
64502         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
64503         (FTS): New member fts_cycle, that is a union that contains the
64504         old active_dir_ht and cycle_state.  All uses changed to mention
64505         fts_cycle.ht and fts_cycle.state.
64506         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
64507         fts.c, with the following changes:
64508         (setup_dir, free_dir): New functions.
64509         (enter_dir): Now returns bool.  Return true if successful, false
64510         if memory exhausted.  All callers changed.
64511         Do not bother partly cleaning up on
64512         memory allocation failure; that is free_dir's job.
64513         However, free ad if hash_insert fails, to avoid memory leak.
64514         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
64515         fts->fts_options to see which union member to use.
64516
64517 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
64518
64519         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
64520         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
64521
64522 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
64523
64524         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
64525
64526 2005-05-20  Jim Meyering  <jim@meyering.net>
64527
64528         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
64529         Now a macro, to pacify GCC.
64530
64531 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
64532
64533         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
64534         of -1.
64535
64536 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
64537
64538         * lib/chown.c (rpl_chown): Return -1 on failure.
64539
64540 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
64541
64542         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
64543         Don't check for stddef.h.
64544         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
64545         don't use its results.
64546         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
64547         since we include them unconditionally.  Don't require
64548         AM_STDBOOL_H, since stdbool is a prerequisite.
64549         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
64550         since we assume C89 or better.
64551         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
64552         as we don't use their results.
64553         Don't check for fchdir, memmove, memset, strrchr, as we use
64554         them unconditionally.
64555         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
64556         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
64557
64558 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
64559
64560         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
64561         Include <stddef.h> unconditionally, since we assume C89 now.
64562         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
64563         * lib/fts.c: Include fts_.h first, to check interface.
64564         Do not include intprops.h; no longer needed.
64565         Include cycle-check.h and hash.h, since fts_.h no longer does.
64566         Remove unnecessary casts of closedir to void.
64567         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
64568         decide whether to decrement nlinks.
64569         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
64570         (FTS): Use struct hash_table * instead of Hash_table, so that
64571         we no longer need to include hash.h here.
64572
64573 2005-05-18  Jim Meyering  <jim@meyering.net>
64574
64575         * modules/dirfd (License): Change to LGPL.  Most of the code
64576         is already in the public domain.
64577
64578 2005-05-18  Jim Meyering  <jim@meyering.net>
64579
64580         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
64581         Reported by Yoann Vandoorselaere.
64582
64583 2005-05-17  Jim Meyering  <jim@meyering.net>
64584
64585         * m4/fts.m4: New file, from coreutils.
64586
64587 2005-05-17  Jim Meyering  <jim@meyering.net>
64588
64589         * lib/fts.c, lib/fts_.h: New files, from coreutils.
64590
64591 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
64592
64593         Sync from coreutils.
64594         * m4/unlinkdir.m4: New file.
64595
64596 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
64597
64598         Sync from coreutils.
64599         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
64600         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
64601         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
64602         White space changes only.
64603         * lib/makepath.c (make_path): Port to hosts where leading "//" is
64604         special.
64605         * lib/yesno.c: Include getline.h, not ctype.h.
64606         (yesno): Don't remove leading white space; POSIX doesn't allow it.
64607         Use getline to remove arbitrary restriction on response length.
64608
64609 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
64610
64611         * config/srclist-update: Spell out "Street" in FSF postal
64612         mail address; this is the style the FSF seems to prefer.
64613
64614         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
64615         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
64616         this updates FSF postal mail address.
64617
64618         Sync from coreutils.
64619         * modules/unlinkdir: New file.
64620         * modules/yesno (Depends-on): Add getline.
64621         * MODULES.html.sh (File system functions): Add unlinkdir.
64622
64623 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
64624
64625         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
64626         lib/strsep.h:
64627         Change the initial comment to refer to GPL, not LGPL.
64628         gnulib-tool will change it to LGPL as needed.
64629
64630         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
64631         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
64632         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
64633         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
64634         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
64635         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
64636         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
64637         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
64638         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
64639         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
64640         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
64641         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
64642         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
64643         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
64644         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
64645         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
64646         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
64647         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
64648         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
64649         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
64650         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
64651         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
64652         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
64653         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
64654         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
64655         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
64656         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
64657         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
64658         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
64659         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
64660         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
64661         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
64662         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
64663         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
64664         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
64665         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
64666         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
64667         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
64668         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
64669         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
64670         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
64671         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
64672         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
64673         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
64674         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
64675         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
64676         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
64677         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
64678         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
64679         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
64680         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
64681         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
64682         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
64683         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
64684         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
64685         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
64686         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
64687         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
64688         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
64689         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
64690         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
64691         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
64692         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
64693         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
64694         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
64695         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
64696         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
64697         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
64698         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
64699         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
64700         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
64701         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
64702         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
64703         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
64704         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
64705         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
64706         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
64707         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
64708         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
64709         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
64710         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
64711         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
64712         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
64713         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
64714         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
64715         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
64716         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
64717         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
64718         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
64719         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
64720         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
64721         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
64722         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
64723         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
64724         lib/yesno.c, lib/yesno.h:
64725         Update FSF postal mail address.
64726
64727 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
64728
64729         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
64730         tests/test-memmem.c, tests/test-stpncpy.c:
64731         Update FSF postal mail address.
64732
64733 2005-05-13  Bruno Haible  <bruno@clisp.org>
64734
64735         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
64736         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
64737         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
64738         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
64739         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
64740         Add support for 64-bit integers in the MSVC compiler.
64741
64742 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
64743
64744         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
64745
64746 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
64747
64748         * gnulib-tool (func_import): Sort and uniquify recommended includes.
64749
64750 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
64751
64752         * doc/getdate.texi (General date syntax): Don't say that date
64753         date --iso-8601=ns generates acceptable dates; it doesn't yet.
64754         Problem reported by Nic Ferrier.
64755
64756 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64757
64758         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
64759         specified in ai_socktype. Fix invalid ai_protocol
64760         check. ai_protocol is usually set to 0 or depending on
64761         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
64762         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
64763         ai_socktype / ai_protocol in the returned addrinfo structure.
64764
64765 2005-05-10  Simon Josefsson  <jas@extundo.com>
64766
64767         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
64768         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
64769
64770 2005-05-10  Karl Berry  <karl@gnu.org>
64771
64772         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
64773         (from http://www.gnu.org/licenses).
64774         * doc/COPYING.LIB: also rename to COPYING.LESSER.
64775         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
64776         fdl.texi suffices.
64777
64778 2005-05-10  Karl Berry  <karl@gnu.org>
64779
64780         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
64781         (COPYING.DOC): remove.
64782
64783         * config/srclist-update: new FSF address.
64784
64785 2005-05-10  Derek Price  <derek@ximbiot.com>
64786
64787         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
64788         possible.
64789
64790 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64791             Bruno Haible  <bruno@clisp.org>
64792
64793         * modules/inet_ntop: New file.
64794         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
64795         inet_ntop.
64796
64797 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64798             Bruno Haible  <bruno@clisp.org>
64799
64800         * m4/inet_ntop.m4: New file.
64801
64802 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64803             Bruno Haible  <bruno@clisp.org>
64804
64805         * lib/inet_ntop.h: New file.
64806         * lib/inet_ntop.c: New file, from glibc with modifications.
64807
64808 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
64809
64810         * modules/time_r (License): Change to LGPL.
64811         * modules/extensions (License): Change to LGPL.  Actually,
64812         the license is more permissive than that, but currently gnulib-tool
64813         doesn't know how to handle more-permissive licenses.
64814
64815         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
64816         Problem reported by Dave Love.
64817
64818 2005-05-08  Jim Meyering  <jim@meyering.net>
64819
64820         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
64821         blank.
64822
64823 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
64824
64825         * modules/argmatch (Depends-on): Add stdbool.
64826         * modules/backupfile (Depends-on): Likewise.
64827         * modules/chdir-long (Depends-on): Likewise.
64828         * modules/closeout (Depends-on): Likewise.
64829         * modules/cycle-check (Depends-on): Likewise.
64830         * modules/dirname (Depends-on): Likewise.
64831         * modules/fnmatch (Depends-on): Likewise.
64832         * modules/fsusage (Depends-on): Likewise.
64833         * modules/fwriteerror (Depends-on): Likewise.
64834         * modules/getcwd (Depends-on): Likewise.
64835         * modules/getloadavg (Depends-on): Likewise.
64836         * modules/hard-locale (Depends-on): Likewise.
64837         * modules/makepath (Depends-on): Likewise.
64838         * modules/mountlist (Depends-on): Likewise.
64839         * modules/nanosleep (Depends-on): Likewise.
64840         * modules/posixtm (Depends-on): Likewise.
64841         * modules/quotearg (Depends-on): Likewise.
64842         * modules/readtokens (Depends-on): Likewise.
64843         * modules/readtokens0 (Depends-on): Likewise.
64844         * modules/readutmp (Depends-on): Likewise.
64845         * modules/save-cwd (Depends-on): Likewise.
64846         * modules/strftime (Depends-on): Likewise.
64847         * modules/userspec (Depends-on): Likewise.
64848         * modules/utimecmp (Depends-on): Likewise.
64849         * modules/xgetcwd (Depends-on): Likewise.
64850         * modules/xnanosleep (Depends-on): Likewise.
64851         * modules/xstrtod (Depends-on): Likewise.
64852         * modules/yesno (Depends-on): Likewise.
64853
64854 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
64855
64856         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
64857         needless checks.
64858
64859 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
64860
64861         Merge from coreutils.  Among other things,
64862         add bulletproofing for cases where stdin, stdout, or stderr are closed.
64863         * lib/fd-safer.c: New file.
64864         * lib/fcntl-safer.h, open-safer.c: Remove.
64865         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
64866         * lib/dup-safer.c: Include unistd-safer.h first.
64867         Don't include errno.h.
64868         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
64869         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
64870         * lib/file-type.c: Rely on file-type.h change.
64871         * lib/getloadavg.c: Include unistd-safer.h.
64872         (getloadavg): Use safer open.
64873         * lib/getusershell.c: Include "stdio-safer.h".
64874         (getusershell): Use safer fopen.
64875         * lib/long-options.c (long_options): Use NULL rather than 0.
64876         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
64877         'free'.
64878         * lib/modechange.c: Likewise.
64879         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
64880         (MODE_DONE): New constant.
64881         (struct mode_change): Remove 'next' member.
64882         (make_node_op_equals): New function; like the old one of the
64883         same name, except it allocates an array.
64884         (mode_compile, mode_create_from_ref): Use it.
64885         (mode_compile): Allocate result as an array, not a linked list.
64886         Parse octal string ourself, so that we catch mistakes like "+0".
64887         (mode_adjust): Arg is an array, not a linked list.
64888         * lib/modechange.c: Include stat-macros.h, xalloc.h.
64889         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
64890         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
64891         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
64892         Remove.  This is now stat-macros.h's job.
64893         (talloc): Remove.  All callers replaced by xalloc, so that
64894         our invokers don't have to worry about reporting memory failures.
64895         (make_node_op_equals): Remove.
64896         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
64897         New constants.
64898         (struct mode_change): Moved here from modechange.h.
64899         (mode_append_entry): Remove.
64900         (mode_compile): Remove MASKED_OPS arg, since it encouraged
64901         apps to have incorrect behavior.  Use simpler algorithm for head
64902         and tail.  Don't futz with umask; that's now the job of mode_adjust.
64903         Detect more invalid usages rather than having somewhat-random behavior.
64904         Don't insert an "a=" action, as that leads to incorrect behavior.
64905         (mode_compile, mode_create_from_ref): Return NULL on error instead
64906         of an enum, since now there's only one way to have an error.  All
64907         callers changed.
64908         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
64909         at the correct time.  Simplify calculation of "+u" and its ilk.
64910         Don't mishandle "+X".
64911         (mode_free): Remove "register" and localize decls.
64912         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
64913         (struct mode_change): Move to modechange.c; callers don't
64914         need to see this stuff.
64915         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
64916         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
64917         (mode_change, mode_adjust): Reflect the new signatures noted above.
64918         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
64919         that might redefine system include files.
64920         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
64921         (my_usleep): Use NULL rather than (void *) 0.
64922         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
64923         Use siginterrupt to specify that system calls should be interrupted.
64924         (rpl_nanosleep): Move initialization of suspended closer to call of
64925         my_usleep.
64926         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
64927         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
64928         (desirable_utmp_entry): New function.
64929         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
64930         using x2nrealloc, to simplify logic.
64931         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
64932         size calculation.  Do not assume utmp file is a regular file.
64933         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
64934         (READ_UTMP_CHECK_PIDS): New constant.
64935         * lib/save-cwd.c: Include unistd-safer.h.
64936         (save_cwd): Use fd_safer.
64937         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
64938         [!_LIBC] Include "stat-macros.h" instead.
64939         * lib/unistd-safer.h (fd_safer): New decl.
64940
64941 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
64942
64943         * modules/getloadavg (Depends-on): Add unistd-safer.
64944         * modules/getusershell (Depends-on): Add stdio-safer.
64945         * modules/lstat (Depends-on): Remove xalloc.
64946         * modules/mkstemp (Depends-on): Add stat-macros.
64947         * modules/modechange (Depends-on): Remove xstrtol.
64948         Add stat-macros, xalloc.
64949         * modules/save-cwd (Depends-on): Add unistd-safer.
64950         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
64951         * modules/unistd-safer (Files): Add lib/fd-safer.c
64952         (Makefile.am): Remove lib_SOURCES.
64953
64954         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
64955         Remove fcntl-safer; unistd-safer supersedes it.
64956
64957 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
64958
64959         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
64960         AC_HEADER_STAT.
64961         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
64962         (gl_PREREQ_CHOWN): Remove.
64963         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
64964         it.  Don't require AC_HEADER_STAT.
64965         (gl_PREREQ_LSTAT): Remove.
64966         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
64967         Don't require AC_HEADER_STAT.
64968         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
64969         (gl_PREREQ_RMDIR): Remove.
64970         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
64971         mention stat-macros.h or AC_HEADER_STAT, since we'll make
64972         the stat-macros module a prerequisite.
64973         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
64974         * m4/filemode.m4 (gl_FILEMODE): Likewise.
64975         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
64976         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
64977         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
64978         variable names.
64979         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
64980         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
64981         variable prefixes.
64982         * m4/fcntl-safer.m4: Remove.
64983         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
64984         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
64985         Invoke gl_PREREQ_FD_SAFER.
64986         (gl_PREREQ_FD_SAFER): New macro.
64987         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
64988         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
64989         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
64990         Remove duplicate call to AC_LIBOBJ(readutmp).
64991         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
64992
64993         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
64994         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
64995
64996 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
64997
64998         * MODULES.html.sh (Misc): Add byteswap.
64999
65000 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
65001
65002         * modules/getcwd (Depends-on): Add extensions.
65003         * modules/openat (Depends-on): Likewise.
65004
65005 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
65006
65007         * modules/byteswap: New file.
65008
65009 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
65010
65011         * m4/byteswap.m4: New file.
65012
65013 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
65014
65015         * lib/byteswap_.h: New file.
65016
65017 2005-04-25  Karl Berry  <karl@gnu.org>
65018
65019         * m4/gettext.m4: Update from GNU gettext 0.14.4.
65020
65021 2005-04-25  Albert Chin  <china@thewrittenword.com>
65022
65023         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
65024         Toolkit C bug.
65025
65026 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
65027
65028         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
65029         (func_ln_if_changed) Remove forcibly for no error message
65030         in case file does not exist.
65031
65032 2005-04-19  Simon Josefsson  <jas@extundo.com>
65033
65034         * gnulib-tool (Options): Make --symlink mean --symbolic.
65035
65036 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
65037
65038         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
65039
65040 2005-04-16  Simon Josefsson  <jas@extundo.com>
65041
65042         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
65043
65044 2005-04-15  Simon Josefsson  <jas@extundo.com>
65045
65046         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
65047
65048 2005-04-15  Simon Josefsson  <jas@extundo.com>
65049
65050         * gnulib-tool: Rename --symlink to --symbolic.
65051
65052 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
65053
65054         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
65055         symbolic links to files instead of copying/moving.  Add --aux-dir,
65056         specifying directory relative --dir where auxiliary build tools
65057         are placed.
65058
65059 2005-04-14  Bruno Haible  <bruno@clisp.org>
65060
65061         * modules/allocsa (License): Change to LGPL.
65062         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
65063
65064 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
65065
65066         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
65067         that "UTC +1 second" continues to work.  Problem reported
65068         by Dmitry V. Levin.
65069         (relunit_snumber): New rule.
65070         (relunit): Use it.
65071
65072 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
65073
65074         * lib/getdate.y (universal_time_zone_table): New constant.
65075         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
65076         universal_time_zone_table.
65077         (lookup_zone): Prefer universal_time_zone_table to
65078         local_time_zone_table, so that "GMT" time stamps are allowed in
65079         London during the summer.  Problem reported by Ian Abbott.
65080
65081 2005-04-12  Jim Meyering  <jim@meyering.net>
65082
65083         * lib/human.c (humblock): Set *options even when returning due to
65084         xstrtoumax conversion failure.  Thanks to a used-uninitialized
65085         warning from gcc-4.
65086
65087 2005-04-09  Jim Meyering  <jim@meyering.net>
65088
65089         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
65090         -Wuninitialized: initialize tm0.tm_year.
65091
65092 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
65093
65094         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
65095         count, since there's no maximum.  All uses changed.
65096         Add member dsts_seen.
65097         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
65098         not being INT_MAX.
65099         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
65100         Use pc_rels_seen to decide whther a date is absolute.
65101
65102         * lib/getdate.y (number): Don't overwrite year.
65103         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
65104         check.
65105
65106 2005-04-02  Simon Josefsson  <jas@extundo.com>
65107
65108         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
65109         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
65110
65111 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
65112
65113         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
65114         where no absolute path name can be longer than PATH_MAX.
65115
65116 2005-03-27  Jim Meyering  <jim@meyering.net>
65117
65118         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
65119
65120 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
65121
65122         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
65123         "one's complement" -> "ones' complement" in comment, as per Knuth.
65124         "value of type" -> "type or expression" in comment.
65125         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
65126
65127 2005-03-26  Jim Meyering  <jim@meyering.net>
65128
65129         Comment nits.
65130         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
65131         Correct typos: s/or/of/.
65132
65133 2005-03-26  Jim Meyering  <jim@meyering.net>
65134
65135         * modules/check-include-files: Move to ../ and rename to...
65136         * check-module: ...this.
65137
65138 2005-03-25  Jim Meyering  <jim@meyering.net>
65139
65140         * modules/xvasprintf (Files): Add xalloc.h.
65141
65142 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
65143
65144         * modules/gettext (Files): config/config.rpath ->
65145         build-aux/config.rpath
65146         * modules/iconv (Files): Likewise.
65147         Problem reported by Oskar Liljeblad.
65148
65149 2005-03-23  Jim Meyering  <jim@meyering.net>
65150
65151         * modules/check-include-files: New script to check for
65152         missing dependencies, multiple includes, etc.
65153
65154         * modules/c-strtold (Depends-on): Add xalloc.
65155         * modules/c-strtod (Depends-on): Add xalloc.
65156         * modules/hash (Depends-on): Add xalloc.
65157         (Files): Remove lib/xalloc.h.
65158
65159         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
65160         * modules/userspec (Files): Add lib/inttostr.h.
65161
65162 2005-03-23  Jim Meyering  <jim@meyering.net>
65163
65164         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
65165
65166 2005-03-22  Jim Meyering  <jim@meyering.net>
65167
65168         * modules/stat-macros: New module.
65169         * modules/canonicalize, modules/euidaccess, modules/file-type,
65170         * modules/filemode, modules/lchown, modules/makepath,
65171         * modules/rmdir, modules/stat: Depend on new stat-macros module
65172         rather than listing lib/stat-macros.h manually.
65173         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
65174
65175 2005-03-22  Jim Meyering  <jim@meyering.net>
65176
65177         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
65178
65179 2005-03-22  Bruno Haible  <bruno@clisp.org>
65180
65181         * config/srclist.txt: Replace target directory 'config' with
65182         'build-aux'.
65183         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
65184         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
65185         ../build-aux/.
65186
65187 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
65188
65189         * modules/chdir-long (Depends-on): Add mempcpy.
65190
65191         * modules/acl, modules/backupfile, modules/c-strtod,
65192         modules/c-strtold, modules/canon-host, modules/canonicalize,
65193         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
65194         modules/exclude, modules/exitfail, modules/file-type,
65195         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
65196         modules/getdate, modules/getline, modules/getpagesize,
65197         modules/getpass, modules/getugroups, modules/group-member,
65198         modules/hard-locale, modules/hash, modules/human, modules/idcache,
65199         modules/inttostr, modules/long-options, modules/makepath,
65200         modules/md5, modules/memcasecmp, modules/memcoll,
65201         modules/modechange, modules/mountlist, modules/path-concat,
65202         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
65203         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
65204         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
65205         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
65206         modules/strftime, modules/strndup, modules/strverscmp,
65207         modules/timespec, modules/unlocked-io, modules/userspec,
65208         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
65209         modules/yesno:
65210         Remove lib_SOURCES line from Makefile.am section, as this is now
65211         done automatically by the corresponding Autoconf macro.
65212
65213 2005-03-21  Jim Meyering  <jim@meyering.net>
65214
65215         Changes imported from coreutils.
65216
65217         * lib/cycle-check.c: Don't include xalloc.h.
65218
65219         * lib/path-concat.c: Don't include assert.h.
65220         (path_concat): Remove assertion that would have triggered
65221         for ABASE starting with more than one slash.
65222         Reported by Andreas Schwab.
65223
65224         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
65225         properly when ABASE is an absolute file name.
65226         Correct the description of this function.
65227         Include <assert.h>.
65228         Add an assertion and a test driver.
65229         This fixes a bug introduced on 2004-07-02.
65230         Andreas Schwab reported the resulting failure of cp --parents:
65231         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
65232
65233 2005-03-21  Jim Meyering  <jim@meyering.net>
65234
65235         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
65236         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
65237
65238 2005-03-21  Jim Meyering  <jim@meyering.net>
65239         and  Paul Eggert  <eggert@cs.ucla.edu>
65240
65241         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
65242         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
65243         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
65244         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
65245         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
65246         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
65247         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
65248         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
65249         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
65250         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
65251         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
65252         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
65253         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
65254         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
65255         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
65256         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
65257         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
65258         for these modules.
65259
65260 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
65261
65262         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
65263         (which shouldn't happen), generate nothing instead of returning 0
65264         immediately, so that nstrftime (NULL, ...) doesn't return 0.
65265
65266 2005-03-16  Bruno Haible  <bruno@clisp.org>
65267
65268         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
65269         HAVE_LONGLONG_64BIT.
65270
65271 2005-03-16  Bruno Haible  <bruno@clisp.org>
65272
65273         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
65274         HAVE_LONGLONG_64BIT.
65275
65276 2005-03-16  Bruno Haible  <bruno@clisp.org>
65277
65278         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
65279         HAVE_LONGLONG_64BIT.
65280
65281 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
65282
65283         * lib/strftime.c (my_strftime): Prepend space to format so that we can
65284         reliably distinguish strftime failure from empty output on POSIX
65285         hosts.
65286
65287 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
65288
65289         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
65290         (iconv_string): Don't guess a size-zero buffer, as that might cause
65291         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
65292         result would be 'too large', where 'too large' is (heuristically)
65293         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
65294         overflow concerns.  This will prevent some unwanted malloc failures
65295         when the inputs are very large.
65296
65297 2005-03-15  Karl Berry  <karl@gnu.org>
65298
65299         * config/srclist.txt (config.rpath): from gettext.
65300         * config/config.rpath: update.
65301
65302 2005-03-15  Bruno Haible  <bruno@clisp.org>
65303
65304         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
65305         to 'negate'.
65306
65307         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
65308         variable.
65309
65310         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
65311         results.
65312
65313 2005-03-14  Simon Josefsson  <jas@extundo.com>
65314
65315         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
65316         <fx@gnu.org>.
65317
65318 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
65319
65320         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
65321         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
65322         intprops.h.
65323         * lib/strtol.c: Likewise.
65324
65325 2005-03-14  Jim Meyering  <jim@meyering.net>
65326
65327         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
65328         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
65329         to be nonzero so that we (and caller) can detect the difference
65330         between a valid zero-length expansion and an error return, even
65331         when the underlying strftime fails before writing anything into
65332         that location.
65333
65334 2005-03-14  Bruno Haible  <bruno@clisp.org>
65335
65336         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
65337         Update from GNU gettext 0.14.3.
65338
65339 2005-03-10  Jim Meyering  <jim@meyering.net>
65340
65341         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
65342
65343 2005-03-10  Jim Meyering  <jim@meyering.net>
65344
65345         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
65346         so that this module works on systems without fchdir.
65347
65348 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
65349
65350         Factor int-properties macros into a single file, except for
65351         glibc-related files.
65352         * lib/intprops.h: New file.
65353         * lib/getloadavg.c: Include it instead of limits.h.
65354         (INT_STRLEN_BOUND): Remove.
65355         * lib/human.c: Include intprops.h.
65356         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
65357         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
65358         302/1000.
65359         * lib/inttostr.h: Include intprops.h instead of limits.h.
65360         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
65361         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
65362         for consistency with intprops.h.
65363         (time_t_is_integer, twos_complement_arithmetic): Use them.
65364         * lib/sig2str.h: Include <signal.h>, intprops.h.
65365         (INT_STRLEN_BOUND): Remove.
65366         * lib/strftime.c (TYPE_SIGNED): Remove.
65367         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
65368         * lib/strtol.c: Adjust comments to match intprops.h.
65369         * lib/userspec.c: Include intprops.h.
65370         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
65371         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
65372         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
65373         instead of rolling our own expressions.
65374         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
65375
65376         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
65377         instead of int.
65378         (my_strftime): Do not mishandle years close to INT_MAX, by doing
65379         the right thing even if adding 1900 would overflow.  Similarly
65380         for tm_mon + 1 and tm_yday + 1.
65381         Make %Y always equivalent to %C%y, and similarly for %G and %g.
65382         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
65383         (DO_SIGNED_NUMBER): New macro.
65384         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
65385
65386 2005-03-07  Bruno Haible  <bruno@clisp.org>
65387
65388         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
65389
65390 2005-03-07  Bruno Haible  <bruno@clisp.org>
65391
65392         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
65393
65394 2005-03-04  Derek R. Price  <derek@ximbiot.com>
65395
65396         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
65397         (func_import): Only replace files via --import when they have actually
65398         changed.
65399
65400 2005-03-03  Derek R. Price  <derek@ximbiot.com>
65401
65402         * m4/mmap-anon.m4: New file.
65403         * m4/pagealign_alloc.m4: New file.
65404
65405 2005-03-03  Derek R. Price  <derek@ximbiot.com>
65406             Bruno Haible  <bruno@clisp.org>
65407
65408         * modules/pagealign_alloc: New file.
65409         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
65410
65411 2005-03-03  Derek R. Price  <derek@ximbiot.com>
65412             Bruno Haible  <bruno@clisp.org>
65413
65414         * lib/pagealign_alloc.h: New file.
65415         * lib/pagealign_alloc.c: New file.
65416
65417 2005-03-03  Bruno Haible  <bruno@clisp.org>
65418
65419         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
65420         Use an all-permissive copyright notice, recommended by RMS.
65421
65422 2005-03-02  Bruno Haible  <bruno@clisp.org>
65423
65424         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
65425         of AIX, the replacement has to be done only after <string.h> is
65426         included, therefore not in config.h. stpncpy.h does the replacement,
65427         and stpncpy.c uses it.
65428
65429 2005-03-02  Bruno Haible  <bruno@clisp.org>
65430
65431         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
65432         stpncpy.c uses it.
65433
65434 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
65435
65436         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
65437         The workaround isn't strictly needed for POSIX conformance, and
65438         it's too much of a pain to configure and maintain.  We'll ask
65439         people to fix their kernels instead.
65440         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
65441         (NANOSLEEP_BUG_WORKAROUND): Remove.
65442         (xnanosleep): Remove the workaround.
65443
65444 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
65445
65446         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
65447         Reported by Derek Price.
65448         (Include): Add "timespec.h".
65449
65450         * modules/xnanosleep (Depends-on): Remove gethrxtime.
65451
65452 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
65453
65454         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
65455         to detect nanosleep bug.
65456
65457 2005-03-01  Bruno Haible  <bruno@clisp.org>
65458
65459         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
65460
65461 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
65462
65463         * modules/gethrxtime: New file.
65464         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
65465         (Depends-on): Add gethrxtime.
65466         (configure.ac): Add gl_XNANOSLEEP.
65467         (Makefile.am): Remove lib_SOURCES line.
65468
65469 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
65470
65471         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
65472         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
65473
65474 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
65475
65476         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
65477         * lib/timespec.h (gettime): Return void, since it always
65478         succeeds now.  All uses changed.
65479         * lib/gettime.c (gettime) Likewise.
65480         [HAVE_NANOTIME]: Prefer nanotime.
65481         Assume gettimeofday succeeds, as POSIX requires.
65482         Assime time () succeeds, since other code already does.
65483         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
65484         (timespec_subtract): Remove.
65485         (NANOSLEEP_BUG_WORKAROUND): New constant.
65486         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
65487         things considerably.  Use it only on GNU/Linux hosts, since the
65488         workaround shouldn't be needed elsewhere.
65489
65490 2005-02-24  Bruno Haible  <bruno@clisp.org>
65491
65492         * modules/gettext (Files): Add m4/glibc2.m4.
65493
65494 2005-02-24  Bruno Haible  <bruno@clisp.org>
65495
65496         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
65497         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
65498         * m4/progtest.m4:
65499         Update from GNU gettext 0.14.2.
65500         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
65501
65502 2005-02-24  Bruno Haible  <bruno@clisp.org>
65503
65504         * lib/localcharset.c: Update from GNU gettext 0.14.2.
65505         * lib/config.charset: Update from GNU gettext 0.14.2.
65506
65507 2005-02-24  Bruno Haible  <bruno@clisp.org>
65508
65509         * lib/gettext.h: Update from GNU gettext 0.14.2.
65510
65511 2005-02-23  Simon Josefsson  <jas@extundo.com>
65512
65513         * m4/iconvme.m4: New file.
65514
65515 2005-02-23  Jim Meyering  <jim@meyering.net>
65516
65517         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
65518         change.
65519         Thanks to Bruno Haible for catching it.
65520
65521 2005-02-22  Simon Josefsson  <jas@extundo.com>
65522
65523         * modules/iconvme: New file.
65524
65525         * MODULES.html.sh: Add iconvme.
65526
65527 2005-02-22  Simon Josefsson  <jas@extundo.com>
65528
65529         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
65530
65531 2005-02-22  Simon Josefsson  <jas@extundo.com>
65532
65533         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
65534
65535 2005-02-22  Jim Meyering  <jim@meyering.net>
65536
65537         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
65538         s/ifndef/ifdef/.
65539
65540 2005-02-20  Neil Conway  <neilc@samurai.com>
65541
65542         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
65543         returned by OSX/Darwin if the specified buffer is not large
65544         enough for the hostname.
65545
65546 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
65547
65548         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
65549         pass it to _help, otherwise the latter coredumps trying to
65550         dereference state.root_argp.
65551
65552 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
65553
65554         * modules/chdir-long (Depends-on): Add memrchr.
65555         * modules/memrchr (Files): Add lib/memrchr.h.
65556         (Include): "memrchr.h".
65557
65558 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
65559
65560         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
65561
65562 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
65563
65564         * lib/memrchr.h: New file.
65565         * lib/chdir-long.c: Include it.
65566         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
65567         Don't bother including stddef.h.
65568
65569 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
65570
65571         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
65572         inclusion.
65573         Include <sys/types.h>, for dev_t.
65574         (ME_DUMMY, ME_REMOTE): Move from here....
65575         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
65576         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
65577         Dmitry V. Levin.
65578         Include mountlist.h first, to test the interface.
65579
65580 2005-01-29  Bruno Haible  <bruno@clisp.org>
65581
65582         * lib/progname.c (program_name): Initialize.
65583         Needed when linking statically on MacOS X.
65584
65585 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
65586
65587         Sync from coreutils.
65588         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
65589         (Depends-on): Add c-strtod.
65590         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
65591
65592 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
65593
65594         Sync from coreutils.
65595         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
65596
65597         Remove files that are specific to coreutils.
65598         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
65599
65600 2005-01-28  Bruno Haible  <bruno@clisp.org>
65601
65602         * modules/javacomp: New file.
65603         * MODULES.html.sh (Java): Add javacomp.
65604
65605 2005-01-28  Bruno Haible  <bruno@clisp.org>
65606
65607         * m4/javacomp.m4: New file, from GNU gettext.
65608
65609 2005-01-28  Bruno Haible  <bruno@clisp.org>
65610
65611         * lib/javacomp.sh.in: New file, from GNU gettext.
65612         * lib/javacomp.h: New file, from GNU gettext.
65613         * lib/javacomp.c: New file, from GNU gettext.
65614
65615 2005-01-26  Simon Josefsson  <jas@extundo.com>
65616
65617         * lib/gai_strerror.c: Use GPL in header.
65618
65619 2005-01-26  Bruno Haible  <bruno@clisp.org>
65620
65621         * modules/javaexec: New file.
65622         * MODULES.html.sh (Java): Add javaexec.
65623
65624 2005-01-26  Bruno Haible  <bruno@clisp.org>
65625
65626         * m4/javaexec.m4: New file, from GNU gettext.
65627
65628 2005-01-26  Bruno Haible  <bruno@clisp.org>
65629
65630         * lib/javaexec.sh.in: New file, from GNU gettext.
65631         * lib/javaexec.h: New file, from GNU gettext.
65632         * lib/javaexec.c: New file, from GNU gettext.
65633
65634 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
65635
65636         * modules/lchown (Depends-on): Remove lchown.h
65637
65638 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
65639
65640         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
65641         must be defined if the header file was not found, in order
65642         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
65643
65644 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
65645
65646         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
65647         initializers for struct pentry_state.
65648         (__argp_error): Check return value of __asprintf
65649         (__argp_failure): Translate error message
65650
65651         * lib/argp-parse.c: Removed braces around the expansion of N_()
65652
65653 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
65654
65655         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
65656         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
65657         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
65658         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
65659         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
65660         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
65661         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
65662         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
65663         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
65664         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
65665         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
65666         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
65667         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
65668         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
65669         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
65670         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
65671         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
65672         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
65673         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
65674         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
65675         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
65676         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
65677         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
65678         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
65679         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
65680         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
65681         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
65682         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
65683         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
65684         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
65685         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
65686         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
65687         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
65688         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
65689         xstrtol.m4, xstrtoumax.m4, yesno.m4:
65690         Use an all-permissive copyright notice, recommended by RMS.
65691
65692 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
65693
65694         * modules/chdir-long (Depends-on): Remove mempcpy.
65695
65696 2005-01-21  Jim Meyering  <jim@meyering.net>
65697
65698         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
65699         same value as for Solaris 9.
65700
65701         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
65702         component length.  This included changing the parameter to be
65703         of type `char *' rather than `char const *'.
65704         * lib/chdir-long.h (chdir_long): Update prototype.
65705
65706         * lib/openat.c (fdopendir, fstatat): New functions.
65707         * lib/openat.h: Include headers required for use of DIR and struct
65708         stat.
65709         [AT_SYMLINK_NOFOLLOW]: Define.
65710         (fdopendir, fstatat): Add prototypes.
65711
65712 2005-01-21  Bruno Haible  <bruno@clisp.org>
65713
65714         * modules/classpath: New file.
65715         * MODULES.html.sh (Java): Add classpath.
65716
65717 2005-01-21  Bruno Haible  <bruno@clisp.org>
65718
65719         * lib/classpath.h: New file, from GNU gettext.
65720         * lib/classpath.c: New file, from GNU gettext.
65721
65722 2005-01-20  Simon Josefsson  <jas@extundo.com>
65723
65724         * modules/version-etc-fsf: New file.
65725
65726 2005-01-20  Simon Josefsson  <jas@extundo.com>
65727
65728         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
65729         * lib/version-etc.c: Remove version_etc_copyright.
65730         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
65731         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
65732
65733 2005-01-20  Simon Josefsson  <jas@extundo.com>
65734
65735         * lib/base64.h (isbase64): Add.
65736
65737         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
65738         using a unsigned prototype, don't inline.
65739         (base64_decode): Use it.
65740
65741 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
65742
65743         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
65744         it.
65745
65746 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
65747
65748         * lib/save-cwd.c (save_cwd): Remove code to support the case
65749         where fchdir is missing or flaky.
65750
65751 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
65752
65753         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
65754
65755 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
65756
65757         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
65758         AC_LIBSOURCES now does this.
65759         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
65760         with new ullong_max module.
65761
65762 2005-01-19  Bruno Haible  <bruno@clisp.org>
65763
65764         * modules/sh-quote: New file.
65765         * MODULES.html.sh (Executing programs): Add sh-quote.
65766
65767 2005-01-19  Bruno Haible  <bruno@clisp.org>
65768
65769         * lib/sh-quote.h: New file, from GNU gettext.
65770         * lib/sh-quote.c: New file, from GNU gettext.
65771
65772 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
65773
65774         Merge from coreutils.
65775         * m4/ullong_max.m4: New file.
65776         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
65777         (gl_MACROS): Assume localeconv exists.
65778
65779 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
65780
65781         Merge changes from coreutils, as described below in several
65782         changelogs dated today.
65783
65784         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
65785         (O_DIRECTORY): Remove; not needed here, since "." must be
65786         a directory.  All uses removed.
65787         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
65788         universal on Suns, and we also need to test for IRIX.
65789         Revamp code to use 'if' rather than '#if'.
65790         Avoid unnecessary comparison of cwd->desc to 0.
65791
65792         * lib/utimens.c (futimens): Robustify the previous patch, by checking
65793         for known valid error numbers rather than observed invalid ones.
65794
65795 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
65796
65797         * modules/ullong_max: New file.
65798
65799         * modules/chdir-long, modules/openat: New files.
65800         * modules/save-cwd (Depends-on): Depend on chdir-long.
65801         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
65802
65803 2005-01-18  Jim Meyering  <jim@meyering.net>
65804
65805         Merge from coreutils.
65806         * m4/chdir-long.m4, m4/openat.m4: New files.
65807         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
65808         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
65809         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
65810         is sane and DOES follow symlinks.  Besides, testing 20 different
65811         systems found no broken chown implementations.
65812         Prompted by a change in rsync's copy of this macro.
65813         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
65814
65815         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
65816
65817         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
65818         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
65819         NULL-means-set-to-current-time semantics.
65820         Remove temporary file immediately, rather than waiting
65821         for configure's at-exit trap code to do it.
65822
65823 2005-01-18  Jim Meyering  <jim@meyering.net>
65824
65825         * lib/version-etc.c (version_etc_copyright): Update copyright date.
65826
65827         * lib/utimens.c (futimens): Account for the fact that futimes
65828         can also fail with errno == ENOSYS or errno == ENOENT.
65829         Patch from Dmitry V. Levin.
65830
65831         Change the name of the robust chdir function from chdir to chdir_long.
65832         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
65833         (restore_cwd): Use chdir_long, not chdir.
65834         * lib/chdir-long.c: Renamed from chdir.c.
65835         * lib/chdir-long.h: Renamed from chdir.h.
65836         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
65837         Hurd.
65838
65839 2005-01-18  Bruno Haible  <bruno@clisp.org>
65840
65841         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
65842         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
65843         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
65844         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
65845         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
65846         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
65847         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
65848         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
65849         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
65850         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
65851         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
65852         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
65853         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
65854         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
65855         Use an all-permissive copyright notice, recommended by RMS.
65856
65857 2005-01-18  Bob Proulx  <bob@proulx.com>
65858
65859         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
65860         simplify offsetof() macro construct to avoid compile failure with
65861         native HP-UX 11.0 ANSI C compiler.
65862
65863 2005-01-17  Bruno Haible  <bruno@clisp.org>
65864
65865         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
65866         redundant because stpncpy.m4 takes care of it.
65867
65868 2005-01-17  Bruno Haible  <bruno@clisp.org>
65869
65870         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
65871
65872 2005-01-17  Bruno Haible  <bruno@clisp.org>
65873
65874         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
65875         used.
65876
65877 2005-01-17  Bruno Haible  <bruno@clisp.org>
65878
65879         * lib/fwriteerror.h (fwriteerror): Change specification to include
65880         fclose.
65881         * lib/fwriteerror.c: Include <stdbool.h>.
65882         (fwriteerror): At the end, close the file stream. Record whether
65883         stdout was already closed.
65884
65885 2005-01-17  Bruno Haible  <bruno@clisp.org>
65886
65887         * lib/execute.c (environ): Declare if needed.
65888         * lib/pipe.c (environ): Likewise.
65889         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
65890
65891 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
65892
65893         * modules/argp: Depend on vsnprintf
65894
65895 2005-01-10  Jim Meyering  <jim@meyering.net>
65896
65897         * modules/closeout (Depends-on): Add atexit.
65898
65899 2005-01-06  Bruno Haible  <bruno@clisp.org>
65900
65901         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
65902
65903 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
65904
65905         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
65906         definitions to be after all include files, to avoid collisions.
65907         Problem reported by Bob Proulx.
65908
65909 2005-01-04  Jim Meyering  <jim@meyering.net>
65910
65911         Changes imported from coreutils.
65912         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
65913         as the mkstemp template, use a temporary directory and an
65914         8.3-friendly template to avoid trouble on systems like DJGPP.
65915         Reported by Juan M. Guerrero via Stepan Kasal.
65916         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
65917         close. Remove the temporary directory right away, rather than waiting
65918         for configure's at-exit trap code to do it.
65919         Suggestion from Stepan Kasal.
65920
65921 2005-01-01  Simon Josefsson  <jas@extundo.com>
65922
65923         * gnulib-tool: Print #include directives when --import'ing.
65924
65925 2004-12-28  Simon Josefsson  <jas@extundo.com>
65926
65927         * tests/test-base64.c: Include required header files.  Remove
65928         unused variables.
65929
65930 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
65931
65932         * modules/error (Depends-on): Remove gettext.
65933
65934 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
65935
65936         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
65937         not needed.  This removes a dependency on the gettext module.
65938         [defined _LIBC]: Do not include <libintl.h>; not needed.
65939
65940 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
65941
65942         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
65943         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
65944
65945 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
65946
65947         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
65948         HAVE_DECL_STRTOLD.
65949
65950 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
65951
65952         * modules/getdate (Depends-on): Remove alloca-opt.
65953
65954 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
65955
65956         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
65957
65958 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
65959
65960         * lib/argp-parse.c: Include <stddef.h>.
65961         (alignof, alignto): New macros.
65962         (parser_init): Don't assume that void * is aligned sufficiently
65963         for struct option.
65964
65965         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
65966         need to extend the stack.
65967         (YYINITDEPTH): New macro, so that the initial stack isn't overly
65968         large.
65969
65970 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
65971
65972         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
65973
65974 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
65975
65976         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
65977         (2004-10-24) change.  Apparently this was a false alarm.
65978
65979         * modules/getdate: Depend on alloca-opt, not alloca.
65980
65981 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
65982
65983         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
65984         Remove now-obsolete comment about AIX.
65985         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
65986         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
65987         (YYMAXDEPTH): New macro.
65988
65989 2004-12-18  Simon Josefsson  <jas@extundo.com>
65990
65991         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
65992
65993 2004-12-18  Bruno Haible  <bruno@clisp.org>
65994
65995         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
65996
65997 2004-12-18  Bruno Haible  <bruno@clisp.org>
65998
65999         * lib/fatal-signal.c (fatal_signals): Make non-const.
66000         (init_fatal_signals): New function.
66001         (uninstall_handlers, install_handlers): Ignore signals that were set to
66002         SIG_IGN.
66003         (at_fatal_signal): Call init_fatal_signals.
66004         (init_fatal_signal_set): Likewise. Ignore signals that were set to
66005         SIG_IGN.
66006         Reported by Paul Eggert.
66007
66008 2004-12-18  Bruno Haible  <bruno@clisp.org>
66009
66010         * doc/alloca.texi: New file.
66011         * doc/alloca-opt.texi: New file.
66012
66013 2004-12-17  Jim Meyering  <jim@meyering.net>
66014
66015         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
66016         Otherwise, install-sh could exit with improper exit status when
66017         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
66018
66019 2004-12-16  Simon Josefsson  <jas@extundo.com>
66020
66021         * tests/test-base64.c: Add license.
66022
66023 2004-12-15  Stepan Kasal  <address@hidden>
66024
66025         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
66026
66027 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
66028
66029         * modules/getcwd (Files): Add m4/d-ino.m4.
66030         Suggested by Mark D. Baushke.
66031
66032 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
66033
66034         * lib/getdate.y (textint): New member "negative".
66035         (time_zone_hhmm): New function.
66036         Expect 14 shift-reduce conflicts, not 13.
66037         (o_colon_minutes): New rule.
66038         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
66039         (yylex): Set the "negative" member of signed numbers.
66040
66041 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
66042
66043         * doc/getdate.texi (Time of day items, Time zone items):
66044         Describe new formats +00:00, UTC+00:00.
66045
66046 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
66047
66048         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
66049         spurious "-l"s.  Problem reported by Stepan Kasal.
66050
66051 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
66052
66053         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
66054         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
66055
66056 2004-12-04  Simon Josefsson  <jas@extundo.com>
66057
66058         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
66059         Vandoorselaere <yoann@prelude-ids.org>.
66060
66061 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
66062
66063         Changes imported from coreutils.
66064         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
66065         exist.
66066         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
66067
66068 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
66069
66070         Changes imported from coreutils.
66071         * lib/hard-locale.c: Assume <locale.h> exists.
66072         Include "strdup.h".
66073         (GLIBC_VERSION): New macro.
66074         (hard_locale): Assume setlocale exists.
66075         Rewrite to avoid #ifdef.
66076         Use strdup rather than malloc + strcpy.
66077         * lib/human.c: Assume <locale.h> exists.
66078         (human_readable): Assume localeconv exists.
66079
66080 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
66081
66082         * modules/hard-locale (Depends-on): Add strdup.
66083
66084 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
66085
66086         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
66087         convert T2, not T.  (Imported from libc.)
66088
66089 2004-11-30  Simon Josefsson  <jas@extundo.com>
66090
66091         * modules/restrict (License): Change to LGPL.
66092
66093 2004-11-30  Simon Josefsson  <jas@extundo.com>
66094
66095         * m4/restrict.m4: Add copyright and copying conditions.
66096
66097 2004-11-30  Simon Josefsson  <jas@extundo.com>
66098
66099         * m4/base64.m4: New file.
66100
66101 2004-11-30  Simon Josefsson  <jas@extundo.com>
66102
66103         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
66104         base64.
66105
66106         * tests/test-base64.c: New file.
66107
66108         * modules/base64: New file.
66109
66110 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
66111
66112         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
66113         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
66114
66115         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
66116
66117 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
66118
66119         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
66120         (__getcwd.c): Don't restore errno; glibc doesn't.
66121         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
66122         first, falling back to our code only if its results look suspicious.
66123         Ensure that the resulting buffer is only as large as necessary.
66124
66125         * lib/readutmp.c: Include readutmp.h first.
66126         Include <errno.h>, since readutmp.h no longer does that.
66127         * lib/readutmp.h: Don't include <errno.h>,
66128         <sys/param.h>, <time.h>; not needed to establish interface.
66129         (errno): Remove decl.
66130         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
66131         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
66132         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
66133
66134 2004-11-28  Simon Josefsson  <jas@extundo.com>
66135
66136         * lib/base64.h, base64.c: New file.
66137
66138 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
66139
66140         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
66141
66142 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
66143
66144         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
66145         (Depends-on): Remove pathmax, same.  Add mempcpy.
66146         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
66147         (Makefile.am): Append getcwd.h to lib_SOURCES.
66148         (Include): Add getcwd.h.
66149         (Maintainer): Change from Jim Meyering to "all, glibc",
66150         since getdate now uses intended-for-glibc code.
66151         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
66152         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
66153
66154 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
66155
66156         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
66157         HP's ANSI C compiler.
66158         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
66159         Declaring int functions causes warnings on some modern systems and
66160         shouldn't be needed to compile on ancient ones.
66161         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
66162         defined.
66163
66164         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
66165         with the following changes.
66166         (__set_errno): Parenthesize properly.
66167         Include <stdbool.h>.
66168         (MIN, MAX, MATCHING_INO): New macros.
66169         (__getcwd): Define with prototype, not K&R form.
66170         Use heuristics to allocate default buffer on stack if possible.
66171         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
66172         behavior, and to avoid the PATH_MAX limit when computing
66173         ../../../../...
66174         Use MATCHING_INO to compare inode number to file.
66175         Check for arithmetic overflow in size calculations.
66176         Fix bug in reallocation of dot array that caused getcwd to fail
66177         on directories nested deeper than 75.
66178         Be more careful about saving errno on error.
66179         Do not use realloc; use only free+malloc, as this is a bit
66180         more flexible and avoids a needless copy operation.
66181         Do not inspect st_dev and st_ino for symbolic links; POSIX
66182         doesn't specify the latter.
66183         Check for closedir errors.
66184         Avoid needless casts.
66185         Use "#ifdef weak_alias" around weak_alias, to be like other
66186         glibc code.
66187         The following changes to getcwd.c have effect only when used in
66188         gnulib; they have no effect inside glibc proper.
66189         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
66190         as alloca isn't used.
66191         (alloca, __alloca): Likewise.
66192         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
66193         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
66194         unconditionally, as gnulib assumes C89 or better.
66195         Do not include <sys/param.h>.
66196         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
66197         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
66198         better.
66199         (NULL) [!defined NULL]: Remove; we assume C89 or better.
66200         Include <dirent.h> in a way that is compatible with modern Autoconf.
66201         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
66202         New macros, if not already defined.
66203         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
66204         Use "_LIBC", not "defined _LIBC", for consistency.
66205         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
66206         a mempcpy module.
66207         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
66208         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
66209         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
66210         credit only to Jim Meyering and adjust the copyright dates.
66211         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
66212         <stdlib.h>, <unistd.h>, "pathmax.h".
66213         Instead, include "xgetcwd.h" (first) and "getcwd.h".
66214         (INITIAL_BUFFER_SIZE): Remove.
66215         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
66216
66217 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
66218
66219         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
66220         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
66221         Use the _ONCE methods, for efficiency.
66222         Check for fcntl.h.  In test program, include <errno.h>
66223         and <fcntl.h> if available.  Remove old K&R cruft from
66224         test program.  Check for common errors in GNU/Linux,
66225         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
66226         don't do AC_LIBOBJ, as that's getcwd.m4's job.
66227         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
66228         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
66229         name accordingly.
66230         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
66231         accommodate new getcwd.c.
66232         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
66233         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
66234         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
66235         that's all we need now.
66236
66237 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
66238
66239         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
66240         argp-parse.c depends on getopt internals, that means we should
66241         always use our getopt, to be on the safe side.
66242         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
66243         order not to spoil the result of an eventual previous invocation
66244         of gl_GETOPT_SUBSTITUTE.
66245
66246 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
66247
66248         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
66249         redefinition warnings. To avoid them, include the defines
66250         in `#if !defined __need_getopt ... #endif'. The only place
66251         where __getopt_argv_const is used is in definitions
66252         of getopt_long and getopt_long_only below, which are as well
66253         protected by `#ifndef __need_getopt'.
66254         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
66255         __need_getopt after including <stdio.h> and <unistd.h> These
66256         headers might have defined it.
66257
66258 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
66259
66260         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
66261
66262 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
66263
66264         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
66265         (futimens): New function, which uses futimes if available.
66266         (futimens, utimens): Support timespec==NULL, with same semantics
66267         as utime and utimens.
66268         * lib/utimens.h (futimens): New decl.
66269
66270 2004-11-23  Jim Meyering  <jim@meyering.net>
66271
66272         * lib/getopt_.h: Remove trailing blanks.
66273
66274 2004-11-23  Jim Meyering  <jim@meyering.net>
66275
66276         * lib/__fpending.c: Add comment.
66277
66278 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
66279
66280         * modules/canonicalize (Depends-on): Add xreadlink.
66281         Problem reported by James Youngman.
66282
66283 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
66284
66285         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
66286         New macros.
66287         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
66288         optopt): Use them instead of invoking ## directly; otherwise, the
66289         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
66290
66291 2004-11-19  Bruno Haible  <bruno@clisp.org>
66292
66293         * lib/strtok_r.c: Move comments from here...
66294         * lib/strtok_r.h: ... to here.
66295
66296 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
66297
66298         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
66299         implementations that mishandle size_t overflow.
66300
66301 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
66302
66303         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
66304         might fail.  Problem reported by Yoann Vandoorselaere.
66305         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
66306         implementations that mishandle size_t overflow.
66307
66308 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
66309
66310         * modules/canon-host (Depends-on): Add strdup.
66311
66312 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
66313
66314         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
66315
66316 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
66317
66318         * lib/canon-host.c: Include "strdup.h".
66319         (canon_host): Use getaddrinfo if available, so that IPv6 works.
66320         Use strdup instead of malloc/strcpy to duplicate strings.
66321
66322         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
66323         (human_space_before_unit): New constant.
66324         * lib/human.c (human_readable): Support it.
66325
66326         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
66327         (xgetcwd): Set errno correctly when failing.
66328         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
66329         the failure is actually due to a PATH_MAX problem.
66330
66331         Further getopt changes to make it more likely that glibc will
66332         buy the changes back.
66333         * lib/getopt.c (POSIXLY_CORRECT): New constant.
66334         (getopt): Use it, so to preserve glibc semantic
66335         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
66336         when compiling for libc.
66337         * lib/getopt_.h (__getopt_argv_const): Bring it back.
66338         (getopt_long, getopt_long_only): Use it.
66339
66340         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
66341         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
66342         (getopt): Argv is now char * const *, as per standard.
66343         (_getopt_internal_r, _getopt_internal): Argv is now char **,
66344         not char *__getopt_argv_const *.
66345         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
66346         _getopt_long_only_r): Likewise.
66347         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
66348         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
66349         _getopt_long_r, _getopt_long_only_r): Likewise.
66350         * lib/getopt_.h (__getopt_argv_const): Remove.
66351         (getopt): Argv is now char * const *, as per standard.
66352
66353         * lib/getdate.y (tORDINAL): New token.
66354         (day, relunit): Allow it for relative times.
66355         (relative_time_table): Use tORDINAL for ordinals.
66356
66357 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
66358
66359         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
66360         Document that "second" isn't allowed as an ordinal number.
66361
66362 2004-11-16  Jim Meyering  <jim@meyering.net>
66363
66364         * modules/closeout (Depends-on): Add fpending.
66365
66366 2004-11-15  Jim Meyering  <jim@meyering.net>
66367
66368         * lib/closeout.c: Include "__fpending.h" once again.
66369         Include <stdbool.h>.
66370         (close_stdout): Don't fail just because stdout was closed initially,
66371         since some programs don't write to stdout in the normal course of
66372         operation (other than --version and --help), and we don't want this
66373         function to make e.g. `touch file >&-' fail.
66374         But do fail if it was closed and someone has tried to write to it.
66375         E.g., `printf foo >&-' must fail.
66376
66377 2004-11-13  Jim Meyering  <jim@meyering.net>
66378
66379         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
66380
66381 2004-11-12  Simon Josefsson  <jas@extundo.com>
66382
66383         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
66384         small doc fix is still pending.
66385
66386 2004-11-11  Simon Josefsson  <jas@extundo.com>
66387
66388         * modules/strtok_r: New file.
66389
66390         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
66391         strtok_r.
66392
66393 2004-11-11  Simon Josefsson  <jas@extundo.com>
66394
66395         * m4/strtok_r.m4: New file.
66396
66397         * m4/getopt.m4: Replace opterr.
66398
66399 2004-11-11  Simon Josefsson  <jas@extundo.com>
66400
66401         * lib/strtok_r.h, strtok_r.c: New file.
66402
66403 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
66404
66405         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
66406         of replacing opterr, getopt, etc.  This should handle the
66407         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
66408
66409 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
66410
66411         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
66412         we can stop lying to compilers about the constness of argv when we
66413         are compiled outside glibc.
66414         (getopt, getopt_long, getopt_long_only): Use it.
66415         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
66416         _getopt_internal, getopt): Likewise.
66417         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
66418         _getopt_long_only_r): Likewise.
66419         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
66420         _getopt_long_r, _getopt_long_only_r): Likewise.
66421
66422         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
66423         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
66424         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
66425         the other external symbols.
66426         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
66427         declaration, since the above renaming now works around collisions.
66428
66429 2004-11-11  Jim Meyering  <jim@meyering.net>
66430
66431         * lib/linebreak.c: Remove trailing blanks.
66432         * lib/alloca_.h: Likewise.
66433         * lib/acosl.c: Likewise.
66434         * lib/euidaccess.c: Likewise.
66435         * lib/allocsa.h: Likewise.
66436
66437 2004-11-10  Simon Josefsson  <jas@extundo.com>
66438
66439         * m4/getaddrinfo.m4: New file.
66440
66441 2004-11-10  Simon Josefsson  <jas@extundo.com>
66442
66443         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
66444
66445 2004-11-10  Simon Josefsson  <jas@extundo.com>
66446
66447         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
66448         getaddrinfo.
66449
66450         * modules/getaddrinfo: New file.
66451
66452 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
66453
66454         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
66455
66456 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
66457
66458         * lib/mktime.c (SHR): New macro, which is a portable
66459         substitute for >> that should work even on Crays.
66460         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
66461         Problem reported by Mark D. Baushke in
66462         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
66463         * lib/getdate.y (SHR): Likewise.
66464         (tm_diff): Use it.
66465         * lib/strftime.c (SHR): Likewise.
66466         (tm_diff): Use it.
66467         * lib/quotearg.c (struct quoting_options): Use unsigned int for
66468         quote_these_too, so that right shifts are well defined.  All uses
66469         changed.
66470
66471 2004-11-10  Jim Meyering  <jim@meyering.net>
66472
66473         Ensure that no close failure goes unreported.
66474         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
66475         return early when it seems there's nothing to flush.
66476         Don't include __fpending.h.
66477
66478 2004-11-10  Jim Meyering  <jim@meyering.net>
66479
66480         * modules/closeout (Depends-on): Remove fpending.
66481
66482 2004-11-10  Jim Meyering  <jim@meyering.net>
66483
66484         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
66485
66486 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
66487
66488         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
66489         gl_FUNC_STRFTIME.
66490         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
66491         and AC_REQUIRE when possible, to avoid duplicate checks.
66492         Check for <wchar.h>.
66493
66494 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
66495
66496         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
66497
66498 2004-11-09  Bruno Haible  <bruno@clisp.org>
66499
66500         * m4/sockpfaf.m4: New file.
66501
66502 2004-11-05  Bruno Haible  <bruno@clisp.org>
66503
66504         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
66505         Reported by Mark D. Baushke <mdb@cvshome.org>.
66506
66507 2004-11-04  Bruno Haible  <bruno@clisp.org>
66508
66509         2004-09-11  Bruno Haible  <bruno@clisp.org>
66510                 * allocsa.valgrind: New file.
66511         2004-02-06  Bruno Haible  <bruno@clisp.org>
66512                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
66513                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
66514                 Reported by Christopher Seip <chris.seip@hp.com>.
66515
66516 2004-11-04  Bruno Haible  <bruno@clisp.org>
66517
66518         * modules/allocsa (Files): Add lib/allocsa.valgrind.
66519         (Makefile.am): Distribute it.
66520
66521 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
66522
66523         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
66524         with errno == ERANGE if the buffer is too small.
66525         Problem reported by Mark D. Baushke.
66526
66527 2004-11-03  Albert Chin  <china@thewrittenword.com>
66528             Paul Eggert  <eggert@cs.ucla.edu>
66529
66530         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
66531         equivalent, substitute $ac_type for equivalent type rather than
66532         blindly using uint32_t *always* which won't work if uint32_t is not
66533         available.  Define _UINT32_T to work around typedef of uint32_t if
66534         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
66535         2.5.1.
66536
66537 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
66538
66539         * m4/jm-macros.m4: Sync from coreutils.
66540         (gl_MACROS): Check for mbrlen, for pathchk.
66541         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
66542
66543 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
66544
66545         * lib/xreadlink.c (MAXSIZE): New macro.
66546         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
66547         size does not exceed MAXSIZE.  Avoid cast.
66548         As suggested by Mark D. Baushke in
66549         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
66550         if readlink fails with buffer size just under MAXSIZE, try again
66551         with MAXSIZE.
66552
66553 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
66554
66555         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
66556
66557 2004-11-02  Derek R. Price  <derek@ximbiot.com>
66558         and  Paul Eggert  <eggert@cs.ucla.edu>
66559
66560         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
66561         (get_date): Overparenthesize to avoid GCC warning.
66562
66563 2004-11-02  Bruno Haible  <bruno@clisp.org>
66564
66565         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
66566         returns void.
66567
66568 2004-11-02  Bruno Haible  <bruno@clisp.org>
66569
66570         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
66571         function returns void.
66572
66573 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
66574
66575         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
66576         fflush_unlocked, flockfile, funlockfile, funlockfile,
66577         fputs_unlocked, putc_unlocked.
66578
66579 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
66580
66581         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
66582         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
66583         already declared.
66584
66585 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
66586
66587         * modules/getdate (Files): Add doc/getdate.texi.
66588         (Depends-on): Add setenv, xalloc.
66589
66590 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
66591
66592         * lib/getdate.y: Add support for TZ="foo" within a date string.
66593         Fix some bugs near time_t boundaries.  Reject dates with
66594         out-of-range components, e.g., "Sept 31".
66595         Include <stdlib.h>, "setenv.h", "xalloc.h".
66596         (ISDIGIT_LOCALE): Remove; unused.
66597         Note that the TZ and time functions used here are not reentrant.
66598         (mktime_ok, get_tz): New functions.
66599         (TZBUFSIZE): New constant.
66600         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
66601         This requires that we sometimes generate our own TZ="XXX..." setting.
66602
66603 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
66604
66605         * doc/getdate.texi: New file, from coreutils with modifications for
66606         the new TZ parsing.
66607
66608 2004-10-27  Derek R. Price  <derek@ximbiot.com>
66609
66610         * lib/mktime.c (not_equal_tm): Remove redundant check.
66611
66612 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
66613
66614         * modules/regex (lib_SOURCES): Add regex.c.
66615         Reported by James Youngman in
66616         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
66617
66618 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
66619
66620         * lib/getdate.y: Use Bison 1.875 features, and some minor
66621         code cleanups.  This change does not affect semantics.
66622         Don't include <stdlib.h>; no longer needed.
66623         Don't include unlocked-io.h; only the "#if TEST" code uses
66624         stdio, and performance isn't crucial there.
66625         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
66626         Bison 1.875 features as described below.
66627         All uses of "PC." replaced by "pc->".
66628         (YYSTYPE): Add a forward declaration.
66629         (yylex, yyerror): Use full prototypes in forward decls.
66630         Use "%pure-parser" rather than obsolescent "%pure_parser".
66631         Use %parse-param and %lex-param instead of obsolescent
66632         YYPARSE_PARAM and YYLEX_PARAM.
66633         (meridian_table, month_and_day_table, time_units_table,
66634         relative_time_table, time_zone_table, military_table,
66635         lookup_zone, lookup_word, get_date):
66636         Use NULL instead of 0 where appropriate.
66637         (to_hour): Avoid abort (), to avoid a dependency on
66638         stdlib.h.
66639         (yyerror, yylex): Now accepts parser_control * arg.
66640         (main) [TEST]: Use '\0' rather than 0 for char.
66641
66642 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
66643
66644         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
66645
66646 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
66647
66648         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
66649         It's now the caller's responsibility to handle the case where
66650         !HAVE_GETPAGESIZE && !defined getpagesize.
66651
66652         * lib/mktime.c (leapyear): Arg is long int, not int.
66653
66654 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
66655
66656         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
66657
66658 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
66659
66660         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
66661         missing.  Problem reported by James Youngman.
66662
66663 2004-10-16  Simon Josefsson  <jas@extundo.com>
66664
66665         * gnulib-tool: Fix comments.  Fix parse problem.
66666         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
66667
66668 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
66669
66670         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
66671         implementation of getopt_long.  Problem reported by Alexander Taler in:
66672         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
66673
66674 2004-10-15  Bruno Haible  <bruno@clisp.org>
66675
66676         * gnulib-tool: Untabify. Initialize supplied_libname.
66677         (func_usage): More homogenous output.
66678         (func_modules_transitive_closure, func_modules_to_filelist,
66679         func_emit_lib_Makefile_am): New functions.
66680         (func_import): New function, extracted from big case statement. Use
66681         func_get_license, func_modules_transitive_closure,
66682         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
66683         opt_lgpl. Don't use test -a, as it's not portable.
66684         (func_create_testdir): Use func_modules_transitive_closure,
66685         func_modules_to_filelist, func_emit_lib_Makefile_am.
66686
66687 2004-10-15  Bruno Haible  <bruno@clisp.org>
66688
66689         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
66690
66691 2004-10-15  Bruno Haible  <bruno@clisp.org>
66692
66693         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
66694         the portions belonging to each module.
66695         Suggested by Derek Robert Price <derek@ximbiot.com>.
66696
66697 2004-10-12  Simon Josefsson  <jas@extundo.com>
66698
66699         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
66700         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
66701         to real functions.
66702
66703 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
66704
66705         * modules/vsnprintf: New file.
66706
66707 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
66708
66709         * m4/vsnprintf.m4: New file.
66710
66711 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
66712
66713         * lib/vsnprintf.h: New file.
66714         * lib/vsnprintf.c: New file.
66715
66716 2004-10-11  Bruno Haible  <bruno@clisp.org>
66717
66718         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
66719         vsnprintf.
66720
66721 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
66722
66723         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
66724
66725 2004-10-07  Bruno Haible  <bruno@clisp.org>
66726
66727         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
66728         fits into the provided buffer.
66729
66730 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
66731
66732         * lib/diacrit.c, diacrit.h: Add GPL notice.
66733
66734         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
66735         notice.
66736         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
66737         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
66738         This avoids a potential constant-folding bug.
66739
66740 2004-10-05  Bruno Haible  <bruno@clisp.org>
66741
66742         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
66743         for the declaration of strsep.
66744
66745 2004-10-05  Bruno Haible  <bruno@clisp.org>
66746
66747         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
66748
66749 2004-10-04  Simon Josefsson  <jas@extundo.com>
66750
66751         * modules/memmem: New file.
66752         * tests/test-memmem.c: New file.
66753         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
66754
66755 2004-10-04  Simon Josefsson  <jas@extundo.com>
66756
66757         * m4/memmem.m4: New file.
66758
66759 2004-10-04  Simon Josefsson  <jas@extundo.com>
66760
66761         * lib/memmem.h: New file.
66762         * lib/memmem.c: New file, taken from glibc.
66763
66764 2004-10-04  Simon Josefsson  <jas@extundo.com>
66765
66766         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
66767         '#ifdef USE_UNLOCKED_IO'.
66768
66769 2004-10-04  Simon Josefsson  <jas@extundo.com>
66770
66771         * config/srclist.txt: Add memmem from glibc.
66772
66773 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
66774
66775         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
66776
66777         * modules/argmatch, modules/argp, modules/closeout, modules/error,
66778         modules/exclude, modules/getdate, modules/getline,
66779         modules/getndelim2, modules/getpass, modules/getpass-gnu,
66780         modules/getusershell, modules/linebuffer, modules/md5,
66781         modules/mountlist, modules/posixtm, modules/readtokens,
66782         modules/readutmp, modules/regex, modules/sha1,
66783         modules/version-etc, modules/yesno:
66784         Remove dependency on unlocked-io.
66785
66786 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
66787
66788         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
66789
66790         * m4/unlocked-io.m4: Add copyright notice.
66791         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
66792
66793 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
66794
66795         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
66796         * lib/xmalloc.c (xmemdup): Likewise.
66797         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
66798         XFREE): Remove these long-obsolescent macros.
66799         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
66800         * lib/xstrdup.c: Remove.
66801
66802         * lib/regex.c (re_comp): Cast gettext return value to char *,
66803         Problem reported by Martin Neitzel via Mark D. Baushke.
66804
66805 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
66806
66807         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
66808         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
66809         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
66810         regex.c, sha1.c, version-etc.c, yesno.c:
66811         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
66812         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
66813         the includer's responsibility.
66814
66815         Sync from coreutils.
66816
66817         * lib/modechange.c (mode_compile): Don't decrement a pointer that
66818         points to the start of a string, as the C Standard says the
66819         resulting behavior is undefined.
66820
66821         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
66822         simple -> simple_backups, numbered_existing ->
66823         numbered_existing_backups, numbered -> numbered_backups
66824         to avoid shadowing problems.  All uses changed.
66825         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
66826         * lib/backupfile.c (check_extension, numbered_backup):
66827         Rename locals to avoid shadowing 'basename'.
66828         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
66829         once.
66830
66831         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
66832         * lib/.cvsignore: Add getopt.h.
66833
66834 2004-10-04  Bruno Haible  <bruno@clisp.org>
66835
66836         * modules/README: New file.
66837         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
66838         not a module.
66839
66840 2004-10-02  Jim Meyering  <jim@meyering.net>
66841
66842         * lib/dirfd.h, getpagesize.h: Add copyright notice.
66843
66844 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
66845
66846         * modules/strsep: New file.
66847
66848 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
66849
66850         * m4/strsep.m4: New file.
66851
66852 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
66853
66854         * lib/strsep.h: New file.
66855         * lib/strsep.c: New file.
66856
66857 2004-10-01  Simon Josefsson  <jas@extundo.com>
66858
66859         * lib/snprintf.c (snprintf): Handle size==0.
66860
66861 2004-10-01  Simon Josefsson  <jas@extundo.com>
66862             Bruno Haible  <bruno@clisp.org>
66863
66864         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
66865         (snprintf): Declare 'args'.
66866
66867 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
66868
66869         * lib/snprintf.c: Remove comments as to why each header is needed.
66870
66871 2004-10-01  Bruno Haible  <bruno@clisp.org>
66872
66873         * MODULES.html.sh: Add strsep.
66874
66875 2004-09-30  Simon Josefsson  <jas@extundo.com>
66876
66877         * modules/snprintf: New file.
66878
66879 2004-09-30  Simon Josefsson  <jas@extundo.com>
66880
66881         * m4/snprintf.m4: New file.
66882
66883 2004-09-30  Simon Josefsson  <jas@extundo.com>
66884
66885         * lib/snprintf.h, lib/snprintf.c: New files.
66886
66887 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
66888
66889         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
66890         (hol_entry_help): Never translate an empty string.
66891         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
66892         * lib/argp.h (OPTION_NO_TRANS): New option.
66893
66894 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
66895
66896         * modules/argp (Maintainer): Replace Simon Josefsson
66897         by Sergey Poznyakoff.
66898
66899 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
66900
66901         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
66902         changes merged back into glibc.
66903
66904 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
66905
66906         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
66907
66908 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
66909
66910         * lib/xvasprintf.c: Include xalloc.h.
66911         (xvasprintf): Use xalloc_die, not xmalloc_die.
66912
66913 2004-09-29  Bruno Haible  <bruno@clisp.org>
66914
66915         * modules/alloca-opt: New file, derived from modules/alloca.
66916         * modules/allocsa: Depend on alloca-opt instead of alloca.
66917         * modules/setenv: Likewise.
66918         * modules/vasnprintf: Likewise.
66919         * MODULES.html.sh: Add alloca-opt.
66920
66921 2004-09-28  Simon Josefsson  <jas@extundo.com>
66922
66923         * gnulib-tool: New parameter --lgpl, to asseert that modules are
66924         LGPL, and to replace license template from GPL to LGPL.
66925
66926 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
66927
66928         * modules/dummy: Change license to LGPL.
66929
66930 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
66931
66932         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
66933
66934 2004-09-24  Simon Josefsson  <jas@extundo.com>
66935
66936         * modules/minmax (License): Change from GPL to LGPL.
66937
66938 2004-09-23  Simon Josefsson  <jas@extundo.com>
66939
66940         * gnulib-tool (--import): Typo.
66941
66942 2004-09-23  Simon Josefsson  <jas@extundo.com>
66943
66944         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
66945
66946 2004-09-22  Bruno Haible  <bruno@clisp.org>
66947
66948         * modules/*: Add 'License' field.
66949         * gnulib-tool: Accept --extract-license option.
66950         (func_get_license): New function.
66951
66952 2004-09-21  Bruno Haible  <bruno@clisp.org>
66953
66954         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
66955         Reported by Simon Josefsson.
66956
66957 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
66958
66959         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
66960         gl_AC_TYPE_LONG_LONG.
66961
66962 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
66963
66964         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
66965
66966 2004-09-18  Simon Josefsson  <jas@extundo.com>
66967         and  Paul Eggert  <eggert@cs.ucla.edu>
66968
66969         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
66970         calls with autoreconf.  Define GL_LIB.
66971
66972 2004-09-14  Karl Berry  <karl@gnu.org>
66973
66974         * config/srclist.txt: unsync setenv.c, sigh.
66975
66976 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
66977
66978         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
66979         Problem reported by Bruno Haible in:
66980         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
66981
66982 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
66983
66984         * config/srclist.txt: Comment out argp-pvh.c.
66985
66986 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
66987
66988         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
66989         in case some system header has #define'd it.  Problem reported by
66990         Soeren D. Schulze in
66991         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
66992
66993 2004-09-09  Karl Berry  <karl@gnu.org>
66994
66995         * regex.[ch]: delete from the root.  These were supposed to be
66996                 synced with emacs cvs, but this has not happened for about
66997                 a year, and anyway nothing else uses emacs regex.[ch].
66998                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
66999                 lib/regex[.ch] is untouched.
67000
67001 2004-09-09  Bruno Haible  <bruno@clisp.org>
67002
67003         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
67004
67005 2004-09-09  Bruno Haible  <bruno@clisp.org>
67006
67007         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
67008         modifications.
67009         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
67010
67011 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
67012
67013         * modules/xvasprintf: New file.
67014         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
67015
67016 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
67017
67018         * lib/xvasprintf.h: New file.
67019         * lib/xvasprintf.c: New file.
67020         * lib/xasprintf.c: New file.
67021
67022 2004-09-08  Bruno Haible  <bruno@clisp.org>
67023
67024         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
67025
67026 2004-09-08  Bruno Haible  <bruno@clisp.org>
67027
67028         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
67029         length is > INT_MAX.
67030         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
67031         more.
67032
67033 2004-09-08  Bruno Haible  <bruno@clisp.org>
67034
67035         * lib/stdint_.h: New file, taken from GNU clisp.
67036
67037 2004-09-08  Bruno Haible  <bruno@clisp.org>
67038             Oskar Liljeblad  <oskar@osk.mine.nu>
67039
67040         * modules/stdint: New file.
67041         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
67042
67043 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
67044
67045         Import from coreutils.
67046         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
67047         strings on unbounded length.  alloca's performance benefits aren't
67048         that important here.
67049         (V_STRDUP): Remove.
67050         (parse_with_separator): New function, with most of the internals
67051         of the old parse_user_spec.  Allow user to omit both user and group,
67052         for compatibility with FreeBSD.
67053         Clone only the user name, not the entire spec.
67054         Do not set *uid, *gid unless entirely successful.
67055         Avoid memory leak in some failing cases.
67056         Fix regression for USER.GROUP reported by Dmitry V. Levin in
67057         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
67058         (parse_user_spec): Rewrite to use parse_with_separator.
67059
67060 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
67061
67062         * modules/userspec: Don't depend on alloca.
67063
67064 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
67065
67066         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
67067
67068 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
67069
67070         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
67071         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
67072         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
67073
67074 2004-08-16  Simon Josefsson  <jas@extundo.com>
67075
67076         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
67077         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
67078         Add --dry-run for --import.
67079         Let user provided command line parameters override configure.ac
67080         settings.
67081
67082 2004-08-12  Simon Josefsson  <jas@extundo.com>
67083
67084         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
67085         as discussed with Paul Eggert in threads rooted at
67086         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
67087         and
67088         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
67089         Before, the test was empty, and relied on ELIDE_CODE in source
67090         code.)
67091         (gl_PREREQ_GETOPT): New macro.
67092         (gl_GETOPT): Use them.
67093
67094 2004-08-12  Simon Josefsson  <jas@extundo.com>
67095
67096         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
67097         * lib/getopt_.h: Renamed from getopt.h.
67098
67099 2004-08-12  Simon Josefsson  <jas@extundo.com>
67100
67101         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
67102         Change default library name from libfoo to libgnu.
67103         Now, if you have a configure.ac that says:
67104                 gl_SOURCE_BASE(gl)
67105                 gl_M4_BASE(gl/m4)
67106                 gl_MODULES(error getopt etcetera)
67107                 gl_INIT
67108         you can import all you need by running:
67109                 ../gnulib/gnulib-tool --import
67110
67111         * modules/getopt (Files): Rename getopt.h to getopt_.h.
67112         (Makefile.am): Rewrite, use logic from argz.
67113         (Include): Use <getopt.h> instead of "getopt.h".
67114
67115 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
67116
67117         * modules/argp (Files): Add m4/unlocked-io.m4.
67118         (Depends-on): Add extensions.
67119
67120 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
67121
67122         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
67123         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
67124         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
67125         Check for program_invocation_name, program_invocation_short_name,
67126         flockfile, funlockfile, features.h, _getopt_long_only_r.
67127
67128 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
67129
67130         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
67131         its complicated substitute.
67132         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
67133         and program_invocation_name.
67134         (__argp_basename) [!_LIBC]: Remove; the only use was
67135         replaced by its body.
67136         (__argp_short_program_name): Change condition from
67137         !defined __argp_short_program_name to
67138         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
67139         to match argp-namefrob.h.
67140         (__argp_failure): Don't assume strerror_r returns char *.
67141         * lib/argp-parse.c (N_): Define unconditionally.
67142         (argp_default_options): Fill out initializers with 0 to avoid
67143         gcc warnings.
67144
67145 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
67146
67147         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
67148         getopt1.c.
67149
67150 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
67151
67152         Merge from coreutils.
67153
67154         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
67155
67156         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
67157         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
67158
67159 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
67160
67161         Merge from coreutils.
67162
67163         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
67164         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
67165         for Reliant Unix 5.43.
67166
67167         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
67168         (union fooround): Use uintmax_t, not long int.
67169         The rest is a merge from libc:
67170         [defined _LIBC]: Include <shlib-compat.h>.
67171         (_obstack) [defined _LIBC]: Remove after 2.3.4.
67172
67173         * lib/settime.c (settime): Recode to avoid warning with
67174         Sun Forte C 6U2.
67175
67176         * lib/strverscmp.c: Convert to UTF-8.
67177
67178 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
67179
67180         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
67181         m4/uintmax_t.m4.
67182
67183 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
67184
67185         * modules/xalloc-die: New file.
67186         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
67187
67188         * modules/md5 (Files): Add m4/uint32_t.m4.
67189         * modules/sha1: Renamed from modules/sha.
67190         (Files):
67191         Rename lib/sha.h to lib/sha1.h.
67192         Rename lib/sha.c to lib/sha1.c.
67193         Rename m4/sha.m4 to m4/sha1.m4.
67194         (lib_SOURCES): Likewise.
67195         (configure.ac): Rename gl_SHA to gl_SHA1.
67196         (Include): sha.h -> sha1.h.
67197
67198 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
67199
67200         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
67201         * m4/sha1.m4: Renamed from sha.m4.
67202         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
67203
67204 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
67205
67206         * lib/obstack.h (obstack_empty_p):
67207         Don't assume that chunk->contents is suitably aligned.
67208         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
67209         Likewise. Problem reported by Benno in
67210         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
67211
67212         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
67213         readable.  This could be improved further but it'd take some work.
67214
67215 2004-08-08  Simon Josefsson  <jas@extundo.com>
67216
67217         * modules/xgethostname (Depends-on): Remove exit and error (not
67218         used).
67219
67220         * modules/getpass-gnu: Add getpass.h.
67221         (Depends-on): Add stdbool.
67222         * modules/getpass: Add getpass.h.
67223
67224 2004-08-08  Simon Josefsson  <jas@extundo.com>
67225
67226         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
67227         Check getpass declaration.
67228
67229 2004-08-08  Simon Josefsson  <jas@extundo.com>
67230
67231         * lib/xgethostname.c: Don't include error.h (not used).
67232
67233         * lib/getpass.h: Add.
67234         * lib/getpass.c: Include getpass.h first.
67235
67236 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
67237
67238         * lib/xalloc-die.c: New file.
67239         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
67240         All uses removed.
67241         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
67242         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
67243         xalloc-die.c.
67244         (_, N_, xalloc_die): Move to xalloc-die.c.
67245         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
67246         so that we needn't mess with xalloc_msg_memory_exhausted.
67247
67248         * lib/sha1.h: Renamed from sha.h.
67249         (SHA1_H): Renamed from _SHA_H.
67250         (sha1_ctx): Renamed from sha_ctx.
67251         (sha1_init_ctx): Renamed from sha_init_ctx.
67252         (sha1_process_block): Renamed from sha_process_block.
67253         (sha1_process_bytes): Renamed from sha_process_bytes.
67254         (sha1_finish_ctx): Renamed from sha_finish_ctx.
67255         (sha1_read_ctx): Renamed from sha_read_ctx.
67256         (sha1_stream): Renamed from sha_stream.
67257         (sha1_buffer): Renamed from sha_buffer.
67258         * lib/sha1.c: Likewise; renamed from sha.c.
67259         Do not include <sys/types.h>.
67260         Include <stddef.h> rather than <stdlib.h>.
67261
67262 2004-08-08  Bruno Haible  <bruno@clisp.org>
67263
67264         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
67265         FILESYSTEM_PREFIX_LEN.
67266         * lib/progreloc.c: Likewise.
67267         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
67268
67269 2004-08-06  Simon Josefsson  <jas@extundo.com>
67270
67271         * modules/progname (Depends-on): Don't depend on stdbool.
67272
67273 2004-08-06  Simon Josefsson  <jas@extundo.com>
67274
67275         * modules/getsubopt: New file.
67276         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
67277         getsubopt.
67278
67279 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
67280
67281         More merge from coreutils.
67282
67283         * m4/utimens.m4, m4/utimecmp.m4: New files.
67284         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
67285         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
67286         prereq.m4, sha.m4: Import changes from coreutils.
67287
67288 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
67289
67290         More merge from coreutils.
67291         * modules/raise, modules/readtokens0, modules/utimens:
67292         * modules/utimecmp, module/xnanosleep: New files.
67293         * modules/strftime: Add lib/strftime.h.
67294         Change include from <time.h> to "strftime.h".
67295         * modules/yesno: Add lib/yesno.h.
67296         * modules/backupfile: Remove lib/addext.c.
67297         * modules/euidaccess: Add stat-macros.h.
67298         * modules/canonicalize, modules/euidaccess,
67299         modules/filemode, modules/lchown, modules/makepath,
67300         modules/rmdir, modules/stat: Likewise.
67301
67302 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
67303
67304         Merge from tar.
67305         * lib/argp-help.c (make_hol, hol_append): Don't assume that
67306         SIZE_MAX is a valid preprocessor constant.
67307         (__argp_basename): Change from "#ifndef _LIBC"
67308         to "#ifndef __argp_short_program_name", so that
67309         we don't compile these functions for tar.
67310
67311         More merges from coreutils.
67312         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
67313         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
67314         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
67315         * lib/addext.c: Remove; no longer needed.
67316         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
67317         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
67318         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
67319         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
67320         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
67321         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
67322         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
67323         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
67324         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
67325         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
67326         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
67327         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
67328         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
67329         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
67330         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
67331         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
67332         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
67333         Import changes from coreutils.
67334
67335 2004-08-05  Simon Josefsson  <jas@extundo.com>
67336
67337         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
67338
67339 2004-08-05  Simon Josefsson  <jas@extundo.com>
67340
67341         * m4/getsubopt.m4: New file.
67342
67343 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
67344
67345         Merge from coreutils.
67346
67347         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
67348         * m4/getcwd-path-max.m4: New files.
67349
67350         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
67351         FILESYSTEM_PREFIX_LEN ->
67352         FILE_SYSTEM_PREFIX_LEN.
67353         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
67354         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
67355         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
67356         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
67357
67358         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
67359         prerequisite modules now handle the DOS stuff.
67360         Don't check for unistd.h.
67361
67362 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
67363
67364         Merge from coreutils.
67365
67366         * lib/.gdb-history: Remove; this doesn't belong here.
67367
67368         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
67369         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
67370         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
67371         * lib/getcwd.c: New files.
67372
67373         * lib/dirname.h: Include <stdbool.h>.
67374         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
67375         for consistency with POSIX terminology.  All uses changed.
67376         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
67377         (strip_trailing_slashes): Use bool for booleans.
67378         * lib/stripslash.c (strip_trailing_slashes): Likewise.
67379
67380         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
67381         sometimes returns a positive errno value even when it succeeds.
67382         (print_errno_message) [!LIBC]: Fall back on strerror if
67383         __strerror_r fails.
67384
67385         * lib/path-concat.c (mempcpy): Don't define if a system header defines
67386         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
67387         (longest_relative_suffix): New function.
67388         (path_concat): Use it.  Assume first argument is not NULL.
67389         Port to DOS.  Omit redundant separators.
67390         Report an error instead of returning NULL.
67391         Use mempcpy instead of memcpy.
67392         (xpath_concat): Remove: not declared or used.
67393
67394         * lib/same.h: Include <stdbool.h>
67395         (same_name): Return bool, not int.
67396         * lib/same.c (same_name): Likewise.
67397         (errno): Don't declare; we assume C89 or better now.
67398
67399         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
67400         if not already defined.
67401
67402         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
67403         * lib/dup-safer.c (errno): Likewise.
67404
67405 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
67406
67407         Merge from coreutils.
67408         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
67409         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
67410         * modules/path-concat: Don't depend on strdup.
67411
67412 2004-08-03  Simon Josefsson  <jas@extundo.com>
67413
67414         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
67415         * lib/progname.h: Don't include stdbool.h.
67416
67417 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
67418
67419         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
67420         * MODULES.html.sh (func_all_modules): Remove fatal.
67421
67422 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
67423
67424         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
67425
67426 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
67427
67428         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
67429         working.
67430
67431 2004-08-02  Simon Josefsson  <jas@extundo.com>
67432
67433         * lib/getsubopt.h: New file, with comments from Bruno Haible.
67434         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
67435         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
67436
67437 2004-08-01  Simon Josefsson  <jas@extundo.com>
67438
67439         * lib/xgetdomainname.c: Include stdlib.h, for free().
67440
67441 2004-07-19  Bruno Haible  <bruno@clisp.org>
67442
67443         * MODULES.html.sh (func_all_modules): Add dummy.
67444
67445 2004-07-16  Simon Josefsson  <jas@extundo.com>
67446
67447         * modules/dummy: New file.
67448
67449 2004-07-16  Simon Josefsson  <jas@extundo.com>
67450
67451         * lib/dummy.c: New file.
67452
67453 2004-07-16  Bruno Haible  <bruno@clisp.org>
67454
67455         * lib/backupfile.h: Add extern "C" for C++.
67456         * lib/closeout.h: Likewise.
67457         * lib/copy-file.h: Likewise.
67458         * lib/findprog.h: Likewise.
67459         * lib/full-write.h: Likewise.
67460         * lib/pathname.h: Likewise.
67461         * lib/progname.h: Likewise.
67462         * lib/stpcpy.h: Likewise.
67463         * lib/stpncpy.h: Likewise.
67464         * lib/strcase.h: Likewise.
67465         * lib/strstr.h: Likewise.
67466         * lib/xalloc.h: Likewise.
67467
67468         * lib/mbswidth.h: Add extern "C" for C++.
67469         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
67470
67471 2004-07-13  Robert Millan  <robertmh@gnu.org>
67472
67473         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
67474
67475 2004-07-09  Simon Josefsson  <jas@extundo.com>
67476
67477         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
67478         failed without this.)
67479
67480 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
67481
67482         * modules/chown (Files): Add lib/fchown-stub.c, since
67483         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
67484
67485 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
67486
67487         * lib/fchown-stub.c: New file.
67488
67489 2004-06-24  Jim Meyering  <jim@meyering.net>
67490
67491         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
67492
67493 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
67494
67495         * modules/argz: Omit "#include".
67496
67497         * MODULES.html.sh (func_all_modules): Add calloc, to match
67498         2004-06-01 addition of calloc module.
67499
67500 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
67501
67502         * m4/argz.m4: New file, which is autoupdated from libtool.
67503
67504 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
67505
67506         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
67507         libtool.
67508
67509 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
67510
67511         * config/srclist-update: Don't insist on "USA." before the
67512         close-comment, as libtool omits the period and puts the */ on a
67513         separate line.
67514         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
67515         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
67516
67517 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
67518
67519         * modules/argz: New file.
67520         * MODULES.html.sh (func_all_modules): Add argz.
67521
67522 2004-06-12  Jim Meyering  <jim@meyering.net>
67523         and  Paul Eggert  <eggert@cs.ucla.edu>
67524
67525         * modules/hash (Files): Add lib/xalloc.h.
67526         * modules/pipe (Depends-on): Add wait-process.
67527         * modules/stat (Depends-on): Add xalloc.
67528         * modules/userspec (Files): Add lib/userspec.h.
67529         * modules/xstrto
67530
67531         Upgrade from gettext-0.13.
67532         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
67533         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
67534         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
67535
67536 2004-06-10  Jim Meyering  <jim@meyering.net>
67537
67538         * lib/calloc.c: New file.
67539
67540 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
67541
67542         * lib/getdate.y (yylex): Allow space between sign and number.
67543         Problem reported by Dan Jacobson.
67544
67545 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
67546
67547         Merge from coreutils CVS.
67548
67549         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
67550         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
67551         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
67552         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
67553         xstrtol.m4: Fix copyright date and/or serial number.
67554
67555         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
67556         See if we need an fchown replacement.
67557         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
67558         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
67559         and use the replacement function if we detect either defect.
67560
67561         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
67562         gl_UTIMECMP.
67563
67564 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
67565         and  Jim Meyering  <jim@meyering.net>
67566
67567         Merge from coreutils CVS.
67568
67569         * lib/stat-macros.h: New file, with contents from file-type.h
67570         and coreutils' system.h.
67571         * lib/file-type.c: Include "stat-macros.h".
67572         * lib/file-type.h (file_type): Move all macro definitions to new file,
67573         stat-macros.h.
67574
67575         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
67576         Wrap old code with this conditional.
67577         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
67578         function that does not dereference symlinks.
67579         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
67580
67581         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
67582         dependency problems.
67583         (xreadlink): Accept new arg SIZE, for efficiency.
67584         All decls and uses changed.
67585         * lib/xreadlink.h: Include <stddef.h>, for size_t.
67586
67587         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
67588         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
67589
67590         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
67591         sysexits.h.
67592
67593 2004-06-01  Jim Meyering  <jim@meyering.net>
67594
67595         * m4/calloc.m4: New file.
67596
67597 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
67598
67599         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
67600         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
67601         Also, fix a typo in a diagnostic.
67602
67603 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
67604
67605         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
67606         or AC_FUNC_REALLOC.
67607
67608 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
67609
67610         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
67611         macros to be defined.
67612         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
67613         the allocator returns NULL because the requested size is zero.
67614
67615 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
67616
67617         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
67618         var.  Add comment explaining why libc still defines it.  This
67619         merges the following patch from glibc:
67620         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
67621
67622 2004-05-20  Andreas Schwab  <schwab@suse.de>
67623
67624         * m4/free.m4: Replace free if it not known to work, not the other
67625         way round.
67626
67627 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
67628
67629         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
67630         present in glibc since revision 1.1 of this file.
67631         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
67632         obstack_alignment_mask, obstack_alloc, obstack_base,
67633         obstack_blank, obstack_blank_fast, obstack_chunk_size,
67634         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
67635         obstack_grow0, obstack_init, obstack_int_grow,
67636         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
67637         obstack_next_free, obstack_object_size, obstack_ptr_grow,
67638         obstack_ptr_grow_fast, obstack_room): Remove declarations of
67639         nonexistent functions.
67640
67641 2004-05-18  Karl Berry  <karl@gnu.org>
67642
67643         * config/srclist.txt: break link for vasnprintf.c.
67644
67645 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
67646
67647         Port obstack to the AS/400, where pointers are 16 bytes wide and
67648         you cannot cast an integer to a valid pointer.  This patch is
67649         currently waiting to be integrated into glibc; see
67650         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
67651
67652         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
67653         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
67654         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
67655         (struct obstack): temp member is now a union of a pointer and
67656         an integer, instead of an integer.  All integer uses changed.
67657         This does not affect the physical layout of struct obstack,
67658         except on hosts (like the AS/400) where the size or alignment of
67659         void * is greater than that of ptrdiff_t.
67660         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
67661         __STDC__)]: Store temporary in pointer member of union, not
67662         integer member.
67663         * lib/obstack.c: Include <stddef.h>, for offsetof.
67664         (struct fooalign): Remove; it doesn't need a name.
67665         (union fooround): Change double to long double, and add void *.
67666         (DEFAULT_ALIGNMENT): Use offsetof to compute.
67667         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
67668         not a macro.  Hence the values are always int; so remove all
67669         casts-to-int in uses.
67670
67671 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
67672
67673         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
67674         we can get this patch merged into glibc.
67675
67676 2004-05-17  Derek R. Price  <derek@ximbiot.com>
67677             Paul Eggert  <eggert@cs.ucla.edu>
67678
67679         * m4/argp: Depend on alloca.
67680
67681 2004-05-17  Derek R. Price  <derek@ximbiot.com>
67682             Paul Eggert  <eggert@cs.ucla.edu>
67683
67684         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
67685         freecoding.
67686
67687 2004-05-17  Bruno Haible  <bruno@clisp.org>
67688
67689         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
67690         precision that consists of a '.' followed by an empty digit string.
67691         Patch by Tor Lillqvist <tml@iki.fi>.
67692
67693 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
67694
67695         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
67696         for backward compatibility with older code.  We need our own
67697         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
67698         it under some other name, and our alloca.h will define it.
67699
67700 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
67701             Derek Price  <derek@ximbiot.com>
67702
67703         * lib/alloca.c: Include <alloca.h>, to get our interface.
67704         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
67705         include <alloca.h> first.  Use C89 prototype for alloca; this
67706         requires including <stddef.h> for size_t.  Use extern "C" if C++.
67707         Use #elif for simplicity, since we can assume C89 now.
67708         Don't try to source the system alloca.h since it will not be found
67709         and to prevent recursively including its replacement.
67710         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
67711         * lib/regex.c: Likewise.
67712
67713 2004-05-16  Derek Price  <derek@ximbiot.com>
67714             Paul Eggert  <eggert@cs.ucla.edu>
67715
67716         getline cleanup.  This changes the getndelim2 API: both order of
67717         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
67718         no delimiter).
67719
67720         * lib/getline.c: Don't include stddef.h or stdio.h, since our
67721         interface does that.
67722         (getline): Always use getdelim, so that we don't have two
67723         copies of this code.
67724         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
67725         if available.
67726         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
67727         (GETNDELIM2_MAXIMUM): New macro.
67728         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
67729         instead of the old practice of delim2==0.  All callers changed.
67730         Return -1 on overflow, instead of returning junk.
67731         Do not set *linesize unless allocation succeeds.
67732         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
67733         that we include sys/types.h.
67734         * lib/getnline.h: Likewise.
67735         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
67736         (getndelim2): Reorder arguments.
67737         * lib/getnline.c (getnline, getndelim):
67738         Don't discard the NMAX argument.
67739         (getnline): Invoke getndelim, to avoid code duplication.
67740         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
67741         of (size_t) -1 by callers of the getnline family.
67742
67743 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
67744
67745         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
67746         Check for gettimeofday.
67747         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
67748         Check for settimeofday, stime.
67749
67750 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
67751
67752         * lib/nanosleep.c (suspended): Change its type from int to
67753         sig_atomic_t volatile.
67754         (first_call): Make it private to rpl_nanosleep, and have it
67755         be zero initially as that's a bit faster.
67756         (my_usleep): Round up fractional times instead of truncating them,
67757         as this is the usual meaning for 'sleep'.
67758
67759         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
67760         doesn't work.
67761         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
67762         (ENOSYS): Define if not defined.
67763         (settime): Fall back on stime if it exists and settimeofday fails.
67764         But don't bother with fallbacks if a method fails with errno == EPERM.
67765
67766 2004-05-11  Jim Meyering  <jim@meyering.net>
67767
67768         Prior to this change, the save_cwd caller required read access to the
67769         current directory on most systems (ones with the fchdir function).
67770
67771         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
67772         fails, try write-only, and finally, resort to using xgetcwd.
67773
67774 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
67775
67776         * lib/obstack.c, obstack.h: Import changes from libc.
67777
67778 2004-04-28  Bruno Haible  <bruno@clisp.org>
67779
67780         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
67781         also implicitly appends .exe to executables.
67782         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
67783         accepts Windows pathnames.
67784         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
67785         Treat Cygwin like Windows, since it now accepts Windows pathnames.
67786         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
67787         Treat Cygwin like Windows, since it now accepts Windows pathnames.
67788         Reported by Derek Robert Price <derek@ximbiot.com>.
67789
67790 2004-04-21  Karl Berry  <karl@gnu.org>
67791
67792         * config/srclist.txt (localcharset.c): break sync.
67793
67794 2004-04-20  Paul Eggert  <eggert@twinsun.com>
67795
67796         * m4/host-os.m4: Add a copyright notice.
67797
67798 2004-04-20  Jim Meyering  <jim@meyering.net>
67799
67800         Change UTILS_ to gl_ in AC_DEFINE'd names.
67801         Change utils_- and jm_-prefixed variables, too.
67802         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
67803         UTILS_FUNC_MKDIR_TRAILING_SLASH.
67804         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
67805
67806         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
67807         Don't emit trailing blanks.
67808         Also rename jm_-prefixed variables to have gl_ prefix.
67809
67810         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
67811         Also rename jm_-prefixed variables to have gl_ prefix.
67812
67813         * m4/jm-macros.m4: Reflect the renamings.
67814         * m4/prereq.m4: Likewise.
67815
67816 2004-04-20  Jim Meyering  <jim@meyering.net>
67817
67818         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
67819         memory.
67820
67821 2004-04-20  Jim Meyering  <jim@meyering.net>
67822             Bruno Haible  <bruno@clisp.org>
67823
67824         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
67825         memory when realloc fails.
67826
67827 2004-04-19  Jim Meyering  <jim@meyering.net>
67828
67829         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
67830         now that readutmp.c may call `free (0)'.
67831
67832 2004-04-19  Bruno Haible  <bruno@clisp.org>
67833
67834         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
67835         * m4/inttypes_h.m4: Likewise.
67836         * m4/stdint_h.m4: Likewise.
67837         * m4/intmax_t.m4: Likewise.
67838         * m4/uintmax_t.m4: Likewise.
67839
67840 2004-04-18  Jim Meyering  <jim@meyering.net>
67841
67842         * m4/prereq.m4: Don't forbid jm_ prefix.
67843
67844         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
67845         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
67846         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
67847         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
67848         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
67849         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
67850         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
67851         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
67852         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
67853         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
67854         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
67855         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
67856         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
67857         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
67858         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
67859         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
67860         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
67861         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
67862         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
67863
67864 2004-04-18  Jim Meyering  <jim@meyering.net>
67865
67866         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
67867         failure, don't leak memory and do call END_UTMP_ENT.
67868
67869 2004-04-16  Jim Meyering  <jim@meyering.net>
67870
67871         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
67872         coreutils' stat program.
67873         (gl_PREREQ): Don't require jm_PREREQ_STAT.
67874
67875 2004-04-11  Paul Eggert  <eggert@twinsun.com>
67876
67877         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
67878         C89.
67879         (CHAR_BIT): Remove, since we assume C89.
67880         Include <stdint.h> if available, as per current Autoconf CVS advice.
67881
67882 2004-03-31  Jim Meyering  <jim@meyering.net>
67883
67884         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
67885         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
67886         * m4/xalloc.m4: Likewise.
67887
67888 2004-03-30  Paul Eggert  <eggert@twinsun.com>
67889
67890         Merge from coreutils.
67891
67892         * m4/inttostr.m4: New file.
67893         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
67894         Require AM_STDBOOL_H and gl_TIMESPEC instead.
67895         Require gl_CLOCK_TIME.
67896         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
67897
67898 2004-03-30  Paul Eggert  <eggert@twinsun.com>
67899
67900         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
67901         not bool, to be more consistent with Unix conventions.
67902         Suggested by Bruno Haible.
67903
67904         Merge from coreutils.
67905
67906         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
67907         * lib/umaxtostr.c: New files.
67908
67909         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
67910         the usual <time.h> dance.
67911         (get_date): Change signature to support fractional time stamps.
67912         All callers changed.
67913         * lib/getdate.y: Include "getdate.h" first, as we can now
67914         assume C89 and don't need to worry about 'const'.
67915         Similarly, include "unlocked-io.h" near start, not in middle.
67916         Include <limits.h>.
67917         (textint.value): Use long int rather than int.
67918         (textint.digits): Use size_t rather than int.
67919         (BILLION, LOG10_BILLION): New constants.
67920         (parser_control): New member rel_ns.  Members day_ordinal,
67921         time_zone, month, day, hour, minutes, rel_year, rel_month,
67922         rel_day, rel_hour, rel_minutes, rel_seconds
67923         are now long int, not int.  Member seconds is now struct timespec,
67924         not int.  New member timespec_seen.  Members dates_seen, days_seen,
67925         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
67926         not int.
67927         (%union.intval): Now long int, not int.
67928         New member timespec.
67929         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
67930         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
67931         (spec): Now is a timespec or an item list.
67932         (timespec, items): New nonterminals.
67933         (time, rel, relunit, number, get_date):
67934         Add support for fractional seconds.
67935         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
67936         (gmtime, localtime, mktime): Remove decls; not needed with C89.
67937         (to_hour): First arg is now long int, not int.
67938         (to_year): Returns long int, not int.
67939         Don't treat year -70 like 70.
67940         (tm_diff): Returns long int, not int.
67941         (lookup_word): Use bool instead of int when appropriate.
67942         (yylex): Use size_t for count, not int.
67943         Detect overflow when parsing large integer constants.
67944         Add support for fractions.
67945         (get_date): Make pointers 'const' if possible.
67946         Use more-portable code to detect integer overflow.
67947         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
67948         Don't use ctime; it's not reliable if the year has >4 digits.
67949
67950         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
67951         This is for compatibility with BSD.
67952
67953         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
67954         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
67955         From coreutils' system.h.
67956
67957         * lib/userspec.c: Don't include "posixver.h".
67958         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
67959         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
67960         compatible extension.  Simplify code by removing a boolean int
67961         that was always nonzero if a string was nonnull.
67962
67963 2004-03-30  Jim Meyering  <jim@meyering.net>
67964
67965         Merge from coreutils.
67966
67967         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
67968         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
67969         on some systems one must include <grp.h> before it.
67970         Reported by Christian Krackowizer.
67971
67972 2004-03-30  Jim Meyering  <jim@meyering.net>
67973
67974         Merge from coreutils.
67975
67976         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
67977
67978         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
67979         an empty input stream.
67980
67981         * lib/readtokens.c: Include <stdbool.h>.
67982         (readtoken): Use `size_t' rather than int/long.
67983         All callers adjusted.
67984         Use `bool' rather than `int' where appropriate.
67985         Use memset rather than an explicit loop.
67986         Use x2nrealloc rather than xrealloc.
67987         Allow the use of `\0' as a delimiter.
67988         (readtokens): Likewise.
67989         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
67990
67991 2004-03-30  Jim Meyering  <jim@meyering.net>
67992
67993         * m4/realloc.m4: Remove file, since now it does no more than
67994         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
67995         the `configure.ac' section of module/realloc.
67996         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
67997
67998 2004-03-30  Bruno Haible  <bruno@clisp.org>
67999
68000         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
68001         nonnull.
68002
68003 2004-03-29  Paul Eggert  <eggert@twinsun.com>
68004
68005         Merge changes to getloadavg.c from coreutils and Emacs.
68006
68007         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
68008         Define to an expression, not to the empty string.
68009         Include cloexec.h and xalloc.h.
68010         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
68011         Use set_cloexec_flag rather than rolling our own.
68012         * lib/cloexec.c, lib/cloexec.h: New files.
68013
68014 2004-03-29  Paul Eggert  <eggert@twinsun.com>
68015
68016         * m4/cloexec.m4: New file.
68017
68018 2004-03-18  Paul Eggert  <eggert@twinsun.com>
68019
68020         * lib/getopt.h: Sync with libc CVS.
68021
68022 2004-03-18  Paul Eggert  <eggert@twinsun.com>
68023             Bruno Haible  <bruno@clisp.org>
68024
68025         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
68026         mbswidth.
68027
68028 2004-03-18  Paul Eggert  <eggert@twinsun.com>
68029             Bruno Haible  <bruno@clisp.org>
68030
68031         * lib/mbswidth.h: Include <wchar.h> only if
68032         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
68033         <wchar.h>.
68034         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
68035
68036 2004-03-09  Paul Eggert  <eggert@twinsun.com>
68037
68038         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
68039         Sync with libc CVS.
68040         * lib/getopt_int.h: New file, also synced from libc.
68041
68042 2004-03-09  Paul Eggert  <eggert@twinsun.com>
68043
68044         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
68045         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
68046         Bring back getopt.c, getopt.h, getopt1.c.
68047
68048 2004-03-07  Paul Eggert  <eggert@twinsun.com>
68049
68050         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
68051         All uses changed.  Check for sa_sigaction member; this fixes
68052         a bug first reported by Jason Andrade in
68053         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
68054
68055 2004-03-07  Paul Eggert  <eggert@twinsun.com>
68056
68057         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
68058         '#if' expressions.  Unlike the code it replaces, it does not
68059         depend on (defined _SC_PAGESIZE).  However, it does depend on
68060         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
68061         first reported by Jason Andrade in
68062         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
68063
68064 2004-02-25  Simon Josefsson  <jas@extundo.com>
68065
68066         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
68067
68068 2004-02-25  Simon Josefsson  <jas@extundo.com>
68069
68070         * lib/strdup.h: New file.
68071         * lib/strdup.c: Include it.
68072         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
68073         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
68074
68075 2004-02-23  Karl Berry  <karl@gnu.org>
68076
68077         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
68078         (from fencepost.gnu.org:/gd/gnuorg).
68079
68080 2004-02-23  Karl Berry  <karl@gnu.org>
68081
68082         * config/srclistvars.sh (GNUORG) [karl]: redefine.
68083         * config/srclist.txt: add maintain/standards documents.
68084
68085 2004-02-18  Bruno Haible  <bruno@clisp.org>
68086
68087         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
68088         Reported by Derek Robert Price <derek@ximbiot.com>.
68089
68090 2004-02-16  Karl Berry  <karl@gnu.org>
68091
68092         * config/mkinstalldirs, install-sh: update from automake.
68093
68094 2004-02-06  Karl Berry  <karl@gnu.org>
68095
68096         * m4/po.m4: update from gettext 0.14.1.
68097
68098 2004-02-06  Karl Berry  <karl@gnu.org>
68099
68100         * lib/config.charset: update from gettext 0.14.1.
68101
68102 2004-02-05  Paul Eggert  <eggert@twinsun.com>
68103
68104         Add comments and code, prompted by suggestions from Bruno Haible
68105         for sh-quote.
68106         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
68107         describing the enum quoting_style values.
68108         * lib/quotearg.c (quotearg_alloc): New function.
68109         (quotearg_buffer_restyled): Treat lone { and } as special.
68110         Treat = as special.  Work around bug with older shells
68111         that "see" a '\' that is really the 2nd byte of a multibyte char.
68112         Quote empty string with shell_quoting_style.
68113
68114 2004-02-03  Bruno Haible  <bruno@clisp.org>
68115
68116         * m4/pipe.m4: New file, from GNU gettext.
68117
68118 2004-02-03  Bruno Haible  <bruno@clisp.org>
68119
68120         * lib/pipe.h: New file, from GNU gettext.
68121         * lib/pipe.c: New file, from GNU gettext.
68122
68123 2004-01-27  Bruno Haible  <bruno@clisp.org>
68124
68125         * m4/execute.m4: New file, from GNU gettext.
68126
68127 2004-01-27  Bruno Haible  <bruno@clisp.org>
68128
68129         * lib/execute.h: New file, from GNU gettext.
68130         * lib/execute.c: New file, from GNU gettext.
68131         * lib/w32spawn.h: New file, from GNU gettext.
68132
68133 2004-01-24  Paul Eggert  <eggert@twinsun.com>
68134
68135         Merge from diffutils.
68136
68137         * lib/file-type.c (file_type): Add typed memory objects.
68138         * lib/file-type.h (S_TYPEISTMO): New macro.
68139
68140         * lib/c-stack.h (c_stack_action): Remove argv argument.
68141         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
68142         (die): Don't calculate message unless segv_action returns.
68143         (get_stack_location, min_address_from_argv, max_address_from_argv,
68144         volatile stack_base, volatile_stack_size): Remove.
68145         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
68146         that every segmentation violation is a stack overflow.  (Ouch!)
68147         See Debian bug 136249 (still outstanding) for more info about why
68148         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
68149
68150 2004-01-24  Paul Eggert  <eggert@twinsun.com>
68151
68152         Exit-status fix from coreutils.
68153
68154         Use exit_failure consistently in place of EXIT_FAILURE,
68155         so that program exit statuses are consistent on failure.
68156
68157         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
68158         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
68159         * lib/argmatch.h: Comment fix to match the above.
68160         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
68161         Now a macro referring to exit_failure, instead of a separate
68162         variable.  Include "exitfail.h" to get it.
68163         * lib/xstrtol.h: Include "exitfail.h".
68164         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
68165
68166         * lib/long-options.c (parse_long_options): Use prototype
68167         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
68168         for clarity.
68169
68170 2004-01-21  Jim Meyering  <jim@meyering.net>
68171
68172         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
68173         so as not to conflict with a different-sized __mktime_internal
68174         function in GNU libc.
68175         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
68176         Problem building statically-linked `ls' reported by Michael Brunnbauer.
68177
68178 2004-01-20  Karl Berry  <karl@gnu.org>
68179
68180         * config/config.guess: update from config.
68181
68182         * config/srclistvars.sh: GNUWWWLICENSES for karl.
68183
68184 2004-01-20  Bruno Haible  <bruno@clisp.org>
68185
68186         Safer stack allocation.
68187         * lib/setenv.c: Include allocsa.h.
68188         (alloca): Remove fallback definition.
68189         (freea): Remove macro.
68190         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
68191         instead of freea.
68192
68193 2004-01-20  Bruno Haible  <bruno@clisp.org>
68194
68195         * m4/eealloc.m4: New file, from GNU gettext.
68196
68197 2004-01-20  Bruno Haible  <bruno@clisp.org>
68198
68199         * m4/allocsa.m4: New file, from GNU gettext.
68200
68201 2004-01-20  Bruno Haible  <bruno@clisp.org>
68202
68203         * lib/xallocsa.h: New file, from GNU gettext.
68204         * lib/xallocsa.c: New file, from GNU gettext.
68205
68206 2004-01-20  Bruno Haible  <bruno@clisp.org>
68207
68208         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
68209
68210 2004-01-20  Bruno Haible  <bruno@clisp.org>
68211
68212         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
68213         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
68214         specially.
68215
68216 2004-01-20  Bruno Haible  <bruno@clisp.org>
68217
68218         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
68219         patch.
68220
68221 2004-01-20  Bruno Haible  <bruno@clisp.org>
68222
68223         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
68224
68225 2004-01-20  Bruno Haible  <bruno@clisp.org>
68226
68227         * lib/eealloc.h: New file.
68228
68229 2004-01-20  Bruno Haible  <bruno@clisp.org>
68230
68231         * lib/binary-io.h: Avoid warnings on Cygwin.
68232
68233 2004-01-20  Bruno Haible  <bruno@clisp.org>
68234
68235         * lib/allocsa.h: New file, from GNU gettext.
68236         * lib/allocsa.c: New file, from GNU gettext.
68237
68238 2004-01-18  Karl Berry  <karl@gnu.org>
68239
68240         * doc/gpl.texi, doc/lgpl.texi: new files.
68241
68242 2004-01-18  Karl Berry  <karl@gnu.org>
68243
68244         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
68245         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
68246
68247 2004-01-15  Paul Eggert  <eggert@twinsun.com>
68248
68249         Merge from coreutils.
68250
68251         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
68252         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
68253         (gl_DEFAULT_POSIX2_VERSION): Move
68254         the documentation from 'configure' into 'config.hin',
68255         so that 'configure --help' isn't burdened by it and
68256         we don't have to worry about its formatting there.
68257         Reword the documentation so that it's more succinct
68258         and can be run together into a single paragraph.
68259         * m4/same.m4 (gl_SAME): Check for pathconf.
68260
68261 2004-01-15  Paul Eggert  <eggert@twinsun.com>
68262
68263         Merge from coreutils.
68264
68265         * lib/posixver.c: Include posixver.h.
68266
68267         * lib/same.c: Include <stdbool.h>, <limits.h>.
68268         (_POSIX_NAME_MAX): Define if not defined.
68269         (MIN): New macro.
68270         (same_name): If file names are silently truncated, report
68271         that the file names are the same if they are the same after
68272         the silent truncation.
68273
68274         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
68275         conversion function.
68276         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
68277         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
68278         longer needed.
68279
68280 2004-01-15  Jim Meyering  <jim@meyering.net>
68281
68282         Merge from coreutils.
68283
68284         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
68285         if no library is required.
68286         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
68287         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
68288         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
68289         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
68290         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
68291         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
68292         value, $ac_cv_search_crypt, if it's "none required".
68293         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
68294         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
68295         not gl_FUNC_GETLOADAVG.
68296         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
68297         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
68298
68299 2004-01-15  Jim Meyering  <jim@meyering.net>
68300
68301         Merge from coreutils.
68302
68303         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
68304         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
68305         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
68306
68307         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
68308         optional configure-time default.
68309
68310         * lib/version-etc.c (version_etc_copyright): Update copyright date.
68311
68312         * lib/xreadlink.c (xreadlink): Correct outdated comment.
68313
68314 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
68315
68316         Merge from coreutils.
68317
68318         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
68319         value, $ac_cv_search_nanosleep, if it's "none required".
68320
68321 2004-01-14  Paul Eggert  <eggert@twinsun.com>
68322
68323         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
68324         with like-named macro in fnmatch.c.
68325         (EXT): Use an internal constant instead.
68326
68327         Merge fnmatch patches from glibc.
68328         * lib/fnmatch.c (mbsinit): Remove define.
68329         Add libc_hidden_ver (__fnmatch, fnmatch).
68330         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
68331         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
68332
68333 2004-01-14  Karl Berry  <karl@gnu.org>
68334
68335         * config/install-sh: update from automake.
68336
68337 2004-01-13  Karl Berry  <karl@gnu.org>
68338
68339         * config/install-sh: update from automake.
68340
68341 2004-01-09  Karl Berry  <karl@gnu.org>
68342
68343         * config/install-sh: update from automake.
68344
68345 2004-01-05  Karl Berry  <karl@gnu.org>
68346
68347         * config/config.{sub,guess}: update from config.
68348
68349 2003-12-31  Karl Berry  <karl@gnu.org>
68350
68351         * config/depcomp: update from automake.
68352
68353 2003-12-14  Karl Berry  <karl@gnu.org>
68354
68355         * lib/config.charset: update from gettext-runtime.
68356
68357 2003-12-03  Paul Eggert  <eggert@twinsun.com>
68358
68359         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
68360         Bug reported by Alfred M. Szmidt.
68361
68362 2003-12-03  Bruno Haible  <bruno@clisp.org>
68363
68364         * m4/gettext.m4: Upgrade from gettext-0.13.
68365         * m4/po.m4: Upgrade from gettext-0.13.
68366         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
68367         * m4/intmax.m4: New file, from gettext-0.13.
68368         * m4/printf-posix.m4: New file, from gettext-0.13.
68369
68370 2003-11-29  Karl Berry  <karl@gnu.org>
68371
68372         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
68373
68374 2003-11-25  Paul Eggert  <eggert@twinsun.com>
68375             Bruno Haible  <bruno@clisp.org>
68376
68377         * lib/printf-parse.h: Don't include sys/types.h.
68378         (ARG_NONE): New macro.
68379         (char_directive): Change type of *arg_index fields to size_t.
68380         * lib/printf-parse.c: Don't include sys/types.h.
68381         (SSIZE_MAX): Remove macro.
68382         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
68383         Remove unnecessary overflow check.
68384         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
68385         fields.
68386
68387 2003-11-25  Bruno Haible  <bruno@clisp.org>
68388
68389         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
68390
68391 2003-11-25  Bruno Haible  <bruno@clisp.org>
68392
68393         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
68394         gt_TYPE_SSIZE_T.
68395
68396 2003-11-24  Paul Eggert  <eggert@twinsun.com>
68397
68398         * modules/alloca: Remove dependency on xalloc.
68399
68400 2003-11-24  Paul Eggert  <eggert@twinsun.com>
68401
68402         * lib/alloca.c: Remove dependency on xalloc module.
68403         (xalloc_die): Remove.
68404         (memory_full) [!defined emacs]: New macro.
68405         [!defined emacs]: Don't include xalloc.h.
68406         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
68407         address arithmetic overflows.  Change datatypes a bit to avoid
68408         unnecessary casts.
68409
68410 2003-11-22  Jim Meyering  <jim@meyering.net>
68411
68412         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
68413         s/size/size_t/.
68414
68415 2003-11-21  Karl Berry  <karl@gnu.org>
68416
68417         * config/config.{sub,guess}: update from config.
68418
68419 2003-11-18  Karl Berry  <karl@gnu.org>
68420
68421         * config/config.{sub,guess}: update from config.
68422
68423         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
68424
68425 2003-11-17  Paul Eggert  <eggert@twinsun.com>
68426
68427         * README: Mention that S+T cannot overflow if S is the size of
68428         an existing object and T is sufficiently small.
68429
68430 2003-11-17  Jim Meyering  <jim@meyering.net>
68431
68432         On systems without utime and without a utimes function capable of
68433         dealing with a NULL struct utimbuf* argument, this utime replacement
68434         could -- in unusual circumstances -- leak a file descriptor.
68435         * lib/utime.c: Include <unistd.h> and <errno.h>.
68436         (utime_null): Be sure to close `fd' and to preserve errno.
68437         Reported by Geoff Collyer via Arnold Robbins.
68438
68439 2003-11-17  Bruno Haible  <bruno@clisp.org>
68440
68441         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
68442         (Depends-on): Add xsize.
68443
68444 2003-11-17  Bruno Haible  <bruno@clisp.org>
68445
68446         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
68447
68448 2003-11-17  Bruno Haible  <bruno@clisp.org>
68449
68450         * lib/vasnprintf.c (alloca): Remove fallback definition.
68451         (freea): Remove definition.
68452         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
68453         Reported by Paul Eggert.
68454
68455 2003-11-16  Paul Eggert  <eggert@twinsun.com>
68456             Bruno Haible  <bruno@clisp.org>
68457
68458         Protect against address arithmetic overflow.
68459         * lib/printf-args.h: Include stddef.h.
68460         (arguments): Change type of field 'count' to size_t.
68461         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
68462         'unsigned int' where appropriate.
68463         * lib/printf-parse.h: Include sys/types.h.
68464         (char_directive): Change type of *arg_index fields to ssize_t.
68465         (char_directives): Change type of fields 'count', max_*_length to
68466         size_t.
68467         * lib/printf-parse.c: Include sys/types.h and xsize.h.
68468         (SSIZE_MAX): Define fallback value.
68469         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
68470         instead of 'int' where appropriate. Check a_allocated, d_allocated
68471         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
68472         * lib/vasnprintf.c: Include xsize.h.
68473         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
68474         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
68475         overflow. Avoid wraparound when converting a width or precision from
68476         decimal to binary.
68477
68478 2003-11-16  Bruno Haible  <bruno@clisp.org>
68479
68480         Update from GNU gettext.
68481         * lib/printf-parse.c: Generalize to it can be compiled for wide
68482         strings.
68483         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
68484         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
68485         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
68486         SNPRINTF): New macros.
68487         Don't include <alloca.h> if the file is used inside libintl.
68488         (local_wcslen): New function, for Solaris 2.5.1.
68489         (VASNPRINTF): Use it instead of wcslen.
68490
68491 2003-11-16  Bruno Haible  <bruno@clisp.org>
68492
68493         * lib/xsize.h (xmax): New function.
68494         (xsum, xsum3, xsum4): Declare as "pure" functions.
68495
68496 2003-11-12  Paul Eggert  <eggert@twinsun.com>
68497
68498         * modules/xalloc (Files): Undo latest change, since xalloc.h
68499         no longer needs SIZE_MAX or PTRDIFF_MAX.
68500
68501 2003-11-12  Paul Eggert  <eggert@twinsun.com>
68502
68503         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
68504         gl_PTRDIFF_MAX.
68505
68506 2003-11-12  Paul Eggert  <eggert@twinsun.com>
68507
68508         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
68509         "return", to pacify some unknown compiler.  Problem reported
68510         by Joerg Schilling.
68511
68512 2003-11-12  Paul Eggert  <eggert@twinsun.com>
68513
68514         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
68515         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
68516         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
68517         heuristic is just as accurate as far as we know, and it removes a
68518         dependency on size_max.m4 and ptrdiff_max.m4.
68519
68520 2003-11-11  Bruno Haible  <bruno@clisp.org>
68521
68522         * modules/xsize (Files): Add m4/size_max.m4.
68523         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
68524
68525 2003-11-11  Bruno Haible  <bruno@clisp.org>
68526
68527         * m4/size_max.m4: New file.
68528         * m4/ptrdiff_max.m4: New file.
68529         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
68530         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
68531         (gl_XALLOC): Invoke it.
68532
68533 2003-11-11  Bruno Haible  <bruno@clisp.org>
68534
68535         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
68536         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
68537         defined.
68538
68539 2003-11-10  Paul Eggert  <eggert@twinsun.com>
68540
68541         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
68542         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
68543         rejected some allocations of exactly SIZE_MAX - 2 bytes.
68544         From Bruno Haible.
68545         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
68546         not (size_t) -1, since it's defined here.
68547
68548 2003-11-09  Karl Berry  <karl@gnu.org>
68549
68550         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
68551
68552 2003-11-06  Paul Eggert  <eggert@twinsun.com>
68553
68554         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
68555         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
68556         Reject sizes of exactly SIZE_MAX bytes.
68557         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
68558         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
68559
68560 2003-11-05  Bruno Haible  <bruno@clisp.org>
68561
68562         * lib/xsize.h: Include limits.h, to avoid a possible collision with
68563         SIZE_MAX defined in <limits.h> on Solaris.
68564
68565 2003-11-04  Jim Meyering  <jim@meyering.net>
68566
68567         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
68568         variable names, rather than @VAR@.
68569         * modules/poll: Likewise.
68570
68571 2003-11-04  Bruno Haible  <bruno@clisp.org>
68572
68573         * modules/xsize: New file.
68574         * modules/linebreak: Depend on xsize.
68575         * MODULES.html.sh (func_all_modules): Add xsize.
68576
68577 2003-11-04  Bruno Haible  <bruno@clisp.org>
68578
68579         * m4/xsize.m4: New file.
68580
68581 2003-11-04  Bruno Haible  <bruno@clisp.org>
68582
68583         * lib/xsize.h: New file.
68584         * lib/linebreak.c: Include xsize.h.
68585         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
68586         argument for overflow.
68587         Suggested by Paul Eggert.
68588
68589 2003-11-03  Karl Berry  <karl@gnu.org>
68590
68591         * config/config.{guess,sub}: update from config.
68592
68593 2003-11-03  Jim Meyering  <jim@meyering.net>
68594
68595         * modules/userspec (lib_SOURCES): Add userspec.h.
68596         (Include): Add "userspec.h".
68597         Improve description.
68598
68599 2003-11-03  Jim Meyering  <jim@meyering.net>
68600
68601         * lib/userspec.c: Include "userspec.h".
68602         * lib/userspec.h: New file.
68603
68604 2003-11-03  Bruno Haible  <bruno@clisp.org>
68605
68606         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
68607
68608 2003-11-03  Bruno Haible  <bruno@clisp.org>
68609
68610         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
68611         available, to avoid (extremely rare) race condition.
68612         Suggested by Paul Eggert.
68613
68614 2003-11-02  Karl Berry  <karl@gnu.org>
68615
68616         * config/srclist.txt (vasprintf.c): sync broken, sigh.
68617
68618 2003-10-31  Paul Eggert  <eggert@twinsun.com>
68619
68620         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
68621         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
68622         (read_filesystem_list): Set and use me_type_malloced.
68623         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
68624         whatever the type happens to be), for brevity and consistency.
68625         Check for size calculation overflow on Alphas running OSF/1.
68626
68627 2003-10-31  Jim Meyering  <jim@meyering.net>
68628
68629         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
68630
68631         * lib/linebuffer.c: Include <string.h> for declaration of memset.
68632
68633 2003-10-30  Paul Eggert  <eggert@twinsun.com>
68634             Bruno Haible  <bruno@clisp.org>
68635
68636         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
68637         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
68638
68639 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
68640
68641         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
68642         netbsd*-gnu*.  Suggested by Robert Millan.
68643
68644 2003-10-29  Paul Eggert  <eggert@twinsun.com>
68645
68646         * modules/group-member: Depend on stdbool.
68647
68648 2003-10-29  Paul Eggert  <eggert@twinsun.com>
68649
68650         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
68651
68652 2003-10-29  Paul Eggert  <eggert@twinsun.com>
68653
68654         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
68655         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
68656         after the 'gnu' in these cases.  This fixes some bugs in the
68657         previous change, and is based on suggestions by Robert Millan.
68658
68659 2003-10-29  Paul Eggert  <eggert@twinsun.com>
68660
68661         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
68662         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
68663         no longer needed.
68664         * lib/quotearg.c (quotearg_n_options): Use it.
68665         * lib/group-member.c: Include <stdbool.h>.
68666         (free_group_info): Arg is now const *; don't free arg.
68667         (get_group_info): Now returns bool and accepts struct group_info *,
68668         rather than returning a malloc'ed struct group_info *.
68669         All uses changed.  Check for overflow in internal size calculation.
68670
68671         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
68672         rather than xmalloc/xrealloc.
68673         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
68674         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
68675         conformance bug: the old code used a pointer after freeing the
68676         storage that it addressed.
68677         * lib/hash.c (hash_initialize): Simplify the code by using
68678         xalloc_oversized rather than doing it by hand.
68679         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
68680         the buffer preserved.  Use free and xmalloc instead.
68681         * lib/quotearg.c (quotearg_n_options): Likewise.
68682         Use a simpler test for size overflow.  Don't use xalloc_oversized
68683         because unsigned int might be wider than size_t (!); this suggests
68684         that we should switch from unsigned int to size_t for slot numbers.
68685
68686 2003-10-28  Paul Eggert  <eggert@twinsun.com>
68687
68688         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
68689         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
68690         NetBSD kernels.  Requested by Richard Stallman.
68691
68692 2003-10-27  Paul Eggert  <eggert@twinsun.com>
68693
68694         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
68695         to allocate the returned structure.  Do not allocate a subarray,
68696         as x2nrealloc will do that.
68697         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
68698         instead of xnrealloc.
68699         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
68700
68701 2003-10-27  Bruno Haible  <bruno@clisp.org>
68702
68703         * lib/stdbool_.h: Better support for BeOS.
68704
68705 2003-10-26  Paul Eggert  <eggert@twinsun.com>
68706
68707         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
68708         now uses inline.
68709
68710 2003-10-26  Paul Eggert  <eggert@twinsun.com>
68711
68712         * lib/xalloc.h (xalloc_oversized): New static inline function, for
68713         callers that want to do their own size-overflow checking.  Include
68714         <stdbool.h>, since xalloc_oversized returns bool.
68715         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
68716         to use xalloc_oversized.
68717
68718         Add two functions x2realloc, x2nrealloc, for programs that grow
68719         arrays dynamically by doubling their sizes.
68720         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
68721         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
68722         New functions.
68723
68724         Port to C99 semantics for 'inline' of external functions.
68725         Bug reported by Bruno Haible.
68726         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
68727         with the old contents of xnmalloc.
68728         (xnmalloc, xmalloc): Use it.
68729         (xnrealloc_inline): New static inline function,
68730         with the old contents of xnrealloc.
68731         (xnrealloc, xrealloc): Use it.
68732
68733         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
68734         that.
68735
68736 2003-10-26  Karl Berry  <karl@gnu.org>
68737
68738         * config/srclist.txt (COPYING.DOC): no longer available from
68739         /gd/gnuorg; don't know where the ultimate source is.
68740
68741 2003-10-25  Paul Eggert  <eggert@twinsun.com>
68742
68743         Fix several address-calculation bugs in the hash modules,
68744         plus some minor code cleanup.
68745
68746         * lib/hash.h: Include <stdbool.h>, for bool.
68747         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
68748         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
68749         hash_get_n_entries, hash_get_max_bucket_length,
68750         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
68751         hash_rehash): Use size_t rather than unsigned.
68752         * lib/hash.c (struct hash_table, hash_get_n_buckets,
68753         hash_get_n_buckets_used, hash_get_n_entries,
68754         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
68755         hash_get_entries, hash_do_for_each, hash_string, is_prime,
68756         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
68757         Likewise.
68758         (SIZE_MAX): Define if not defined.
68759         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
68760         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
68761         hash_print):
68762         Use const * when possible.
68763         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
68764         (check_tuning): Fix bug: if tuning parameters were very close to
68765         0 or 1, rounding errors could have caused subscript violations.
68766         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
68767         (hash_initialize): Add 'fail:' label
68768         to free table and return NULL, and use it to simplify code.
68769         Use calloc rather than clearing the storage ourself.
68770         (hash_initialize, hash_rehash): Check for arithmetic overflow in
68771         buffer size calculations.
68772         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
68773         Include <stddef.h>, for size_t.
68774         * lib/hash-pjw.c (hash_pjw): Likewise.
68775         Switch to method described by Bruno Haible.
68776         Include <limits.h>, for CHAR_BIT.
68777         (SIZE_BITS): New macro.
68778
68779 2003-10-23  Paul Eggert  <eggert@twinsun.com>
68780
68781         * m4/getline.m4 (AM_FUNC_GETLINE):
68782         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
68783         hosts.  Problem reported by Derek Robert Price in
68784         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
68785         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
68786         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
68787
68788 2003-10-21  Paul Eggert  <eggert@twinsun.com>
68789
68790         * lib/getndelim2.c (getndelim2): When size calculation overflows,
68791         ceiling the allocation at NMAX bytes rather than silently
68792         discarding input bytes before NMAX is reached.  This makes
68793         a difference only if NMAX exceeds SIZE_MAX / 2.
68794
68795         * lib/obstack.c: Merge from glibc.
68796         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
68797         Add libc_hidden_def (_obstack_newchunk).
68798         (_obstack_free) [! defined _LIBC]: Remove.
68799         [defined _LIBC]: Make a strong alias from obstack_free, rather than
68800         a clone of the function body.
68801         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
68802         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
68803
68804         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
68805         glibc.
68806         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
68807         arg to memcpy.
68808
68809         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
68810         (obstack_ptr_grow_fast, obstack_int_grow_fast):
68811         Don't use lvalue casts, as GCC plans to remove support for them
68812         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
68813         was also present in the non-GCC version, indicating that this
68814         code had always been buggy and had never been widely used.
68815         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
68816         Use the fast variant of each macro, rather than copying the
68817         definiens of the fast variant; that way, we'll be more likely to
68818         catch future bugs in the fast variants.
68819
68820 2003-10-20  Bruno Haible  <bruno@clisp.org>
68821
68822         * modules/wait-process: New file.
68823         * MODULES.html.sh (func_all_modules): Add wait-process.
68824
68825 2003-10-20  Bruno Haible  <bruno@clisp.org>
68826
68827         * m4/wait-process.m4: New file.
68828
68829 2003-10-20  Bruno Haible  <bruno@clisp.org>
68830
68831         * lib/wait-process.h: New file, from GNU gettext.
68832         * lib/wait-process.c: New file, from GNU gettext.
68833
68834 2003-10-19  Jim Meyering  <jim@meyering.net>
68835
68836         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
68837         HPUX 10.20.
68838
68839 2003-10-18  Karl Berry  <karl@gnu.org>
68840
68841         * config/config.guess: update from config.
68842
68843 2003-10-16  Paul Eggert  <eggert@twinsun.com>
68844
68845         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
68846         (getgroups): First arg is int, not size_t.
68847         Don't let 'free' mangle errno.
68848
68849 2003-10-16  Paul Eggert  <eggert@twinsun.com>
68850
68851         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
68852
68853 2003-10-16  Karl Berry  <karl@gnu.org>
68854
68855         * config/config.{guess,sub}: update from config.
68856
68857 2003-10-16  Jim Meyering  <jim@meyering.net>
68858
68859         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
68860         memcpy.
68861
68862 2003-10-15  Paul Eggert  <eggert@twinsun.com>
68863
68864         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
68865         (SIZE_MAX): Remove.
68866         (new_exclude, add_exclude_file): Initial size no longer needs to
68867         be a power of 2.
68868         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
68869         our own address arithmetic overflow checking.
68870
68871         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
68872         (fnmatch): Do not alloca more than 2000 wide characters;
68873         instead, use malloc for large buffers.
68874         Check for address arithmetic overflow, and return -1
68875         with errno set to ENOMEM in that case.
68876         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
68877         (NEW_PATTERN): Do not alloca more than 8000 bytes;
68878         instead, return -1.  Check for address arithmetic overflow.
68879
68880 2003-10-14  Paul Eggert  <eggert@twinsun.com>
68881
68882         Handle invalid suffixes and overflow independently, so that
68883         callers can treat them independently as needed.  Fix some bugs in
68884         suffix handling, e.g., "100k@" was not diagnosed as an invalid
68885         suffix for a human-readable blocksize.  The major caller-visible
68886         change is the addition of a new
68887         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
68888         that both overflow and suffix chars were found.
68889
68890         * lib/human.c (humblock): Don't check separately for invalid suffix
68891         char; that is xstrtoumax's job (now that its bug is fixed).
68892         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
68893         INTMAX_MAX]: New macros.
68894         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
68895         TYPE_MAXIMUM): New macros.
68896         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
68897         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
68898         if overflow occurs, as it's what __strtol does and it's more useful
68899         in practice.
68900         (__xstrtol): If __strtol reports some error other than ERANGE,
68901         reflect it to the caller as LONGINT_INVALID.  If it reports
68902         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
68903         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
68904         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
68905         value.
68906         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
68907         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
68908         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
68909         [defined UINTMAX_MAX]: New macros.
68910
68911 2003-10-14  Bruno Haible  <bruno@clisp.org>
68912
68913         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
68914
68915 2003-10-14  Bruno Haible  <bruno@clisp.org>
68916
68917         * m4/sig_atomic_t: New file, from GNU gettext.
68918         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
68919
68920 2003-10-14  Bruno Haible  <bruno@clisp.org>
68921
68922         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
68923         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
68924         Also use volatile where needed.
68925
68926 2003-10-12  Paul Eggert  <eggert@twinsun.com>
68927
68928         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
68929         Change maintainer from Bruno Haible to 'all'.
68930
68931 2003-10-12  Paul Eggert  <eggert@twinsun.com>
68932
68933         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
68934
68935 2003-10-12  Paul Eggert  <eggert@twinsun.com>
68936
68937         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
68938         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
68939         and define in terms of the other primitives.
68940         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
68941         (SIZE_MAX): Define if not already defined.
68942         (array_size_overflow): New function.
68943         (xalloc_die): Abort instead of exiting if 'error' returns.
68944         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
68945         (xmalloc, xrealloc): Use them.
68946         (xcalloc): Check for address arithmetic overflow.
68947         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
68948         a bit faster than strcpy.
68949
68950 2003-10-10  Simon Josefsson  <jas@extundo.com>
68951
68952         * modules/argp (Depends-on): Add restrict and strcase.
68953
68954 2003-10-10  Simon Josefsson  <jas@extundo.com>
68955
68956         * m4/argp.m4: Add AC_C_INLINE.
68957
68958 2003-10-08  Paul Eggert  <eggert@twinsun.com>
68959
68960         Merge getpass from libc, plus a few fixes.
68961
68962         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
68963         Include <stdbool.h>.
68964         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
68965         __fsetlocking to empty.
68966         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
68967         do include <bits/libc-lock.h>.
68968         Do not include <fcntl.h>; not needed.
68969         [_LIBC]: Include <wchar.h>.
68970         (NOTCANCEL_MODE): New macro.
68971         (flockfile, funlockfile) [_LIBC]: New macros.
68972         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
68973         [!_LIBC]: New macros.
68974         (call_fclose): New function.
68975         (getpass): Use it.  Save tty stream separately; this simplifies the
68976         code and makes it more reliable if stdin happens to equal stdout.
68977         Invoke __fsetlocking on tty.
68978         Handle thread cancellation if needed.
68979         Namespace cleanup (use __tcgetattr, __getline).
68980         Use bool for Booleans.
68981         [USE_IN_LIBIO]: Handle wide streams.
68982         [!_LIBC]: Unconditionally do the fseek, since we don't know what
68983         stream might go where.
68984
68985         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
68986         doesn't have to include <stdio.h> before us.
68987         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
68988         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
68989         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
68990         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
68991         if not declared, so that we can use getpass.c code from libc without
68992         rewriting it.
68993         (flockfile, ftrylockfile, funlockfile): New macros.
68994
68995 2003-10-08  Paul Eggert  <eggert@twinsun.com>
68996
68997         * modules/getpass: Depend on stdbool.
68998
68999 2003-10-08  Paul Eggert  <eggert@twinsun.com>
69000
69001         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
69002
69003 2003-10-07  Karl Berry  <karl@gnu.org>
69004
69005         * config/config.{guess,sub}: update from config.
69006
69007 2003-10-06  Jim Meyering  <jim@meyering.net>
69008             Bruno Haible  <bruno@clisp.org>
69009
69010         This lets translators provide better translations for the
69011         "Written by ..." part of --version output.
69012         * lib/version-etc.h: Include stdarg.h.
69013         (version_etc_copyright): Declare as readonly.
69014         (version_etc): Make this function variadic with a NULL-terminated list
69015         of author name strings.
69016         (version_etc_va): New declaration.
69017         * lib/version-etc.c: Include stdarg.h, stdlib.h.
69018         (version_etc_copyright): Declare as readonly.
69019         (version_etc_va): New function. Provide a different translatable string
69020         for each possible number of authors < 10. Abbreviate when there are 10
69021         authors or more.
69022         (version_etc): Make this function variadic. Call version_etc_va.
69023         Suggestion from Gary V. Vaughan.
69024
69025         * lib/long-options.h (parse_long_options): Change prototype: the
69026         authors string is moved to the end and becomes variadic.
69027         * lib/long-options.c: Include stdarg.h.
69028         (parse_long_options): Make this function variadic, too.
69029         Call version_etc_va, not version_etc.
69030
69031 2003-10-06  Bruno Haible  <bruno@clisp.org>
69032
69033         * modules/version-etc-2: Remove file.
69034         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
69035
69036 2003-10-06  Bruno Haible  <bruno@clisp.org>
69037
69038         * modules/fatal-signal: New file.
69039         * MODULES.html.sh (func_all_modules): Add fatal-signal.
69040
69041 2003-10-06  Bruno Haible  <bruno@clisp.org>
69042
69043         * m4/fatal-signal.m4: New file.
69044         * m4/signalblocking.m4: New file, from GNU gettext.
69045
69046 2003-10-06  Bruno Haible  <bruno@clisp.org>
69047
69048         * lib/version-etc-2.h: Remove file.
69049         * lib/version-etc-2.c: Remove file.
69050
69051 2003-10-06  Bruno Haible  <bruno@clisp.org>
69052
69053         * lib/fatal-signal.h: New file, from GNU gettext.
69054         * lib/fatal-signal.c: New file, from GNU gettext.
69055
69056 2003-10-05  Paul Eggert  <eggert@twinsun.com>
69057
69058         * README: Rework advice for preventing empty .o files.
69059         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
69060         not <sys/types.h>.
69061
69062 2003-10-04  Karl Berry  <karl@gnu.org>
69063
69064         * lib/argp*: update from libc.
69065
69066 2003-10-04  Karl Berry  <karl@gnu.org>
69067
69068         * config/config.{guess,sub}: update from config.
69069
69070 2003-10-02  Bruno Haible  <bruno@clisp.org>
69071
69072         * modules/lchown (Include): Add lchown.h.
69073         * modules/time_r (Include): Use "..." syntax.
69074         * modules/xgetdomainname (Include): Add xgetdomainname.h.
69075
69076 2003-10-01  Simon Josefsson  <jas@extundo.com>
69077
69078         * MODULES.html.sh (func_all_modules): Move gethostname from section
69079         'based on' to section 'lacking' POSIX:2001.
69080
69081 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
69082
69083         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
69084         to output mode on the same stream.
69085
69086 2003-09-29  Paul Eggert  <eggert@twinsun.com>
69087
69088         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
69089         Fix arg typo in previous patch.
69090
69091 2003-09-28  Jim Meyering  <jim@meyering.net>
69092
69093         * lib/error.c: Correct cpp indentation.
69094
69095 2003-09-27  Paul Eggert  <eggert@twinsun.com>
69096
69097         * modules/free: New file.
69098
69099 2003-09-27  Paul Eggert  <eggert@twinsun.com>
69100
69101         * m4/free.m4: New file.
69102
69103 2003-09-27  Paul Eggert  <eggert@twinsun.com>
69104
69105         * lib/minmax.h (MIN, MAX)
69106         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
69107         Omit the special code that used __typeof__, since we worry that
69108         it could be more trouble than it's worth.  See:
69109         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
69110         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
69111
69112         * lib/free.c: New file.
69113
69114 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
69115
69116         Trivial fixes to Makefile.am parts of module listings.
69117         * modules/strstr: Append strstr.h to lib_SOURCES.
69118         * modules/strcase: Likewise, for strcase.h.
69119
69120 2003-09-27  Karl Berry  <karl@gnu.org>
69121
69122         * config/mkinstalldirs: update from automake.
69123
69124 2003-09-26  Paul Eggert  <eggert@twinsun.com>
69125
69126         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
69127         (error_tail): Do not loop, reallocating temporary buffer, since
69128         the output cannot contain more wide characters than the input
69129         contains bytes, the size must be big enough already.  This avoids
69130         one potential size overflow calculation.  Check for size overflow
69131         when calculating temporary buffer size.  Free temporary buffer
69132         when done, if it was allocated with malloc; this plugs a memory
69133         leak.  Remove casts from void * to pointers, that are no longer
69134         needed now that we're assuming C89 or better.
69135
69136         Merge error changes from glibc.
69137
69138         * lib/error.c, error.h: Update copyright notice header to match glibc.
69139         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
69140         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
69141         Disable cancellation while printing error.
69142         * lib/error.h: Prepend __ to parameter names.
69143
69144 2003-09-26  Jim Meyering  <jim@meyering.net>
69145
69146         * lib/error.c (error_tail): Move some declarations
69147         into inner scope where the local variables are used.
69148
69149 2003-09-26  Bruno Haible  <bruno@clisp.org>
69150
69151         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
69152         stpncpy().
69153         Don't define stpncpy through config.h; it's now done through stpncpy.h.
69154
69155 2003-09-26  Bruno Haible  <bruno@clisp.org>
69156
69157         * lib/stpncpy.h (gnu_stpncpy): New declaration.
69158         (stpncpy): Define as alias for gnu_stpncpy.
69159         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
69160
69161 2003-09-25  Simon Josefsson  <jas@extundo.com>
69162
69163         * lib/xgetdomainname.h: New file.
69164         * lib/xgetdomainname.c: New file.
69165
69166 2003-09-25  Simon Josefsson  <jas@extundo.com>
69167             Bruno Haible  <bruno@clisp.org>
69168
69169         * modules/getdomainname: New file.
69170         * modules/xgetdomainname: New file.
69171         * MODULES.html.sh (func_all_modules): Add getdomainname,
69172         xgetdomainname.
69173
69174 2003-09-25  Simon Josefsson  <jas@extundo.com>
69175             Bruno Haible  <bruno@clisp.org>
69176
69177         * m4/getdomainname.m4: New file.
69178
69179 2003-09-25  Simon Josefsson  <jas@extundo.com>
69180             Bruno Haible  <bruno@clisp.org>
69181
69182         * lib/getdomainname.h: New file.
69183         * lib/getdomainname.c: New file.
69184
69185 2003-09-25  Karl Berry  <karl@gnu.org>
69186
69187         * lib/argp-fmtstream.c, argp-help.c: update from libc.
69188
69189 2003-09-25  Karl Berry  <karl@gnu.org>
69190
69191         * config/install-sh: update from automake.
69192
69193 2003-09-25  Bruno Haible  <bruno@clisp.org>
69194
69195         * modules/version-etc-2: New file, from modules/version-etc with
69196         modifications.
69197         * MODULES.html.sh (func_all_modules): Add version-etc-2.
69198
69199 2003-09-25  Bruno Haible  <bruno@clisp.org>
69200
69201         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
69202         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
69203
69204 2003-09-24  Simon Josefsson  <jas@extundo.com>
69205
69206         * modules/xgethostname: Add xgethostname.h.
69207
69208 2003-09-24  Paul Eggert  <eggert@twinsun.com>
69209
69210         * lib/linebuffer.c (freebuffer): Don't free the argument, just
69211         the buffer associated with the argument.  Bug reported by
69212         Simon Josefsson.
69213
69214 2003-09-24  Paul Eggert  <eggert@twinsun.com>
69215
69216         * README: Document assumptions that 'int' is at least 32 bits
69217         wide, that integer arithmetic is 2's complement without overflow,
69218         that there are no holes in integer values, that adding sizes of
69219         two nonoverlapping objects can't overflow, and that all-bits-zero
69220         yields scalar zero.  Fix spelling and capitalization typos.
69221
69222 2003-09-19  Karl Berry  <karl@gnu.org>
69223
69224         * lib/argp.h: update from libc.
69225
69226 2003-09-17  Paul Eggert  <eggert@twinsun.com>
69227
69228         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
69229         to avoid spurious warnings like "AC_RUN_IFELSE was called before
69230         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
69231
69232 2003-09-17  Paul Eggert  <eggert@twinsun.com>
69233
69234         * gnulib-tool: Use "test -h", not "test -L", for portability
69235         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
69236         (tags_regexp): Remove, since \| doesn't conform to POSIX.
69237         (sed_extract_prog): Issue s commands one-by-one, rather than
69238         using \| in one s command.
69239
69240 2003-09-16  Paul Eggert  <eggert@twinsun.com>
69241
69242         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
69243         input error, instead of returning NULL the next time we are called
69244         (and therefore losing track of errno).
69245
69246 2003-09-16  Bruno Haible  <bruno@clisp.org>
69247
69248         * gnulib-tool (func_create_testdir): Warn about duplicated
69249         dependencies.
69250
69251 2003-09-15  Paul Eggert  <eggert@twinsun.com>
69252
69253         * modules/argmatch, modules/fatal, modules/obstack,
69254         modules/xalloc, modules/xgethostname: Sort dependencies by
69255         importance, not alphabetically.
69256
69257 2003-09-15  Paul Eggert  <eggert@twinsun.com>
69258
69259         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
69260         fails, so that the caller gets the proper errno.
69261
69262         * lib/readutmp.c (read_utmp): Likewise.
69263         Check for fstat error.  Close stream and free storage
69264         when failing.
69265
69266 2003-09-14  Karl Berry  <karl@gnu.org>
69267
69268         * config/srclist.txt (strdup.c): disable for c89 changes.
69269
69270 2003-09-14  Jim Meyering  <jim@meyering.net>
69271
69272         * lib/getloadavg.c: Correct cpp indentation.
69273         * lib/strdup.c: Likewise.
69274         * lib/vasnprintf.c: Likewise.
69275
69276 2003-09-14  Bruno Haible  <bruno@clisp.org>
69277
69278         * modules/fwriteerror: New file.
69279         * MODULES.html.sh (func_all_modules): Add fwriteerror.
69280
69281 2003-09-14  Bruno Haible  <bruno@clisp.org>
69282
69283         * lib/fwriteerror.h: New file.
69284         * lib/fwriteerror.c: New file.
69285
69286 2003-09-12  Paul Eggert  <eggert@twinsun.com>
69287
69288         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
69289         modules/xgethostname, modules/xalloc: Depend on exit.
69290
69291 2003-09-12  Paul Eggert  <eggert@twinsun.com>
69292
69293         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
69294
69295         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
69296         and AC_MINIX, too, so that their extensions are available.
69297
69298         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
69299         This macro has been superseded by gl_BACKUPFILE.
69300
69301         More patches to assume C89 or better.
69302
69303         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
69304
69305         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
69306         unconditionally.
69307         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
69308         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
69309         Include <string.h>, <stdlib.h> unconditionally.
69310         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
69311         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
69312         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
69313         headers or for string.h.
69314         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
69315         or strtoul.
69316
69317         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
69318         headers.
69319         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
69320         * m4/userspec.m4 (gl_USERSPEC): Likewise.
69321         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
69322         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
69323         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
69324         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
69325         memcpy, memset.
69326         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
69327         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
69328         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
69329         strtol.
69330         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
69331         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
69332         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
69333         strtoul.
69334
69335 2003-09-12  Paul Eggert  <eggert@twinsun.com>
69336
69337         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
69338         * lib/obstack.c [!defined _LIBC]: Likewise.
69339         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
69340         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
69341         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
69342
69343         More changes to assume C89 or better.
69344
69345         * lib/error.c (error_tail): Assume vprintf.
69346
69347         * lib/argmatch.c (getenv): Remove decl.
69348         * lib/progreloc.c (get_full_program_name): Define via prototype.
69349         * lib/setenv.c (clearenv): Likewise.
69350         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
69351         needed.
69352         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
69353         (malloc, memcpy): Remove decls.
69354         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
69355         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
69356         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
69357         (memcpy): Remove macro.
69358         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
69359         (__P): Remove.  All uses removed.
69360         (PTR): Remove.  All uses changed to void *.
69361         (CHAR_BIT, NULL): Remove.
69362         (spaces, zeros, memset_space, memset_zero)
69363         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
69364         Remove.
69365         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
69366         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
69367         Define with prototype.
69368         Remove now-unnecessary prototype decl.
69369         (extra_args_spec): Assume ANSI C.  All uses changed.
69370         (extra_args_spec_iso): Remove.
69371         (my_strftime, emacs_strftimeu): Define via prototype.
69372         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
69373         unconditionally.
69374         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
69375         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
69376         (strtoul, strtol): Remove decls.
69377         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
69378         LONG_MAX): Remove.
69379         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
69380         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
69381         (LOCALE_PARAM_PROTO): New macro.
69382         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
69383         (INTERNAL (strtol), strtol): Define with a prototype.
69384         (PARAMS): Remove.  All uses removed.
69385         * lib/tempname.c: Include <string.h> unconditionally.
69386         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
69387         * lib/xgethostname.c (main): Define with a prototype.
69388         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
69389         Include <stdlib.h> unconditionally.
69390         (calloc, malloc, realloc, free): Remove decls.
69391         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
69392         Include <stdlib.h> unconditionally.  Sort include file names.
69393         (strtod): Remove.
69394         (xstrtod): Define with a prototype.
69395         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
69396         (strtol, strtoul): Remove decls.
69397
69398 2003-09-11  Paul Eggert  <eggert@twinsun.com>
69399
69400         More patches to assume C89 or better.
69401         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
69402         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
69403         string.h, memchr, STDC_HEADERS.
69404
69405 2003-09-11  Paul Eggert  <eggert@twinsun.com>
69406
69407         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
69408         Include <stdlib.h>, <string.h> unconditionally.
69409         Remove now-unnecessary cast to char *.
69410         * lib/strnlen.c: Include <string.h> unconditionally.
69411         * lib/yesno.c (yesno): Define with a prototype.
69412
69413 2003-09-11  Bruno Haible  <bruno@clisp.org>
69414
69415         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
69416
69417 2003-09-10  Jim Meyering  <jim@meyering.net>
69418
69419         * lib/error.c: Correct indentation of cpp directives.
69420
69421 2003-09-10  Bruno Haible  <bruno@clisp.org>
69422
69423         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
69424         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
69425         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
69426         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
69427         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
69428         <stdlib.h> and <string.h> checks.
69429         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
69430         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
69431
69432 2003-09-10  Bruno Haible  <bruno@clisp.org>
69433
69434         * lib/strcspn.c: Include <string.h> unconditionally.
69435         * lib/strpbrk.c: Include <string.h> unconditionally.
69436         * lib/strstr.c: Include <string.h> unconditionally.
69437         * lib/unicodeio.c: Include <string.h> unconditionally.
69438         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
69439         * lib/unsetenv.c: Likewise.
69440         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
69441         * lib/yesno.c: Include <stdlib.h> unconditionally.
69442         (rpmatch): Add prototype.
69443
69444 2003-09-09  Paul Eggert  <eggert@twinsun.com>
69445
69446         More patches to assume C89 or better.
69447         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
69448         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
69449         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
69450         or for string.h.
69451         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
69452         stdlib.h.
69453         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
69454         C headers.
69455         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
69456         string.h.
69457         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
69458         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
69459         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
69460         or for string.h.
69461         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
69462         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
69463         C headers.
69464         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
69465         memcpy.
69466         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
69467         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
69468         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
69469         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
69470         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
69471         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
69472         string.h, free.
69473         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
69474         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
69475         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
69476         C headers, or for string.h.
69477         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
69478         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
69479         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
69480         headers, memory.h, stdlib.h, string.h, strings.h.
69481         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
69482         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
69483         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
69484         strchr.
69485         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
69486         headers, memory.h, string.h.
69487         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
69488         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
69489         free.
69490         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
69491         headers.
69492         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
69493         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
69494         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
69495         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
69496         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
69497
69498 2003-09-09  Paul Eggert  <eggert@twinsun.com>
69499
69500         More K&R removal.
69501
69502         * lib/acosl.c (main): Use a prototype.
69503         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
69504         tanl.c: Likewise.
69505
69506         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
69507
69508         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
69509         (getopt, etopt_long, getopt_long_only, _getopt_internal)
69510         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
69511         with a prototype.
69512         * lib/getopt.c (const): Remove macro.
69513         Include <string.h> unconditionally.
69514         (my_index): Remove; all uses changed to strchr.
69515         (strlen): Remove decl.
69516         (exchange): Remove forward decl; no longer needed.
69517         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
69518         Define with prototype.
69519         * lib/getopt1.c (const): Remove macro.
69520         (getopt_long, getopt_long_only, main): Define with prototype.
69521
69522         * lib/getugroups.c: Include <string.h> unconditionally.
69523
69524         * lib/getusershell.c: Include <stdlib.h> unconditionally.
69525         (getusershell, setusershell, endusershell, readname, main):
69526         Define with prototypes.
69527
69528         * lib/group-member.c: Include group-member.h first.
69529         Include <stdlib.h> unconditionally.
69530
69531         * lib/hard-locale.c: Include hard-locale.h first.
69532         Include <stdlib.h>, <string.h> unconditionally.
69533
69534         * lib/hash.c (free, malloc): Remove decls.
69535         Include <stdlib.h> unconditionally.
69536
69537         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
69538         (getenv): Do not declare.
69539
69540         * lib/idcache.c: Include <string.h> unconditionally.
69541
69542         * lib/long-options.c: Include long-options.h first, to test interface.
69543         Include <stdlib.h> unconditionally.
69544
69545         * lib/makepath.c: Include makepath.h first, to test interface.
69546         Include <stdlib.h> and <string.h> unconditionally.
69547
69548         * lib/linebuffer.c: Include <stdlib.h>.
69549         (free): Remove decl.
69550
69551         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
69552         stddef.h. rpl_malloc returns void *, not char *.
69553         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
69554         prototype.
69555
69556         * lib/md5.h: Include <limits.h> unconditionally.
69557         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
69558         (__P): Remove; all uses removed.
69559         * lib/md5.c: Include "md5.h" first.
69560         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
69561         md5_buffer, md5_process_bytes, md5_process_block):
69562         Define with prototypes.
69563         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
69564         * lib/sha.c: Include "sha.h" first.
69565         Include <stdlib.h>, <string.h> unconditionally.
69566
69567         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
69568         * lib/memcmp.c (__ptr_t): Likewise.
69569         * lib/memrchr.c (__ptr_t): Likewise.
69570         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
69571         Include <string.h> unconditionally.
69572         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
69573         * lib/memchr.c: Include <stdlib.h> unconditionally.
69574         * lib/memchr.c (LONG_MAX): Remove.
69575         * lib/memrchr.c (LONG_MAX): Likewise.
69576         * lib/memchr.c (__memchr): Define via a prototype.
69577         * lib/memrchr.c (__memrchr): Likewise.
69578         * lib/memcmp.c (__P): Remove, and remove all uses.
69579         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
69580         Remove forward decls; no longer needed.
69581         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
69582         Use types required by C89 in prototype.
69583
69584         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
69585         * lib/savedir.c: Likewise.
69586         * lib/mkdir.c (free): Remove decl.
69587         * lib/rmdir.c (rmdir): Define with a prototype.
69588         * lib/savedir.c: Include savedir.h first, to test interface.
69589
69590         * lib/mktime.c (STDC_HEADERS): Remove.
69591         Include <stdlib.h>, <string.h> unconditionally.
69592
69593         * lib/modechange.c: Include <stdlib.h> unconditionally.
69594         (malloc): Remove decl.
69595
69596         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
69597         (free): Remove decl.
69598
69599         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
69600         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
69601         (This type really should be intptr_t, but that's a C99ism.)
69602         (_obstack_memcpy): Remove: all uses changed to memcpy.
69603         Include <string.h> unconditionally.
69604         (struct obstack): Assume __STDC__ for types of members
69605         chunkfun, freefun, extra_arg.
69606         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
69607         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
69608         obstack_begin, obstack_specify_allocation,
69609         obstack_specify_allocation_with_arg, obstack_chunkfun,
69610         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
69611         Remove unprototyped decls and the macros that use them.
69612         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
69613         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
69614         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
69615         (defined __STDC__ && __STDC__)]:
69616         Remove nonprototyped code.
69617         Include <stdlib.h> unconditionally.
69618         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
69619         _obstack_allocated_p, _obstack_free, obstack_free,
69620         _obstack_memory_used, print_and_abort):
69621         Define using prototypes.
69622         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
69623         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
69624         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
69625         obstack_next_free, obstack_object_size, obstack_room) [0]:
69626         Remove unused, unprototyped code.
69627
69628         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
69629
69630         * lib/physmem.c (physmem_total, physmem_available, main): Define
69631         with prototypes.
69632
69633         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
69634         (main): Define with a prototype.
69635
69636         * lib/posixver.c (getenv): Remove decl.
69637
69638         * lib/putenv.c (malloc): Returns void *, not char *.
69639         Include <string.h> unconditionally.
69640         (strchr, memcpy, NULL): Do not define.
69641
69642         * lib/readtokens.c: Include readtokens.h first, to test interface.
69643         Include <stdlib.h>, <string.h> unconditionally.
69644         (init_tokenbuffer): Define with a prototype.
69645
69646         * lib/regex.c (PARAMS): Remove.  All uses removed.
69647         All uses of _RE_ARGS removed, too.
69648         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
69649         unconditionally.
69650         (bzero): Assume memset exists.
69651         (memcmp, memcpy, NULL): Remove.
69652         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
69653         char, or assignments to local vars of type signed char.
69654         (init_syntax_once, PREFIX(extract_number_and_incr),
69655         PREFIX(print_partial_compiled_pattern),
69656         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
69657         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
69658         PREFIX(regex_grow_registers), PREFIX(regex_compile),
69659         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
69660         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
69661         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
69662         wcs_compile_range, byte_compile_range, truncate_wchar,
69663         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
69664         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
69665         count_mbs_length, wcs_re_match_2_internal,
69666         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
69667         PREFIX(alt_match_null_string_p),
69668         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
69669         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
69670         regfree, PREFIX(extract_number)): Define with prototype.  Remove
69671         now-unnecessary declaration, if any.
69672         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
69673         regcomp, regexec):
69674         Remove now-unnecessary casts among pointer types.
69675         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
69676
69677         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
69678         (free): Remove decl.
69679
69680         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
69681
69682         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
69683         (free): Remove decl.
69684
69685         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
69686         * lib/xgetcwd.c: Likewise.
69687
69688         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
69689         (free): Remove decl.
69690
69691         * lib/strchrnul.c (strchrnul): Define with a prototype.
69692         Fix bug: c_in was not converted to char before searching.
69693
69694         The following changes are not K&R related:
69695
69696         * lib/group-member.h: Include <sys/types.h>, so that this file is
69697         self-contained.
69698         * lib/makepath.h: Likewise.
69699
69700         * lib/getusershell.c (readname, default_index, line_size, readname):
69701         Use size_t, not int, for sizes.
69702         (readname): If the size overflows, report an error instead of
69703         looping forever.
69704
69705 2003-09-09  Paul Eggert  <eggert@twinsun.com>
69706
69707         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
69708         libc.
69709
69710 2003-09-09  Paul Eggert  <eggert@twinsun.com>
69711
69712         * README: New section: portability guidelines.
69713
69714 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
69715
69716         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
69717         C89 spec.
69718
69719 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
69720
69721         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
69722
69723 2003-09-08  Paul Eggert  <eggert@twinsun.com>
69724
69725         Assume C89 or better; remove K&R cruft.
69726         A few of these changes were first proposed by Derek Robert Price
69727         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
69728
69729         * lib/addext.c: Include <string.h> unconditionally.
69730         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
69731         Don't declare getenv or malloc.
69732
69733         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
69734         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
69735         (NULL): Remove.
69736         (find_stack_direction, alloca): Use prototypes.
69737
69738         * lib/atexit.c (atexit): Define using a prototype.
69739
69740         * lib/basename.c, dirname.c, stripslash.c:
69741         Include <string.h> unconditionally.
69742
69743         * lib/bcopy.c: Include <stddef.h>.
69744         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
69745
69746         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
69747
69748         * lib/error.h (error, error_at_line, error_print_progname)
69749         [! (defined (__STDC__) && __STDC__)]: Remove decls.
69750         * lib/error.c: Include error.h first, to check interface.
69751         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
69752         (VA_START): Remove; all uses changeed to va_start.
69753         (exit, strerror): Remove decls.
69754         (error_print_progname): Prototype uncondionally.
69755         Don't include <errno.h>; no longer needed.
69756         (private_strerror): Remove.
69757         (error_tail): Always define.
69758         (error, error_at_line): Assume C89 or better; always use prototypes.
69759         * lib/fatal.c: Include "fatal.h" first, to test interface.
69760         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
69761         (VA_START): Remove; all uses changed to va_start.
69762         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
69763         this case.
69764         (exit): Remove decl.
69765         (fatal): Prototype unconditionally.  Assume va_start works.
69766         Abort at end, to pacify gcc.
69767
69768         * lib/euidaccess.c (main): Define with a prototype.
69769
69770         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
69771
69772         * lib/exitfail.c: Include <stdlib.h> unconditionally.
69773
69774         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
69775         prototypes.
69776         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
69777         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
69778         (getenv): Remove decl.
69779         (fnmatch): Define using a prototype.
69780         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
69781         (FCT): Define using a prototype.
69782
69783         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
69784
69785         * lib/gethostname.c: Include <stddef.h>.
69786         (gethostname): Define with prototype.  Length is size_t, not int.
69787
69788 2003-09-08  Paul Eggert  <eggert@twinsun.com>
69789
69790         Assume C89 or better; remove K&R cruft.
69791         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
69792         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
69793         string.h, getenv, malloc.
69794         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
69795         headers.
69796         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
69797         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
69798         do not check for strerror.
69799         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
69800         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
69801         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
69802         do not check for doprnt or vprintf.
69803         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
69804         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
69805
69806 2003-09-08  Paul Eggert  <eggert@twinsun.com>
69807
69808         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
69809         getversion.c should have been removed then, but was accidentally
69810         preserved.
69811
69812         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
69813         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
69814
69815 2003-09-08  Karl Berry  <karl@gnu.org>
69816
69817         * config/config.sub, config.guess, srclistvars.sh: update from savannah
69818                 config, forget about prep.
69819
69820         * config/depcomp, missing: update from automake.
69821
69822 2003-09-07  Paul Eggert  <eggert@twinsun.com>
69823
69824         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
69825         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
69826
69827 2003-09-07  Paul Eggert  <eggert@twinsun.com>
69828
69829         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
69830         copy_tm_result.  Bug reported by Simon Josefsson in
69831         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
69832
69833 2003-09-06  Paul Eggert  <eggert@twinsun.com>
69834
69835         * m4/time_r.m4: New file.
69836         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
69837         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
69838         is. Check for timegm declaration.
69839         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
69840         Do not check for gmtime_r.
69841         Replace mktime if __mktime_internal does not exist and if mktime
69842         hasn't been replaced already.
69843
69844 2003-09-06  Paul Eggert  <eggert@twinsun.com>
69845
69846         * lib/time_r.c, lib/time_r.h: New files.
69847
69848         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
69849         __localtime_r.
69850         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
69851         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
69852
69853         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
69854         __gmtime_r.
69855         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
69856         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
69857         Include <time_r.h>.
69858
69859         * lib/timegm.c: Switch to glibc implementation, with the following
69860         changes:
69861         [defined HAVE_CONFIG_H]: Include <config.h>.
69862         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
69863         (__mktime_internal) [!defined _LIBC]: New decl.
69864         (__gmtime_r) [!defined _LIBC]: New macro and function.
69865         (timegm): Use a prototype, since gnulib assumes C89.
69866         Do not bother declaring tmp to be const, as it's not really usefu.
69867         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
69868         (timegm): Declare only if HAVE_DECL_TIMEGM.
69869
69870 2003-09-06  Paul Eggert  <eggert@twinsun.com>
69871
69872         * MODULES.html.sh (func_all_modules): Add time_r.
69873         * modules/time_r: New file.
69874         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
69875         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
69876
69877 2003-09-03  Paul Eggert  <eggert@twinsun.com>
69878
69879         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
69880         Bug reported by Lute Kamstra in
69881         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
69882
69883         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
69884         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
69885         course with correspondingly smaller numbers for tomorrow and
69886         yesterday.  From Tadayoshi Funaba.  Originally installed into
69887         sh-utils on 1999-08-07, but the patch got lost (I guess during the
69888         coreutils merge?).
69889
69890 2003-08-31  Simon Josefsson  <jas@extundo.com>
69891
69892         * modules/timegm: New file.
69893         * MODULES.html.sh (func_all_modules): Add timegm.
69894
69895 2003-08-31  Simon Josefsson  <jas@extundo.com>
69896
69897         * m4/timegm.m4: New file.
69898
69899 2003-08-31  Simon Josefsson  <jas@extundo.com>
69900
69901         * lib/timegm.h: New file.
69902         * lib/timegm.c: New file.  Based on
69903         wget-1.8.2/src/http.c:mktime_from_utc.
69904
69905 2003-08-31  Karl Berry  <karl@gnu.org>
69906
69907         * lib/argp.h: update from libc.
69908
69909 2003-08-28  Bruno Haible  <bruno@clisp.org>
69910
69911         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
69912         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
69913         followed by '#define fnmatch fnmatch_posix' gives an error.
69914
69915 2003-08-28  Bruno Haible  <bruno@clisp.org>
69916
69917         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
69918         warning on QNX, which defines O_BINARY to 000000.
69919
69920 2003-08-27  Jim Meyering  <jim@meyering.net>
69921
69922         * m4/mkstemp.m4: Require that the system mkstemp be able to create
69923         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
69924         would fail after 32.  Reported by Danny Levinson.  Details here:
69925         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
69926
69927 2003-08-24  Bruno Haible  <bruno@clisp.org>
69928
69929         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
69930         MSVC7 <stdio.h> is included later.
69931
69932 2003-08-22  Simon Josefsson  <jas@extundo.com>
69933
69934         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
69935
69936 2003-08-20  Karl Berry  <karl@gnu.org>
69937
69938         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
69939
69940 2003-08-20  Bruno Haible  <bruno@clisp.org>
69941
69942         * modules/progname: New file.
69943         * MODULES.html.sh (func_all_modules): Add progname.
69944
69945 2003-08-20  Bruno Haible  <bruno@clisp.org>
69946
69947         * lib/progname.h: New file, from GNU gettext.
69948         * lib/progname.c: New file, from GNU gettext.
69949         * lib/progreloc.c: New file, from GNU gettext.
69950
69951 2003-08-19  Jim Meyering  <jim@meyering.net>
69952
69953         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
69954         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
69955
69956 2003-08-19  Bruno Haible  <bruno@clisp.org>
69957
69958         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
69959         more.
69960
69961 2003-08-19  Bruno Haible  <bruno@clisp.org>
69962
69963         * lib/xstrdup.c: Assume <string.h> exists.
69964
69965 2003-08-18  Paul Eggert  <eggert@twinsun.com>
69966
69967         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
69968         in makefile rules.
69969
69970 2003-08-18  Jim Meyering  <jim@meyering.net>
69971
69972         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
69973         * m4/lib-ld.m4: Likewise.
69974
69975 2003-08-18  Jim Meyering  <jim@meyering.net>
69976
69977         * lib/setenv.h: Indent nested cpp directive.
69978         * lib/vasnprintf.c: Remove trailing blanks.
69979
69980 2003-08-17  Simon Josefsson  <jas@extundo.com>
69981
69982         * modules/xstrndup: New file.
69983         * MODULES.html.sh (func_all_modules): Add xstrndup.
69984
69985 2003-08-17  Simon Josefsson  <jas@extundo.com>
69986
69987         * modules/argp: Fix autoconf macro name. Add more dependencies.
69988
69989 2003-08-17  Simon Josefsson  <jas@extundo.com>
69990
69991         * m4/xstrndup.m4: New file.
69992
69993 2003-08-17  Simon Josefsson  <jas@extundo.com>
69994
69995         * m4/argp.m4: New file.
69996
69997 2003-08-17  Simon Josefsson  <jas@extundo.com>
69998             Bruno Haible  <bruno@clisp.org>
69999
70000         * lib/xstrndup.h: New file.
70001         * lib/xstrndup.c: New file.
70002
70003 2003-08-17  Bruno Haible  <bruno@clisp.org>
70004
70005         * modules/strndup (Files, Include): Add lib/strndup.h.
70006
70007 2003-08-17  Bruno Haible  <bruno@clisp.org>
70008
70009         * modules/euidaccess (Files): Add lib/euidaccess.h.
70010
70011 2003-08-17  Bruno Haible  <bruno@clisp.org>
70012
70013         * lib/strndup.h: New file.
70014
70015 2003-08-17  Bruno Haible  <bruno@clisp.org>
70016
70017         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
70018         like AC_GNU_SOURCE.
70019         * modules/extensions (configure.ac): Comment out the invocation of
70020         gl_USE_SYSTEM_EXTENSIONS.
70021
70022 2003-08-16  Paul Eggert  <eggert@twinsun.com>
70023
70024         Merges from coreutils, etc.
70025         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
70026         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
70027         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
70028         fixing a typo.
70029         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
70030         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
70031
70032 2003-08-16  Paul Eggert  <eggert@twinsun.com>
70033
70034         Document merge from coreutils.
70035         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
70036         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
70037         * modules/utime: Add m4/utimes-null.m4.
70038
70039 2003-08-16  Paul Eggert  <eggert@twinsun.com>
70040
70041         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
70042         space, undoing this 2003-08-12 change:
70043         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
70044
70045 2003-08-16  Paul Eggert  <eggert@twinsun.com>
70046
70047         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
70048         strtoul.c from libc, undoing this 2003-08-12 change:
70049         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
70050
70051 2003-08-16  Jim Meyering  <jim@meyering.net>
70052
70053         Merges from coreutils.
70054         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
70055         prefix.  Adjust cache variables similarly.  Create 500 rather than
70056         just 300 files, to exercise bug on Darwin6.5, too.
70057         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
70058         $missing_dir.
70059         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
70060         AM_SYS_POSIX_TERMIOS.
70061         Reported by mkc@mathdogs.com.
70062         Also change use of $am_cv_sys_posix_termios
70063         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
70064         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
70065         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
70066         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
70067         in /proc/mounts until it finds one with matching device number.  This
70068         is unnecessary when the FILE argument *is* a mount point.  No stat call
70069         is necessary in that case.  So, disable the statvfs-testing code on
70070         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
70071         as RedHat bug# 84846.
70072         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
70073         to 1MB, so as not to render systems with no stack size limit (e.g.,
70074         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
70075         Include <unistd.h>.  On some systems,
70076         it is required for the definition of _SC_PAGESIZE.
70077
70078 2003-08-16  Jim Meyering  <jim@meyering.net>
70079
70080         Merge from coreutils.
70081         * lib/xstrtoimax.c: #else #if -> #elif.
70082         * lib/xstrtoumax.c: Likewise.
70083
70084 2003-08-16  Jim Meyering  <jim@meyering.net>
70085
70086         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
70087         * m4/utimes.m4: Removed.
70088         * m4/utimes-null.m4: Renamed from utimes.m4.
70089
70090         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
70091         to 1MB, so as not to render systems with no stack size limit (e.g.,
70092         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
70093         Include <unistd.h>.  On some systems,
70094         it is required for the definition of _SC_PAGESIZE.
70095
70096 2003-08-16  Jim Meyering  <jim@meyering.net>
70097         and Paul Eggert  <eggert@cs.ucla.edu>
70098
70099         Merges from coreutils, etc.
70100
70101         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
70102         using the latest version from cvs.  This avoids problems with #line
70103         directives using a vendor (Sun) compiler.
70104         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
70105         Don't set GETGROUPS_LIB here; now it's
70106         done via getgroups.m4's wrapper function.
70107         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
70108         rather than just in sh-util/configure.in, so that the
70109         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
70110         same.
70111         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
70112         AC_FUNC_GETLOADAVG where to find getloadavg.c.
70113         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
70114         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
70115         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
70116         Remove code that is now done by the newly-required macros.
70117         Append $(EXEEXT) to DF_PROG.
70118         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
70119         Do not invoke or require the following here,
70120         since prereq.m4 or some gnulib .m4 now does this for us:
70121         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
70122         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
70123         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
70124         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
70125         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
70126         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
70127         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
70128         AC_FUNC_OBSTACK.
70129         Do not replace the following functions, as this is now the job
70130         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
70131         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
70132         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
70133         atexit getpass, strdup, getpagesize.
70134         Replace 'raise'.
70135         Do not check for the following functions, as this is now the job
70136         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
70137         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
70138         setregid.
70139         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
70140         Check for sys/sysctl.h.
70141         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
70142         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
70143         of checking for ssize_t ourselves.
70144
70145         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
70146         Require every macro that gnulib/modules/* suggests for us.
70147         (jm_PREREQ_ADDEXT): New macro.
70148         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
70149         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
70150
70151         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
70152         (gl_PHYSMEM): Use it.
70153         Also check for `table' function.
70154         Check for new headers and functions.
70155         Add check for sys/sysmp.h.
70156         With suggestions from Kaveh Ghazi.
70157         Ignore headers that are present but cannot be compiled.  This
70158         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
70159         C 5.4.
70160
70161 2003-08-15  Paul Eggert  <eggert@twinsun.com>
70162
70163         Document merge from coreutils.
70164         * modules/userspec: Depend on posixver.
70165         * modules/strftime: Depend on tzset.
70166
70167 2003-08-15  Paul Eggert  <eggert@twinsun.com>
70168
70169         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
70170         rather than tab, after '#' in shell-script copyright notices.
70171         Suggested by Bruno Haible.
70172
70173 2003-08-15  Paul Eggert  <eggert@twinsun.com>
70174
70175         * config/srclist-update: Use three spaces, rather than tab, after '#'
70176         in shell-script copyright notices.  Suggested by Bruno Haible.
70177         Remove unnecessary parenthesization in regular expression.
70178
70179 2003-08-15  Jim Meyering  <jim@meyering.net>
70180
70181         Merge from coreutils.
70182         * lib/xgethostname.c: Include <stdlib.h>.
70183         (xghostname): Don't exit for anything other than memory-related
70184         failure; just return NULL.
70185         * lib/userspec.c: Include "posixver.h".
70186         (parse_user_spec): Accept `.' as a separator only
70187         in pre-POSIX-200112 mode.
70188         * lib/strtoimax.c: Use #elif rather than #else #if.
70189         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
70190         Remove function, now that we can rely on a working tzset function.
70191         [!_LIBC]: Ensure that the required autoconf test has been run.
70192         [!defined _NL_CURRENT && HAVE_STRFTIME]:
70193         Use underlying_strftime for %r.
70194         * lib/sha.c: Merge in some clean-up and optimization changes from
70195         glibc.
70196         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
70197         Ensure that it is a multiple of 64.
70198         Rearrange loop exit tests so as to avoid performing an
70199         additional fread after encountering an error or EOF.
70200         * lib/realloc.c: Update copyright date.
70201
70202 2003-08-15  Jim Meyering  <jim@meyering.net>
70203         and Paul Eggert  <eggert@twinsun.com>
70204
70205         Merge from coreutils.
70206         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
70207         member but strut utmpx does not.  Needed for AIX 4.3.3.
70208         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
70209
70210 2003-08-15  Jim Meyering  <jim@meyering.net>
70211         and Paul Eggert  <eggert@cs.ucla.edu>
70212
70213         Merges from coreutils, etc.
70214         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
70215         Require gl_FUNC_TZSET_CLOBBER.
70216         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
70217         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
70218         members.
70219
70220 2003-08-14  Paul Eggert  <eggert@twinsun.com>
70221
70222         Help the merge from coreutils.
70223         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
70224         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
70225         * m4/tzset.m4: Use it too.
70226
70227 2003-08-14  Paul Eggert  <eggert@twinsun.com>
70228
70229         * modules/tzset: New file.
70230
70231 2003-08-14  Jim Meyering  <jim@meyering.net>
70232
70233         Merges from coreutils.
70234         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
70235         variable names, rather than @FNMATCH_H@.
70236         * modules/alloca: Likewise for $(ALLOCA_H).
70237
70238         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
70239         the three copies of the literal target, `fnmatch.h'.
70240         * modules/alloca (alloca.h): Likewise.
70241
70242 2003-08-14  Jim Meyering  <jim@meyering.net>
70243
70244         Merge from coreutils.
70245         * m4/tzset.m4: New file.
70246         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
70247         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
70248         otherwise, AIX 5.1 systems would end up using the latter.
70249         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
70250         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
70251         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
70252         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
70253
70254 2003-08-14  Jim Meyering  <jim@meyering.net>
70255
70256         Merge from coreutils.
70257         * lib/obstack.h: Whitespace changes.
70258         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
70259         and xcalloc return values.
70260         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
70261         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
70262         hang on OSF/1 5.1 for DIR on both local and remote file systems.
70263         Reported by (and fix confirmed by) Nelson H. F. Beebe.
70264         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
70265         error from mntctl.
70266         Use mntctl's return value to drive the entry-processing loop, since
70267         we can't rely on the value of the vmt_length member in the last
70268         entry.  On some systems doing so could result in exhausting
70269         virtual memory.  Based in part on a patch from Mike Jetzer.
70270
70271 2003-08-14  Jim Meyering  <jim@meyering.net>
70272         and Paul Eggert  <eggert@twinsun.com>
70273
70274         Merges from coreutils, plus other fixes.
70275         * lib/physmem.c: Merge in portability changes from gcc/libiberty
70276         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
70277         for credits and details.  Thanks to Kaveh Ghazi for helping
70278         to keep these files in sync.
70279         (ARRAY_SIZE): Define it.
70280         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
70281         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
70282         (memcasecmp): Don't assume size_t fits in unsigned int.
70283         Remove casts and duplicate code.
70284         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
70285         (memcpy): Remove definition.
70286         Merge in some clean-up and optimization changes from glibc.
70287         [BLOCKSIZE]: Move definition to top of file.
70288         Ensure that it is a multiple of 64.
70289         Rearrange loop exit tests so as to avoid performing an
70290         additional fread after encountering an error or EOF.
70291         * lib/md5.h (md5_uintptr): Define.
70292         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
70293         return to the initial working directory.  Preserve errno
70294         for caller.
70295         * lib/idcache.c: Include "xalloc.h".
70296         (xmalloc, xrealloc): Remove decls.
70297         (getuser): Remove casts no longer required in C89.
70298         * lib/human.c: Include stdio.h, for sprintf.
70299         * lib/group-member.c: Include "xalloc.h".
70300         (xmalloc, xrealloc): Remove decls.
70301         (get_group_info): Remove casts no longer required in C89.
70302         * lib/getusershell.c (readname): Remove casts no longer required in
70303         C89.
70304         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
70305         * lib/getline.c: Whitespace fix, from coreutils.
70306
70307 2003-08-13  Paul Eggert  <eggert@twinsun.com>
70308
70309         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
70310         Check for isascii.
70311
70312         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
70313         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
70314         Undo previous (whitespace-only) change.
70315
70316 2003-08-13  Paul Eggert  <eggert@twinsun.com>
70317
70318         * lib/exclude.c: Include <ctype.h>
70319         (IN_CTYPE_DOMAIN): New macro.
70320         (is_space): New fn.
70321         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
70322         and empty lines.
70323
70324         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
70325         Undo previous (whitespace-only) change.
70326
70327 2003-08-13  Paul Eggert  <eggert@twinsun.com>
70328
70329         * config/srclist-update: Change update back to the old behavior,
70330         leaving whitespace alone.  Use one 'sed' command rather than a
70331         pipeline.
70332         (fixlicense): Now a variable, not a function.
70333         (remove_trailing_blanks): Remove.
70334         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
70335         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
70336         Undo previous (whitespace-only) change.
70337
70338 2003-08-12  Paul Eggert  <eggert@twinsun.com>
70339
70340         Merge from coreutils.
70341         * modules/euidaccess: Add lib_SOURCES, include for new
70342         file euidaccess.h
70343
70344 2003-08-12  Paul Eggert  <eggert@twinsun.com>
70345
70346         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
70347         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
70348         Normalize leading white space and remove trailing white space.
70349
70350         Merge from coreutils
70351         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
70352
70353         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
70354         0.12.1.  These files are now being upgraded automatically by
70355         ../config/srclist-update.
70356
70357 2003-08-12  Paul Eggert  <eggert@twinsun.com>
70358
70359         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
70360         Normalize leading white space and remove trailing white space.
70361         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
70362         notice, as per ../config/srclist-update.
70363
70364         Merge from coreutils.
70365         * lib/euidaccess.h: New file.
70366         * lib/euidaccess.c: Include it.
70367         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
70368         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
70369         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
70370
70371 2003-08-12  Paul Eggert  <eggert@twinsun.com>
70372
70373         * config/srclist-update: Add copyright notice.
70374         (remove_id_lines, remove_trailing_blanks): New constants.
70375         (fixfile): Use them to normalize spacing a bit in copied files.
70376         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
70377         Normalize leading white space and remove trailing white space.
70378
70379         * config/texinfo.tex: Sync with texinfo.
70380
70381         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
70382         strtoul.c from libc, to merge coreutils whitespace changes.
70383
70384         * config/srclist.txt: Get the following m4 files from gettext:
70385         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
70386         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
70387         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
70388         wint_t.m4.
70389
70390 2003-08-12  Karl Berry  <karl@gnu.org>
70391
70392         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
70393         been made.
70394
70395 2003-08-11  Paul Eggert  <eggert@twinsun.com>
70396
70397         * modules/gnu-source, m4/gnu-source.m4:
70398         Remove; we're assuming Autoconf 2.54 or later now.
70399         Suggested by Bruno Haible.
70400         * MODULES.html.sh (func_all_modules): Remove gnu-source.
70401
70402 2003-08-11  Bruno Haible  <bruno@clisp.org>
70403
70404         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
70405
70406 2003-08-11  Bruno Haible  <bruno@clisp.org>
70407
70408         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
70409         (vasnprintf): Use it instead of wcslen.
70410
70411 2003-08-11  Bruno Haible  <bruno@clisp.org>
70412
70413         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
70414         value to ensure that _Bool promotes to int. Use #define for _Bool when
70415         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
70416
70417 2003-08-10  Karl Berry  <karl@gnu.org>
70418
70419         * lib/regex.h: update from libc (whitespace fix).
70420
70421 2003-08-09  Paul Eggert  <eggert@twinsun.com>
70422
70423         Merge some files from coreutils.  These changes were
70424         originally made by Jim Meyering.
70425         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
70426         many older Unixes require this.
70427         * lib/alloca.c (alloca): Remove cast to argument of free;
70428         no longer needed in C89.
70429         * lib/alloca_.h, regex.h: Fix white space to match
70430         what GNU indent does.
70431
70432 2003-08-09  Paul Eggert  <eggert@twinsun.com>
70433
70434         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
70435         apparently Emacs's Unicode mode got confused before my 2003-08-05
70436         checkin.
70437
70438 2003-08-08  Paul Eggert  <eggert@twinsun.com>
70439
70440         * m4/extensions.m4: New file.
70441         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
70442         Require gl_USE_SYSTEM_EXTENSIONS.
70443         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
70444         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
70445
70446 2003-08-08  Paul Eggert  <eggert@twinsun.com>
70447
70448         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
70449         * modules/extensions, modules/gnu-source: New files.
70450         * modules/timespec, modules/unlocked-io: Depend on extensions.
70451
70452 2003-08-07  Paul Eggert  <eggert@twinsun.com>
70453
70454         * modules/restrict: New file.
70455         * MODULES.html.sh (func_all_modules): Add restrict.
70456         * modules/regex: Depend on restrict.
70457
70458 2003-08-07  Paul Eggert  <eggert@twinsun.com>
70459
70460         * m4/restrict.m4: New file.
70461         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
70462
70463 2003-08-07  Bruno Haible  <bruno@clisp.org>
70464
70465         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
70466         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
70467
70468 2003-08-07  Bruno Haible  <bruno@clisp.org>
70469
70470         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
70471         makes the module 'getndelim2' compatible with the module 'getline'.
70472
70473 2003-08-05  Paul Eggert  <eggert@twinsun.com>
70474
70475         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
70476         byte with "\201" to avoid glitches when editing that source file
70477         with multi-gnome-terminal.
70478
70479 2003-08-05  Paul Eggert  <eggert@twinsun.com>
70480
70481         * lib/bumpalloc.h: Remove.
70482
70483 2003-08-05  Paul Eggert  <eggert@twinsun.com>
70484
70485         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
70486         * modules/bumpalloc: Remove.
70487
70488 2003-08-04  Paul Eggert  <eggert@twinsun.com>
70489
70490         * lib/getloadavg.c: Change copyright notice and spacing to conform to
70491         GNU coding style.
70492
70493         Merge from coreutils.
70494         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
70495         1. From glibc.
70496         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
70497         from Karl Berry, implemented by Jim Meyering.
70498         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
70499         from Dmitry V. Levin.
70500         Remove anachronistic cast of xrealloc.
70501         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
70502         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
70503         type. Otherwise, it wouldn't compile with at least /bin/cc on
70504         ymp-cray-unicos9.0.2.X.
70505         Combine two mostly-identical uses of alloca into one.
70506         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
70507
70508 2003-08-04  Dave Love  <d.love@dl.ac.uk>
70509
70510         [From Emacs.]
70511
70512         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
70513         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
70514         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
70515         obsolete NLIST_NAME_UNION.
70516         [__GNU__]: Undef BSD and FSCALE.
70517         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
70518
70519 2003-08-03  Paul Eggert  <eggert@twinsun.com>
70520
70521         * lib/stdbool_.h (_Bool): Make it signed char, instead of
70522         an enum type, so that it's guaranteed to promote to int.  See:
70523         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
70524
70525 2003-08-03  Karl Berry  <karl@gnu.org>
70526
70527         * config/depcomp: update from automake.
70528
70529 2003-07-31  Paul Eggert  <eggert@twinsun.com>
70530
70531         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
70532         (strerror): Don't assume that a printable int fits in 14 bytes.
70533
70534 2003-07-31  Bruno Haible  <bruno@clisp.org>
70535
70536         * modules/getpass-gnu: New file.
70537         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
70538
70539 2003-07-31  Bruno Haible  <bruno@clisp.org>
70540
70541         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
70542
70543 2003-07-24  Karl Berry  <karl@gnu.org>
70544
70545         * config/missing: update from automake.
70546
70547 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
70548             Bruno Haible  <bruno@clisp.org>
70549
70550         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
70551         * lib/getline.c (getline, getdelim): Likewise.
70552         Remove _GNU_SOURCE define; now it's defined in config.h through
70553         m4/getline.m4.
70554
70555 2003-07-23  Karl Berry  <karl@gnu.org>
70556
70557         * config/config.sub: update from prep.
70558
70559 2003-07-22  Paul Eggert  <eggert@twinsun.com>
70560
70561         * modules/xalloc (Depends-on): Add exitfail.
70562         * modules/xmemcoll: Likewise.
70563
70564 2003-07-22  Paul Eggert  <eggert@twinsun.com>
70565
70566         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
70567         over-parenthesization in macros.
70568
70569         Sync with coreutils.
70570
70571         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
70572         required by C99.
70573
70574         Use `exit_failure' for xalloc and xmemcoll instead of their own
70575         private exit-failure variables.
70576         * lib/xalloc.h (xalloc_exit_failure): Remove.
70577         * lib/xmalloc.c: Likewise.  Include exitfail.h.
70578         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
70579         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
70580         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
70581         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
70582
70583 2003-07-20  Jim Meyering  <jim@meyering.net>
70584
70585         * modules/closeout (Depends-on): Add exitfail.
70586         Suggestion from Bruno Haible.
70587
70588 2003-07-19  Karl Berry  <karl@gnu.org>
70589
70590         * config/config.sub: update from prep.
70591
70592 2003-07-18  Paul Eggert  <eggert@twinsun.com>
70593
70594         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
70595         Remove.
70596         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
70597         to test that it can stand by itself.  Include "exitfail.h".
70598         Clients should set exit_failure instead.
70599         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
70600
70601 2003-07-18  Bruno Haible  <bruno@clisp.org>
70602
70603         * modules/getndelim2: New file.
70604         * modules/getline: Share files with module getndelim2.
70605         * modules/getnline: Depend on getndelim2 instead of sharing files with
70606         it. Add getnline.c to lib_SOURCES.
70607         * MODULES.html.sh (func_all_modules): Add getndelim2.
70608
70609 2003-07-18  Bruno Haible  <bruno@clisp.org>
70610
70611         * m4/getndelim2.m4: New file.
70612         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
70613         invoke gl_PREREQ_GETNDELIM2.
70614         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
70615         gl_PREREQ_GETNDELIM2.
70616         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
70617         gl_GETNDELIM2.
70618
70619 2003-07-18  Bruno Haible  <bruno@clisp.org>
70620
70621         * lib/getndelim2.h: New file.
70622         * lib/getndelim2.c: Make into a module of its own. Include config.h,
70623         getndelim2.h.
70624         (getndelim2): Make non-static. Change return type to ssize_t.
70625         * lib/getline.h: Change argument names.
70626         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
70627         * lib/getnline.c: Include getndelim2.h.
70628
70629 2003-07-18  Andreas Schwab  <schwab@suse.de>
70630
70631         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
70632
70633 2003-07-17  Karl Berry  <karl@gnu.org>
70634
70635         * config/config.sub: update from prep.
70636
70637 2003-07-17  Bruno Haible  <bruno@clisp.org>
70638
70639         * modules/getnline: New file.
70640         * modules/getline: Add lib/getndelim2.c to source file list.
70641         * MODULES.html.sh (func_all_modules): Add getnline.
70642
70643 2003-07-17  Bruno Haible  <bruno@clisp.org>
70644
70645         * m4/getnline.m4: New file.
70646
70647 2003-07-17  Bruno Haible  <bruno@clisp.org>
70648
70649         * m4/Makefile.am.in: Remove file.
70650         * m4/Makefile.am: Remove file.
70651         * m4/Makefile.in: Remove file.
70652
70653 2003-07-17  Bruno Haible  <bruno@clisp.org>
70654
70655         * lib/getnline.h: New file.
70656         * lib/getnline.c: New file.
70657         * lib/getndelim2.c: New file, extracted from getline.c.
70658         (getndelim2): Renamed from getdelim2, with added nmax argument.
70659         * lib/getline.c: Include getndelim2.c.
70660         (getdelim2): Moved out to getndelim2.c.
70661         (getline, getdelim): Update.
70662
70663 2003-07-17  Bruno Haible  <bruno@clisp.org>
70664
70665         * lib/Makefile.am: Remove file.
70666         * lib/Makefile.in: Remove file.
70667
70668 2003-07-17  Bruno Haible  <bruno@clisp.org>
70669
70670         * configure.in: Remove file.
70671         * Makefile.in: Remove file.
70672
70673 2003-07-17  Bruno Haible  <bruno@clisp.org>
70674
70675         * MODULES.html.sh: Put the </BODY> right before </HTML>.
70676
70677 2003-07-16  Karl Berry  <karl@gnu.org>
70678
70679         * config/srclist-update: was running fixlicense twice, which caused
70680                 texinfo.tex to be nullified for some reason.  Simplify,
70681                 $gplsrc is no longer needed as far as I can see?
70682
70683 2003-07-16  Jim Meyering  <jim@meyering.net>
70684
70685         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
70686
70687 2003-07-15  Paul Eggert  <eggert@twinsun.com>
70688
70689         * config/srclist.txt: Get the following files from gettext-runtime/intl
70690         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
70691         ref-del.sin.  From Bruno Haible.
70692         * config/srclist-update (fixfile): Change grep pattern again, since the
70693         previous fix didn't work (there was another trailing $).  Use
70694         '[$]' to escape the $s.
70695
70696 2003-07-15  Karl Berry  <karl@gnu.org>
70697
70698         * lib/vasnprintf.c: update from gettext.
70699
70700 2003-07-15  Karl Berry  <karl@gnu.org>
70701
70702         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
70703         gets expanded when surrounded by '$'.
70704
70705 2003-07-15  Jim Meyering  <jim@meyering.net>
70706
70707         * modules/save-cwd: Don't depend on error.  From Derek Price.
70708
70709 2003-07-15  Jim Meyering  <jim@meyering.net>
70710
70711         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
70712
70713 2003-07-14  Simon Josefsson  <jas@extundo.com>
70714
70715         * modules/mempcpy: New file.
70716         * MODULES.html.sh (func_all_modules): Add mempcpy.
70717
70718 2003-07-14  Simon Josefsson  <jas@extundo.com>
70719
70720         * m4/mempcpy.m4: New file.
70721
70722 2003-07-14  Simon Josefsson  <jas@extundo.com>
70723
70724         * lib/mempcpy.h: New file.
70725         * lib/mempcpy.c: New file.
70726
70727 2003-07-14  Paul Eggert  <eggert@twinsun.com>
70728
70729         * modules/getdate, modules/posixtm: Depend on mktime.
70730
70731 2003-07-14  Paul Eggert  <eggert@twinsun.com>
70732
70733         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
70734         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
70735         unicodeio.c, unicodeio.h, unlocked-io.h:
70736         Switch from LGPL to GPL.
70737
70738 2003-07-14  Paul Eggert  <eggert@twinsun.com>
70739
70740         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
70741         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
70742         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
70743         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
70744         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
70745         updated automatically by ../config/srclist-update.  This changes
70746         their license from LPGL to GPL.
70747
70748 2003-07-14  Paul Eggert  <eggert@twinsun.com>
70749
70750         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
70751         assumed to refer to the root of the most recent stable gettext version.
70752         * config/srclistvars.sh: Add defaults for eggert.
70753         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
70754         Match "This program" as well as "The program".  This is needed
70755         for gettext.
70756
70757 2003-07-14  Jim Meyering  <jim@meyering.net>
70758
70759         Don't emit diagnostics.  Let callers do that.
70760         * lib/save-cwd.c: Don't include "error.h".
70761         (save_cwd): Don't call error.  Ensure that errno is valid
70762         when returning nonzero.
70763
70764         * lib/save-cwd.h (restore_cwd): Update prototype.
70765         * lib/save-cwd.c (restore_cwd): Remove two parameters.
70766         Simplify.  Don't call error upon failure.  Let callers do that.
70767         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
70768         when auditing is enabled.  But don't bother updating the #if.
70769
70770 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
70771
70772         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
70773         it breaks C++ compilation.
70774         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
70775
70776 2003-07-10  Simon Josefsson  <jas@extundo.com>
70777
70778         * modules/strchrnul (Makefile.am): Add strchrnul.h.
70779
70780 2003-07-10  Jim Meyering  <jim@meyering.net>
70781
70782         * m4/clock_time.m4: Remove trailing blank.
70783         * m4/intmax_t.m4: Likewise.
70784
70785 2003-07-10  Jim Meyering  <jim@meyering.net>
70786
70787         * lib/vasnprintf.c: Remove trailing blanks.
70788         Make cpp indentation consistent.
70789
70790 2003-07-09  Paul Eggert  <eggert@twinsun.com>
70791
70792         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
70793         posixver.c, strftime.c, strnlen.c, strverscmp.c:
70794         Switch from LGPL to GPL.
70795
70796 2003-07-09  Paul Eggert  <eggert@twinsun.com>
70797
70798         * config/srclist.txt: Sort sublists.  Add
70799         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
70800         that differ from gnulib for one reason or another; we'd like this list
70801         to be smaller but for now let's document what we have.
70802
70803 2003-07-08  Paul Eggert  <eggert@twinsun.com>
70804
70805         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
70806         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
70807         and sweeter "eval x=$x".
70808         * config/srclist.txt: Get lib/argp* from glibc.
70809
70810 2003-07-07  Paul Eggert  <eggert@twinsun.com>
70811
70812         * lib/mktime.c: Fix some boundary cases and remove need for floating
70813         point.
70814
70815         Issue a compile-time diagnostic if time_t is floating point, or if
70816         two's complement arithmetic is not in effect, or if arithmetic
70817         right shift does not propagate the sign.  These assumptions were
70818         all in the original code but they weren't checked.
70819
70820         (TIME_T_MIDPOINT, verify): New macros.
70821         (__isleap): Remove; it has integer overflow problems.
70822         (leapyear): New function, without those problems.
70823         (ydhms_tm_diff): Remove; splitting into two parts.
70824         (ydhms_diff): New function, containing the arithmetic part of
70825         the old ydhms_tm_diff function.  Issue a compile-time
70826         diagnostic if we are not using C99 integer division.
70827         Avoid casts when possible.
70828         (guess_time_tm): New function, containing the checking part of
70829         the old ydhms_tm_diff function.  Return the new value, rather than
70830         the difference between it and the old.  Accept a new argument T
70831         so that *T specifies the old value.  Check for overflow in the result.
70832
70833         (__mktime_internal): Use a time_t offset, not a long int offset.
70834         This undoes the 2003-06-04 change, which is no longer needed now
70835         that we have better overflow checking.
70836         (localtime_offset): Likewise.
70837
70838         (__mktime_internal): Avoid harmful overflow on hosts where time_t
70839         and long are 64-bit but int is only 32-bit.
70840         (ydhms_diff): Use long int to store year1 and yday1.
70841         Issue a compile-time diagnostic if long int is not wide enough.
70842
70843         (__mktime_internal): Use long int to store adjusted year and yday.
70844         Use plain C rather than preprocessor commands, if that doesn't
70845         affect efficiency.
70846         Check for overflow (and try to repair) after each probe
70847         rather than checking only at the very end.  This avoids some bugs
70848         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
70849         does not equal GMT offset at maximum time).
70850         Use integer to check for overflow rather than floating point; this
70851         is more portable to non-IEEE hosts, and is a tad faster.
70852         When we detect that we are oscillating between two values,
70853         don't check whether tm_isdst has the requested value, since
70854         we already know the answer.  When tm_isdst has the wrong value,
70855         use a different heuristic to find the right one, based on the
70856         extreme values actually observed in practice in tz2003a,
70857         rather than the (overly optimistic) "previous 3 calendar quarters".
70858
70859         (not_equal_tm, print_tm, check_result): Use "const T" rather than
70860         "T const" to accommodate glibc style.
70861         (check_result): Use less-confusing report format.  "long" -> "long int.
70862         (main): Likewise.
70863         Don't loop if the iteration overflows time_t.
70864         Allow a negative step in the iteration.
70865
70866 2003-07-06  Karl Berry  <karl@gnu.org>
70867
70868         * config/depcomp: update from automake.
70869         * config/config.sub: update from prep.
70870
70871 2003-07-03  Karl Berry  <karl@gnu.org>
70872
70873         * config/config.guess: update from prep.
70874
70875 2003-07-01  Paul Eggert  <eggert@twinsun.com>
70876
70877         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
70878         xreadlink.c now includes it unconditionally.
70879
70880 2003-07-01  Paul Eggert  <eggert@twinsun.com>
70881
70882         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
70883         having it depend on HAVE_SYS_TYPES_H.
70884
70885 2003-07-01  Bruno Haible  <bruno@clisp.org>
70886
70887         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
70888         <sys/types.h> should be sufficient.
70889         Reported by Paul Eggert.
70890
70891 2003-06-26  Karl Berry  <karl@gnu.org>
70892
70893         * config/depcomp: update from automake.
70894
70895 2003-06-26  Bruno Haible  <bruno@clisp.org>
70896
70897         * modules/human: Depend on module stdbool.
70898
70899 2003-06-25  Bruno Haible  <bruno@clisp.org>
70900
70901         * modules/readlink: New file.
70902         * modules/xreadlink: Depend on it.
70903         * MODULES.html.sh (func_all_modules): Add readlink.
70904
70905 2003-06-25  Bruno Haible  <bruno@clisp.org>
70906
70907         * m4/readlink.m4: New file.
70908
70909 2003-06-25  Bruno Haible  <bruno@clisp.org>
70910
70911         * lib/readlink.c: New file.
70912
70913 2003-06-22  Karl Berry  <karl@gnu.org>
70914
70915         * config/srclist.txt: update mkinstalldirs from automake.
70916         * config/mkinstalldirs: update.
70917
70918 2003-06-22  Bruno Haible  <bruno@clisp.org>
70919
70920         Portability to mingw32.
70921         * m4/ssize_t.m4: New file, from GNU gettext.
70922         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
70923         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
70924
70925 2003-06-22  Bruno Haible  <bruno@clisp.org>
70926
70927         * modules/safe-read: Add m4/ssize_t.m4.
70928         * modules/xreadlink: Add m4/ssize_t.m4.
70929
70930 2003-06-20  Bruno Haible  <bruno@clisp.org>
70931
70932         Assume C89, so PARAMS isn't needed.
70933         * lib/unicodeio.h (PARAMS): Remove.
70934         * lib/unicodeio.c: Don't use PARAMS.
70935
70936 2003-06-18  Karl Berry  <karl@gnu.org>
70937
70938         * config/config.{guess,sub}: update from prep.
70939
70940 2003-06-18  Jim Meyering  <jim@meyering.net>
70941
70942         Merge changes from coreutils.
70943         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
70944         Remove explicit declarations of xmalloc and realloc.
70945         Include xalloc.h.
70946         (read_utmp): Remove anachronistic cast of xmalloc.
70947
70948 2003-06-17  Paul Eggert  <eggert@twinsun.com>
70949
70950         Assume C89, so PARAMS isn't needed.
70951         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
70952         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
70953         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
70954         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
70955         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
70956         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
70957         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
70958         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
70959         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
70960         lib/xstrtod.h, lib/xstrtol.h: Likewise.
70961         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
70962         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
70963         no longer needed. Anyway, config.h should always be included before any
70964         other file.
70965
70966 2003-06-11  Simon Josefsson  <jas@extundo.com>
70967
70968         * modules/sysexits: New file.
70969         * MODULES.html.sh (func_all_modules): Add sysexits.
70970
70971 2003-06-11  Simon Josefsson  <jas@extundo.com>
70972
70973         * lib/sysexit_.h: New file.
70974
70975 2003-06-11  Derek Price  <derek@ximbiot.com>
70976
70977         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
70978         necessary.
70979
70980 2003-06-11  Bruno Haible  <bruno@clisp.org>
70981
70982         * m4/sysexits.m4: New file.
70983
70984 2003-06-10  Simon Josefsson  <jas@extundo.com>
70985
70986         * lib/argp.h: New file, from glibc.
70987         * lib/argp-ba.c: New file, from glibc.
70988         * lib/argp-eexst.c: New file, from glibc.
70989         * lib/argp-fmtstream.c: New file, from glibc.
70990         * lib/argp-fmtstream.h: New file, from glibc.
70991         * lib/argp-fs-xinl.c: New file, from glibc.
70992         * lib/argp-help.c: New file, from glibc.
70993         * lib/argp-namefrob.h: New file, from glibc.
70994         * lib/argp-parse.c: New file, from glibc.
70995         * lib/argp-pv.c: New file, from glibc.
70996         * lib/argp-pvh.c: New file, from glibc.
70997         * lib/argp-xinl.c: New file, from glibc.
70998
70999 2003-06-10  Simon Josefsson  <jas@extundo.com>
71000
71001         * modules/strchrnul: New file.
71002
71003 2003-06-10  Simon Josefsson  <jas@extundo.com>
71004
71005         * modules/argp: New file.
71006
71007 2003-06-10  Simon Josefsson  <jas@extundo.com>
71008
71009         * m4/strchrnul.m4: New file.
71010
71011 2003-06-10  Simon Josefsson  <jas@extundo.com>
71012
71013         * lib/strchrnul.h: New file.
71014         * lib/strchrnul.c: New file.
71015
71016 2003-06-10  Bruno Haible  <bruno@clisp.org>
71017
71018         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
71019
71020 2003-06-07  Karl Berry  <karl@gnu.org>
71021
71022         * config/config.{guess,sub}: update from prep.
71023
71024 2003-06-07  Jim Meyering  <jim@meyering.net>
71025
71026         * modules/strtod: Use $(...) notation, not @...@ for
71027         AC_REPLACE'd variables.
71028         * modules/localcharset: Likewise.
71029
71030 2003-06-07  Jim Meyering  <jim@meyering.net>
71031
71032         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
71033         in place of my name in the copyright comment.
71034         Remove definition and uses of __P.
71035
71036         From coreutils.
71037         * lib/stat.c: Don't declare xmalloc explicitly.
71038         Instead, include "xalloc.h".
71039         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
71040         xrealloc, and xcalloc return values.
71041         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
71042         Improve comment.
71043         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
71044
71045 2003-06-07  Bruno Haible  <bruno@clisp.org>
71046
71047         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
71048         avoid AC_CONFIG_LINKS.
71049         * modules/fnmatch (Makefile.am): Use explicit creation rule for
71050         fnmatch.h, to avoid AC_CONFIG_LINKS.
71051         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
71052
71053 2003-06-07  Bruno Haible  <bruno@clisp.org>
71054
71055         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
71056         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
71057         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
71058         directory.
71059         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
71060         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
71061         directory.
71062
71063 2003-06-06  Jim Meyering  <jim@meyering.net>
71064
71065         Merge from coreutils.
71066         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
71067         Consolidate declarations and initializations of *_base* locals.
71068
71069         Merge from coreutils.
71070         This avoids a core dump on systems without GNU putenv,
71071         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
71072         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
71073         (unsetenv): New static function, from GNU libc.
71074         (rpl_putenv): Use it.
71075
71076         * lib/modechange.c: Remove trailing blanks.
71077
71078         Merge from coreutils.
71079         * lib/fsusage.c: Remove declaration of statfs.
71080         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
71081
71082         * lib/posixtm.c: Include <stdbool.h> unconditionally.
71083
71084 2003-06-06  Jim Meyering  <jim@meyering.net>
71085
71086         * lib/stdbool_.h: Renamed from stdbool.h.in.
71087
71088 2003-06-06  Jim Meyering  <jim@meyering.net>
71089             Bruno Haible  <bruno@clisp.org>
71090
71091         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
71092         Adjust Makefile.am snippet not to redirect directly to target.
71093         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
71094
71095 2003-06-05  Paul Eggert  <eggert@twinsun.com>
71096
71097         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
71098         mismatch, look in future quarters as well as past.  This fixes a
71099         bug when processing fall-backwards gaps immediately after a long
71100         period of daylight-saving time.
71101
71102         * lib/mktime.c: Assume freestanding C89 or better.
71103         (HAVE_LIMITS_H): Remove.  Assume it's 1.
71104         (__P): Remove; not used.
71105         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
71106         (mktime, not_equal_tm, print_tm, check_result,
71107         main): Use prototypes.  Use const * where appropriate.
71108         (main): Fix typo in testing code that uncovered by above changes.
71109         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
71110
71111 2003-06-04  Paul Eggert  <eggert@twinsun.com>
71112
71113         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
71114         locale.h, localeconv.  This merges changes from coreutils.
71115
71116         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
71117         It can be removed after the next Autoconf is released.
71118         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
71119         needed.
71120
71121 2003-06-04  Paul Eggert  <eggert@twinsun.com>
71122
71123         * lib/mktime.c: Fix Debian bug 177940
71124         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
71125         (localtime_offset): Now long int, not time_t, because we want it
71126         to be guaranteed to be signed.  All uses changed.
71127         (__mktime_internal): If overflow would occur when adding offset,
71128         don't add it.
71129
71130         Merge 'human' changes from coreutils.  Rewrite to support
71131         locale-specific notations like thousands separators.
71132         * lib/human.c: Simplify authorship notice.
71133         Include human.h immediately after config.h.
71134         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
71135         <limits.h>: Do not include, since human.h does.
71136         (SIZE_MAX, UINTMAX_MAX): New macros.
71137         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
71138         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
71139         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
71140         (power_letter): Renamed from suffixes.
71141         (generate_suffix_backwards): Remove.
71142         (adjust_value): Now takes int style (because of human.h changes)
71143         and long double value (for greater precision on some platforms).
71144         (group_number): New function.
71145         (human_readable): Use it.  Use integer options, not enum.
71146         Put the options before the sizes in the arg list.
71147         Support all the new options.
71148         The old human_readable function has been removed;
71149         use inttostr.h instead.
71150         (human_readable, default_block_size, humblock):
71151         Use uintmax_t, not int, for block sizes.
71152         (human_readable_inexact, block_size_types): Remove.
71153         (block_size_opts): New constant.
71154         (human_options): Renamed from human_block_size, with new signature
71155         that allows block sizes up to UINTMAX_MAX.  All callers changed.
71156         * lib/human.h: Add copyright and authorship notice.
71157         Include <limits.h> and <stdbool.h> unconditionally.
71158         (PARAMS): Remove.  All uses removed.
71159         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
71160         (enum human_inexact_style): Remove tag; now a nameless enum.
71161         (human_floor, human_ceiling, human_round_to_even): Now have
71162         values 2, 0, 1 rather than -1, 1, 0.
71163         (human_group_digits, human_suppress_point_zero, human_autoscale,
71164         human_base_1024, human_SI, human_B): New constants.
71165         (human_readable_inexact, human_block_size): Remove.
71166         (human_readable): Size args are now uintmax_t, not int.
71167         (human_options): New decl.
71168
71169         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
71170         unnecessary now that we assume C89 or better.  This change
71171         imported from coreutils.
71172
71173         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
71174         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
71175         in the 2003-05-30 sync from glibc.
71176
71177         .h files should stand alone, but we shouldn't include <sys/types.h>
71178         if we can get away with just <stddef.h>.
71179
71180         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
71181         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
71182         rather than <sys/types.h>, as we merely need size_t.
71183         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
71184         to get size_t.
71185         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
71186         Include <stdio.h>, to get FILE.
71187         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
71188         memcasecmp.h has included <stddef.h> and all we need is size_t.
71189         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
71190         our interface, instead of including <sys/types.h>
71191
71192 2003-06-04  Paul Eggert  <eggert@twinsun.com>
71193
71194         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
71195         now, as glibc mktime is buggy on non-glibc systems.
71196
71197 2003-06-03  Karl Berry  <karl@gnu.org>
71198
71199         * config/config.sub: update from prep.
71200
71201 2003-06-02  Paul Eggert  <eggert@twinsun.com>
71202
71203         [from coreutils]
71204         Fix some minor time-related bugs with POSIX time arguments.
71205         Some valid time stamps were being rejected (notably -1, and
71206         time stamps before 1900 on 64-bit hosts).  And some invalid
71207         time stamps were being accepted, e.g. September 31.
71208
71209         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
71210         that we can return (time_t) -1 successfully.
71211         * lib/posixtm.c: Likewise.
71212         [HAVE_STDBOOL_H]: Include <stdbool.h>.
71213         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
71214         (t): Remove static var.
71215         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
71216         of static var.  All uses changed.
71217         (year): Do not reject years before 1900; they can occur with
71218         64-bit time_t.
71219         (posix_time_parse): Do not check for out-of-range components;
71220         that is now the caller's responsibility, since our checks were
71221         only approximations.
71222         (posixtime): Use mktime to check for out-of-range components,
71223         since it knows them exactly.
71224         If mktime returns (time_t) -1, check whether an error actually occurred
71225         by invoking localtime on -1.
71226         (main) [TEST_POSIXTIME]: Check for input data errors, and report
71227         posixtime failures better.
71228         Improve the test data (in comments only).
71229
71230 2003-06-02  Karl Berry  <karl@gnu.org>
71231
71232         * config/mkinstalldirs (version): new variable.
71233         (--version): new option.
71234         (usage): improve message.
71235
71236 2003-05-30  Karl Berry  <karl@gnu.org>
71237
71238         * lib/mktime.c: update from libc.
71239
71240 2003-05-30  Bruno Haible  <bruno@clisp.org>
71241
71242         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
71243         * config/config.rpath: Upgrade to gettext-0.12.1.
71244
71245 2003-05-30  Bruno Haible  <bruno@clisp.org>
71246
71247         * m4/gettext.m4: Upgrade to gettext-0.12.1.
71248         * m4/nls.m4: New file, from gettext-0.12.1.
71249         * m4/po.m4: New file, from gettext-0.12.1.
71250         * m4/progtest.m4: Upgrade to gettext-0.12.1.
71251
71252 2003-05-30  Bruno Haible  <bruno@clisp.org>
71253
71254         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
71255         * lib/localcharset.h: Likewise.
71256         * lib/localcharset.c: Likewise.
71257
71258 2003-05-29  Karl Berry  <karl@gnu.org>
71259
71260         * config/config.rpath: update from gettext.
71261
71262 2003-05-28  Paul Eggert  <eggert@twinsun.com>
71263
71264         Assume the headers required for C89 freestanding compilers.
71265         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
71266         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
71267         * m4/human.m4 (gl_HUMAN): Likewise.
71268         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
71269         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
71270         * m4/userspec.m4 (gl_USERSPEC): Likewise.
71271         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
71272         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
71273         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
71274
71275 2003-05-28  Paul Eggert  <eggert@twinsun.com>
71276
71277         Assume the headers required for C89 freestanding compilers.
71278         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
71279         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
71280         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
71281         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
71282         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
71283         define, since <limits.h> is guaranteed to do that.
71284         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
71285         * lib/exclude.c: Include <stdbool.h> unconditionally.
71286         * lib/tempname.c: Include <stddef.h> unconditionally.
71287         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
71288         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
71289         <stddef.h> does that.
71290         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
71291         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
71292         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
71293         needed.
71294         * lib/xstrtol.c: Likewise.
71295         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
71296         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
71297
71298         * lib/addext.c (addext): Use assignment rather than cast, to avoid
71299         warnings on some platforms.
71300
71301         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
71302         arbitrarily.
71303
71304 2003-05-26  Jim Meyering  <jim@meyering.net>
71305
71306         Merge in a change from coreutils:
71307         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
71308         that is guaranteed to be `no'.  Use `no_such_member' to indicate
71309         that condition, rather than `-1' which is slightly misleading.
71310         Change the name of the cache variable to have the gl_ prefix.
71311         Prompted by a patch from Richard Dawe for DJGPP.
71312
71313 2003-05-24  Karl Berry  <karl@gnu.org>
71314
71315         * config/config.guess: update from prep.
71316
71317 2003-05-22  Karl Berry  <karl@gnu.org>
71318
71319         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
71320
71321 2003-05-20  Karl Berry  <karl@gnu.org>
71322
71323         * config/config.guess: update from prep.
71324
71325 2003-05-18  Karl Berry  <karl@gnu.org>
71326
71327         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
71328         might actually be set by the user.
71329
71330         * config/depcomp, install-sh, mdate-sh: update from automake.
71331
71332 2003-05-17  Bruno Haible  <bruno@clisp.org>
71333
71334         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
71335         invalid expansion for AC_EGREP_CPP.
71336         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
71337         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
71338         Suggested by Akim Demaille <akim@epita.fr> in
71339         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
71340
71341 2003-05-12  Jim Meyering  <jim@meyering.net>
71342
71343         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
71344         the space-padded-by-default conversion specifiers, %e, %k, %l.
71345
71346 2003-05-12  Bruno Haible  <bruno@clisp.org>
71347
71348         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
71349         the string is longer than 4 KB.
71350
71351 2003-05-11  Karl Berry  <karl@gnu.org>
71352
71353         * config/config.{guess,sub}: update from prep.
71354
71355 2003-05-09  Bruno Haible  <bruno@clisp.org>
71356
71357         * modules/error: Add m4/strerror_r.m4 to file list.
71358
71359 2003-05-03  Bruno Haible  <bruno@clisp.org>
71360
71361         Upgrade to Unicode-4.0.
71362         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
71363         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
71364         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
71365         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
71366         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
71367         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
71368         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
71369         Change width of U+E0100..U+E01EF from 1 to 0.
71370
71371 2003-04-25  Jim Meyering  <jim@meyering.net>
71372
71373         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
71374         of type size_t, not int.
71375
71376 2003-04-25  Bruno Haible  <bruno@clisp.org>
71377
71378         * lib/copy-file.c: Include <stddef.h>, for size_t.
71379
71380 2003-04-21  Paul Eggert  <eggert@twinsun.com>
71381
71382         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
71383         code which expansion is under static control.  Patch imported from
71384         Akim Demaille's patch to Bison; see
71385         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
71386
71387 2003-04-14  Bruno Haible  <bruno@clisp.org>
71388
71389         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
71390
71391 2003-04-11  Jim Meyering  <jim@meyering.net>
71392
71393         Merge changes from Coreutils.
71394
71395         2003-03-22  Jim Meyering  <jim@meyering.net>
71396
71397         * lib/strftime.c (widen): Cast alloca return value to proper type.
71398
71399         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
71400
71401         From GNU libc.
71402         * lib/strftime.c (my_strftime): Handle very large width
71403         specifications for numeric values correctly.  Improve checks for
71404         overflow.
71405
71406         2003-01-19  Jim Meyering  <jim@meyering.net>
71407
71408         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
71409         definitions.
71410         (nl_get_alt_digit) [! defined my_strftime]: Define.
71411         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
71412         _nl_get_alt_digit and _nl_get_walt_digit.
71413
71414         * lib/strftime.c (my_strftime): Merge in locale-related changes from
71415         libc. These changes have no effect outside of _LIBC.
71416
71417 2003-04-10  Bruno Haible  <bruno@clisp.org>
71418
71419         * modules/findprog: New file.
71420         * MODULES.html.sh (func_all_modules): Add it.
71421
71422 2003-04-10  Bruno Haible  <bruno@clisp.org>
71423
71424         * m4/findprog.m4: New file.
71425         * m4/eaccess.m4: New file.
71426
71427 2003-04-10  Bruno Haible  <bruno@clisp.org>
71428
71429         * lib/findprog.h: New file, from GNU gettext.
71430         * lib/findprog.c: New file, from GNU gettext.
71431
71432 2003-04-05  Jim Meyering  <jim@meyering.net>
71433
71434         Merge changes from Coreutils.
71435
71436         * lib/exclude.h (PARAMS): Remove definition and uses.
71437         * lib/exclude.c: Remove uses of `PARAMS'.
71438
71439         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
71440         Add test-cases for DOS filenames. Declare program_name.
71441         (main): Set up program_name.  Patch by Rich Dawe.
71442
71443         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
71444         error from mntctl.
71445         Use mntctl's return value to drive the entry-processing loop, since
71446         we can't rely on the value of the vmt_length member in the last
71447         entry.  On some systems doing so could result in exhausting
71448         virtual memory.  Based in part on a patch from Mike Jetzer.
71449
71450 2003-04-04  Bruno Haible  <bruno@clisp.org>
71451
71452         * modules/linebreak: New file.
71453         * MODULES.html.sh (func_all_modules): Add it.
71454
71455 2003-04-04  Bruno Haible  <bruno@clisp.org>
71456
71457         * m4/linebreak.m4: New file.
71458
71459 2003-04-04  Bruno Haible  <bruno@clisp.org>
71460
71461         * lib/linebreak.h: New file, from GNU gettext.
71462         * lib/linebreak.c: New file, from GNU gettext with slight
71463         modifications.
71464         * lib/lbrkprop.h: New file, from GNU gettext.
71465
71466 2003-04-03  Bruno Haible  <bruno@clisp.org>
71467
71468         * modules/utf8-ucs4: New file.
71469         * modules/utf16-ucs4: New file.
71470         * modules/ucs4-utf8: New file.
71471         * modules/ucs4-utf16: New file.
71472         * MODULES.html.sh (func_all_modules): Add them.
71473
71474 2003-04-03  Bruno Haible  <bruno@clisp.org>
71475
71476         * m4/utf-ucs4.m4: New file.
71477         * m4/ucs4-utf.m4: New file.
71478
71479 2003-04-03  Bruno Haible  <bruno@clisp.org>
71480
71481         * lib/utf8-ucs4.h: New file, from GNU gettext.
71482         * lib/utf16-ucs4.h: New file, from GNU gettext.
71483         * lib/ucs4-utf8.h: New file, from GNU gettext.
71484         * lib/ucs4-utf16.h: New file, from GNU gettext.
71485
71486 2003-04-02  Bruno Haible  <bruno@clisp.org>
71487
71488         * modules/binary-io: New file.
71489         * MODULES.html.sh (func_all_modules): Add it.
71490
71491 2003-04-02  Bruno Haible  <bruno@clisp.org>
71492
71493         * lib/binary-io.h: New file, from GNU gettext.
71494
71495 2003-04-01  Bruno Haible  <bruno@clisp.org>
71496
71497         * modules/pathname: New file.
71498         * MODULES.html.sh (func_all_modules): Add it.
71499
71500 2003-04-01  Bruno Haible  <bruno@clisp.org>
71501
71502         * lib/pathname.h: New file, from GNU gettext.
71503         * lib/concatpath.c: New file, from GNU gettext.
71504
71505 2003-03-30  Bruno Haible  <bruno@clisp.org>
71506
71507         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
71508
71509 2003-03-30  Bruno Haible  <bruno@clisp.org>
71510
71511         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
71512         function chown() doesn't exist.
71513
71514 2003-03-28  Bruno Haible  <bruno@clisp.org>
71515
71516         * modules/copy-file: New file.
71517         * MODULES.html.sh (func_all_modules): Add it.
71518
71519 2003-03-28  Bruno Haible  <bruno@clisp.org>
71520
71521         * m4/copy-file.m4: New file.
71522
71523 2003-03-28  Bruno Haible  <bruno@clisp.org>
71524
71525         * lib/copy-file.h: New file, from GNU gettext.
71526         * lib/copy-file.c: New file, from GNU gettext.
71527
71528 2003-03-18  Jim Meyering  <jim@meyering.net>
71529
71530         * lib/quote.c (quote_n): Fix typo in comment.
71531
71532 2003-03-18  Bruno Haible  <bruno@clisp.org>
71533
71534         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
71535         checking.
71536         * m4/onceonly_2_57.m4: Likewise.
71537
71538 2003-03-17  Bruno Haible  <bruno@clisp.org>
71539
71540         * m4/onceonly.m4: Require autoconf 2.54 or newer.
71541         (m4_quote): Remove macro.
71542         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
71543
71544 2003-03-14  Jim Meyering  <jim@meyering.net>
71545
71546         Merge changes from Coreutils.
71547         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
71548         to be const, in order to avoid warnings.
71549         (obstack_room): Likewise.
71550         (obstack_empty_p): Likewise.
71551
71552 2003-03-14  Bruno Haible  <bruno@clisp.org>
71553
71554         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
71555         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
71556
71557 2003-03-13  Paul Eggert  <eggert@twinsun.com>
71558
71559         Merge changes from Bison.
71560         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
71561         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
71562         when compiling Bison 1.875's `bitset bset = obstack_alloc
71563         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
71564         * lib/hash.c: Include <stdbool.h> unconditionally.
71565
71566 2003-03-13  Paul Eggert  <eggert@twinsun.com>
71567
71568         * m4/onceonly.m4 (m4_quote): New macro.
71569         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
71570         Quote AC_FOREACH variable-expansions properly.
71571
71572 2003-03-13  Paul Eggert  <eggert@twinsun.com>
71573
71574         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
71575
71576 2003-03-09  Paul Eggert  <eggert@twinsun.com>
71577
71578         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
71579         Reported by Bruce Becker; see:
71580         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
71581
71582 2003-03-03  Paul Eggert  <eggert@twinsun.com>
71583             Bruno Haible  <bruno@clisp.org>
71584
71585         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
71586         Reported by John Hughes, see
71587         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
71588
71589 2003-02-20  Bruno Haible  <bruno@clisp.org>
71590
71591         * MODULES.html.sh (func_all_modules): Add poll.
71592
71593 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
71594
71595         * modules/poll: New file.
71596
71597 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
71598
71599         * lib/poll_.h: New file.
71600         * lib/poll.c: New file.
71601
71602 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
71603
71604         * m4/poll.m4: New file.
71605
71606 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
71607
71608         * modules/mathl: New file.
71609
71610 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
71611
71612         * lib/mathl.h: New file.
71613         * lib/acosl.c: New file.
71614         * lib/asinl.c: New file.
71615         * lib/atanl.c: New file.
71616         * lib/ceill.c: New file.
71617         * lib/cosl.c: New file.
71618         * lib/expl.c: New file.
71619         * lib/floorl.c: New file.
71620         * lib/frexpl.c: New file.
71621         * lib/ldexpl.c: New file.
71622         * lib/logl.c: New file.
71623         * lib/sincosl.c: New file.
71624         * lib/sinl.c: New file.
71625         * lib/sqrtl.c: New file.
71626         * lib/tanl.c: New file.
71627         * lib/trigl.c: New file.
71628         * lib/trigl.h: New file.
71629
71630 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
71631
71632         * m4/mathl.m4: New file.
71633
71634 2003-02-18  Bruno Haible  <bruno@clisp.org>
71635
71636         * MODULES.html.sh (func_all_modules): Add mathl.
71637
71638 2003-02-17  Bruno Haible  <bruno@clisp.org>
71639
71640         * modules/mkdtemp: New module.
71641         * MODULES.html.sh (func_all_modules): Add it.
71642
71643 2003-02-17  Bruno Haible  <bruno@clisp.org>
71644
71645         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
71646
71647 2003-02-17  Bruno Haible  <bruno@clisp.org>
71648
71649         * lib/mkdtemp.h: New file, from GNU gettext.
71650         * lib/mkdtemp.c: New file, from GNU gettext.
71651
71652 2003-02-02  Jim Meyering  <jim@meyering.net>
71653
71654         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
71655         e.g. glibc-2.2.93.
71656
71657 2003-01-31  Bruno Haible  <bruno@clisp.org>
71658
71659         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
71660         'rpl_rename'.
71661         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
71662         'rpl_strnlen'.
71663         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
71664         'rpl_strtod'.
71665         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
71666         'rpl_utime'.
71667
71668 2003-01-31  Bruno Haible  <bruno@clisp.org>
71669
71670         * lib/rename.c: #undef rename before defining rpl_rename.
71671         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
71672
71673 2003-01-30  Bruno Haible  <bruno@clisp.org>
71674
71675         * modules/vasnprintf, modules/vasprintf: New modules.
71676         * MODULES.html.sh (func_all_modules): Add them.
71677
71678 2003-01-30  Bruno Haible  <bruno@clisp.org>
71679
71680         * m4/signed.m4: New file, from GNU gettext.
71681         * m4/longdouble.m4: New file, from GNU gettext.
71682         * m4/wchar_t.m4: New file, from GNU gettext.
71683         * m4/wint_t.m4: New file, from GNU gettext.
71684         * m4/vasnprintf.m4: New file.
71685         * m4/vasprintf.m4: New file.
71686
71687 2003-01-30  Bruno Haible  <bruno@clisp.org>
71688
71689         * lib/printf-args.h: New file, from GNU gettext.
71690         * lib/printf-args.c: New file, from GNU gettext.
71691         * lib/printf-parse.h: New file, from GNU gettext.
71692         * lib/printf-parse.c: New file, from GNU gettext.
71693         * lib/vasnprintf.h: New file, from GNU gettext.
71694         * lib/vasnprintf.c: New file, from GNU gettext.
71695         * lib/asnprintf.c: New file, from GNU gettext.
71696         * lib/vasprintf.h: New file, from GNU gettext with modifications.
71697         * lib/vasprintf.c: New file, from GNU gettext.
71698         * lib/asprintf.c: New file, from GNU gettext.
71699
71700 2003-01-29  Bruno Haible  <bruno@clisp.org>
71701
71702         * modules/stpncpy: New module.
71703         * MODULES.html.sh (func_all_modules): Add it.
71704
71705 2003-01-29  Bruno Haible  <bruno@clisp.org>
71706
71707         * m4/stpncpy.m4: New file.
71708
71709 2003-01-29  Bruno Haible  <bruno@clisp.org>
71710
71711         * lib/stpncpy.h: New file, from GNU gettext with modifications.
71712         * lib/stpncpy.c: New file, from GNU gettext with modifications.
71713
71714 2003-01-28  Bruno Haible  <bruno@clisp.org>
71715
71716         * modules/c-ctype: New module.
71717         * MODULES.html.sh (func_all_modules): Add it.
71718
71719 2003-01-28  Bruno Haible  <bruno@clisp.org>
71720
71721         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
71722         Paul Eggert.
71723         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
71724         Paul Eggert.
71725
71726 2003-01-27  Bruno Haible  <bruno@clisp.org>
71727
71728         * modules/xsetenv: New module.
71729         * MODULES.html.sh (func_all_modules): Add it.
71730
71731 2003-01-27  Bruno Haible  <bruno@clisp.org>
71732
71733         * lib/xsetenv.h: New file, from GNU gettext.
71734         * lib/xsetenv.c: New file, from GNU gettext.
71735
71736 2003-01-23  Jim Meyering  <jim@meyering.net>
71737
71738         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
71739         from working on systems without dirfd (at least Irix and OSF1/Tru64).
71740
71741 2003-01-23  Bruno Haible  <bruno@clisp.org>
71742
71743         * modules/minmax: New module.
71744         * MODULES.html.sh (func_all_modules): Add it.
71745
71746 2003-01-23  Bruno Haible  <bruno@clisp.org>
71747
71748         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
71749         Eggert.
71750
71751 2003-01-22  Bruno Haible  <bruno@clisp.org>
71752
71753         * modules/exit: New module.
71754         * MODULES.html.sh (func_all_modules): Add it.
71755
71756 2003-01-22  Bruno Haible  <bruno@clisp.org>
71757
71758         * lib/exit.h: New file, from GNU gettext.
71759
71760 2003-01-19  Bruno Haible  <bruno@clisp.org>
71761
71762         * gnulib-tool: Recognize option --extract-maintainer.
71763         (func_get_maintainer): New function.
71764         * modules/*: Add Maintainer entry.
71765
71766 2003-01-16  Jim Meyering  <jim@meyering.net>
71767
71768         * m4/regex.m4: The `regex' struct is both input and output.
71769         Initialize it before each use.  Patch by Tim Waugh.
71770
71771 2003-01-16  Bruno Haible  <bruno@clisp.org>
71772
71773         * MODULES.html.sh: Add a table of contents. Add the module name as
71774         leftmost column. Add hyperlinks.
71775
71776 2003-01-15  Bruno Haible  <bruno@clisp.org>
71777
71778         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
71779
71780 2003-01-15  Bruno Haible  <bruno@clisp.org>
71781
71782         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
71783         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
71784         suffix.
71785
71786 2003-01-15  Bruno Haible  <bruno@clisp.org>
71787
71788         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
71789
71790 2003-01-15  Bruno Haible  <bruno@clisp.org>
71791
71792         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
71793         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
71794
71795 2003-01-14  Jim Meyering  <jim@meyering.net>
71796
71797         * lib/same.c (same_name): Tweak a comment.
71798
71799 2003-01-14  Bruno Haible  <bruno@clisp.org>
71800
71801         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
71802         when a string comparison is sufficient.
71803
71804 2003-01-14  Bruno Haible  <bruno@clisp.org>
71805
71806         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
71807         'unsigned int'.
71808
71809 2003-01-14  Bruno Haible  <bruno@clisp.org>
71810
71811         * lib/hash-pjw.c: Add comment about low quality of this function.
71812
71813 2003-01-13  Bruno Haible  <bruno@clisp.org>
71814
71815         * modules/stpcpy: Distribute lib/stpcpy.h.
71816         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
71817
71818 2003-01-13  Bruno Haible  <bruno@clisp.org>
71819
71820         * modules/*: Add a description.
71821         * modules/strpbrk: Fix Makefile.am snippet.
71822         * modules/strtoimax: Fix dependencies.
71823         * modules/strtoumax: Likewise.
71824
71825 2003-01-13  Bruno Haible  <bruno@clisp.org>
71826
71827         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
71828         * modules/alloca (Makefile.am): All object files depend on alloca.h.
71829         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
71830
71831 2003-01-13  Bruno Haible  <bruno@clisp.org>
71832
71833         * gnulib-tool (func_create_testdir): Store config/* files in the main
71834         directory.
71835         * config.rpath: Move to ...
71836         * config/config.rpath: ... here.
71837         * modules/gettext: Contains config/config.rpath, not config.rpath.
71838         * modules/iconv: Likewise.
71839
71840 2003-01-12  Paul Eggert  <eggert@twinsun.com>
71841
71842         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
71843         to avoid collisions with libcurses and libreadline.
71844
71845         * m4/getstr.m4: Remove.
71846         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
71847
71848 2003-01-12  Paul Eggert  <eggert@twinsun.com>
71849
71850         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
71851         to avoid collisions with libcurses and libreadline.
71852
71853         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
71854         * lib/getstr.h, getstr.c: Remove.
71855         * lib/getline.c: Include "getline.h", to check interface.
71856         Move body of old getstr.c here: this defines MIN_CHUNK and
71857         declares getdelim2, which is renamed from getstr.
71858         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
71859
71860         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
71861         All uses changed.
71862         * lib/linebuffer.h: Likewise.
71863         (readline): Remove backward-compatibility macro.
71864
71865 2003-01-12  Paul Eggert  <eggert@twinsun.com>
71866
71867         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
71868         to avoid collisions with libcurses and libreadline.
71869         * getstr: Remove.
71870         * MODULES.html.sh: Remove getstr.
71871         * modules/getline: Depend on unlocked-io, not getstr.
71872
71873 2003-01-12  Jim Meyering  <jim@meyering.net>
71874
71875         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
71876
71877 2003-01-10  Bruno Haible  <bruno@clisp.org>
71878
71879         * modules/alloca: Change Makefile.am requirements. Simplify Include
71880         requirements. Add lib/alloca_.h to file list.
71881
71882 2003-01-10  Bruno Haible  <bruno@clisp.org>
71883
71884         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
71885
71886 2003-01-10  Bruno Haible  <bruno@clisp.org>
71887
71888         * lib/alloca_.h: New file.
71889         * lib/getdate.y: Unconditionally include alloca.h.
71890         * lib/makepath.c: Likewise.
71891         * lib/setenv.c: Likewise.
71892         * lib/userspec.c: Likewise.
71893
71894 2003-01-09  Karl Berry  <karl@gnu.org>
71895
71896         * MODULES.html.sh: include `dirname $0` in PATH, to find
71897         gnulib-tool.
71898
71899 2003-01-09  Bruno Haible  <bruno@clisp.org>
71900
71901         * modules/stdbool: Change configure.ac, Makefile.am requirements.
71902         Simplify Include requirements. Add lib/stdbool.h.in to file list.
71903
71904 2003-01-09  Bruno Haible  <bruno@clisp.org>
71905
71906         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
71907
71908 2003-01-09  Bruno Haible  <bruno@clisp.org>
71909
71910         * lib/stdbool.h.in: New file.
71911
71912 2003-01-09  Bruno Haible  <bruno@clisp.org>
71913
71914         * gnulib-tool (func_all_modules): Ignore files ending in ~.
71915         * MODULES.html.sh: Likewise.
71916
71917 2003-01-08  Jim Meyering  <jim@meyering.net>
71918
71919         * lib/full-write.c: Undefine and define-away `const' after inclusion
71920         of errno.h, not before.  Suggestion from Bruno Haible.
71921
71922 2003-01-08  Bruno Haible  <bruno@clisp.org>
71923
71924         * modules/full-read: Depend on full-write.
71925
71926 2003-01-08  Bruno Haible  <bruno@clisp.org>
71927
71928         * lib/safe-read.c: Include specification header first, to ensure its
71929         selfcontainedness.
71930         * lib/full-write.c: Likewise.
71931
71932 2003-01-07  Jim Meyering  <jim@meyering.net>
71933
71934         * lib/full-write.c: Rework so that it may serve to define full_read,
71935         too.
71936         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
71937
71938 2003-01-07  Bruno Haible  <bruno@clisp.org>
71939
71940         * lib/strtoimax.c: Include <stdint.h> as an alternative to
71941         <inttypes.h>.
71942         * lib/xstrtol.h: Likewise.
71943         * lib/xstrtoimax.c: Likewise.
71944         * lib/xstrtoumax.c: Likewise.
71945         * lib/human.h: Likewise.
71946
71947         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
71948         on systems that have <inttypes.h> but not <stdint.h>.
71949
71950 2003-01-07  Bruno Haible  <bruno@clisp.org>
71951
71952         * MODULES.html.sh: Add copyright notice.
71953         (missed_files): Omit CVS directory entries.
71954         (func_module): Make it work with sed-3.02.
71955         * MODULES.txt: Remove file.
71956
71957 2003-01-06  Jim Meyering  <jim@meyering.net>
71958
71959         * lib/version-etc.c: Update year in translatable copyright string.
71960
71961 2003-01-03  Karl Berry  <karl@gnu.org>
71962
71963         * config/config.{guess,sub}: update from prep.
71964
71965 2003-01-02  Karl Berry  <karl@gnu.org>
71966
71967         * doc/COPYING.DOC: belatedly updated to 1.2.
71968
71969 2003-01-01  Karl Berry  <karl@gnu.org>
71970
71971         * gnulib-tool (func_verify_module): report module name $module in
71972         error message, not $1.
71973         * gnulib-tool (create-testdir): don't complain if destdir couldn't
71974         be created, only if it doesn't exist.
71975         * gnulib-tool (last_checkin_date): don't expand the $Date here.
71976
71977 2002-12-31  Paul Eggert  <eggert@twinsun.com>
71978
71979         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
71980
71981 2002-12-31  Paul Eggert  <eggert@twinsun.com>
71982
71983         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
71984         memcmp if strcoll doesn't work.
71985
71986 2002-12-31  Bruno Haible  <bruno@clisp.org>
71987
71988         * lib/utime.c (utime_null): No need to call ftruncate if the file was
71989         nonempty.
71990
71991 2002-12-31  Bruno Haible  <bruno@clisp.org>
71992
71993         * lib/memcoll.c (STRCOLL): New macro.
71994         (memcoll): Use it.
71995
71996 2002-12-31  Bruno Haible  <bruno@clisp.org>
71997
71998         * lib/localcharset.h: New file.
71999         * lib/localcharset.c: Include it.
72000         * lib/unicodeio.c: Likewise.
72001
72002 2002-12-31  Bruno Haible  <bruno@clisp.org>
72003
72004         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
72005         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
72006
72007 2002-12-31  Bruno Haible  <bruno@clisp.org>
72008
72009         * lib/getline.h: Include <stddef.h>, for size_t.
72010
72011         * lib/unicodeio.h: Include <stddef.h>, for size_t.
72012         * lib/unicodeio.c: Don't include <stddef.h>.
72013
72014 2002-12-31  Bruno Haible  <bruno@clisp.org>
72015
72016         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
72017         HAVE_TM_ZONE.
72018
72019 2002-12-24  Karl Berry  <karl@gnu.org>
72020
72021         * config/config.guess: update from prep.
72022
72023 2002-12-24  Bruno Haible  <bruno@clisp.org>
72024
72025         General infrasructure.
72026         * m4/README: Rewritten.
72027         * m4/onceonly.m4: New file.
72028         * m4/onceonly_2_57.m4: New file.
72029
72030         Module atexit.
72031         * m4/atexit.m4: New file.
72032
72033         Module strtod.
72034         * m4/strtod.m4: New file.
72035
72036         Module strtol.
72037         * m4/strtol.m4: New file.
72038
72039         Module strtoul.
72040         * m4/strtoul.m4: New file.
72041
72042         Module memchr.
72043         * m4/memchr.m4: New file.
72044
72045         Module memcmp.
72046         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
72047         (jm_FUNC_MEMCMP): Invoke it.
72048
72049         Module memcpy.
72050         * m4/memcpy.m4: New file.
72051
72052         Module memmove.
72053         * m4/memmove.m4: New file.
72054
72055         Module memset.
72056         * m4/memset.m4: New file.
72057
72058         Module strcspn.
72059         * m4/strcspn.m4: New file.
72060
72061         Module strpbrk.
72062         * m4/strpbrk.m4: New file.
72063
72064         Module strstr.
72065         * m4/strstr.m4: New file.
72066
72067         Module strerror.
72068         * m4/strerror.m4: New file.
72069
72070         Module mktime.
72071         * m4/mktime.m4: Renamed from jm-mktime.m4.
72072         (gl_PREREQ_MKTIME): New macro.
72073         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
72074
72075         Module malloc.
72076         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
72077         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
72078         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
72079
72080         Module realloc.
72081         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
72082         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
72083         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
72084
72085         Module strftime.
72086         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
72087         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
72088         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
72089         gl_TM_GMTOFF.
72090         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
72091
72092         Module xalloc.
72093         * m4/xalloc.m4: New file.
72094
72095         Module alloca.
72096         * m4/alloca.m4: New file.
72097
72098         Module putenv.
72099         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
72100         (jm_FUNC_PUTENV): Invoke it.
72101
72102         Module setenv.
72103         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
72104         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
72105         when invoked twice.
72106         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
72107         gt_FUNC_SETENV.
72108
72109         Module memrchr.
72110         * m4/memrchr.m4: New file.
72111
72112         Module stpcpy.
72113         * m4/stpcpy.m4: New file.
72114
72115         Module strcase.
72116         * m4/strcase.m4: New file.
72117
72118         Module strdup.
72119         * m4/strdup.m4: New file.
72120
72121         Module strnlen.
72122         * m4/strnlen.m4: New file.
72123
72124         Module strndup.
72125         * m4/strndup.m4: New file.
72126
72127         Module xstrtod.
72128         * m4/xstrtod.m4: New file.
72129
72130         Module xstrtol.
72131         * m4/xstrtol.m4: New file.
72132
72133         Module getdate.
72134         * m4/getdate.m4: New file.
72135
72136         Module unlocked-io.
72137         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
72138         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
72139         * m4/jm-glibc-io.m4n: Remove file.
72140
72141         Module long-options.
72142         * m4/long-options.m4: New file.
72143
72144         Module md5.
72145         * m4/md5.m4: New file.
72146
72147         Module sha.
72148         * m4/sha.m4: New file.
72149
72150         Module getstr.
72151         * m4/getstr.m4: New file.
72152
72153         Module getline.
72154         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
72155         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
72156         <sys/types.h>, for size_t. Use the function name gnu_getline, not
72157         simply getline. Infoke gl_PREREQ_GETLINE.
72158
72159         Module obstack.
72160         * m4/obstack.m4: New file.
72161
72162         Module hash.
72163         * m4/hash.m4: New file.
72164
72165         Module readtokens.
72166         * m4/readtokens.m4: New file.
72167
72168         Module strverscmp.
72169         * m4/strverscmp.m4: New file.
72170
72171         Module stdbool.
72172         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
72173         OSF/1.
72174
72175         Module strtoll.
72176         * m4/strtoll.m4: New file.
72177
72178         Module strtoull.
72179         * m4/strtoull.m4: New file.
72180
72181         Module strtoimax.
72182         * m4/strtoimax.m4: New file.
72183
72184         Module strtoumax.
72185         * m4/strtoumax.m4: New file.
72186
72187         Module xstrtoimax.
72188         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
72189         jm_AC_PREREQ_XSTRTOIMAX.
72190         Moved the strtol prerequisites to strtol.m4.
72191         Moved the strtoll prerequisites to strtoll.m4.
72192         Moved the strtoimax prerequisites to strtoimax.m4.
72193
72194         Module xstrtoumax.
72195         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
72196         jm_AC_PREREQ_XSTRTOUMAX.
72197         Moved the strtoul prerequisites to strtoul.m4.
72198         Moved the strtoull prerequisites to strtoull.m4.
72199         Moved the strtoumax prerequisites to strtoumax.m4.
72200
72201         Module chown.
72202         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
72203         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
72204
72205         Module dup2.
72206         * m4/dup2.m4: New file.
72207
72208         Module ftruncate.
72209         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
72210         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
72211
72212         Module getgroups.
72213         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
72214         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
72215
72216         Module gettimeofday.
72217         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
72218         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
72219         gl_PREREQ_GETTIMEOFDAY.
72220
72221         Module mkdir.
72222         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
72223         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
72224
72225         Module mkstemp.
72226         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
72227         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
72228         jm_AC_TYPE_UINTMAX_T.
72229         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
72230
72231         Module stat.
72232         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
72233         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
72234
72235         Module lstat.
72236         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
72237         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
72238
72239         Module timespec.
72240         * m4/timespec.m4 (gl_TIMESPEC): New macro.
72241         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
72242         * m4/st_mtim.m4: Indentation.
72243
72244         Module nanosleep.
72245         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
72246         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
72247         gl_PREREQ_NANOSLEEP.
72248
72249         Module regex.
72250         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
72251         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
72252         (gl_REGEX): New macro.
72253
72254         Module rename.
72255         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
72256         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
72257
72258         Module rmdir.
72259         * m4/rmdir.m4: New file.
72260
72261         Module utime.
72262         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
72263         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
72264         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
72265
72266         Module dirname.
72267         * m4/dirname.m4: New file.
72268
72269         Module getopt.
72270         * m4/getopt.m4: New file.
72271
72272         Module unistd-safer.
72273         * m4/unistd-safer.m4: New file.
72274
72275         Module fnmatch.
72276         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
72277         declaration.
72278         (gl_PREREQ_FNMATCH_EXTRA): New macro.
72279         (gl_FUNC_FNMATCH_POSIX): New macro.
72280         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
72281         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
72282         simply fnmatch.
72283
72284         Module exclude.
72285         * m4/exclude.m4: New file.
72286
72287         Module human.
72288         * m4/human.m4: New file.
72289
72290         Module acl.
72291         * m4/acl.m4: Nop.
72292
72293         Module backupfile.
72294         * m4/backupfile.m4: New file.
72295         * m4/d-ino.m4: Indentation.
72296
72297         Module fsusage.
72298         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
72299         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
72300         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
72301
72302         Module dirfd.
72303         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
72304         requirements.
72305
72306         Module euidaccess.
72307         * m4/euidaccess.m4: New file.
72308
72309         Module file-type.
72310         * m4/file-type.m4: New file.
72311
72312         Module fileblocks.
72313         * m4/fileblocks.m4: New file.
72314
72315         Module filemode.
72316         * m4/filemode.m4: New file.
72317
72318         Module isdir.
72319         * m4/isdir.m4: New file.
72320
72321         Module lchown.
72322         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
72323         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
72324
72325         Module makepath.
72326         * m4/makepath.m4: New file.
72327
72328         Module modechange.
72329         * m4/modechange.m4: New file.
72330
72331         Module mountlist.
72332         * m4/mountlist.m4: New file.
72333         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
72334         Indentation.
72335
72336         Module path-concat.
72337         * m4/path-concat.m4: New file.
72338
72339         Module pathmax.
72340         * m4/pathmax.m4: New file.
72341
72342         Module same.
72343         * m4/same.m4: New file.
72344
72345         Module save-cwd.
72346         * m4/save-cwd.m4: New file.
72347
72348         Module savedir.
72349         * m4/savedir.m4: New file.
72350
72351         Module xgetcwd.
72352         * m4/xgetcwd.m4: New file.
72353         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
72354
72355         Module xreadlink.
72356         * m4/xreadlink.m4: New file.
72357
72358         Module safe-read.
72359         * m4/safe-read.m4: New file.
72360
72361         Module safe-write.
72362         * m4/safe-write.m4: New file.
72363
72364         Module closeout.
72365         * m4/closeout.m4: New file.
72366
72367         Module stdio-safer.
72368         * m4/stdio-safer.m4: New file.
72369
72370         Module getpass.
72371         * m4/getpass.m4: New file.
72372
72373         Module getugroups.
72374         * m4/getugroups.m4: New file.
72375
72376         Module group-member.
72377         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
72378         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
72379
72380         Module idcache.
72381         * m4/idcache.m4: New file.
72382
72383         Module userspec.
72384         * m4/userspec.m4: New file.
72385
72386         Module gettime.
72387         * m4/clock_time.m4: New file.
72388         * m4/gettime.m4: New file.
72389
72390         Module settime.
72391         * m4/settime.m4: New file.
72392
72393         Module posixtm.
72394         * m4/posixtm.m4: New file.
72395
72396         Module gethostname.
72397         * m4/gethostname.m4: New file.
72398
72399         Module canon-host.
72400         * m4/canon-host.m4: New file.
72401
72402         Module gettext.
72403         * m4/codeset.m4: New file, from gettext-0.11.5.
72404         * m4/gettext.m4: New file, from gettext-0.11.5.
72405         * m4/glibc21.m4: New file, from gettext-0.11.5.
72406         * m4/iconv.m4: New file, from gettext-0.11.5.
72407         * m4/intdiv0.m4: New file, from gettext-0.11.5.
72408         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
72409         * m4/inttypes.m4: New file, from gettext-0.11.5.
72410         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
72411         * m4/isc-posix.m4: New file, from gettext-0.11.5.
72412         * m4/lcmessage.m4: New file, from gettext-0.11.5.
72413         * m4/lib-ld.m4: New file, from gettext-0.11.5.
72414         * m4/lib-link.m4: New file, from gettext-0.11.5.
72415         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
72416         * m4/progtest.m4: New file, from gettext-0.11.5.
72417         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
72418         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
72419         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
72420
72421         Module localcharset.
72422         * m4/localcharset.m4: New file.
72423
72424         Module hard-locale.
72425         * m4/hard-locale.m4: New file.
72426
72427         Module mbswidth.
72428         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
72429         onceonly macros.
72430         * m4/mbrtowc.m4: Add comment.
72431
72432         Module memcasecmp.
72433         * m4/memcasecmp.m4: New file.
72434
72435         Module memcoll.
72436         * m4/memcoll.m4: New file.
72437
72438         Module unicodeio.
72439         * m4/unicodeio.m4: New file.
72440
72441         Module rpmatch.
72442         * m4/rpmatch.m4: New file.
72443
72444         Module yesno.
72445         * m4/yesno.m4: New file.
72446
72447         Module exitfail.
72448         * m4/exitfail.m4: New file.
72449
72450         Module c-stack.
72451         * m4/c-stack.m4 (gl_C_STACK): New macro.
72452         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
72453
72454         Module error.
72455         * m4/error.m4 (gl_ERROR): New macro.
72456         (jm_PREREQ_ERROR): Use onceonly macros.
72457
72458         Module fatal.
72459         * m4/fatal.m4: New file.
72460
72461         Module getloadavg.
72462         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
72463         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
72464
72465         Module getpagesize.
72466         * m4/getpagesize.m4: New file.
72467
72468         Module getusershell.
72469         * m4/getusershell.m4: New file.
72470
72471         Module physmem.
72472         * m4/physmem.m4: New file.
72473
72474         Module posixver.
72475         * m4/posixver.m4: New file.
72476
72477         Module quotearg.
72478         * m4/quotearg.m4: New file.
72479
72480         Module quote.
72481         * m4/quote.m4: New file.
72482
72483         Module readutmp.
72484         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
72485
72486         Module sig2str.
72487         * m4/sig2str.m4: New file.
72488
72489         Other.
72490         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
72491         ulonglong.m4.
72492         * m4/intmax_t.m4: New file.
72493         * m4/d-type.m4: Indentation.
72494         * m4/jm-macros.m4: Update.
72495         * m4/prereq.m4 (jm_PREREQ): Update.
72496         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
72497         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
72498         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
72499         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
72500         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
72501         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
72502         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
72503         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
72504         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
72505         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
72506         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
72507         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
72508         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
72509         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
72510         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
72511         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
72512         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
72513         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
72514         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
72515
72516 2002-12-24  Bruno Haible  <bruno@clisp.org>
72517
72518         * MODULES.txt: Update according to m4/ changes.
72519
72520         Module gettext.
72521         * config.rpath: New file, from gettext-0.11.5.
72522
72523         * modules/*: New module descriptions.
72524         * gnulib-tool: New file.
72525         * MODULES.html.sh: New file.
72526
72527 2002-12-21  Karl Berry  <karl@gnu.org>
72528
72529         * doc/fdl.texi: update to version 1.2.
72530
72531 2002-12-19  Karl Berry  <karl@gnu.org>
72532
72533         * config/config.guess: update from prep.
72534
72535 2002-12-18  Bruno Haible  <bruno@clisp.org>
72536
72537         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
72538         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
72539
72540 2002-12-17  Bruno Haible  <bruno@clisp.org>
72541
72542         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
72543         stdlib.h, string.h.
72544
72545 2002-12-17  Bruno Haible  <bruno@clisp.org>
72546
72547         * lib/canon-host.c (strdup): Remove unused declaration.
72548
72549         * lib/fsusage.c: Include full_read.h.
72550         (get_fs_usage): Use full_read instead of safe_read.
72551
72552         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
72553
72554 2002-12-12  Karl Berry  <karl@gnu.org>
72555
72556         * config/config.guess: update from prep.
72557
72558 2002-12-11  Bruno Haible  <bruno@clisp.org>
72559
72560         * m4/setenv.m4: New file, from gettext-0.11.5.
72561
72562 2002-12-11  Bruno Haible  <bruno@clisp.org>
72563
72564         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
72565         not unsetenv().
72566         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
72567         modifications:
72568
72569         2002-12-11  Bruno Haible  <bruno@clisp.org>
72570
72571                 * setenv.c (alloca): Fall back to malloc.
72572                 (freea): New macro.
72573                 (setenv): Use freea() to free memory allocated with alloca().
72574
72575         2002-11-13  Bruno Haible  <bruno@clisp.org>
72576
72577                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
72578                 function declarations.
72579                 * unsetenv.c (unsetenv): Likewise.
72580
72581         2002-03-04  Bruno Haible  <bruno@clisp.org>
72582
72583                 Portability to AIX 4.3.3.
72584                 * unsetenv.c: New file, extracted from setenv.c.
72585                 * setenv.c: Move the unsetenv() function to unsetenv.c.
72586
72587         2001-12-20  Bruno Haible  <bruno@clisp.org>
72588
72589                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
72590                 use malloc instead. For SunOS 4.
72591
72592         2001-12-11  Bruno Haible  <bruno@clisp.org>
72593
72594                 * setenv.c: Declare alloca.
72595                 (compar_fn_t): New typedef.
72596                 (KNOWN_VALUE, STORE_VALUE): Use it.
72597
72598         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
72599         setenv.h.
72600
72601 2002-12-10  Paul Eggert  <eggert@twinsun.com>
72602
72603         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
72604         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
72605         Choose values that are less likely to collide with system fnmatch
72606         options.
72607         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
72608         defined (e.g., a pure POSIX system).
72609         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
72610         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
72611
72612 2002-12-06  Paul Eggert  <eggert@twinsun.com>
72613
72614         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
72615         a pain in practice to deal with generated m4 files.  This change
72616         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
72617
72618         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
72619         and jm-glibc-io.m4, as they are no longer a special case.
72620         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
72621         kludge and the auto-generation stuff.  Check only whether the
72622         functions are declared, not whether they exist, since older hosts
72623         that don't declare the functions can't use the optimization anyway.
72624
72625 2002-12-06  Jim Meyering  <jim@meyering.net>
72626
72627         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
72628
72629         Merge in changes from libc's misc/error.c, in preparation
72630         for the merge of gnulib's changes back into libc.
72631
72632         * lib/error.c (_): Define only if not already defined.
72633         Move definition to follow all #include directives.
72634         Include unlocked-io.h only if !_LIBC.
72635         [_LIBC]: Include <libio/libioP.h>.
72636         [USE_IN_LIBIO]: Include <libio/iolibio.h>
72637         (fflush): Tweak definition to use INTUSE.
72638         (putc): Define.
72639
72640 2002-12-05  Paul Eggert  <eggert@twinsun.com>
72641
72642         * lib/alloca.c [defined emacs]: Include "lisp.h".
72643         (xalloc_die) [defined emacs]: New macro.
72644         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
72645         [! defined emacs]: Include <xalloc.h>.
72646         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
72647         (pointer): Typedef to POINTER_TYPE *.
72648         (malloc): Remove decl; we now always use xmalloc.
72649         (alloca): Use old-style definition, since Emacs needs this.
72650         Check for arithmetic overflow when computing combined size.
72651
72652 2002-12-04  Paul Eggert  <eggert@twinsun.com>
72653
72654         Do not generate unlocked-io.h automatically, since it's easier to
72655         maintain it by hand.
72656
72657         * lib/unlocked-io.h: New file, from GNU diffutils,
72658         but with proper copyright notice and attribution.
72659         * lib/gen-uio: Remove.
72660         * lib/Makefile.am: Add copyright notice.
72661         (libfetish_a_SOURCES): Add unlocked-io.h.
72662         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
72663         (DISTCLEANFILES, io_functions): Remove macros.
72664         (EXTRA_DIST): Remove gen_uio.
72665         (unlocked-io.h): Remove rule.
72666
72667 2002-12-04  Jim Meyering  <jim@meyering.net>
72668
72669         Reflect the fact that stat.c and lstat.c are no longer generated.
72670         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
72671         (DISTCLEANFILES): Likewise.
72672         (EXTRA_DIST): Likewise.
72673         (all_local): Don't depend on stat.c or lstat.c.
72674         (stat.c, lstat.c): Remove rules.
72675         (EXTRA_DIST): Remove xstat.in.
72676
72677         * lib/xstat.in: Remove file.  Contents moved into stat.c.
72678         * lib/stat.c: New file.  Contents mostly from xstat.in.
72679         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
72680         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
72681
72682         * lib/safe-read.c: Rework so that it may serve to define safe_write,
72683         too.
72684         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
72685
72686 2002-12-03  Jim Meyering  <jim@meyering.net>
72687
72688         * lib/safe-read.c, safe-write.c: Change variable names and comments,
72689         but not semantics, to minimize the differences between these two files.
72690         (safe_read): Change comment to mention SAFE_READ_ERROR.
72691
72692         * lib/safe-read.c (IS_EINTR): Define.
72693         (safe_read): Use IS_EINTR in place of in-function cpp directives.
72694
72695 2002-12-02  Jim Meyering  <jim@meyering.net>
72696
72697         * lib/safe-read.c (EINTR): Define.
72698         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
72699         (INT_MAX): Provide fallback.
72700         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
72701
72702         * lib/safe-read.h (SAFE_READ_ERROR): Define.
72703
72704 2002-12-02  Bruno Haible  <bruno@clisp.org>
72705
72706         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
72707         Define, taken from safe-read.c.
72708         (INT_MAX): Provide fallback.
72709         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
72710         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
72711
72712         * lib/safe-read.c (EINTR): Remove definition.
72713         (safe_read): Don't use EINTR if it is absent.
72714
72715 2002-12-01  Jim Meyering  <jim@meyering.net>
72716
72717         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
72718         zero.
72719         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
72720
72721 2002-11-27  Paul Eggert  <eggert@twinsun.com>
72722
72723         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
72724         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
72725         with `if (! (value < limit)) abort ();', for readability.
72726
72727 2002-11-26  Karl Berry  <karl@gnu.org>
72728
72729         * lib/strdup.c: copy from libc again, with jim's ok.
72730         * lib/.cppi-disable: re-add strdup.c
72731
72732 2002-11-25  Karl Berry  <karl@gnu.org>
72733
72734         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
72735         instead of "strtol.c".
72736
72737 2002-11-25  Karl Berry  <karl@gnu.org>
72738
72739         * config/install-sh: update from automake for variable quoting, $0 in
72740         error msgs, etc.
72741
72742         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
72743         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
72744         entry.
72745
72746 2002-11-25  Jim Meyering  <jim@meyering.net>
72747
72748         * lib/mktime.c: Sync from libc, now that it has the latest fix.
72749
72750 2002-11-24  Karl Berry  <karl@gnu.org>
72751
72752         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
72753         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
72754
72755 2002-11-24  Jim Meyering  <jim@meyering.net>
72756
72757         Update from coreutils:
72758
72759         * lib/mktime.c: Merge in changes from libc.
72760
72761         Avoid a link-time failure on some Linux systems.
72762         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
72763         (otherwise).
72764         (__mon_yday): Declare with the STATIC attribute.
72765         (__mktime_internal): Likewise.
72766         Based on a report from Greg Schafer.
72767
72768 2002-11-23  Jim Meyering  <jim@meyering.net>
72769
72770         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
72771         Use `unsigned', not `int', as type of index.
72772
72773         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
72774
72775         * lib/fsusage.c: Remove unneeded parentheses around operands of
72776         `defined'.
72777
72778 2002-11-22  Paul Eggert  <eggert@twinsun.com>
72779
72780         * lib/quotearg.h: Allow multiple inclusion by surrounding with
72781         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
72782         so that we can be included first.
72783         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
72784         * lib/quotearg.c: Include quotearg.h immediately after config.h.
72785         No need to include stddef.h or sys/types.h any more.
72786         Surround local include files with "", not "<>".
72787         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
72788         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
72789         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
72790         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
72791         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
72792         (ISPRINT): Remove; no longer needed now that we assume C89.
72793
72794         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
72795         Preserve errno.
72796
72797         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
72798         quotearg_char): Use SIZE_MAX rather than
72799         (size_t) -1 when we are talking about "infinity".
72800
72801         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
72802
72803 2002-11-22  Paul Eggert  <eggert@twinsun.com>
72804
72805         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
72806         hint that one should use `if (! x) abort ();' rather than `assert
72807         (x);', and anyway it's one less thing to worry about configuring.
72808         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
72809         hash_rehash, hash_insert): Use abort rather than assert.
72810
72811 2002-11-22  Bruno Haible  <bruno@clisp.org>
72812
72813         * lib/safe-read.h: Assume C89. Add comments.
72814         (safe_read): Change return type to size_t.
72815         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
72816         byte counts > SSIZE_MAX correctly.
72817         * lib/safe-write.h: New file.
72818         * lib/safe-write.c: New file.
72819         * lib/full-read.h: New file.
72820         * lib/full-read.c: New file.
72821         * lib/full-write.h: Assume C89. Add comments.
72822         * lib/full-write.c: Include safe-write.h.
72823         (full_write): Rewritten to use safe_write.
72824         Suggested by Jim Meyering and Paul Eggert.
72825
72826 2002-11-21  Jim Meyering  <jim@meyering.net>
72827
72828         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
72829
72830         Merge in changes from the coreutils.
72831
72832         2002-09-25  Paul Eggert  <eggert@twinsun.com>
72833         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
72834         <stdint.h>.
72835         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
72836         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
72837         int.  Work more efficiently if X is the same width as uintmax_t.
72838         Do not compare X to -1, to avoid bogus compiler warning.
72839         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
72840         Don't assume that f_frsize and f_bsize are the same type.
72841
72842         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
72843         warning on FreeBSD.
72844
72845         * lib/makepath.c (make_path): Restore umask *before* creating the final
72846         component.
72847         (make_path): Minor reformatting.
72848
72849         * lib/xmalloc.c: Adjust to work with new autoconf macros,
72850         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
72851         HAVE_MALLOC/HAVE_REALLOC.
72852
72853         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
72854         dummy ones.  At least on GNU/Linux systems, `auto' means something
72855         else.
72856         From Michael Stone.
72857
72858 2002-11-21  Bruno Haible  <bruno@clisp.org>
72859
72860         Remove case insensitive option matching.
72861         * lib/argmatch.h (argcasematch): Remove declaration.
72862         (ARGCASEMATCH): Remove macro.
72863         (__xargmatch_internal): Remove case_sensitive argument.
72864         (XARGMATCH): Update.
72865         (XARGCASEMATCH): Remove macro.
72866         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
72867         case_sensitive argument.
72868         (argcasematch): Remove function.
72869         (__xargmatch_internal): Remove case_sensitive argument.
72870         (main): Use XARGMATCH instead of XARGCASEMATCH.
72871
72872         * lib/xmalloc.c: Change compile-time error message. Add comment about
72873         required autoconf version.
72874
72875 2002-11-20  Paul Eggert  <eggert@twinsun.com>
72876
72877         Merge argmatch cleanups from Bison.  Assume C89.
72878
72879         * lib/argmatch.c: Include config.h here, not in argmatch.h.
72880         Include stdlib.h, for EXIT_FAILURE.
72881         Always include <string.h>, since we assume C89.
72882         (EXIT_FAILURE): Remove pre-C89 bug workaround.
72883         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
72884         Include <stddef.h> instead, since it's all we need for size_t.
72885         (PARAMS): Remove.  All uses removed.
72886         (ARRAY_CARDINALITY): Do not bother to #undef.
72887         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
72888         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
72889         Remove unnecessary parentheses.
72890         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
72891         Insert necessary parentheses.
72892         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
72893         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
72894
72895 2002-11-19  Bruno Haible  <bruno@clisp.org>
72896
72897         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
72898         * lib/mbswidth.h: Include <stddef.h>, for size_t.
72899
72900         * lib/mbswidth.h (PARAMS): Remove macro.
72901         (mbswidth, mbsnwidth): Use ANSI C function declarations.
72902         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
72903
72904         * lib/gcd.h (PARAMS): Remove macro.
72905         (gcd): Use ANSI C function declarations.
72906         * lib/gcd.c (gcd): Likewise.
72907
72908 2002-11-15  Bruno Haible  <bruno@clisp.org>
72909
72910         * lib/strcspn.c: Include <stddef.h>.
72911         (strcspn): Use ANSI C function declaration. Change return type to
72912         size_t. Use NULL.
72913         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
72914         (strpbrk): Use NULL.
72915         * lib/strpbrk.h (PARAMS): Remove macro.
72916         (strpbrk): Use ANSI C function declaration.
72917         * lib/strstr.c: Don't include <sys/types.h>.
72918         * lib/strstr.h (PARAMS): Remove macro.
72919         (strstr): Use ANSI C function declarations.
72920
72921 2002-11-14  Karl Berry  <karl@gnu.org>
72922
72923         * config/mkinstalldirs: `do' on separate line, instead of
72924         `for var; do'.
72925
72926 2002-11-06  Bruno Haible  <bruno@clisp.org>
72927
72928         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
72929         * lib/gcd.c (gcd): Likewise.
72930
72931 2002-11-05  Bruno Haible  <bruno@clisp.org>
72932
72933         * lib/gcd.h: New file, from gettext-0.11.5.
72934         * lib/gcd.c: New file, from gettext-0.11.5.
72935
72936 2002-11-05  Bruno Haible  <bruno@clisp.org>
72937
72938         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
72939         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
72940         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
72941         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
72942
72943         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
72944         <libintl.h>.
72945         * lib/makepath.c: Include gettext.h instead of <locale.h> and
72946         <libintl.h>.
72947
72948         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
72949         * lib/human.c: Include gettext.h instead of <libintl.h>.
72950         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
72951         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
72952         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
72953         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
72954         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
72955         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
72956         (textdomain): Remove definition.
72957         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
72958
72959         * lib/long-options.c: Remove include of <libintl.h> and definition of
72960         _.
72961         * lib/same.c: Remove include of <libintl.h> and definition of _.
72962
72963 2002-11-04  Owen Taylor  <otaylor@redhat.com>
72964
72965         * lib/config.charset: A few additions for Solaris.
72966
72967 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
72968
72969         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
72970         * lib/localcharset.c (locale_charset): Declare as extern "C".
72971
72972 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
72973
72974         * lib/config.charset: msdos in uk_UA uses CP1125.
72975
72976 2002-11-04  Bruno Haible  <bruno@clisp.org>
72977
72978         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
72979         * lib/strcase.h: New file, from GNU gettext-0.11.5.
72980         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
72981         * lib/strstr.h: New file, from GNU gettext-0.11.5.
72982         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
72983
72984 2002-11-04  Bruno Haible  <bruno@clisp.org>
72985
72986         * lib/localcharset.c (locale_charset): Don't return an empty string.
72987
72988 2002-11-04  Bruno Haible  <bruno@clisp.org>
72989
72990         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
72991         aliases.
72992
72993 2002-11-04  Bruno Haible  <bruno@clisp.org>
72994
72995         * lib/config.charset: Update for newest glibc. Add canonical names
72996         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
72997
72998 2002-11-04  Bruno Haible  <bruno@clisp.org>
72999
73000         * lib/config.charset: Add support for NetBSD.
73001
73002 2002-11-04  Bruno Haible  <bruno@clisp.org>
73003
73004         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
73005
73006 2002-11-01  Bruno Haible  <bruno@clisp.org>
73007
73008         * configure.in: Add AC_CONFIG_AUX_DIR call.
73009         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
73010         test/Makefile.
73011         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
73012
73013 2002-09-28  Karl Berry  <karl@gnu.org>
73014
73015         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
73016         installed automake until the next release, since changes have been
73017         made.
73018
73019 2002-09-25  Karl Berry  <karl@gnu.org>
73020
73021         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
73022         * lib/getopt*: copy from libc/posix.
73023         * lib/gettext.h: copy from gettext.
73024         * lib/.cppi-disable: add strdup.c, gettext.h.
73025
73026 2002-09-25  Karl Berry  <karl@gnu.org>
73027
73028         * config/srclist.txt: enable gettext.h check.
73029         * config/config.{guess,sub}: update from prep.
73030         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
73031                 from automake 1.6.3.
73032         See srclist*.
73033
73034 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
73035
73036         * regex.c (PATFETCH): Remove the translating fetch.
73037         (PATFETCH_RAW): Rename to PATFETCH.
73038         (set_image_of_range): New fun.
73039         (SET_RANGE_TABLE_WORK_AREA): Use it.
73040         (regex_compile): Don't translate the pattern chars so eagerly.
73041         Only do it when inserting an `exactn' bytecode or when handling
73042         a char-range.
73043         (mutually_exclusive_p): Avoid empty statement.
73044
73045 2002-07-06  Jim Meyering  <meyering@lucent.com>
73046
73047         * m4/README: Don't mention Makefile.am.in.
73048         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
73049
73050 2002-07-01  Jim Meyering  <meyering@lucent.com>
73051
73052         * lib/c-stack.c: Include sys/time.h.
73053         From Volker Borchert.
73054
73055 2002-06-26  Paul Eggert  <eggert@twinsun.com>
73056
73057         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
73058
73059 2002-06-26  Paul Eggert  <eggert@twinsun.com>
73060
73061         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
73062         New macro.  Use it uniformly instead of
73063         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
73064         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
73065         reported by Vin Shelton.
73066
73067 2002-06-22  Paul Eggert  <eggert@twinsun.com>
73068
73069         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
73070         Do not assume SA_SIGINFO behavior.
73071         Bug reported by Jim Meyering on NetBSD 1.5.2.
73072
73073 2002-06-22  Jim Meyering  <meyering@lucent.com>
73074
73075         * m4/c-stack.m4: New file, from diffutils-2.8.2.
73076         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
73077
73078         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
73079         now that configure.ac uses AC_GNU_SOURCE.
73080         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
73081         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
73082
73083         Update to latest tools.  Suggestions from Paul Eggert.
73084         * m4/stdbool.m4: New file, from diffutils-2.8.2.
73085         * m4/gnu-source.m4: Update from diffutils-2.8.2.
73086         * m4/fnmatch.m4: Likewise.
73087         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
73088         to AC_HEADER_STDBOOL
73089
73090 2002-06-22  Jim Meyering  <meyering@lucent.com>
73091
73092         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
73093         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
73094
73095 2002-06-22  Jim Meyering  <meyering@lucent.com>
73096
73097         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
73098
73099         * lib/exitfail.c, exitfail.h: Likewise.
73100         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
73101
73102         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
73103         of fnmatch.h.
73104         (EXTRA_DIST): Add fnmatch_loop.c.
73105         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
73106
73107         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
73108         * lib/fnmatch.c: Update from diffutils-2.8.2.
73109         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
73110         * lib/fnmatch.h: Remove file.
73111
73112 2002-06-21  Jim Meyering  <meyering@lucent.com>
73113
73114         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
73115         * m4/mbrtowc.m4: Likewise.
73116
73117         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
73118         * m4/mbswidth.m4: Reflect name change:
73119         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
73120         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
73121
73122         * m4/lib-link.m4: Update from gettext-0.11.2.
73123         * m4/gettext.m4: Likewise.
73124
73125         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
73126         From Alfred M. Szmidt.
73127
73128 2002-06-18  Paul Eggert  <eggert@twinsun.com>
73129
73130         * lib/file-type.h: Report an error if neither S_ISREG nor
73131         S_IFREG is defined, instead of using a test specific to glibc
73132         2.2.  This should be safe, since POSIX requires S_ISREG and
73133         Unix Version 7 had S_IFREG.  We don't need to check for
73134         <sys/types.h> since we don't use any symbols that it defines.
73135
73136 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
73137
73138         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
73139         $@-t, so that each temporary file name is unique and valid in the first
73140         8 characters, for operation under DOS.
73141
73142 2002-06-15  Paul Eggert  <eggert@twinsun.com>
73143
73144         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
73145
73146 2002-06-15  Jim Meyering  <meyering@lucent.com>
73147
73148         Work even with DJGPP 2.03, which lacks support for symlinks.
73149         From Richard Dawe.
73150         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
73151         is defined.
73152         * lib/lchown.c (S_ISLNK): Likewise.
73153
73154 2002-06-15  Jim Meyering  <meyering@lucent.com>
73155
73156         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
73157         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
73158         have been included before this file.
73159
73160 2002-06-14  Jim Meyering  <meyering@lucent.com>
73161
73162         * lib/file-type.h: Use the version from diffutils-2.8.2.
73163         * lib/file-type.c: Likewise.
73164
73165 2002-06-07  Jim Meyering  <meyering@lucent.com>
73166
73167         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
73168         They're needed at least for NetBSD 1.5.2.
73169         ($statxfs_includes): Include those same headers.
73170         ($statxfs_includes): Include sys/vfs.h if available.
73171         ($statxfs_includes): Likewise for sys/statvfs.h.
73172         Check for the following members in both structs statfs and statvfs:
73173         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
73174
73175 2002-06-01  Jim Meyering  <meyering@lucent.com>
73176
73177         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
73178         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
73179
73180 2002-05-28  Jim Meyering  <meyering@lucent.com>
73181
73182         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
73183         Reported by Volker Borchert.
73184
73185 2002-05-27  Jim Meyering  <meyering@lucent.com>
73186
73187         Fix a problem seen only on nonconforming systems whereby ls.c's
73188         use of localtime, and then of gettimeofday would cause trouble:
73189         the localtime call used to initialize rpl_gettimeofday's save
73190         mechanism would clobber ls's current local time information so
73191         that in any long listing the first file would always be listed
73192         with date 1970-01-01.  Analysis by Volker Borchert.
73193
73194         * lib/gettimeofday.c (localtime): Undefine.
73195         (rpl_localtime): New function.
73196
73197 2002-05-27  Jim Meyering  <meyering@lucent.com>
73198
73199         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
73200         localtime.
73201
73202         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
73203         use the replacement function; it wouldn't resolve at link time.
73204         Reported by Volker Borchert.
73205
73206 2002-05-22  Jim Meyering  <meyering@lucent.com>
73207
73208         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
73209         file-type.h.
73210         * lib/file-type.h: New file.
73211         * lib/file-type.c (file_type): New file/function.  Extracted from
73212         diffutils.
73213
73214 2002-04-30  Jim Meyering  <meyering@lucent.com>
73215
73216         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
73217
73218 2002-04-29  Paul Eggert  <eggert@twinsun.com>
73219
73220         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
73221
73222 2002-04-29  Paul Eggert  <eggert@twinsun.com>
73223
73224         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
73225         Do not check for alloca.h (no longer used) or stdbool.h (was never
73226         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
73227
73228 2002-04-29  Paul Eggert  <eggert@twinsun.com>
73229
73230         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
73231
73232 2002-04-29  Jim Meyering  <meyering@lucent.com>
73233
73234         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
73235         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
73236         Use AC_FUNC_STRNLEN here instead.
73237
73238         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
73239         With autoconf-2.53a, it's part of AC_PROG_CC.
73240
73241 2002-04-28  Paul Eggert  <eggert@twinsun.com>
73242
73243         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
73244         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
73245
73246 2002-04-28  Paul Eggert  <eggert@twinsun.com>
73247
73248         * lib/sig2str.h, lib/sig2str.c: New files.
73249         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
73250
73251 2002-04-28  Paul Eggert  <eggert@twinsun.com>
73252
73253         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
73254         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
73255         of 127, since 64 is the largest conceivable number for ancient
73256         nonstandard hosts.
73257         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
73258
73259 2002-04-28  Jim Meyering  <meyering@lucent.com>
73260
73261         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
73262
73263 2002-04-24  Jim Meyering  <meyering@lucent.com>
73264
73265         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
73266         (jm_PREREQ): Use it.
73267
73268         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
73269         mach/mach.h fcntl.h.
73270         Check for this function: setlocale.
73271
73272 2002-04-24  Jim Meyering  <meyering@lucent.com>
73273
73274         * lib/gettext.h: New file, from Gettext.
73275         * lib/Makefile.am (INCLUDES): Remove -I../intl.
73276         (libfetish_a_SOURCES): Add gettext.h.
73277
73278 2002-04-16  Jim Meyering  <meyering@lucent.com>
73279
73280         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
73281         ut_pid, ut_id, ut_exit.
73282
73283 2002-04-16  Jim Meyering  <meyering@lucent.com>
73284
73285         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
73286         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
73287         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
73288
73289 2002-04-12  Jim Meyering  <meyering@lucent.com>
73290
73291         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
73292         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
73293         existence of the getmntinfo function.  Needed for Darwin 5.3.
73294
73295         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
73296         This is necessary at least on Darwin 5.3.
73297
73298         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
73299         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
73300         strnlen.o in the library, and that makes some versions of ranlib
73301         object.
73302
73303 2002-04-12  Jim Meyering  <meyering@lucent.com>
73304
73305         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
73306
73307 2002-04-09  Jim Meyering  <meyering@lucent.com>
73308
73309         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
73310         to be more precise.  Rather than saying we're checking whether the
73311         function `works', say what we're testing.
73312         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
73313         Reported by Bruno Haible.
73314
73315 2002-03-10  Jim Meyering  <meyering@lucent.com>
73316
73317         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
73318         Suggestion from Santiago Vila.
73319
73320 2002-03-08  Jim Meyering  <meyering@lucent.com>
73321
73322         * lib/rename.c: Mention that this wrapper is needed also on
73323         mips-dec-ultrix4.4 systems.
73324
73325 2002-03-02  Jim Meyering  <meyering@lucent.com>
73326
73327         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
73328         not HAVE_CLOCK_SETTIME.
73329
73330 2002-02-27  Paul Eggert  <eggert@twinsun.com>
73331
73332         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
73333         Check for clock_settime.
73334
73335 2002-02-27  Paul Eggert  <eggert@twinsun.com>
73336
73337         * lib/nanosleep.h: Rename to....
73338         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
73339
73340         * lib/gettime.c: New file.
73341         * lib/settime.c: New file.
73342         * lib/stime.c: Remove.
73343
73344         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
73345         timespec.h.  Remove nanosleep.h.
73346
73347 2002-02-25  Paul Eggert  <eggert@twinsun.com>
73348
73349         * m4/acl.m4: New file.
73350         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
73351         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
73352
73353 2002-02-25  Paul Eggert  <eggert@twinsun.com>
73354
73355         * lib/acl.c, lib/acl.h: New files.
73356         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
73357
73358 2002-02-24  Jim Meyering  <meyering@lucent.com>
73359
73360         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
73361         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
73362         cause trouble.  Reported by Nelson Beebe.
73363
73364 2002-02-23  Paul Eggert  <eggert@twinsun.com>
73365
73366         * lib/path-concat.c (xpath_concat): Reorder code to pacify
73367         compilers that don't know that xalloc_die never returns.
73368
73369 2002-02-20  Jim Meyering  <meyering@lucent.com>
73370
73371         * lib/getdate.c: Regenerate using bison-1.33.
73372
73373 2002-02-17  Jim Meyering  <meyering@lucent.com>
73374
73375         * config/config.guess (main): Don't use `head -1'; it's no longer
73376         portable. Use `sed 1q' instead.
73377
73378 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
73379
73380         * m4/codeset.m4: Upgrade to gettext-0.11.
73381         * m4/gettext.m4: Upgrade to gettext-0.11.
73382         * m4/glibc21.m4: Upgrade to gettext-0.11.
73383         * m4/iconv.m4: Upgrade to gettext-0.11.
73384         * m4/isc-posix.m4: Upgrade to gettext-0.11.
73385         * m4/lcmessage.m4: Upgrade to gettext-0.11.
73386         * m4/lib-ld.m4: New file, from gettext-0.11.
73387         * m4/lib-link.m4: New file, from gettext-0.11.
73388         * m4/lib-prefix.m4: New file, from gettext-0.11.
73389         * m4/progtest.m4: Upgrade to gettext-0.11.
73390
73391 2002-02-15  Paul Eggert  <eggert@twinsun.com>
73392
73393         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
73394         (jm_PREREQ): Use it.
73395
73396 2002-02-15  Paul Eggert  <eggert@twinsun.com>
73397
73398         * lib/posixver.c, lib/posixver.h: New files.
73399         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
73400
73401 2002-02-02  Paul Eggert  <eggert@twinsun.com>
73402             Bruno Haible  <bruno@clisp.org>
73403
73404         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
73405         (fwrite_success_callback): New declaration.
73406         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
73407         print_unicode_char. Call failure callback instead of error.
73408         (fwrite_success_callback): New function.
73409         (exit_failure_callback): New function.
73410         (fallback_failure_callback): New function.
73411         (print_unicode_char): Call unicode_to_mb.
73412
73413 2002-01-26  Jim Meyering  <meyering@lucent.com>
73414
73415         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
73416         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
73417
73418 2002-01-26  Jim Meyering  <meyering@lucent.com>
73419
73420         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
73421
73422 2002-01-22  Paul Eggert  <eggert@twinsun.com>
73423
73424         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
73425
73426 2002-01-22  Jim Meyering  <meyering@lucent.com>
73427
73428         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
73429         Otherwise, some versions of automake would omit the rule that makes
73430         Makefile from Makefile.in.
73431
73432 2002-01-21  Paul Eggert  <eggert@twinsun.com>
73433
73434         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
73435         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
73436         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
73437         (memcoll): Set errno to zero if there is no error.
73438
73439         * lib/quotearg.c (quotearg_buffer_restyled):
73440         Fix bug with quoting buffers containing NUL when backslashing escapes.
73441         This bug was exposed by the other changes in this patch.
73442         (quotearg_n_options): New arg ARGSIZE.
73443         All callers changed.
73444         (quoting_options_from_style): New function.
73445         (quotearg_n_style): Use it.
73446         (quotearg_n_style_mem): New function.
73447
73448         * lib/quotearg.h (quotearg_n_style_mem): New function.
73449
73450 2002-01-19  Jim Meyering  <meyering@lucent.com>
73451
73452         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
73453         Remove useless quotes: DF_PROG="df".
73454         * m4/strnlen.m4: New file.
73455
73456 2002-01-16  Paul Eggert  <eggert@twinsun.com>
73457
73458         * lib/backupfile.c (ISDIGIT): Comment fix.
73459         * lib/getdate.y (ISDIGIT): Likewise.
73460         * lib/posixtm.c (ISDIGIT, year): Likewise.
73461         * lib/strverscmp.c (ISDIGIT): Likewise.
73462         * lib/userspec.c (ISDIGIT): Likewise.
73463
73464 2002-01-16  Jim Meyering  <meyering@lucent.com>
73465
73466         * lib/getdate.y: Add three semicolons, each just before a closing
73467         brace. Bison (as of version 1.31) no longer papers over that mistake.
73468
73469 2002-01-05  Jim Meyering  <meyering@lucent.com>
73470
73471         * lib/version-etc.c (version_etc_copyright): Update copyright year.
73472
73473 2001-12-19  Paul Eggert  <eggert@twinsun.com>
73474
73475         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
73476         not silently exit merely because the output buffer happens to
73477         have nothing pending.
73478
73479 2001-12-18  Paul Eggert  <eggert@twinsun.com>
73480
73481         See the big note in ../ChangeLog.
73482         * lib/human.c (suffixes): Prefer K to k for 1024.
73483         (generate_suffix_backwards): New function.
73484         (human_readable_inexact): Use it.
73485         * lib/xstrtol.c (__xstrtol): If there is no number but there
73486         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
73487         Accept 'K' as well as 'k'.
73488
73489 2001-12-15  Jim Meyering  <meyering@lucent.com>
73490
73491         * lib/regex.h (__restrict_arr): Update from libc.
73492
73493         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
73494         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
73495         (STREQ): Define.
73496
73497 2001-12-14  Jim Meyering  <meyering@lucent.com>
73498
73499         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
73500         Suggestion from Bruno Haible.
73501
73502 2001-12-10  Jim Meyering  <meyering@lucent.com>
73503
73504         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
73505         xrealloc, Instead, include "xalloc.h".
73506         (initbuffer): Don't cast xmalloc return value to char*.
73507         (readline): Reword comment.
73508         Don't cast xrealloc return value to char*
73509         Return NULL, not 0.
73510
73511 2001-12-09  Jim Meyering  <meyering@lucent.com>
73512
73513         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
73514         about `signed and unsigned type in conditional expression'.
73515         * lib/posixtm.c (posix_time_parse): Likewise.
73516
73517         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
73518
73519         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
73520         to avoid a pedantic warning.
73521
73522         * lib/getstr.c: Don't include assert.h.
73523         (getstr): Remove warning-evoking assertions.
73524         Return -1 if offset parameter is out of bounds.
73525         Change the type of a local from int to size_t.
73526
73527         * lib/strftime.c (my_strftime_localtime_r): Include this function
73528         definition in the `#if ! HAVE_TM_GMTOFF' block.
73529
73530         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
73531         Include xalloc.h instead.
73532
73533 2001-12-02  Jim Meyering  <meyering@lucent.com>
73534
73535         * lib/tempname.c: Don't declare getenv, thus reverting the change of
73536         2001-11-18.  It's no longer necessary, now that stdlib.h is always
73537         included.
73538
73539         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
73540         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
73541
73542 2001-11-30  Akim Demaille  <akim@epita.fr>
73543
73544         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
73545         before being defined.
73546
73547 2001-11-27  Paul Eggert  <eggert@twinsun.com>
73548
73549         * lib/quotearg.h (quotearg_n, quotearg_n_style):
73550         First arg is int, not unsigned.
73551         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
73552         (SIZE_MAX, UINT_MAX): New macros.
73553         (quotearg_n_options): Abort if N is negative.
73554         Avoid overflow check on hosts where size_t is 64 bits and int
73555         is 32 bits, as overflow is impossible there.
73556         Fix off-by-one typo that caused unnecessary reallocation.
73557
73558 2001-11-27  Jim Meyering  <meyering@lucent.com>
73559
73560         * lib/tempname.c: Merge with version from libc.
73561         * lib/regex.c: Likewise.
73562
73563         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
73564         systems for which STDC_HEADERS is 0, it was not included, resulting in
73565         a warning about an integer-to-pointer conversion problem with getenv.
73566         Reported by Volker Borchert.
73567
73568 2001-11-26  Jim Meyering  <meyering@lucent.com>
73569
73570         * lib/gtod.h: Remove file.
73571         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
73572         * lib/gettimeofday.c: Don't include gtod.h.
73573         (GTOD_init): Remove function.
73574         (rpl_gettimeofday): Do its job here instead, rather than aborting.
73575         Suggestion from Volker Borchert.
73576
73577 2001-11-23  Jim Meyering  <meyering@lucent.com>
73578
73579         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
73580         it.
73581         * lib/hash.c (struct hash_table): Define it here instead.
73582
73583 2001-11-22  Jim Meyering  <meyering@lucent.com>
73584
73585         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
73586
73587 2001-11-20  Jim Meyering  <meyering@lucent.com>
73588
73589         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
73590         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
73591
73592 2001-11-19  Jim Meyering  <meyering@lucent.com>
73593
73594         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
73595         directory.  Use "conftestXXXXXX" as the template.
73596         Suggestion from Paul Eggert.
73597
73598         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
73599         immediately, so the test doesn't mistakenly hit the max-open-files
73600         limit.
73601
73602 2001-11-18  Paul Eggert  <eggert@twinsun.com>
73603
73604         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
73605         (TEMPORARIES): New macro.
73606         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
73607         removes an artificial limitation (e.g. HP-UX 10.20, where
73608         TMP_MAX is 17576).
73609
73610 2001-11-18  Jim Meyering  <meyering@lucent.com>
73611
73612         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
73613
73614 2001-11-18  Jim Meyering  <meyering@lucent.com>
73615
73616         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
73617         on SunOS 4.
73618
73619         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
73620         files will be created before anything else.
73621
73622 2001-11-17  Paul Eggert  <eggert@twinsun.com>
73623
73624         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
73625         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
73626
73627 2001-11-17  Jim Meyering  <meyering@lucent.com>
73628
73629         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
73630         Prompted by a report from Bob Proulx.
73631
73632         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
73633         Instead, require UTILS_FUNC_MKSTEMP.
73634
73635 2001-11-17  Jim Meyering  <meyering@lucent.com>
73636
73637         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
73638         Now, that's done as part of AC_FUNC_STRTOD.
73639
73640 2001-11-17  Jim Meyering  <meyering@lucent.com>
73641
73642         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
73643         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
73644         rather than group writable.  Patch by Juan F. Codagnone.
73645
73646         * lib/readtokens.c: Remove explicit declarations of xmalloc and
73647         xrealloc, Instead, include "xalloc.h".
73648
73649         * lib/mountlist.c: Include unlocked-io.h after all system headers.
73650         Remove explicit declarations of xmalloc, xrealloc,
73651         and xstrdup.  Instead, include "xalloc.h".
73652
73653         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
73654         unlocked-io.h.
73655         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
73656         Likewise.
73657         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
73658
73659         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
73660         Reported by Padraig Brady.
73661
73662         * lib/mkstemp.c: #undef mkstemp.
73663         Include config.h.
73664         (rpl_mkstemp): Rename from mkstemp.
73665         Protoize.
73666
73667 2001-11-16  Jim Meyering  <meyering@lucent.com>
73668
73669         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
73670         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
73671         determine the amount of total physical memory, use pstat_getstatic.
73672         HPUX-11 doesn't define _SC_PHYS_PAGES.
73673         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
73674         If sysconf couldn't be used to determine the amount of available
73675         physical memory, use both pstat_getstatic and pstat_getdynamic.
73676         Based on a patch from Bob Proulx.
73677
73678 2001-11-10  Jim Meyering  <meyering@lucent.com>
73679
73680         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
73681         (jm_PREREQ): Use it.
73682
73683 2001-11-09  Jim Meyering  <meyering@lucent.com>
73684
73685         * m4/jm-macros.m4: Require autoconf-2.52f.
73686         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
73687         Use these AC_-prefixed names, not the AM_-prefixed ones.
73688
73689         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
73690
73691 2001-11-05  Jim Meyering  <meyering@lucent.com>
73692
73693         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
73694
73695 2001-11-04  Jim Meyering  <meyering@lucent.com>
73696
73697         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
73698         $DEFS.
73699
73700 2001-11-03  Jim Meyering  <meyering@lucent.com>
73701
73702         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
73703         of AC_DEFUN.
73704
73705         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
73706         know the name of the variable in the macro definition.
73707
73708 2001-11-03  Jim Meyering  <meyering@lucent.com>
73709
73710         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
73711         in argmatch_to_argument call.
73712
73713         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
73714         argument.
73715
73716         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
73717         e.g., a fault due to an attempt to free a NULL pointer.
73718
73719 2001-11-01  Jim Meyering  <meyering@lucent.com>
73720
73721         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
73722         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
73723
73724 2001-11-01  Jim Meyering  <meyering@lucent.com>
73725
73726         * lib/dirfd.c, lib/dirfd.h: New files.
73727         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
73728
73729         * lib/hash.c (hash_print) [TESTING]: Clean up.
73730
73731 2001-10-22  Paul Eggert  <eggert@twinsun.com>
73732
73733         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
73734         to avoid a warning if -Wall.
73735
73736 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
73737
73738         * README: New file
73739         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
73740         (per RMS's instructions, this is now the canonical source)
73741         * lgpl/, gpl/: New directories.
73742
73743 2001-10-21  Paul Eggert  <eggert@twinsun.com>
73744
73745         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
73746
73747 2001-10-21  Jim Meyering  <meyering@lucent.com>
73748
73749         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
73750         this code would end up calling gettext even in packages built
73751         with --disable-nls.
73752         * lib/getopt.c (_): Likewise.
73753         * lib/regex.c (_): Likewise.
73754
73755 2001-10-20  Paul Eggert  <eggert@twinsun.com>
73756
73757         * m4/error.m4 (jm_PREREQ_ERROR):
73758         Do not invoke AC_CHECK_FUNCS with strerror_r, as
73759         AC_FUNC_STRERROR_R does that.
73760         Check for strerror declaration.
73761
73762         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
73763         are supposed to have them these days.
73764         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
73765         Merge changes from latest Autoconf CVS.
73766         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
73767         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
73768         POSIX decided to standardize on the int flavor of strerror_r.
73769
73770 2001-10-20  Paul Eggert  <eggert@twinsun.com>
73771
73772         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
73773         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
73774         Use strerror_r that is only a macro, even if it is not a function.
73775         (strerror): Check for HAVE_DECL_STRERROR before declaring.
73776         (private_strerror): Use prototypes, not old-style function definition.
73777         (print_errno_message): New function.
73778         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
73779         char*-flavored one.
73780         (error_tail, error, error_at_line): Use it.
73781
73782 2001-10-11  Jim Meyering  <meyering@lucent.com>
73783
73784         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
73785         and quote_n (1, ... to avoid clobbering a buffer.
73786
73787 2001-10-05  Jim Meyering  <meyering@lucent.com>
73788
73789         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
73790         hash-pjw.h.
73791         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
73792         * lib/hash-pjw.h: New file.
73793
73794 2001-09-30  Jim Meyering  <meyering@lucent.com>
73795
73796         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
73797         `struct fsstat' has the `f_fstypename' member.
73798         Use that to define FS_TYPE, which is now used to make
73799         the getfsstat link test tighter.
73800
73801 2001-09-30  Jim Meyering  <meyering@lucent.com>
73802
73803         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
73804         Include <sys/ucred.h>, for Apple Darwin.
73805         Include sys/mount.h and sys/fs_types.h only if available.
73806         (FS_TYPE): Define.
73807         (read_filesystem_list): Use FS_TYPE.
73808
73809 2001-09-29  Paul Eggert  <eggert@twinsun.com>
73810
73811         * lib/exclude.c (excluded_filename): 0 -> false, since it's
73812         a boolean context.
73813
73814 2001-09-29  Jim Meyering  <meyering@lucent.com>
73815
73816         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
73817         [one-argument getmntent function]): Include stdio.h before mntent.h.
73818         SunOS 4.1.x needs it for the declaration of `FILE'.
73819         Patch by Volker Borchert.
73820
73821         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
73822         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
73823         sys/fs_types.h, and make the link-test for getfsstat guard #include
73824         directives with appropriate #if HAVE_*_H tests so that we can
73825         detect getfsstat on Apple Darwin1.3.7 systems.
73826         Reported by Nelson Beebe.
73827         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
73828
73829 2001-09-28  Paul Eggert  <eggert@twinsun.com>
73830
73831         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
73832         #defines strtoimax.  Also treat the other strto* functions
73833         like strtoimax.
73834
73835         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
73836         Check for strtoul and strtoumax,
73837         as those declarations are made even in the signed case.
73838         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
73839         Likewise, for strtol and strtoimax.
73840
73841 2001-09-28  Paul Eggert  <eggert@twinsun.com>
73842
73843         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
73844         #defines strtoimax.  Also treat the other strto* functions
73845         like strtoimax.
73846
73847         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
73848         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
73849         (strtoimax, strtoumax): Do not declare if already defined as a macro.
73850
73851 2001-09-26  Jim Meyering  <meyering@lucent.com>
73852
73853         Most macros in unlocked-io.h had the wrong number of arguments.
73854         * lib/gen-uio: New script.
73855         (USE_UNLOCKED_IO): Define to 1 if not already defined.
73856         * lib/unlocked-io.hin: Remove file.
73857         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
73858         rather than trying to embed it here.
73859         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
73860         Reported by Padraig Brady.
73861
73862 2001-09-25  Volker Borchert  <bt@teknon.de>
73863
73864         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
73865         `result'.
73866
73867 2001-09-24  Jim Meyering  <meyering@lucent.com>
73868
73869         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
73870
73871 2001-09-23  Jim Meyering  <meyering@lucent.com>
73872
73873         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
73874         instead of the mere test for existence of mntent.h.  The latter
73875         would get a false-positive on AIX 3.4 systems.
73876         In the outer getmntent if-block, don't die if neither of the getmntent
73877         tests succeeds.  Instead, just fall through and continue with the
73878         remaining tests.
73879
73880 2001-09-23  Jim Meyering  <meyering@lucent.com>
73881
73882         * lib/mountlist.c: Remove useless parentheses in #if directives.
73883         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
73884         the deprecated MOUNTED symbol is no longer defined in mntent.h.
73885
73886 2001-09-22  Jim Meyering  <meyering@lucent.com>
73887
73888         * m4/gettext.m4: New file.  From gettext.
73889         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
73890         * m4/progtest.m4: Likewise
73891         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
73892         * m4/glibc21.m4: Likewise.
73893
73894         * m4/libintl.m4: Remove.  No longer used.
73895
73896 2001-09-22  Jim Meyering  <meyering@lucent.com>
73897
73898         * lib/localcharset.c: Update from latest gettext.
73899         * lib/config.charset: Likewise.
73900
73901 2001-09-20  Jim Meyering  <meyering@lucent.com>
73902
73903         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
73904         strtoimax.
73905         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
73906         strtoumax.
73907
73908 2001-09-20  Jim Meyering  <meyering@lucent.com>
73909
73910         * lib/xstrtol.c (strtoimax): Guard declaration with
73911         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
73912         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
73913         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
73914         (strtoumax): Likewise, for completeness (it wasn't necessary).
73915
73916 2001-09-17  Paul Eggert  <eggert@twinsun.com>
73917
73918         * lib/strtoimax.c (HAVE_LONG_LONG):
73919         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
73920         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
73921         to work around bug in IBM C compiler.
73922
73923 2001-09-17  Jim Meyering  <meyering@lucent.com>
73924
73925         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
73926         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
73927         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
73928         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
73929         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
73930         whenever the right hand side need not be expanded by the shell.
73931
73932 2001-09-16  Paul Eggert  <eggert@twinsun.com>
73933
73934         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
73935         library.  It's not correct, as some older glibcs are buggy.
73936         fnmatch wasn't fixed until glibc 2.2.
73937
73938         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
73939         special shell magic here.
73940
73941 2001-09-16  Jim Meyering  <meyering@lucent.com>
73942
73943         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
73944         * m4/jm-macros.m4: Require it.
73945
73946 2001-09-16  Jim Meyering  <meyering@lucent.com>
73947
73948         * lib/mkdir.c: New file.
73949
73950 2001-09-15  Jim Meyering  <meyering@lucent.com>
73951
73952         * m4/jm-macros.m4: Check for help2man.
73953
73954 2001-09-11  Jim Meyering  <meyering@lucent.com>
73955
73956         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
73957         The body, by Paul Eggert, was moved here from configure.in.
73958         * m4/jm-macros.m4: Require UTILS_HOST_OS.
73959
73960 2001-09-04  Paul Eggert  <eggert@twinsun.com>
73961
73962         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
73963         (jm_PREREQ): Use it.
73964
73965 2001-09-04  Paul Eggert  <eggert@twinsun.com>
73966
73967         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
73968         Use ssize_t, not int, to store result of readlink.
73969         Check for ssize_t overflow as well as size_t overflow,
73970         as POSIX says the result of readlink is implementation-defined
73971         when ssize_t overflows.
73972         Remove unnecessary cast to char*.
73973         Use free+malloc instead of realloc, as the storage doesn't need
73974         to be preserved and it's clearer and can be more efficient that way.
73975         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
73976         * lib/xreadlink.h (xreadlink): Update prototype.
73977
73978 2001-09-04  Paul Eggert  <eggert@twinsun.com>
73979
73980         * lib/xgetcwd.c: Revert some of the previous change; intead,
73981         fix the HAVE_GETCWD_NULL code to behave more like the
73982         !HAVE_GETCWD_NULL code used to.
73983
73984         Include "xalloc.h".
73985         (xgetcwd): Do not return NULL when memory is exhausted; instead,
73986         invoke xalloc_die.
73987
73988 2001-09-03  Paul Eggert  <eggert@twinsun.com>
73989
73990         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
73991         sys/param.h, as pathmax.h includes them.
73992
73993 2001-09-03  Paul Eggert  <eggert@twinsun.com>
73994
73995         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
73996         (jm_PREREQ_XGETCWD): New macro.
73997
73998         * m4/getcwd.m4: New file.
73999
74000 2001-09-03  Paul Eggert  <eggert@twinsun.com>
74001
74002         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
74003         like the HAVE_GETCWD_NULL code.
74004         Include pathmax.h if not HAVE_GETCWD.
74005         Do not include xalloc.h.
74006         (INITIAL_BUFFER_SIZE): New symbol.
74007         Do not use xmalloc / xrealloc, since the caller is responsible for
74008         handling errors.  Preserve errno around `free' during failure.
74009         Do not overrun buffer when using getwd.
74010
74011 2001-09-03  Paul Eggert  <eggert@twinsun.com>
74012
74013         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
74014         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
74015         getcwd (NULL, 0).
74016
74017 2001-09-03  Paul Eggert  <eggert@twinsun.com>
74018
74019         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
74020         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
74021         spotted by Jim Meyering.
74022
74023 2001-09-03  Jim Meyering  <meyering@lucent.com>
74024
74025         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
74026         failure.
74027
74028 2001-09-02  Jim Meyering  <meyering@lucent.com>
74029
74030         * lib/error.c: Update from GNU libc.
74031
74032 2001-09-01  Jim Meyering  <meyering@lucent.com>
74033
74034         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
74035         Used by df.
74036
74037 2001-09-01  Jim Meyering  <meyering@lucent.com>
74038
74039         * lib/xreadlink.c: New file.
74040         * lib/xreadlink.h: New file.
74041         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
74042         xreadlink.h.
74043
74044         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
74045         doesn't conflict with sparc Solaris 7's definition in
74046         /usr/include/sys/int_types.h.
74047
74048         * lib/exclude.c: Use `""', not `<>' to #include non-system header
74049         files.
74050         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
74051         and strncasecmp as r-values.  Unixware didn't have declarations.
74052
74053 2001-08-31  Paul Eggert  <eggert@twinsun.com>
74054
74055         * lib/xstrtol.h: Add copyright notice.
74056         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
74057         LONGINT_INVALID_SUFFIX_CHAR.
74058
74059 2001-08-31  Paul Eggert  <eggert@twinsun.com>
74060
74061         * lib/xstrtol.c (strtoimax): New decl.
74062
74063 2001-08-31  Paul Eggert  <eggert@twinsun.com>
74064
74065         * lib/xgetcwd.c: Don't include pathmax.h.
74066         Include stdlib.h and unistd.h if available.
74067         Include xalloc.h.
74068         (xmalloc, xstrdup, free): Remove decls.
74069         (xgetcwd): Don't assume sizes fit in unsigned.
74070         Check for overflow when computing sizes.
74071         Simplify reallocation code.
74072
74073 2001-08-31  Paul Eggert  <eggert@twinsun.com>
74074
74075         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
74076         a directory's st_size can have an arbitrary value, so the old
74077         usage could waste an arbitrary amount of memory.  All uses
74078         changed.
74079         * lib/savedir.h: Update prototype.
74080
74081 2001-08-31  Paul Eggert  <eggert@twinsun.com>
74082
74083         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
74084
74085         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
74086         old strtoimax.c.
74087
74088         Also, make the following further changes to make this file's
74089         configuration more similar to that of strtol.c:
74090         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
74091         (strtoumax, uintmax_t, strtoull, strtol): Remove.
74092         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
74093         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
74094         changed to signed values.
74095
74096         And make the following changes as well:
74097         Fix copyright notice, as 1999 was missing.
74098         (verify): New macro.
74099         (strtoimax): Check sizes at compile-time, not run-time.
74100         Prefer strtol to strtoll if both work.
74101         (main): Remove; it was not that useful and was a pain to maintain.
74102
74103         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
74104
74105 2001-08-31  Jim Meyering  <meyering@lucent.com>
74106
74107         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
74108         Use an initial, malloc'd, buffer of length 128 rather than
74109         a statically allocated one of length 1024.
74110
74111 2001-08-30  Paul Eggert  <eggert@twinsun.com>
74112
74113         Simplify code, partly by assuming autoconf 2.52 semantics.
74114
74115         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
74116
74117         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
74118         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
74119         All uses removed.
74120         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
74121         Move AC_REQUIRE to next-to-top level, to avoid confusion.
74122         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
74123         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
74124         jm_AC_HEADER_INTTYPES_H.
74125         * m4/jm-macros.m4 (jm_MACROS): Likewise.
74126
74127         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
74128
74129         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
74130         Quote first arg of AC_DEFUN.
74131         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
74132         since they are needed to parse the include file even if we need
74133         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
74134         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
74135         but with opposite signedness.
74136
74137 2001-08-30  Paul Eggert  <eggert@twinsun.com>
74138
74139         Merge 'exclude' changes from tar 1.13.22.
74140         This fixes one or two unlikely storage allocation overflow bugs,
74141         but doesn't change user-visible behavior otherwise.
74142
74143 2001-08-30  Paul Eggert  <eggert@twinsun.com>
74144
74145         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
74146         (jm_PREREQ_EXCLUDE): New macro.
74147
74148 2001-08-30  Paul Eggert  <eggert@twinsun.com>
74149
74150         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
74151         tm to be declared.
74152
74153 2001-08-30  Paul Eggert  <eggert@twinsun.com>
74154
74155         * lib/hash.c: Remove '2001' from copyright notice.
74156
74157 2001-08-30  Paul Eggert  <eggert@twinsun.com>
74158
74159         * lib/full-write.h: New file.
74160         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
74161         * lib/full-write.c: Correct credits, as cccp.c no longer
74162         exists and anyway it was so heavily changed from the old cccp
74163         code as to be unrecognizable.  Include full-write.h.
74164         (full_write) Return size_t, with short writes meaning failure.
74165         All callers changed.  This fixes a bug with large buffers
74166         on 64-bit hosts.
74167         * lib/utime.c: Include full-write.h.
74168
74169 2001-08-30  Paul Eggert  <eggert@twinsun.com>
74170
74171         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
74172         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
74173         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
74174         Include if available.
74175         (<xalloc.h>): Include
74176         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
74177         (verify): New macro.  Use it to verify that EXCLUDE macros do not
74178         collide with FNM macros.
74179         (struct patopts): New struct.
74180         (struct exclude): Use it, as exclude patterns now come with options.
74181         (new_exclude): Support above changes.
74182         (new_exclude, add_exclude_file):
74183         Initial size must now be a power of two to simplify overflow checking.
74184         (free_exclude, fnmatch_no_wildcards): New function.
74185         (excluded_filename): No longer requires options arg, as the options
74186         are determined by add_exclude.  Now returns bool, not int.
74187         (excluded_filename, add_exclude):
74188         Add support for the fancy new exclusion options.
74189         (add_exclude, add_exclude_file): Now takes int options arg.
74190         Check for arithmetic overflow when computing sizes.
74191         (add_exclude_file): xrealloc might modify errno, so don't
74192         realloc until after errno might be used.
74193
74194         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
74195         New macros.
74196         (free_exclude): New decl.
74197         (add_exclude, add_exclude_file): Now takes int options arg.
74198         (excluded_filename): No longer requires options arg, as the options
74199         are determined by add_exclude.  Now returns bool, not int.
74200
74201 2001-08-30  Paul Eggert  <eggert@twinsun.com>
74202
74203         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
74204
74205 2001-08-27  Jim Meyering  <meyering@lucent.com>
74206
74207         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
74208
74209         * lib/version-etc.c (N_): Remove definition.
74210         Revert most of last change.
74211         Instead, simply don't mark the `Copyright...' string for translation.
74212         Based on advice from Paul Eggert.
74213
74214         * lib/strtoxmax.c: Tweak comment.
74215
74216 2001-08-26  Jim Meyering  <meyering@lucent.com>
74217
74218         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
74219
74220         * m4/xstrtoimax.m4: New file.
74221         * m4/xstrtoumax.m4: Add comments explaining why we
74222         AC_REPLACE_FUNCS(strtol).
74223
74224 2001-08-26  Jim Meyering  <meyering@lucent.com>
74225
74226         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
74227         of copyright with `%s' so translators don't get an untranslated
74228         message in 2002.
74229         (COPYRIGHT_YEAR): Define.
74230         (version_etc): Use fprintf rather than fputs.
74231         Suggestion from Ulrich Drepper.
74232
74233         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
74234
74235         * lib/strtoll.c: New file, from GNU libc.
74236         * lib/xstrtoimax.c: New file.
74237
74238         * lib/xstrtol.h: Add xstrtoimax.
74239         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
74240         * lib/strtoimax.c: New file.  Likewise, but first define
74241         STRTOUXMAX_SIGNED.
74242
74243         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
74244         ...
74245         * lib/strtoxmax.c: ... then renamed to this.
74246
74247 2001-08-18  Paul Eggert  <eggert@twinsun.com>
74248
74249         * m4/inttypes.m4: Add AC_PREREQ(2.13).
74250         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
74251         (jm_AC_TYPE_INTMAX_T): New macro.
74252         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
74253
74254         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
74255
74256         * m4/longlong.m4: Renamed from ulonglong.m4.
74257         * m4/inttypes.m4: Renamed from inttypes_h.m4.
74258         * m4/uintmax_t.m4: Removed.
74259
74260 2001-08-13  Paul Eggert  <eggert@twinsun.com>
74261
74262         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
74263         Port to Solaris 8, where 'sed' requires a space after the 'r'
74264         command, and where sh dislikes "$/".  Clean up the spacing a bit.
74265         Redirect output to $tmp just once.
74266
74267 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
74268
74269         * lib/addext.c (<errno.h>): Include.
74270         (errno): Declare if not defined.
74271         (addext): Work correctly when pathconf returns -1 and leaves
74272         errno alone because there is no limit.  Also, work even if
74273         pathconf returns a value greater than SIZE_MAX.
74274
74275 2001-08-12  Jim Meyering  <meyering@lucent.com>
74276
74277         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
74278         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
74279         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
74280         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
74281         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
74282         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
74283         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
74284         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
74285         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
74286         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
74287         utime.m4, utimes.m4, xstrtoumax.m4:
74288         Quote the first argument in each use of AC_DEFUN.
74289
74290 2001-08-12  Jim Meyering  <meyering@lucent.com>
74291
74292         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
74293         Simply `return getcwd (NULL, 0);'.
74294         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
74295         Use 1300 as initial value for length, not PATH_MAX.
74296
74297         * lib/pathmax.h: Clean up cpp syntax.
74298
74299 2001-08-12  Jim Meyering  <meyering@lucent.com>
74300
74301         * lib/gettimeofday.c: New file.
74302         * lib/gtod.h: New file.
74303         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
74304
74305 2001-08-05  Jim Meyering  <meyering@lucent.com>
74306
74307         * m4/jm-macros.m4: Require autoconf-2.52.
74308
74309 2001-08-04  Jim Meyering  <meyering@lucent.com>
74310
74311         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
74312         stmt, to get in sync with glibc.
74313
74314 2001-08-03  Paul Eggert  <eggert@twinsun.com>
74315
74316         The following changes are from gettext 0.10.39 as maintained by
74317         Bruno Haible.
74318
74319         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
74320         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
74321         with inverted sense.  All uses changed.
74322
74323         * lib/mbswidth.c: Don't include <limits.h>.
74324         Include <stdlib.h> and <string.h> unconditionally.
74325         (iswcntrl, mbsinit, ISCNTRL): New macros.
74326         (mbsnwidth): Use K&R style function declarations.
74327         Don't bother checking for MB_LEN_MAX == 1, since the compiler
74328         can optimize it when MB_CUR_MAX == 1.
74329         The width of control characters is zero, not 1.
74330
74331 2001-08-03  Paul Eggert  <eggert@twinsun.com>
74332
74333         The following changes are from gettext 0.10.39 as maintained by
74334         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
74335
74336         * m4/codeset.m4: Upgrade to serial AM1.
74337         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
74338         all uses changed.  Quote first arg of AC_DEFUN.
74339         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
74340
74341         * m4/iconv.m4: Upgrade to serial AM2.
74342         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
74343         Add --with-libconv-prefix.
74344         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
74345         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
74346         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
74347         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
74348         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
74349
74350         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
74351         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
74352         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
74353         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
74354         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
74355         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
74356         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
74357         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
74358         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
74359
74360         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
74361         string.h any more.
74362
74363         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
74364         not the default value.
74365
74366         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
74367         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
74368         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
74369         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
74370         Also check for iswcntrl, used for wcwidth fallback.
74371         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
74372         to Autoconf 2.13.
74373
74374 2001-08-03  Jim Meyering  <meyering@lucent.com>
74375
74376         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
74377         as it was in the original.  Reported by Paul Eggert.
74378
74379 2001-07-16  Jim Meyering  <meyering@lucent.com>
74380
74381         * m4/gettimeofday.m4: New file.
74382         Prompted by a report from Bernhard Baehr.
74383
74384 2001-07-15  Jim Meyering  <meyering@lucent.com>
74385
74386         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
74387         stuff. Now it's in ../Makefile.cfg.
74388
74389 2001-07-15  Jim Meyering  <meyering@lucent.com>
74390
74391         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
74392         (BUILT_SOURCES): Add unlocked-io.h.
74393         (io_functions): Define.
74394         (unlocked-io.h): New rule.
74395         (DISTCLEANFILES): Add unlocked-io.h.
74396         (all-local): Depend on unlocked-io.h, to ensure it is created.
74397
74398         * lib/unlocked-io.hin: New file
74399
74400         * lib/regex.c: Update from glibc.
74401
74402 2001-07-05  Jim Meyering  <meyering@lucent.com>
74403
74404         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
74405         recommendation.
74406         (libfetish_a_SOURCES): Put all .h files here instead.
74407         Remove a thus-exposed (better checks in automake) duplicate and
74408         two unnecessary .h files.
74409
74410 2001-07-04  Jim Meyering  <meyering@lucent.com>
74411
74412         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
74413         that generates jm-glibc-io.m4 so that it doesn't trigger any make
74414         distcheck failure.
74415
74416 2001-07-02  Jim Meyering  <meyering@lucent.com>
74417
74418         The following changes were prompted by suggestions from Bruno Haible.
74419
74420         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
74421         is now generated.
74422         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
74423         definition of EXTRA_DIST.
74424         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
74425         ensure that the generated file is created/updated whenever the list
74426         of $(unlocked_functions) is changed.
74427         (jm-glibc-io.m4): New rule.
74428         (unlocked-io.h): New rule -- currently unused.
74429
74430 2001-06-24  Jim Meyering  <meyering@lucent.com>
74431
74432         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
74433         unmatched right bracket, rather than kludging it with an extra,
74434         falsely-matching quote in a comment.  Patch by Akim Demaille.
74435
74436 2001-06-11  Jim Meyering  <meyering@lucent.com>
74437
74438         * lib/regex.c: Update from GNU libc.
74439
74440 2001-05-27  Jim Meyering  <meyering@lucent.com>
74441
74442         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
74443         Check for ut_type in struct utmp.
74444
74445 2001-05-27  Jim Meyering  <meyering@lucent.com>
74446
74447         * lib/readutmp.h (UT_TYPE): Define.
74448
74449 2001-05-24  Jim Meyering  <meyering@lucent.com>
74450
74451         * lib/argmatch.c: Include "quote.h".
74452         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
74453         quote function.  Reported by Göran Uddeborg.
74454
74455 2001-05-22  Jim Meyering  <meyering@lucent.com>
74456
74457         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
74458         now that we use the package-supplied version unconditionally.
74459         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
74460
74461 2001-05-21  Jim Meyering  <meyering@lucent.com>
74462
74463         * m4/regex.m4: Change a couple backticks to single quotes to avoid
74464         shell syntax errors.
74465
74466 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
74467
74468         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
74469
74470 2001-05-20  Paul Eggert  <eggert@twinsun.com>
74471
74472         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
74473         Don't bother to check library strftime, since
74474         we'll be using our own my_strftime function anyway.
74475         Define my_strftime instead of strftime.
74476
74477 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
74478
74479         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
74480         which is not yet declared.
74481
74482 2001-05-15  Jim Meyering  <meyering@lucent.com>
74483
74484         * m4/regex.m4: Use proper quoting so brackets appear in the test
74485         program.
74486         Reported by, and with help from, Bruno Haible.
74487
74488 2001-05-13  Jim Meyering  <meyering@lucent.com>
74489
74490         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
74491         undefined.
74492
74493 2001-05-11  Paul Eggert  <eggert@twinsun.com>
74494
74495         dirname code cleanup.  base_name now behaves more compatibly
74496         with POSIX basename when given file names that have trailing
74497         slashes, and similarly for dir_name.  Add new primitives
74498         base_len and dir_len.  Put the directory-name-related decls
74499         into dirname.h.
74500
74501         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
74502         * lib/backupfile.c (base_name): Likewise.
74503         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
74504         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
74505         * lib/makepath.c (strip_trailing_slashes): Likewise.
74506         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
74507         ISSLASH): Likewise.
74508         * lib/rename.c (strip_trailing_slashes): Likewise.
74509         * lib/same.c (base_name): Likewise.
74510         * lib/stripslash.c (ISSLASH): Likewise.
74511
74512         * lib/addext.c: Include <dirname.h> after size_t is defined.
74513         * lib/backupfile.c: Likewise.
74514
74515         * lib/addext.c (addext): Use base_len to trim redundant
74516         trailing slashes instead of doing it ourselves.
74517         But do not trim the last slash if it is not redundant.
74518
74519         * lib/backupfile.c (find_backup_file_name,
74520         max_backup_version): Use base_len instead of rolling it ourselves.
74521         Handle the case of "" and (on DOS) "C:" correctly.
74522
74523         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
74524         needed. Include <string.h>, <dirname.h>.
74525         (base_name): Allow file names ending in slashes, other than names
74526         that are all slashes.  In this case, return the basename followed
74527         by the slashes.  This is more general, and can be used in places
74528         where the original base_name purposely had an assertion failure.
74529         (base_len): New function.
74530
74531         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
74532         Do not include <assert.h>; no longer needed.
74533         Include xalloc.h.
74534         (memrchr): Remove decl.
74535         (dir_name_r): Remove.
74536         (dir_len): Renamed from dirlen.  All callers changed.
74537         Rewrite in terms of base_name, for simplicity and consistency.
74538         (dir_name): Never return NULL.  All callers changed.
74539         Do not include <stdlib.h> in test program; no longer needed.
74540         return 0; is fine for test program.
74541
74542         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
74543         New macros.
74544         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
74545
74546         * lib/path-concat.c (path_concat): Use base_len to compute
74547         base length, not strlen; this means we cannot rely on memcpy
74548         to null-terminate.
74549
74550         * lib/same.c (STREQ): Remove.
74551         (same_name): Handle the case where the basename ends in trailing '/'.
74552
74553         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
74554         a slash was stripped.  Do not strip the last slash after a
74555         file system prefix.
74556
74557 2001-05-11  Paul Eggert  <eggert@twinsun.com>
74558
74559         * lib/Makefile.am (libfetish_a_SOURCES):
74560         Add strftime.c, since we now compile it on all hosts.
74561
74562         * lib/strftime.c (my_strftime):
74563         Define to nstrftime if emacs, but only if my_strftime is not defined.
74564         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
74565         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
74566         Add one more extra argument: a nanoseconds value.
74567         All uses changed.
74568         (ns): New macro.
74569         (my_strftime function): Add %N format.
74570         (emacs_strftimeu): Renamed from emacs_strftime,
74571         with extra ut argument.
74572
74573 2001-05-09  Paul Eggert  <eggert@twinsun.com>
74574
74575         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
74576
74577 2001-04-21  Jim Meyering  <meyering@lucent.com>
74578
74579         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
74580         doesn't interfere.
74581
74582 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
74583
74584         * m4/ftruncate.m4: Check for chsize.
74585         Link with ftruncate.o unconditionally if ftruncate is missing.
74586         This was required when cross-compiling to i586-mingw32msvc.
74587
74588 2001-04-08  Jim Meyering  <meyering@lucent.com>
74589
74590         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
74591         recomputed; that's necessary when the offset spans a DST transition.
74592         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
74593
74594 2001-04-02  Jim Meyering  <meyering@lucent.com>
74595
74596         * lib/regex.h, regex.c: Update from GNU libc.
74597
74598 2001-03-24  Jim Meyering  <meyering@lucent.com>
74599
74600         * m4/jm-macros.m4: Require autoconf-2.49d.
74601
74602 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
74603
74604         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
74605
74606 2001-03-19  Paul Eggert  <eggert@twinsun.com>
74607
74608         * lib/version-etc.c (version_etc_copyright): Update to 2001.
74609
74610 2001-03-17  Jim Meyering  <meyering@lucent.com>
74611
74612         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
74613         now that the version in autoconf is equivalent.
74614         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
74615
74616         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
74617         Suggestion from Akim Demaille.
74618
74619         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
74620         (jm_PREREQ_TEMPNAME): New function.
74621
74622 2001-03-16  Paul Eggert  <eggert@twinsun.com>
74623
74624         * lib/tempname.c (uint64_t): Define to uintmax_t if
74625         not defined, and if UINT64_MAX is not defined.
74626         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
74627         Reported by John David Anglin.
74628
74629 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
74630
74631         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
74632         resolve alias if codeset is empty.
74633         * lib/config.charset (BeOS): Use wildcard syntax.
74634
74635 2001-03-13  Jim Meyering  <meyering@lucent.com>
74636
74637         * lib/path-concat.c (path_concat)
74638         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
74639         concatenating e.g., `C:' and `foo'.
74640         From Bruno Haible.
74641
74642 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
74643
74644         * lib/localcharset.c (locale_charset): Don't use
74645         setlocale(LC_CTYPE,NULL). Don't return NULL.
74646         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
74647
74648 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
74649
74650         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
74651         support for DOS/DJGPP.
74652
74653 2001-03-01  Paul Eggert  <eggert@twinsun.com>
74654
74655         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
74656         lacks mkstemp.  Compile our own tempname.c if we compile our own
74657         mkstemp.c, as mkstemp relies on tempname.
74658
74659 2001-03-01  Jim Meyering  <meyering@lucent.com>
74660
74661         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
74662         AH_VERBATIM really does output its argument verbatim.
74663
74664 2001-02-28  Paul Eggert  <eggert@twinsun.com>
74665
74666         * lib/Makefile.am (libfetish_a_SOURCES):
74667         Add dup-safer.c, fopen-safer.c.
74668         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
74669
74670         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
74671         * lib/unistd-safer.h: New files.
74672
74673 2001-02-25  Paul Eggert  <eggert@twinsun.com>
74674
74675         The mkstemp replacement is taken from glibc 2.2.2, with some
74676         portability fixes for use outside glibc, as follows:
74677
74678         * lib/tempname.c (struct_stat64): New macro.
74679         (direxists, __gen_tempname): Use it.
74680         This avoids a portability problem with Solaris 8.
74681
74682         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
74683         (<stddef.h>, <stdint.h>, <string.h>):
74684         Include only if STDC_HEADERS || _LIBC.
74685         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
74686         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
74687         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
74688         (__set_errno): Define this macro if <errno.h> doesn't.
74689         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
74690         Define these macros if <stdio.h> doesn't.
74691         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
74692         Define these macros if <sys/stat.h>
74693         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
74694         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
74695         __xstat64): Define if not _LIBC.
74696         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
74697         (__gen_tempname): Invoke gettimeofday only if
74698         HAVE_GETTIMEOFDAY || _LIBC;
74699         otherwise, fall back on plain "time".
74700         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
74701
74702         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
74703
74704         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
74705
74706 2001-02-18  Paul Eggert  <eggert@twinsun.com>
74707
74708         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
74709
74710 2001-02-17  Paul Eggert  <eggert@twinsun.com>
74711
74712         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
74713         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
74714         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
74715         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
74716
74717 2001-02-17  Paul Eggert  <eggert@twinsun.com>
74718
74719         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
74720         Remove workaround macros for hosts that have mbrtowc but not
74721         mbstate_t, as we now insist on proper declarations for both
74722         before using mbrtowc.
74723
74724 2001-02-17  Jim Meyering  <meyering@lucent.com>
74725
74726         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
74727         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
74728         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
74729         UnixWare 7.1.1.
74730
74731         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
74732         rather than AC_CACHE_VAL.
74733
74734 2001-02-17  Jim Meyering  <meyering@lucent.com>
74735
74736         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
74737         around included file name.
74738
74739         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
74740
74741         * lib/strftime.c: Update from GNU libc (the only changes were to
74742         comments).
74743
74744 2001-02-17  Jim Meyering  <meyering@lucent.com>
74745
74746         * lib/regex.c: Update from libc.
74747
74748 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
74749
74750         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
74751         clash.
74752
74753 2001-02-16  Paul Eggert  <eggert@twinsun.com>
74754
74755         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
74756         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
74757         Reported by Mark Hounschell via Paul Eggert.
74758
74759 2001-02-07  Jim Meyering  <meyering@lucent.com>
74760
74761         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
74762
74763 2001-02-05  Jim Meyering  <meyering@lucent.com>
74764
74765         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
74766         it includes the patch required for `large file' support with at least
74767         HP-UX's 10.20 /bin/cc.
74768
74769 2001-02-03  Jim Meyering  <meyering@lucent.com>
74770
74771         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
74772         AS_IF, now that it works once again (mysteriously).
74773         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
74774
74775 2001-01-30  Jim Meyering  <meyering@lucent.com>
74776
74777         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
74778         * m4/chown.m4: Rename conftestchown to conftest.chown.
74779         * m4/rename.m4: s/conftestdir/conftest.d1/ and
74780         s/conftestdir2/conftest.d2/.
74781         * m4/utimes.m4: s/conftestdata/conftest.data/
74782         Inspired by Pavel Roskin's change in autoconf.
74783
74784 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
74785
74786         * lib/config.charset: Update for FreeBSD 4.2.
74787
74788 2001-01-27  Jim Meyering  <meyering@lucent.com>
74789
74790         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
74791         a use of AS_IF.
74792         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
74793
74794 2001-01-26  Jim Meyering  <meyering@lucent.com>
74795
74796         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
74797         quotearg.c includes it.
74798
74799 2001-01-26  Jim Meyering  <meyering@lucent.com>
74800
74801         * lib/quotearg.c: Include stddef.h.
74802         * lib/quote.c: Include stddef.h.
74803         Reported by Axel Kittenberger.
74804
74805         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
74806         line in double quotes so that it evokes a better diagnostic.
74807         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
74808         Reported by Axel Kittenberger.
74809
74810 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
74811
74812         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
74813         as if it was a `charset'.
74814
74815 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
74816
74817         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
74818         has const.
74819
74820 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
74821
74822         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
74823         to avoid a warning.  Add back 'const' to inptr.
74824
74825 2001-01-20  Jim Meyering  <meyering@lucent.com>
74826
74827         Be sure that headers are checked before used in code compiled
74828         for the type checks.
74829         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
74830         In place of that, invoke jm_CHECK_ALL_TYPES.
74831         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
74832         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
74833         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
74834         The check for ssize_t was mistakenly run before the test for unistd.h.
74835
74836         The configure-time check for stdbool.h was missing.
74837         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
74838         (jm_PREREQ_HASH): New function.
74839
74840 2001-01-17  Jim Meyering  <meyering@lucent.com>
74841
74842         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
74843         for autoconf-2.49c.
74844         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
74845
74846 2001-01-16  Jim Meyering  <meyering@lucent.com>
74847
74848         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
74849         From Bruno Haible.
74850
74851 2001-01-14  Jim Meyering  <meyering@lucent.com>
74852
74853         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
74854         foo and bar.  Create conftestdir/ in the script, not in the C code.
74855         Remove directories in the script, not in the C code.
74856         Remove conftestdir{,2} before trying to create the directory.
74857         Make the entire configure script fail if the mkdir fails.
74858
74859 2001-01-14  Jim Meyering  <meyering@lucent.com>
74860
74861         * lib/rename.c: New file.  From Volker Borchert.
74862         Include stdlib.h, string.h or strings.h, and xalloc.h.
74863         Use strip_trailing_slashes rather than open-coding it.
74864
74865 2001-01-03  Paul Eggert  <eggert@twinsun.com>
74866
74867         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
74868
74869 2001-01-03  Jim Meyering  <meyering@lucent.com>
74870
74871         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
74872         of local `inptr' to avoid warning with some system declarations of
74873         iconv.
74874
74875 2001-01-02  Volker Borchert  <bt@teknon.de>
74876
74877         * m4/rename.m4: New file.
74878         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
74879
74880 2001-01-01  Jim Meyering  <meyering@lucent.com>
74881
74882         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
74883         even on systems with utmpx.h.  It's necessary for the declaration of
74884         utmp's ut_user member.  Reported by Andreas Jaeger.
74885
74886         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
74887         available. They are required for the declarations of getgrgid and
74888         getpwuid resp.
74889         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
74890         Reported by Andreas Jaeger.
74891
74892 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
74893
74894         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
74895         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
74896         so `make install' also works in VPATH builds.
74897
74898 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
74899
74900         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
74901         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
74902         can be used in subdirectories.
74903
74904 2000-12-29  Paul Eggert  <eggert@twinsun.com>
74905
74906         * lib/modechange.c: Do not assume that mode_t uses the
74907         traditional octal encoding.  E.g. "chmod 1 FOO" should set
74908         the other-execute bit of FOO even if S_IXOTH != 1.
74909
74910         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
74911         WOTH, XOTH, ALLM): New macros.
74912         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
74913          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
74914         Use them.
74915         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
74916         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
74917         (mode_compile):
74918         No need to use uintmax_t; unsigned long is long enough.
74919         Don't bother to get suffix since we don't use it.
74920
74921 2000-12-26  Jim Meyering  <meyering@lucent.com>
74922
74923         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
74924         better with autoheader.
74925
74926 2000-12-24  Jim Meyering  <meyering@lucent.com>
74927
74928         * lib/hash.c (is_prime): Return explicit boolean values.
74929         (hash_get_first): Return NULL to appease Irix5.6's 89.
74930         Reported by Nelson Beebe.
74931
74932 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
74933
74934         * lib/localcharset.c (locale_charset): Add support for Win32.
74935
74936 2000-12-18  Paul Eggert  <eggert@twinsun.com>
74937
74938         * lib/physmem.h, lib/physmem.c: New files.
74939
74940         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
74941         (noinst_HEADERS): Add physmem.h.
74942
74943         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
74944         't' for compatibility with Solaris 8 sort.
74945
74946 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
74947
74948         * lib/config.charset: Add support for BeOS.
74949
74950 2000-12-17  Jim Meyering  <meyering@lucent.com>
74951
74952         * m4/dos.m4 (jm_AC_DOS): New file and macro.
74953         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
74954
74955 2000-12-16  Jim Meyering  <meyering@lucent.com>
74956
74957         This bug had a serious impact on chown: `chown N:M FILE' (for integer
74958         N and M) would have treated it like `chown N:N FILE'.
74959
74960         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
74961
74962 2000-12-16  Jim Meyering  <meyering@lucent.com>
74963
74964         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
74965         SHELLS_FILE to a file name that's useful on djgpp systems.
74966         Include stdlib.h.
74967         (ADDITIONAL_DEFAULT_SHELLS): Define.
74968         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
74969         Based mostly on a patch from Prashant TR.
74970
74971 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
74972
74973         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
74974         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
74975         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
74976
74977 2000-12-08  Andreas Schwab  <schwab@suse.de>
74978
74979         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
74980         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
74981
74982 2000-12-07  Jim Meyering  <meyering@lucent.com>
74983
74984         * lib/stripslash.c (ISSLASH): Define.
74985         (strip_trailing_slashes): Use ISSLASH rather than comparing against
74986         `/'.
74987         From Prashant TR.
74988
74989         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
74990         (dir_name_r): Declare this function as static.
74991         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
74992         manifest itself on a name containing a mix of slashes and
74993         backslashes.
74994         Make this function work with names starting with a DOS-style
74995         drive letter and colon prefix.
74996         (dir_name): Append `.' if necessary.
74997         Based mostly on patches from Prashant TR and Eli Zaretskii.
74998
74999         * lib/dirname.h (dir_name_r): Remove prototype.
75000
75001 2000-12-06  Paul Eggert  <eggert@twinsun.com>
75002
75003         * m4/off_t-format.m4: Remove this file.
75004         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
75005
75006 2000-12-06  Jim Meyering  <meyering@lucent.com>
75007
75008         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
75009         replacement strtoull, we may well need the replacement strtoul, too.
75010         Check for declarations of strtoul and strtoull.
75011         Check for strtol.  Mainly as a cue to cause automake to include
75012         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
75013         Check for limits.h -- strtol.c needs it.
75014
75015 2000-12-05  Jim Meyering  <meyering@lucent.com>
75016
75017         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
75018
75019 2000-12-04  Jim Meyering  <meyering@lucent.com>
75020
75021         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
75022         Also include memory.h, stdlib.h, unistd.h if appropriate.
75023         Reported by Andreas Jaeger (conflicting declaration of malloc).
75024
75025 2000-12-02  Jim Meyering  <meyering@lucent.com>
75026
75027         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
75028         * m4/jm-macros.m4 (jm_MACROS): require it.
75029
75030 2000-12-02  Jim Meyering  <meyering@lucent.com>
75031
75032         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
75033
75034 2000-12-01  Paul Eggert  <eggert@twinsun.com>
75035
75036         * lib/memrchr.c: Include <config.h> before any system include file.
75037
75038 2000-11-30  Jim Meyering  <meyering@lucent.com>
75039
75040         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
75041
75042 2000-11-30  Jim Meyering  <meyering@lucent.com>
75043
75044         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
75045
75046 2000-11-29  Paul Eggert  <eggert@twinsun.com>
75047
75048         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
75049
75050 2000-11-26  Jim Meyering  <meyering@lucent.com>
75051
75052         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
75053
75054 2000-11-22  Paul Eggert  <eggert@twinsun.com>
75055
75056         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
75057         size of (size_t) -1; it's not portable.
75058
75059 2000-11-17  Jim Meyering  <meyering@lucent.com>
75060
75061         * lib/strstr.c: Update from GNU libc.
75062
75063 2000-11-17  Akim Demaille  <akim@epita.fr>
75064
75065         * lib/obstack.h: Formatting changes.
75066         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
75067         prevent type checking.
75068         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
75069         cast the value to (void *): assigning a `foo *' to a `void *'
75070         variable is valid.
75071         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
75072
75073 2000-11-16  Jim Meyering  <meyering@lucent.com>
75074
75075         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
75076
75077 2000-11-11  Jim Meyering  <meyering@lucent.com>
75078
75079         * lib/error.c: Add a couple #includes, merging from GNU libc version.
75080
75081 2000-11-10  Jim Meyering  <meyering@lucent.com>
75082
75083         * lib/obstack.h: Update from GNU libc.
75084         * lib/obstack.c: Likewise.
75085
75086 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
75087
75088         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
75089
75090 2000-11-06  Paul Eggert  <eggert@twinsun.com>
75091
75092         * lib/getusershell.c (setusershell): Use rewind rather than
75093         fseek/fseeko, to avoid configuration hassles with fseeko.
75094         Don't bother opening SHELLS_FILE if shellstream is NULL;
75095         it's not necessary.
75096
75097 2000-11-05  Jim Meyering  <meyering@lucent.com>
75098
75099         * lib/makepath.h (make_dir): Declare.
75100         * lib/makepath.c (make_dir): Remove `static' attribute.
75101         Tweak a comment.
75102
75103 2000-11-04  Jim Meyering  <meyering@lucent.com>
75104
75105         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
75106
75107 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
75108
75109         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
75110         last one in a bucket, advance to the next bucket.
75111
75112 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
75113
75114         * lib/fnmatch.c: Do not comment out all the code if we are using
75115         the GNU C library, because in some cases we are replacing buggy
75116         code in the GNU C library itself.
75117
75118 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
75119
75120         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
75121         (regex_compile): Catch bogus \(\1\).
75122
75123 2000-10-30  Paul Eggert  <eggert@twinsun.com>
75124
75125         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
75126         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
75127         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
75128
75129 2000-10-30  Paul Eggert  <eggert@twinsun.com>
75130
75131         * lib/error.h, getline.h, modechange.h:
75132         Remove "2000" from Copyright line, as the file hasn't been
75133         changed this year other than in the copyright notice.
75134
75135         * lib/xalloc.h: Add "2000" to Copyright line, as this file
75136         was changed this year.
75137
75138 2000-10-29  Jim Meyering  <meyering@lucent.com>
75139
75140         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
75141         renaming.
75142         * m4/ls-mntd-fs.m4: Likewise
75143
75144 2000-10-29  Jim Meyering  <meyering@lucent.com>
75145
75146         * lib/xstat.in: Fix grammar in comment.
75147
75148 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
75149
75150         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
75151         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
75152         doesn't define __restrict_arr.
75153
75154 2000-10-28  Jim Meyering  <meyering@lucent.com>
75155
75156         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
75157         (jm_PREREQ_MEMCHR): New function.
75158
75159 2000-10-28  Jim Meyering  <meyering@lucent.com>
75160
75161         * lib/memchr.c: Update from libc.
75162         Adjust for portability:
75163         [HAVE_STDLIB_H]: Include stdlib.h.
75164         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
75165         Undef __memchr, too.
75166         [!weak_alias]: Define __memchr to memchr.
75167
75168         * lib/regex.c: Update from libc.
75169         * lib/regex.h: Likewise.
75170         * lib/getopt1.c: Likewise.
75171         * lib/memcmp.c: Likewise.
75172
75173         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
75174         Avoid using fseek, when possible -- it's broken by design.
75175         Patch by Ulrich Drepper.
75176
75177 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
75178
75179         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
75180         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
75181         Giving in to popular pressure to shut up the compiler with casts.
75182
75183 2000-10-26  Jim Meyering  <meyering@lucent.com>
75184
75185         * lib/strftime.c: Update from libc.
75186
75187 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
75188
75189         * regex.c: More `unsigned char' -> `re_char' changes.
75190         Also change several `int' into `re_wchar_t'.
75191         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
75192         (PUSH_FAILURE_POINTER): Don't cast any more.
75193         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
75194         We want GCC to complain, since this piece of code makes
75195         re_match non-reentrant, which *should* be fixed.
75196         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
75197         (EXTEND_BUFFER): Use RETALLOC.
75198         (SET_LIST_BIT): Don't cast.
75199         (re_wchar_t): New type.
75200         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
75201         that those two functions will always properly return.
75202         (IMMEDIATE_QUIT_CHECK): Cast to void.
75203         (analyse_first): Use recursion rather than an explicit stack.
75204         (re_compile_fastmap): Can't fail anymore.
75205         (re_search_2): Don't check re_compile_fastmap for failure.
75206         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
75207         Now also sets the new value (passed in a new argument).
75208         (re_match_2_internal): Use it.
75209         Also, use a new var `reg' of type size_t when looping through regs
75210         rather than reuse the inappropriate `mcnt'.
75211
75212 2000-10-25  Jim Meyering  <meyering@lucent.com>
75213
75214         * lib/obstack.c: Update from libc.
75215
75216 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
75217
75218         * regex.c (regex_compile): Change the way of handling a range from
75219         a char less than 256 to a char not less than 256.
75220
75221 2000-10-24  Andrew Innes  <andrewi@gnu.org>
75222
75223         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
75224         NT-Emacs only.
75225         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
75226         so that re_search functions only quit when callers expect them to.
75227
75228 2000-10-23  Jim Meyering  <meyering@lucent.com>
75229
75230         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
75231         wrong.  That set_locale call must not have any side effects.
75232         From Paul Eggert.
75233
75234 2000-10-22  Jim Meyering  <meyering@lucent.com>
75235
75236         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
75237         [CYCLIC]: Remove now-unused definition.
75238
75239         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
75240         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
75241         Suggestion from Ulrich Drepper.
75242
75243 2000-10-21  Jim Meyering  <meyering@lucent.com>
75244
75245         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
75246         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
75247         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
75248
75249 2000-10-21  Jim Meyering  <meyering@lucent.com>
75250
75251         * lib/dirname.c (memrchr): Declare if necessary.
75252         (dir_name): Remove the restriction that there be no
75253         trailing slashes.  Now, this code skips past them, effectively
75254         ignoring them.
75255         [TEST_DIRNAME] (main): New unit tests.
75256
75257         * lib/memrchr.c: New file from GNU libc.
75258         Undef __memrchr, too.
75259         [!weak_alias]: Define __memrchr to memrchr.
75260         Guard weak_alias use with `#ifdef weak_alias'.
75261
75262 2000-10-21  Jim Meyering  <meyering@lucent.com>
75263
75264         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
75265         (dir_name): Use dir_name_r.
75266         * lib/dirname.h (dir_name_r): Declare it.
75267
75268 2000-10-17  Jim Meyering  <meyering@lucent.com>
75269
75270         * lib/quote.h (PARAMS): Define and use.
75271         Reported by Akim Demaille.
75272
75273         * lib/getopt.c: Update from libc.
75274
75275 2000-10-16  Jim Meyering  <meyering@lucent.com>
75276
75277         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
75278         setlocale.
75279         From Jan Fedak.
75280
75281 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
75282
75283         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
75284
75285 2000-09-25  Jim Meyering  <meyering@lucent.com>
75286
75287         * lib/md5.h (rol): Define (from GnuPG).
75288
75289         * lib/sha.c: Give credit (GnuPG) where due.
75290         (M): Use rol rather than open-coding it.
75291         Add a FIXME comment.
75292
75293 2000-09-21  Jim Meyering  <meyering@lucent.com>
75294
75295         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
75296         Reported by Michael Stone.
75297
75298 2000-09-20  Jim Meyering  <meyering@lucent.com>
75299
75300         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
75301         (noinst_HEADERS): Add sha.h.
75302         Based on code from Scott G. Miller and from GnuPG.
75303
75304 2000-09-18  Jim Meyering  <meyering@lucent.com>
75305
75306         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
75307         LIBS. Otherwise, everyone ends up linking with -lelf for some
75308         configurations.
75309         Reported by Mike Stone.
75310
75311 2000-09-15  Jim Meyering  <meyering@lucent.com>
75312
75313         * lib/regex.c: Update from libc.
75314
75315 2000-09-10  Jim Meyering  <meyering@lucent.com>
75316
75317         * lib/getopt.c (_getopt_internal): Update from glibc.
75318
75319 2000-09-09  Jim Meyering  <meyering@lucent.com>
75320
75321         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
75322         think it should be used as a general replacement for isascii.
75323         * lib/fnmatch.c: Likewise.
75324         * lib/mbswidth.c: Likewise
75325         * lib/regex.c: Likewise.
75326
75327         Don't use atoi.
75328         * lib/userspec.c: Include sys/param.h and limits.h.
75329         Include xstrtol.h.
75330         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
75331         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
75332         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
75333         UID, GID.  Check range.
75334
75335 2000-09-06  Jim Meyering  <meyering@lucent.com>
75336
75337         * lib/getopt.c (_getopt_internal): Update from glibc.
75338
75339 2000-08-30  Jim Meyering  <meyering@lucent.com>
75340
75341         * lib/strftime.c: Merge in changes from GNU libc.
75342
75343 2000-08-26  Jim Meyering  <meyering@lucent.com>
75344
75345         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
75346         * m4/fpending.m4: New file.
75347
75348 2000-08-26  Jim Meyering  <meyering@lucent.com>
75349
75350         * lib/closeout.c: Include "__fpending.h".
75351         (close_stdout_status): Return right away if there's nothing to flush.
75352
75353         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
75354         * lib/__fpending.c: New file.
75355         * lib/__fpending.h: New file.
75356
75357 2000-08-20  Jim Meyering  <meyering@lucent.com>
75358
75359         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
75360         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
75361         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
75362
75363 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
75364
75365         Improve fileutils installation on systems where running
75366         programs (like install) can't be unlinked.
75367         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
75368         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
75369
75370 2000-08-07  Paul Eggert  <eggert@twinsun.com>
75371
75372         Standardize on "memory exhausted" instead of "Memory exhausted"
75373         or "virtual memory exhausted".
75374         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
75375         "virtual memory exhausted".
75376         * lib/same.c (same_name): Invoke xalloc_die instead of printing
75377         our own message.
75378         * lib/userspec.c (parse_user_spec): Likewise.
75379         * lib/bumpalloc.h: comment fix
75380         * lib/same.c, userspec.c: Include xalloc.h.
75381
75382         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
75383         not char *const and pointing to a constant array.
75384         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
75385         (xrealloc): Comment fix.
75386
75387         * lib/userspec.c (parse_user_spec):
75388         Don't translate a message until just before returning,
75389         to avoid unnecessary translation.
75390
75391 2000-08-07  Jim Meyering  <meyering@lucent.com>
75392
75393         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
75394         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
75395         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
75396         getgroups.c, gethostname.c, getopt.h, group-member.c,
75397         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
75398         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
75399         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
75400         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
75401         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
75402         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
75403         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
75404         yesno.c: Back out Copyright date changes for each file with no change
75405         this year.  This eases coordination with other programs using the same
75406         source code modules.  From Paul Eggert.
75407
75408 2000-08-06  Paul Eggert  <eggert@twinsun.com>
75409
75410         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
75411         not char, for compatibility with glibc 2.1.3 strftime.c.
75412
75413 2000-08-03  Greg McGary  <greg@mcgary.org>
75414
75415         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
75416         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
75417         (EXTEND_BUFFER): Use them.
75418
75419 2000-08-01  Jim Meyering  <meyering@lucent.com>
75420
75421         * lib/dirname.c (ISSLASH): Define.
75422         (BACKSLASH_IS_PATH_SEPARATOR): Define.
75423         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
75424         both `\' and `/' may be use as path separators.
75425         Based on a patch from Prashant TR.
75426
75427 2000-07-31  Paul Eggert  <eggert@twinsun.com>
75428
75429         * lib/quotearg.c (quotearg_n_options): Don't make the initial
75430         slot vector a constant, since it might get modified.
75431
75432 2000-07-31  Jim Meyering  <meyering@lucent.com>
75433
75434         * lib/xmalloc.c: Use `virtual memory exhausted', not
75435         `Memory exhausted'.
75436         * lib/obstack.c (print_and_abort): Likewise.
75437
75438 2000-07-30  Paul Eggert  <eggert@twinsun.com>
75439
75440         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
75441         buffer, so that the caller can always quote one small
75442         component of a "memory exhausted" message in slot 0.
75443         From a suggestion by Jim Meyering.
75444
75445 2000-07-30  Jim Meyering  <meyering@lucent.com>
75446
75447         * lib/makepath.c (make_path): Quote the other instance, too.
75448
75449         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
75450         (STATIC_BUF_SIZE): Define.
75451         (quotearg_n_options): Use only statically allocated storage when
75452         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
75453         than STATIC_BUF_SIZE.
75454
75455 2000-07-29  Jim Meyering  <meyering@lucent.com>
75456
75457         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
75458         * lib/dirname.c (dir_name): Likewise.
75459
75460         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
75461         `/'.
75462
75463         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
75464         (dir_name): Assert that there are no trailing slashes.
75465
75466 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
75467
75468         * lib/mbswidth.h (mbswidth): Add a flags argument.
75469         (mbswidth): New declaration.
75470         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
75471         * lib/mbswidth.c (mbswidth): Add a flags argument.
75472         (mbsnwidth): New function.
75473
75474 2000-07-24  Jim Meyering  <meyering@lucent.com>
75475
75476         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
75477
75478 2000-07-23  Paul Eggert  <eggert@twinsun.com>
75479
75480         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
75481
75482 2000-07-23  Paul Eggert  <eggert@twinsun.com>
75483
75484         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
75485         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
75486         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
75487         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
75488         invoke multibyte primitives.
75489
75490 2000-07-23  Paul Eggert  <eggert@twinsun.com>
75491
75492         * lib/quotearg.c:
75493         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
75494         so that mbstate_t is always defined.
75495
75496         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
75497         be 1 in at least one GCC installation, and this configuration
75498         error is likely to be common.  Ignoring MB_LEN_MAX hurts
75499         performance on hosts that have mbrtowc but have only unibyte
75500         locales, but I assume these hosts are rare.
75501
75502 2000-07-23  Paul Eggert  <eggert@twinsun.com>
75503
75504         * lib/mbswidth.c (_XOPEN_SOURCE):
75505         Don't define; this causes problems on Solaris 7.
75506         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
75507
75508 2000-07-23  Jim Meyering  <meyering@lucent.com>
75509
75510         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
75511         too: getgrgid, getpwuid, getuid.
75512
75513 2000-07-23  Jim Meyering  <meyering@lucent.com>
75514
75515         * lib/basename.c (base_name): Add an assertion.
75516
75517 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
75518
75519         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
75520         shadow its mbsinit function.
75521
75522 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
75523
75524         * lib/mbswidth.h: New file.
75525         * lib/mbswidth.c: New file.
75526         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
75527         (noinst_HEADERS): Add mbswidth.h.
75528
75529 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
75530
75531         * lib/config.charset: Add support for FreeBSD. Improve support for
75532         HP-UX and IRIX 6.
75533
75534 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
75535
75536         * m4/mbswidth.m4: New file.
75537         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
75538
75539 2000-07-15  Jim Meyering  <meyering@lucent.com>
75540
75541         * lib/makepath.c: Include quote.h.
75542         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
75543         corresponding argument in a `quote (...)' call.
75544         Give better diagnostics.
75545
75546         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
75547         (noinst_HEADERS): Add quote.h.
75548
75549         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
75550         from tar's src/misc.c.
75551         * lib/quote.h: New file.  Prototypes for same.
75552
75553 2000-07-14  Paul Eggert  <eggert@twinsun.com>
75554
75555         From a suggestion by Bruno Haible.
75556         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
75557         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
75558         to decide whether to define the BeOS workaround macro;
75559         this adjusts to the change to AC_MBSTATE_T.
75560
75561 2000-07-14  Jim Meyering  <meyering@lucent.com>
75562
75563         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
75564         jm_AC_TYPE_UINTMAX_T.
75565
75566 2000-07-13  Paul Eggert  <eggert@twinsun.com>
75567
75568         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
75569
75570         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
75571         quotearg_buffer_restyled): Add support for
75572         clocale_quoting_style.  Undo previous change to
75573         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
75574         and "{RIGHT QUOTATION MARK}" msgids.
75575
75576 2000-07-10  Paul Eggert  <eggert@twinsun.com>
75577
75578         From a suggestion by Bruno Haible.
75579         * m4/mbstate_t.m4 (AC_MBSTATE_T):
75580         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
75581         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
75582         and mbstate_t, to a single-part test that simply defines mbstate_t.
75583         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
75584         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
75585
75586 2000-07-10  Jim Meyering  <meyering@lucent.com>
75587
75588         * m4/strerror_r.m4: Mirror the correction made in autoconf.
75589
75590         * m4/gnu-source.m4: Output to confdefs.h directly.
75591         Suggestion from Akim Demaille.
75592
75593 2000-07-09  Paul Eggert  <eggert@twinsun.com>
75594
75595         The old behavior of quoting `like this' doesn't look good with
75596         newer, ISO-style fonts.  See:
75597         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
75598
75599         Instead, quote "like this" by default.  Let the translator
75600         tailor the locale-specific quoting behavior by providing
75601         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
75602
75603         * lib/quotearg.c (N_): New macro.
75604         (gettext_default): New function.
75605         (quotearg_buffer_restyled): Use
75606         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
75607         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
75608
75609 2000-07-09  Jim Meyering  <meyering@lucent.com>
75610
75611         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
75612         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
75613
75614         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
75615         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
75616
75617 2000-07-09  Jim Meyering  <meyering@lucent.com>
75618
75619         * lib/Most files: Update copyright dates to include 2000.
75620
75621 2000-07-08  Jim Meyering  <meyering@lucent.com>
75622
75623         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
75624         if not defined.
75625         (xgethostname): Remove now-unnecessary #ifdef.
75626         Move declaration of `err' into loop where it's used.
75627
75628 2000-07-05  Paul Eggert  <eggert@twinsun.com>
75629         and Bruno Haible  <haible@clisp.cons.org>
75630
75631         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
75632         only if the test for an object-type mbstate_t fails.  This
75633         prevents us from mistakenly reporting that mbstate_t is a
75634         system object type after we "#define mbstate_t int" to work
75635         around its lack.
75636
75637 2000-07-05  Paul Eggert  <eggert@twinsun.com>
75638         and Bruno Haible  <haible@clisp.cons.org>
75639
75640         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
75641
75642 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
75643
75644         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
75645         to strerror_r.
75646         Include <ctype.h> for use of isalpha.
75647
75648 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
75649
75650         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
75651         by allocating a larger buffer. Test the gethostname return value for
75652         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
75653         returns an error and ENAMETOOLONG isn't defined.
75654
75655 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
75656
75657         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
75658         dimension.
75659
75660 2000-07-04  Jim Meyering  <meyering@lucent.com>
75661
75662         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
75663         of the deprecated AC_CHECKING.
75664
75665 2000-07-04  Jim Meyering  <meyering@lucent.com>
75666
75667         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
75668         Reported by Bruno Haible.
75669
75670 2000-07-04  Jim Meyering  <meyering@lucent.com>
75671
75672         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
75673         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
75674         lacks mbrtowc.
75675
75676 2000-07-03  Paul Eggert  <eggert@twinsun.com>
75677
75678         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
75679         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
75680
75681 2000-07-03  Paul Eggert  <eggert@twinsun.com>
75682         and Bruno Haible  <haible@clisp.cons.org>
75683
75684         * lib/quotearg.c (mbrtowc):
75685         Assign to *pwc, and return 1 only if result is nonzero.
75686         (iswprint): Use ISPRINT when substituting our own mbrtowc.
75687
75688 2000-07-03  Jim Meyering  <meyering@lucent.com>
75689
75690         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
75691
75692 2000-07-03  Jim Meyering  <meyering@lucent.com>
75693
75694         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
75695         This is necessary to get a definition of e.g., UTMP_FILE on
75696         HP-UX 10.20.
75697         From Bob Proulx.
75698
75699 2000-07-02  Jim Meyering  <meyering@lucent.com>
75700
75701         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
75702
75703         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
75704         AC_LIBOBJ(function_name).
75705         * m4/chown.m4: Likewise.
75706         * m4/fnmatch.m4: Likewise.
75707         * m4/ftruncate.m4: Likewise.
75708         * m4/getgroups.m4: Likewise.
75709         * m4/getline.m4: Likewise.
75710         * m4/group-member.m4: Likewise.
75711         * m4/jm-macros.m4: Likewise.
75712         * m4/lstat.m4: Likewise.
75713         * m4/malloc.m4: Likewise.
75714         * m4/memcmp.m4: Likewise.
75715         * m4/nanosleep.m4: Likewise.
75716         * m4/putenv.m4: Likewise.
75717         * m4/realloc.m4: Likewise.
75718         * m4/regex.m4: Likewise.
75719         * m4/stat.m4: Likewise.
75720         * m4/strftime.m4: Likewise.
75721
75722 2000-07-02  Jim Meyering  <meyering@lucent.com>
75723
75724         * lib/quotearg.c (mbstate_t): Don't define here.
75725
75726 2000-07-02  Jim Meyering  <meyering@lucent.com>
75727
75728         * lib/nanosleep.c (SIGCONT): Define if not already defined.
75729
75730 2000-07-01  Jim Meyering  <meyering@lucent.com>
75731
75732         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
75733
75734 2000-07-01  Jim Meyering  <meyering@lucent.com>
75735
75736         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
75737         problem.
75738
75739 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
75740
75741         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
75742         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
75743
75744 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
75745
75746         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
75747         per change in ../m4/ls-mntd-fs.m4.
75748         (read_filesystem_list): Ignore symbolic links.
75749
75750 2000-06-29  Jim Meyering  <meyering@lucent.com>
75751
75752         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
75753         for declaration of strcmp.
75754
75755         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
75756
75757         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
75758         Avoid warning by casting result to `char *' to remove `const'.
75759
75760 2000-06-28  Jim Meyering  <meyering@lucent.com>
75761
75762         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
75763         included by quotearg.c, for which we perform this test.  From
75764         Bruno Haible.
75765
75766 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
75767
75768         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
75769         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
75770         <utmpx.h> exists, put readutmp.o into LIBOBJS.
75771
75772 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
75773
75774         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
75775
75776 2000-06-26  Paul Eggert  <eggert@twinsun.com>
75777
75778         savedir now sets errno on failure and invokes xmalloc to get memory.
75779         Fix a couple of other minor bugs while we're at it.
75780
75781         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
75782         (NAMLEN): Remove macro.
75783         (malloc, realloc): Remove decls.
75784         (stpcpy): Likewise.
75785         ("xalloc.h"): Include.
75786         (NAME_SIZE_DEFAULT): New macro.
75787         (savedir): Use xmalloc / xrealloc to allocate memory.
75788         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
75789         Skip "" directory entries.
75790         Use strlen to calculate directory entry length, since the old method
75791         is rarely used these days and isn't worth supporting.
75792         Don't use a pointer after freeing it.
75793         Check for integer overflow when calculating allocation size.
75794         Use memcpy to copy entries, instead of stpcpy.
75795         Set errno properly when returning NULL.
75796         Check for readdir error.
75797
75798 2000-06-26  Jim Meyering  <meyering@lucent.com>
75799
75800         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
75801
75802 2000-06-25  Jim Meyering  <meyering@lucent.com>
75803
75804         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
75805         Linux header bug when _XOPEN_SOURCE is defined to 500.
75806
75807 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
75808
75809         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
75810         deficiency.
75811
75812 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
75813
75814         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
75815         Include xalloc.h.
75816         Don't include <stdlib.h>.  Don't declare malloc, realloc.
75817
75818 2000-06-24  Jim Meyering  <meyering@lucent.com>
75819
75820         * m4/strerror_r.m4: Revive this file -- to try out an experimental
75821         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
75822         for which strerror does return char*, but which lacks a conveniently
75823         accessible declaration of the function.  If the compile-test says
75824         strerror_r doesn't work, then resort to a `run'-test that works on
75825         BeOS and segfaults on DEC Unix.
75826
75827 2000-06-24  Jim Meyering  <meyering@lucent.com>
75828
75829         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
75830
75831 2000-06-23  Paul Eggert  <eggert@twinsun.com>
75832
75833         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
75834         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
75835
75836 2000-06-23  Paul Eggert  <eggert@twinsun.com>
75837
75838         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
75839         (mbrtowc, mbstate_t): Define substitutes if
75840         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
75841         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
75842         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
75843
75844 2000-06-23  Jim Meyering  <meyering@lucent.com>
75845
75846         * m4/afs.m4: Add missing AC_MSG_RESULT.
75847         Reported by Bruno Haible.
75848
75849         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
75850         Suggestion from Bruno Haible.
75851
75852 2000-06-23  Jim Meyering  <meyering@lucent.com>
75853
75854         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
75855
75856 2000-06-21  Jim Meyering  <meyering@lucent.com>
75857
75858         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
75859
75860 2000-06-21  Jim Meyering  <meyering@lucent.com>
75861
75862         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
75863         (noinst_HEADERS): Add getstr.h.
75864
75865         * lib/getline.c (getstr): Move into a separate file.
75866         * lib/getstr.c (getstr): New file, extracted from getline.c, with
75867         the following changes: new parameter, delim2; both delim[12]
75868         parameters have type `int', not `char'.  The latter would lose
75869         with 8-bit delimiters.
75870         * lib/getstr.h: New file.
75871
75872 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
75873
75874         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
75875         than 1024, return a memory chunk of least possible size, instead
75876         of size PATH_MAX + 2. In the loop, increment the size proportionally.
75877         Use free/xmalloc instead of xrealloc to avoid copying for very long
75878         paths.
75879
75880 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
75881
75882         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
75883         the empty string.
75884
75885 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
75886
75887         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
75888         address, not strdup.  Include <stdlib.h> and don't declare free().
75889
75890 2000-06-19  Jim Meyering  <meyering@lucent.com>
75891
75892         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
75893
75894 2000-06-18  Jim Meyering  <meyering@lucent.com>
75895
75896         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
75897
75898         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
75899         `checking whether...' message to be consistent with that of the
75900         lstat test.
75901
75902 2000-06-18  Jim Meyering  <meyering@lucent.com>
75903
75904         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
75905         Besides, these days every porting target provides a mkdir function.
75906
75907         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
75908         needed. (this snippet comes from src/system.h).
75909
75910 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
75911
75912         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
75913
75914 2000-06-15  Paul Eggert  <eggert@twinsun.com>
75915
75916         * lib/human.c (adjust_value): New function.
75917         (human_readable_inexact): Apply rounding style even when
75918         printing approximate values.
75919
75920 2000-06-14  Paul Eggert  <eggert@twinsun.com>
75921
75922         * lib/human.c (human_readable_inexact): Allow an input block
75923         size that is not a multiple of the output block size, and vice versa.
75924         Reported by Piergiorgio Sartor.
75925
75926 2000-06-14  Paul Eggert  <eggert@twinsun.com>
75927
75928         * lib/getdate.y (get_date): Apply relative times after time
75929         zone indicator, not before.  Reported by Todd A. Jacobs.
75930
75931 2000-06-13  Jim Meyering  <meyering@lucent.com>
75932
75933         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
75934
75935         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
75936
75937 2000-06-12  Paul Eggert  <eggert@twinsun.com>
75938
75939         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
75940
75941 2000-06-12  Jim Meyering  <meyering@lucent.com>
75942
75943         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
75944         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
75945         optional argument.
75946         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
75947         the optional argument, `lib'.
75948
75949 2000-06-08  Jim Meyering  <meyering@lucent.com>
75950
75951         * m4/largefile.m4: Remove file (now that it's part of autoconf).
75952
75953 2000-06-04  Paul Eggert  <eggert@twinsun.com>
75954
75955         Rewrite largefile configuration so that we don't need to run
75956         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
75957         AC_CANONICAL_HOST in configure.in -- jmm]
75958
75959         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
75960         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
75961         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
75962         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
75963         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
75964         All uses changed.
75965         Instead of inspecting the output of getconf, try to compile the
75966         test program without and with the macro definition.
75967         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
75968         for getconf.  Instead, check for the needed flags by compiling
75969         test programs.
75970
75971 2000-06-04  Paul Eggert  <eggert@twinsun.com>
75972
75973         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
75974
75975 2000-06-04  Jim Meyering  <meyering@lucent.com>
75976
75977         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
75978         SunOS 4.1.4 for which gid_t is an unsigned type.
75979
75980 2000-06-03  Jim Meyering  <meyering@lucent.com>
75981
75982         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
75983         now that autoconf requires that.
75984
75985         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
75986         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
75987         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
75988
75989 2000-06-03  Jim Meyering  <meyering@lucent.com>
75990
75991         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
75992
75993 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
75994
75995         * m4/glibc21.m4: New file.
75996         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
75997
75998 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
75999
76000         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
76001         newer, don't install charset.alias.
76002         * lib/config.charset: Change the Linux/glibc rules so they become empty
76003         on glibc-2.1 or newer.
76004
76005 2000-06-02  Jim Meyering  <meyering@lucent.com>
76006
76007         * lib/mountlist.c: Back out last change.  Instead, do this...
76008         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
76009         me_dummy member using the same `ignore'-testing code.
76010         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
76011         fs_type strings.
76012         From Mark D. Roth.
76013
76014 2000-05-29  Jim Meyering  <meyering@lucent.com>
76015
76016         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
76017         mounts with the `ignore' attribute.  Based on a patch from
76018         Mark D. Roth.
76019
76020 2000-05-28  Jim Meyering  <meyering@lucent.com>
76021
76022         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
76023         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
76024         * m4/stat.m4: Likewise.
76025         * m4/lstat.m4: Likewise.
76026         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
76027
76028         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
76029         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
76030
76031 2000-05-26  Jim Meyering  <meyering@lucent.com>
76032
76033         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
76034
76035 2000-05-24  Jim Meyering  <meyering@lucent.com>
76036
76037         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
76038         autoconf requires that.
76039         * m4/lib-check.m4: Likewise.
76040         * m4/jm-macros.m4: Likewise.
76041         * m4/strftime.m4: Likewise.
76042
76043         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
76044         AC_CHECK_DECLS, now that autoconf requires that.
76045
76046 2000-05-22  Jim Meyering  <meyering@lucent.com>
76047
76048         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
76049         * m4/lstat.m4: Likewise.
76050
76051 2000-05-22  Jim Meyering  <meyering@lucent.com>
76052
76053         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
76054
76055 2000-05-20  Jim Meyering  <meyering@lucent.com>
76056
76057         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
76058         (jm_PREREQ): Use it.
76059
76060 2000-05-18  Jim Meyering  <meyering@lucent.com>
76061
76062         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
76063         back, too, since it may have been modified by allocate_entry.
76064         (hash_delete): Rewrite to use neither the assignment operator
76065         nor the comma operator in an if-expression.
76066
76067 2000-05-15  Paul Eggert  <eggert@twinsun.com>
76068
76069         * lib/closeout.c:
76070         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
76071         Remove; no longer needed.
76072         "quotearg.h": Add include.
76073         (file_name): Do not bother to explicitly initialize to NULL; it's less
76074         efficient on some hosts.
76075         (close_stdout_status): Remove test as to whether stdout was already
76076         closed; it breaks for the case "echo x | sort >&-".
76077         Quote file name colons.
76078         Do not assume that _("write error") lacks format strings.
76079
76080 2000-05-15  Jim Meyering  <meyering@lucent.com>
76081
76082         * lib/version-etc.c (version_etc_copyright): Update the copyright
76083         string used in all --version output.
76084
76085 2000-05-14  Jim Meyering  <meyering@lucent.com>
76086
76087         * lib/closeout.c (close_stdout_set_file_name): New function.
76088         (close_stdout_status): Use new file-scoped global.
76089         Return right away if fstat says the stdout file descriptor is invalid.
76090         * lib/closeout.h (close_stdout_set_file_name): Declare.
76091
76092 2000-05-10  Jim Meyering  <meyering@lucent.com>
76093
76094         * lib/closeout.c [default_exit_status]: New file-scoped variable.
76095         (close_stdout_set_status): New function.
76096         * lib/closeout.h (close_stdout_set_status): Declare.
76097
76098 2000-05-09  Jim Meyering  <meyering@lucent.com>
76099
76100         * m4/gettext.m4: Rename this...
76101         * m4/libintl.m4: ...to this.
76102
76103 2000-05-08  Jim Meyering  <meyering@lucent.com>
76104
76105         * lib/long-options.c: Don't include closeout.h.
76106         (parse_long_options): Don't call close_stdout for --version.
76107
76108 2000-05-06  Paul Eggert  <eggert@twinsun.com>
76109
76110         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
76111         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
76112         2.1.3 bug.  This avoids a clash when files like regex.c define
76113         _GNU_SOURCE.
76114
76115 2000-05-06  Jim Meyering  <meyering@lucent.com>
76116
76117         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
76118         (AC_REPLACE_FUNCS): Add strnlen.
76119
76120         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
76121         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
76122
76123         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
76124         AC_SEARCH_LIBS call for nanosleep.
76125         (LIB_NANOSLEEP): Set and AC_SUBST.
76126
76127 2000-05-06  Jim Meyering  <meyering@lucent.com>
76128
76129         * lib/strnlen.c: Undefine __strnlen and strnlen.
76130         [!weak_alias]: Define __strnlen to strnlen.
76131
76132         * lib/atexit.c: New file, from libiberty.
76133
76134 2000-05-06  Jim Meyering  <meyering@lucent.com>
76135
76136         * lib/closeout.c (close_stdout_status): Also check for errors on the
76137         stderr stream.
76138
76139 2000-05-05  Jim Meyering  <meyering@lucent.com>
76140
76141         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
76142         AC_SEARCH_LIBS call for clock_gettime.
76143         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
76144
76145         * m4/search-libs.m4: Update from autoconf.
76146
76147         su doesn't work on Solaris 2.6.
76148         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
76149         <shadow.h>.  Reported by Dragos Harabor.
76150
76151 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
76152
76153         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
76154         memcpy instead of xmalloc, xrealloc, path_concat.
76155         (locale_charset): Treat empty environment variables as absent.
76156         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
76157
76158 2000-05-04  Jim Meyering  <meyering@lucent.com>
76159
76160         * lib/getopt.c: Update from glibc.
76161         * lib/obstack.c: Likewise.
76162         * lib/obstack.h: Likewise.
76163         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
76164         file
76165
76166         * lib/regex.h: Likewise.
76167         * lib/strndup.c: Likewise.
76168         * lib/strnlen.c: New file, from glibc.
76169
76170 2000-05-03  Jim Meyering  <meyering@lucent.com>
76171
76172         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
76173
76174 2000-05-02  Paul Eggert  <eggert@twinsun.com>
76175
76176         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
76177         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
76178         compile-time test, rather than inspecting host and OS, to
76179         decide whether to define _LARGEFILE_SOURCE.
76180
76181 2000-05-01  Jim Meyering  <meyering@lucent.com>
76182
76183         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
76184
76185         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
76186         Based on a patch from Bruno Haible.
76187
76188 2000-05-01  Jim Meyering  <meyering@lucent.com>
76189
76190         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
76191
76192 2000-04-29  Jim Meyering  <meyering@lucent.com>
76193
76194         * lib/path-concat.c: Declare strdup only if it's not defined.
76195         * lib/canon-host.c: Likewise.
76196
76197 2000-04-28  Jim Meyering  <meyering@lucent.com>
76198
76199         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
76200         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
76201         is included first, then limits.h is included by locale.h by libintl.h.
76202         From John David Anglin.
76203
76204 2000-04-25  Jim Meyering  <meyering@lucent.com>
76205
76206         * lib/makepath.c (S_IRWXUGO): Define.
76207         (make_path): Always perform explicit chmod if MODE specifies any
76208         of the `special' permission bits.  Prompted by a bug report against
76209         install from Mate Wierdl and Joost van Baal.
76210
76211 2000-04-18  Jim Meyering  <meyering@lucent.com>
76212
76213         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
76214         (jm_PREREQ): Use it.
76215
76216 2000-04-18  Jim Meyering  <meyering@lucent.com>
76217
76218         * lib/README: New file.
76219
76220         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
76221         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
76222
76223 2000-04-17  Jim Meyering  <meyering@lucent.com>
76224
76225         Get it right :-)
76226         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
76227         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
76228         Suggestion from Akim Demaille.
76229
76230 2000-04-17  Jim Meyering  <meyering@lucent.com>
76231
76232         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
76233         the definition of it to rpl_strftime also defined-away the system's
76234         declaration.
76235
76236 2000-04-15  Jim Meyering  <meyering@lucent.com>
76237
76238         Use `C' to denote so-called `contiguous' files, the same way
76239         that tar does.
76240         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
76241         (ftypelet): Use S_ISCTG.
76242         From Michael Deutschmann.
76243
76244 2000-04-14  Jim Meyering  <meyering@lucent.com>
76245
76246         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
76247         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
76248         clobbered.
76249
76250 2000-04-14  Jim Meyering  <meyering@lucent.com>
76251
76252         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
76253
76254 2000-04-13  Jim Meyering  <meyering@lucent.com>
76255
76256         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
76257         AH_VERBATIM to insert required #ifndef into config.h.in.
76258         Suggestion from Akim Demaille.
76259
76260 2000-04-12  Jim Meyering  <meyering@lucent.com>
76261
76262         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
76263         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
76264         Christian Krackowizer.
76265
76266         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
76267         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
76268         (AC_SYS_LARGEFILE): Require.
76269         (AM_C_PROTOTYPES): Require.
76270
76271 2000-04-08  Jim Meyering  <meyering@lucent.com>
76272
76273         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
76274         names don't conflict.  Reported by Eli Zaretskii.
76275
76276 2000-04-07  Jim Meyering  <meyering@lucent.com>
76277
76278         * lib/putenv.c: Move inclusion of errno.h so it follows that of
76279         sys/types.h, to work around system header problems on AIX 3.2.5.
76280         From Bruno Haible.
76281
76282 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
76283
76284         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
76285         bug.  Deal with the different error behavior of Irix iconv.
76286
76287 2000-04-05  Paul Eggert  <eggert@twinsun.com>
76288
76289         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
76290         IRIX if the installer said otherwise.
76291
76292 2000-04-05  Jim Meyering  <meyering@lucent.com>
76293
76294         Portability tweaks required for ultrix4.3.
76295         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
76296         (jm_CHECK_DECLS): Add getutent to the list of functions.
76297         (_jm_DECL_HEADERS): Add utmpx.h.
76298         From John David Anglin.
76299
76300         * m4/strftime.m4: Back out the 2000-04-02 change.
76301         Instead of that change, simply undefine putenv in the test program.
76302
76303 2000-04-05  Jim Meyering  <meyering@lucent.com>
76304
76305         Portability tweaks required for ultrix4.3.
76306         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
76307         getutent.
76308         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
76309         * lib/canon-host.c: Declare strdup.
76310         * lib/path-concat.c: Likewise.
76311         From John David Anglin.
76312
76313 2000-04-04  Jim Meyering  <meyering@lucent.com>
76314
76315         Be more DOS 8.3-friendly.
76316         * lib/ref-add.sin: Renamed from ref-add.sed.in.
76317         * lib/ref-del.sin: Renamed from ref-del.sed.in.
76318         * lib/Makefile.am: Reflect renaming.
76319         Reported by Eli Zaretskii.
76320
76321         Use a temporary file name that won't clash with `charset.alias'
76322         in the DOS 8.3 name space.
76323         * lib/Makefile.am (charset_tmp): Define.
76324         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
76325         (uninstall-local): Likewise.
76326         Reported by Eli Zaretskii.
76327
76328 2000-04-03  Jim Meyering  <meyering@lucent.com>
76329
76330         * m4/gettext.m4: Fix typo in comment.
76331
76332         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
76333         textutils/configure.in).  Suggestion from Paul Eggert.
76334         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
76335
76336 2000-04-02  Paul Eggert  <eggert@twinsun.com>
76337
76338         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
76339         variable in the shell rather than using putenv, which isn't
76340         portable.  This avoids the configure-time inter-test dependency
76341         on the potentially-renamed putenv function.
76342
76343 2000-03-30  Paul Eggert  <eggert@twinsun.com>
76344
76345         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
76346         before checking struct stat.st_blksize, so that
76347         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
76348
76349 2000-03-29  Paul Eggert  <eggert@twinsun.com>
76350
76351         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
76352         since strftime.c uses HAVE_STRFTIME to decide whether to use
76353         the underlying strftime.
76354
76355 2000-03-29  Paul Eggert  <eggert@twinsun.com>
76356
76357         * lib/time/strftime.c (my_strftime): Make sure we call the system
76358         strftime, not ourselves, when invoking the underlying strftime.
76359
76360 2000-03-24  Jim Meyering  <meyering@lucent.com>
76361
76362         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
76363         (charset_alias): Define.
76364         (install-exec-local): Factor out common code.
76365         (uninstall-local): Split lines longer than 80.
76366         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
76367         (SUFFIXES): Define.
76368         (.sed.in.sed): New rule.  Don't redirect directly to $@.
76369         (CLEANFILES): Add ref-add.sed and ref-del.sed.
76370
76371 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
76372
76373         * lib/config.charset: Output a line containing "Packages using this
76374         file".
76375         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
76376         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
76377         ref-del.sed): New rules.
76378
76379 2000-03-17  Jim Meyering  <meyering@lucent.com>
76380
76381         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
76382         Otherwise, include <strings.h>
76383
76384 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
76385
76386         * lib/unicodeio.c (utf8_wctomb): New function.
76387         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
76388         format instead of in UCS-4 with platform dependent endianness.
76389
76390 2000-03-10  Jim Meyering  <meyering@lucent.com>
76391
76392         * m4/lib-check.m4: Look for getspnam in -lgen, too.
76393         From Marco Franzen.
76394
76395 2000-03-07  Paul Eggert  <eggert@twinsun.com>
76396
76397         * lib/savedir.c (savedir): Work even if directory size is
76398         negative; this can happen with some screwy NFS configurations.
76399
76400 2000-03-06  Jim Meyering  <meyering@lucent.com>
76401
76402         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
76403         if it's NULL (because we ran out of memory).  From Bruno Haible.
76404
76405 2000-03-05  Jim Meyering  <meyering@lucent.com>
76406
76407         * lib/localcharset.c ("path-concat.h"): Include.
76408         (get_charset_aliases): Use path_concat instead of ANSI string
76409         concatenation.
76410
76411         * lib/unicodeio.h (PARAMS): Define.
76412         Use it to guard prototype.
76413
76414 2000-03-04  Jim Meyering  <meyering@lucent.com>
76415
76416         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
76417         for lib/localcharset.c.
76418
76419 2000-03-04  Jim Meyering  <meyering@lucent.com>
76420
76421         * lib/Makefile.am (install-exec-local): Create $(libdir) before
76422         installing into it.
76423         (uninstall-local): Uncomment this rule so `make distcheck' works
76424         once again.
76425
76426         * lib/unicodeio.c (<errno.h>): Include it.
76427         (errno): Declare if not defined.
76428
76429         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
76430
76431         * lib/config.charset: New version, incorporating remarks from a linux
76432         i18n mailing list.  From Bruno Haible.
76433
76434 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
76435
76436         * m4/codeset.m4: New file.
76437         * m4/iconv.m4: New file.
76438         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
76439
76440 2000-03-03  Jim Meyering  <meyering@lucent.com>
76441
76442         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
76443
76444 2000-03-02  Jim Meyering  <meyering@lucent.com>
76445
76446         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
76447         the messages come out on separate lines.
76448
76449         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
76450         rather than jm_CHECK_DECLARATIONS.
76451         * m4/decl.m4: Remove now-unused file.
76452
76453         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
76454         geteuid.
76455
76456 2000-03-02  Jim Meyering  <meyering@lucent.com>
76457
76458         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
76459
76460 2000-03-01  Jim Meyering  <meyering@lucent.com>
76461
76462         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
76463         * lib/unicodeio.c: Likewise.
76464
76465 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
76466
76467         * lib/config.charset: New file.
76468         * lib/localcharset.c: New file.
76469         * lib/unicodeio.h, lib/unicodeio.c: New files.
76470         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
76471         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
76472         (noinst_HEADERS): Add unicodeio.h.
76473         (all-local, install-exec-local, charset.alias): New targets.
76474
76475 2000-02-28  Paul Eggert  <eggert@twinsun.com>
76476
76477         * lib/quotearg.c (ALERT_CHAR): New macro.
76478         (quotearg_buffer_restyled): Use it.
76479
76480 2000-02-27  Jim Meyering  <meyering@lucent.com>
76481
76482         * m4/check-decl.m4: Add getenv to the list.
76483
76484 2000-02-27  Jim Meyering  <meyering@lucent.com>
76485
76486         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
76487         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
76488
76489         * lib/backupfile.c: Guard inclusion of stdlib.h with
76490         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
76491         Declare malloc if needed.
76492
76493         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
76494         `#ifndef HAVE_DECL..'
76495         now that autoconf always defines the HAVE_DECL_ symbols.
76496         * lib/human.c: Likewise.
76497         * lib/same.c: Likewise.
76498         * lib/strtoumax.c: Likewise.
76499
76500         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
76501         declaration check was not run.
76502         * lib/hash.c: Likewise.
76503         * lib/human.c: Likewise.
76504         * lib/same.c: Likewise.
76505         * lib/strtoumax.c: Likewise.
76506
76507         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
76508         `.', then first look up the entire `.'-containing string as a login
76509         name.
76510
76511 2000-02-23  Jim Meyering  <meyering@lucent.com>
76512
76513         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
76514         in place of my hack.
76515
76516 2000-02-18  Paul Eggert  <eggert@twinsun.com>
76517
76518         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
76519         (textint): New typedef.
76520         (parser_control): Member year changed from int to textint.
76521         All uses changed.
76522         (YYSTYPE): Removed; replaced by %union with int and textint members.
76523         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
76524         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
76525         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
76526         (tSNUMBER, tUNUMBER): Now of type <textintval>.
76527         (date, number, to_year): Use width of number in digits, not its value,
76528         to determine whether it's a 2-digit year, or a 2-digit time.
76529         (yylex): Store number of digits of numeric tokens.
76530         Reported by John Kendall.
76531
76532         (parser_control): Changed from struct parser_control to typedef (for
76533         consistency).  All uses changed.
76534
76535         (tID): Removed; not used.
76536         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
76537
76538 2000-02-14  Paul Eggert  <eggert@twinsun.com>
76539
76540         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
76541         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
76542
76543 2000-02-12  Jim Meyering  <meyering@lucent.com>
76544
76545         * lib/userspec.c (ISDIGIT): Define it.
76546         (isdigit): Remove definition.
76547         (is_number): Use ISDIGIT, not isdigit.
76548         <libintl.h>: Include.
76549         (_ and N_): Define.
76550         (parse_user_spec): Mark translatable strings.
76551
76552 2000-02-10  Jim Meyering  <meyering@lucent.com>
76553
76554         With these changes, nanosleep.[ch] are finally enough like the other
76555         lib/* replacement files to compile on a few more losing systems.
76556
76557         * lib/nanosleep.h: Don't include config.h.
76558         Remove prototype from declaration of nanosleep.
76559         (PARAMS): Remove now-unneeded definition.
76560         * lib/nanosleep.c: #undef nanosleep.
76561         (rpl_nanosleep): Rename from nanosleep.
76562
76563 2000-02-10  Jim Meyering  <meyering@lucent.com>
76564
76565         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
76566         gnu_nanosleep to rpl_nanosleep.
76567
76568 2000-02-09  Jim Meyering  <meyering@lucent.com>
76569
76570         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
76571         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
76572
76573 2000-02-08  Akim Demaille  <akim@epita.fr>
76574
76575         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
76576         `[' and `]' and remove uses of `changequote'.
76577         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
76578         (AC_SYS_LARGEFILE): Likewise.
76579         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
76580         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
76581         of changequote.
76582         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
76583         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
76584         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
76585         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
76586
76587 2000-02-05  Jim Meyering  <meyering@lucent.com>
76588
76589         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
76590         Remove explicit use of AC_HEADER_TIME.  It is required by
76591         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
76592         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
76593         in autoconf whereby the expansion of the latter ended up preceding
76594         the expansion of its prerequisite, AC_HEADER_TIME.
76595         Reported by Volker Borchert.
76596
76597 2000-02-03  Jim Meyering  <meyering@lucent.com>
76598
76599         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
76600
76601 2000-02-03  Jim Meyering  <meyering@lucent.com>
76602
76603         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
76604         rather than with `#if HAVE_UTMPNAME'.
76605
76606 2000-02-02  Jim Meyering  <meyering@lucent.com>
76607
76608         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
76609         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
76610         Reported by Eli Zaretskii.
76611
76612 2000-02-01  Jim Meyering  <meyering@lucent.com>
76613
76614         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
76615
76616 2000-01-31  Jim Meyering  <meyering@lucent.com>
76617
76618         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
76619         functions.  Add the time.h and sys/time.h headers along with the
76620         AC_REQUIRE'ment of AC_HEADER_TIME.
76621
76622 2000-01-31  Jim Meyering  <meyering@lucent.com>
76623
76624         * lib/nanosleep.h (nanosleep): Guard declaration with
76625         `#if ! HAVE_DECL_NANOSLEEP'.
76626         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
76627         the declaration in that vendor's sys/timers.h.
76628         Reported by Christian Krackowizer.
76629
76630         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
76631         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
76632         (ISPRINT): Likewise.
76633         Reported by Tom Tromey.
76634
76635 2000-01-30  Jim Meyering  <meyering@lucent.com>
76636
76637         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
76638
76639         * m4/prereq.m4 (utmp_includes): Define.
76640         Check for ut_user and ut_name members in both struct utmpx
76641         and struct utmp.
76642
76643 2000-01-30  Jim Meyering  <meyering@lucent.com>
76644
76645         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
76646         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
76647         header files where only utmpx.ut_user is declared.
76648
76649         * lib/readutmp.h (UT_USER): Define.
76650
76651 2000-01-29  Jim Meyering  <meyering@lucent.com>
76652
76653         * m4/lib-check.m4: New file containing library-related checks from
76654         fileutils and sh-utils (textutils had none).
76655
76656 2000-01-28  Jim Meyering  <meyering@lucent.com>
76657
76658         * m4/perl.m4: Change format of warning message to look more like that
76659         from the missing script.  Suggestion from François Pinard.
76660
76661 2000-01-25  Jim Meyering  <meyering@lucent.com>
76662
76663         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
76664         well as time.h in the compile check.
76665         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
76666         Fix typo in cross-compiling case: s/yes/no/.
76667
76668 2000-01-23  Jim Meyering  <meyering@lucent.com>
76669
76670         * m4/jm-macros.m4: Move df-related tests here from
76671         fileutils/configure.in
76672
76673         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
76674         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
76675
76676         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
76677         s/space/ac_fsusage_space/.
76678         (jm_FILE_SYSTEM_USAGE): Take two parameters.
76679
76680         * m4/ftruncate.m4: New file (derived from part of
76681         fileutils/configure.in).
76682         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
76683         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
76684
76685         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
76686         AC_SUBST these here, rather than just in sh-util/configure.in, so
76687         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
76688         all the same.
76689         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
76690         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
76691         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
76692         (AC_SUBST(POW_LIBM)): Likewise.
76693         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
76694
76695 2000-01-23  Jim Meyering  <meyering@lucent.com>
76696
76697         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
76698         obstack.c.
76699
76700 2000-01-22  Jim Meyering  <meyering@lucent.com>
76701
76702         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
76703
76704         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
76705
76706         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
76707         configure.in
76708         (AC_CHECK_HEADERS): Likewise for sh-utils.
76709         (AC_CHECK_HEADERS): Likewise for textutils.
76710         Merge the three lists of headers.
76711
76712         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
76713         from fileutils' configure.in.
76714
76715         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
76716         code. Moved tests into their own function (_jm_DECL_HEADERS) in
76717         check-decl.m4.
76718
76719         * m4/check-decl.m4: Use #if rather than #ifdef.
76720         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
76721         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
76722         (_jm_DECL_HEADERS): Define new function.
76723         (jm_CHECK_DECLARATIONS): Require it.
76724
76725 2000-01-22  Jim Meyering  <meyering@lucent.com>
76726
76727         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
76728         [! HAVE_DECL_STRTOULL]: Declare strtoull.
76729         Required for some AIX systems.  Reported by Christian Krackowizer.
76730         [TESTING] (main): New function.
76731
76732         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
76733         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
76734         letters.
76735
76736         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
76737         iswprint.
76738
76739         * lib/strverscmp.c (ISDIGIT): Define.
76740         (strverscmp): Use ISDIGIT, not isdigit.
76741
76742 2000-01-19  Jim Meyering  <meyering@lucent.com>
76743
76744         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
76745         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
76746         defines `struct timespec' in <sys/time.h>
76747
76748         * m4/c-bs-a.m4: Remove uses of changequote altogether.
76749         Thanks to Akim for explaining.
76750
76751 2000-01-17  Paul Eggert  <eggert@twinsun.com>
76752
76753         * lib/nanosleep.c (nanosleep):
76754         Don't use SA_INTERRUPT to decide whether to call sigaction, as
76755         POSIX.1 doesn't require SA_INTERRUPT and some systems
76756         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
76757         it's been part of POSIX.1 since day 1 (in 1988).
76758
76759 2000-01-17  Jim Meyering  <meyering@lucent.com>
76760
76761         * lib/interlock: Remove unused file.  Reported by François Pinard.
76762
76763 2000-01-16  Paul Eggert  <eggert@twinsun.com>
76764
76765         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
76766         alert, backslash, formfeed, and vertical tab unnecessarily in
76767         shell quoting style.
76768
76769 2000-01-16  Jim Meyering  <meyering@lucent.com>
76770
76771         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
76772         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
76773         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
76774         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
76775
76776 2000-01-16  Jim Meyering  <meyering@lucent.com>
76777
76778         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
76779         because the latter didn't work.
76780
76781 2000-01-15  Jim Meyering  <meyering@lucent.com>
76782
76783         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
76784         (AC_REPLACE_FUNCS): Add memcpy and memset.
76785         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
76786         Add strpbrk.
76787         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
76788
76789 2000-01-12  Jim Meyering  <meyering@lucent.com>
76790
76791         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
76792         (jm_PREREQ): Use it.
76793         (jm_PREREQ_READUTMP): New macro.
76794         (jm_PREREQ): Use it.
76795
76796 2000-01-11  Paul Eggert  <eggert@twinsun.com>
76797
76798         Quote multibyte characters correctly.
76799         * m4/c-bs-a.m4: New file.
76800         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
76801         (jm_PREREQ): Use it.
76802
76803 2000-01-11  Paul Eggert  <eggert@twinsun.com>
76804
76805         * m4/uintmax_t.m4: Port to autoconf 2.13.
76806
76807 2000-01-08  Jim Meyering  <meyering@ascend.com>
76808
76809         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
76810         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
76811
76812 2000-01-04  Jim Meyering  <meyering@ascend.com>
76813
76814         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
76815         jm_STRUCT_DIRENT_D_TYPE.
76816         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
76817         jm_STRUCT_DIRENT_D_INO.
76818         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
76819         jm_STRUCT_UTIMBUF.
76820         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
76821         renamings.
76822         * m4/utime.m4: Likewise.
76823
76824         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
76825         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
76826
76827 2000-01-03  Paul Eggert  <eggert@twinsun.com>
76828
76829         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
76830         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
76831
76832 2000-01-02  Jim Meyering  <meyering@ascend.com>
76833
76834         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
76835         remember if this is necessary.
76836
76837 1999-12-26  Jim Meyering  <meyering@ascend.com>
76838
76839         * m4/jm-macros.m4: Use it here.
76840         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
76841
76842 1999-12-23  Jim Meyering  <meyering@ascend.com>
76843
76844         * m4/jm-macros.m4: Check for clock_gettime (moved from
76845         fileutils/configure.in)
76846         Check for gettimeofday.
76847
76848 1999-12-20  Jim Meyering  <meyering@ascend.com>
76849
76850         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
76851         autoconf-2.14a-1999-12-20.
76852
76853 1999-12-19  Jim Meyering  <meyering@ascend.com>
76854
76855         * m4/lstat-slash.m4: New file.
76856         * m4/jm-macros.m4: Use the new macro:
76857         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
76858
76859 1999-12-07  Jim Meyering  <meyering@ascend.com>
76860
76861         * m4/perl.m4: Require that File::Compare be available, too.
76862         Too many systems seem to lack it.
76863
76864         * m4/strftime.m4: Add checks for most of the cpp macros tested in
76865         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
76866
76867 1999-11-18  Paul Eggert  <eggert@twinsun.com>
76868
76869         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
76870         problem with the QNX 4.25 shell, which doesn't propagate exit
76871         status of failed commands inside shell assignments.
76872
76873 1999-11-17  Jim Meyering  <meyering@ascend.com>
76874
76875         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
76876
76877 1999-11-07  Jim Meyering  <meyering@ascend.com>
76878
76879         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
76880
76881 1999-11-06  Jim Meyering  <meyering@ascend.com>
76882
76883         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
76884         * m4/jm-macros.m4 (jm_MACROS): Use it here.
76885
76886 1999-11-05  Jim Meyering  <meyering@ascend.com>
76887
76888         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
76889         configure.in of textutils, fileutils, and sh-utils into this one
76890         (shared between those packages) file.
76891         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
76892         AC_STRUCT_ST_BLKSIZE.
76893
76894 1999-11-03  Jim Meyering  <meyering@ascend.com>
76895
76896         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
76897         of AC_CHECK_TYPE checks includes unistd.h.
76898         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
76899         Suggestion from Akim Demaille.
76900
76901 1999-10-30  Jim Meyering  <meyering@ascend.com>
76902
76903         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
76904         m4-quoted string.
76905         * m4/ls-mntd-fs.m4: Likewise.
76906         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
76907         * m4/jm-winsz1.m4: Likewise.
76908
76909         * m4/const.m4: Remove file, since the fix made it into the experimental
76910         version of autoconf.
76911         * m4/mktime.m4: Likewise.
76912
76913         * m4/check-type.m4: Remove file, now that the latest version of
76914         AC_CHECK_TYPE takes a third arg to specify additional #includes.
76915
76916         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
76917         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
76918         AC_CHECK_TYPE.
76919
76920 1999-10-04  Jim Meyering  <meyering@ascend.com>
76921
76922         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
76923
76924 1999-09-22  Paul Eggert  <eggert@twinsun.com>
76925
76926         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
76927         2.95.1 bug with HP-UX 10.20.
76928
76929 1999-09-17  Jim Meyering  <meyering@ascend.com>
76930
76931         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
76932         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
76933         due to missing strdup (against sh-utils-2.0).
76934
76935 1999-08-29  Jim Meyering  <meyering@ascend.com>
76936
76937         * m4/jm-macros.m4: Require jm_BISON.
76938         * m4/bison.m4: New file.
76939
76940 1999-08-17  Paul Eggert  <eggert@twinsun.com>
76941
76942         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
76943         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
76944
76945 1999-08-05  Jim Meyering  <meyering@ascend.com>
76946
76947         * m4/getline.m4: Rename test file from conftestdata to conftest.data
76948         to avoid conflicts with `conftest' on 8+3 filesystems.
76949         Suggestion from Eli Zaretskii.
76950
76951 1999-08-04  Jim Meyering  <meyering@ascend.com>
76952
76953         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
76954         fileutils and sh-utils (textutils's getline test was inadequate).
76955         (AM_FUNC_GETLINE): Run this test.
76956         (AC_CHECK_FUNCS): Check for getdelim.
76957         Reported by Bob Proulx.
76958
76959 1999-08-02  Jim Meyering  <meyering@ascend.com>
76960
76961         * m4/jm-macros.m4: Add a comment.
76962
76963 1999-08-01  Paul Eggert  <eggert@twinsun.com>
76964
76965         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
76966         <inttypes.h> defines strtoumax as a macro (and not as a
76967         function).
76968
76969 1999-08-01  Paul Eggert  <eggert@twinsun.com>
76970
76971         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
76972         that we can shift, multiply and divide unsigned long long
76973         values; Ultrix cc can't do it.
76974
76975 1999-08-01  Paul Eggert  <eggert@twinsun.com>
76976
76977         * m4/mktime.m4: New file, which is a preview of what should appear
76978         in the next public autoconf release.
76979
76980 1999-08-01  Paul Eggert  <eggert@twinsun.com>
76981
76982         * m4/lfs.m4: Remove this file.
76983         * m4/largefile.m4: New file.  It contains the old contents of
76984         lfs.m4, except that all names with prefix AC_LFS have been
76985         changed to use the prefix AC_SYS_LARGEFILE instead, to be
76986         compatible with future autoconf versions.  Also, some minor m4
76987         quoting problems have been fixed.
76988
76989 1999-08-01  Paul Eggert  <eggert@twinsun.com>
76990
76991         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
76992         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
76993         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
76994         and simplify the shell code.
76995
76996 1999-08-01  Jim Meyering  <meyering@ascend.com>
76997
76998         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
76999         m4.
77000
77001 1999-07-20  Jim Meyering  <meyering@ascend.com>
77002
77003         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
77004
77005 1999-07-15  Jim Meyering  <meyering@ascend.com>
77006
77007         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
77008
77009 1999-05-22  Jim Meyering  <meyering@ascend.com>
77010
77011         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
77012
77013 1999-05-20  Jim Meyering  <meyering@ascend.com>
77014
77015         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
77016         Add a colon after each `then' in case $4 is empty.
77017
77018 1999-05-16  Jim Meyering  <meyering@ascend.com>
77019
77020         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
77021
77022 1999-05-10  Jim Meyering  <meyering@ascend.com>
77023
77024         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
77025
77026         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
77027         AC_FUNC_MKTIME.
77028
77029 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
77030
77031         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
77032
77033 1999-05-04  Paul Eggert  <eggert@twinsun.com>
77034
77035         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
77036         not CPPFLAGS, so that linking works correctly in IRIX.
77037
77038 1999-04-30  Paul Eggert  <eggert@twinsun.com>
77039
77040         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
77041
77042 1999-04-20  Paul Eggert  <eggert@twinsun.com>
77043
77044         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
77045         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
77046         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
77047         jm_AC_TYPE_UNSIGNED_LONG_LONG.
77048         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
77049
77050         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
77051
77052 1999-04-20  Jim Meyering  <meyering@ascend.com>
77053
77054         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
77055         AC_REPLACE xstroull if necessary.  From Paul Eggert.
77056         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
77057
77058 1999-04-18  Jim Meyering  <meyering@ascend.com>
77059
77060         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
77061         * m4/jm-macros.m4: Use it.
77062
77063 1999-04-06  Jim Meyering  <meyering@ascend.com>
77064
77065         * m4/strftime.m4: Remove test for %f.
77066
77067 1999-03-29  Jim Meyering  <meyering@ascend.com>
77068
77069         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
77070         superset of the AC_TYPE_* checks in the textutils, fileutils,
77071         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
77072         AC_TYPE_PID_T.
77073
77074 1999-03-28  Jim Meyering  <meyering@ascend.com>
77075
77076         * m4/jm-macros.m4: Define GNU_PACKAGE here.
77077         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
77078         replaced e.g., in the *.sh files of the sh-utils.
77079
77080 1999-03-20  Jim Meyering  <meyering@ascend.com>
77081
77082         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
77083         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
77084         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
77085
77086 1999-03-19  Jim Meyering  <meyering@ascend.com>
77087
77088         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
77089
77090 1999-03-12  Jim Meyering  <meyering@ascend.com>
77091
77092         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
77093
77094 1999-03-07  Jim Meyering  <meyering@ascend.com>
77095
77096         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
77097         declared.
77098
77099 1999-02-17  Jim Meyering  <meyering@ascend.com>
77100
77101         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
77102         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
77103
77104 1999-02-07  Jim Meyering  <meyering@ascend.com>
77105
77106         * m4/group-member.m4: New file -- extracted from sh-utils'
77107         configure.in.
77108
77109         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
77110         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
77111
77112 1999-02-06  Jim Meyering  <meyering@ascend.com>
77113
77114         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
77115         * m4/fnmatch.m4: Likewise.
77116         * m4/getgroups.m4: Likewise.
77117         * m4/lstat.m4: Likewise.
77118         * m4/malloc.m4: Likewise.
77119         * m4/putenv.m4: Likewise.
77120         * m4/realloc.m4: Likewise.
77121         * m4/regex.m4: Likewise.
77122         * m4/stat.m4: Likewise.
77123         * m4/strftime.m4: Likewise.
77124         Suggestion from Alain Magloire.
77125
77126         * m4/chown.m4: Use `.$ac_objext', not `.o'.
77127         * m4/fnmatch.m4: Likewise.
77128         * m4/getgroups.m4: Likewise.
77129         * m4/getline.m4: Likewise.
77130         * m4/lstat.m4: Likewise.
77131         * m4/malloc.m4: Likewise.
77132         * m4/memcmp.m4: Likewise.
77133         * m4/putenv.m4: Likewise.
77134         * m4/realloc.m4: Likewise.
77135         * m4/regex.m4: Likewise.
77136         * m4/stat.m4: Likewise.
77137         * m4/strftime.m4: Likewise.
77138         Suggestion from Alain Magloire.
77139
77140         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
77141         an argument.
77142
77143         * m4/regex.m4: Add a run-time Test for proper operation of
77144         re_compile_pattern.
77145
77146 1999-01-31  Jim Meyering  <meyering@ascend.com>
77147
77148         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
77149
77150 1999-01-30  Jim Meyering  <meyering@ascend.com>
77151
77152         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
77153
77154         * m4/jm-mktime.m4: Make this a wrapper around the official
77155         AM_FUNC_MKTIME rather than my private copy, now that the official one
77156         is up to date.
77157         * m4/mktime.m4: Remove file.
77158
77159         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
77160         * m4/uptime.m4: Likewise.
77161         * m4/uintmax_t.m4: Likewise.
77162
77163 1999-01-28  Jim Meyering  <meyering@ascend.com>
77164
77165         * m4/jm-macros.m4: Use jm_AFS.
77166         * m4/afs.m4: New file (from fileutils' configure.in).
77167
77168         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
77169         * m4/chown.m4: Likewise.
77170         * m4/d-ino.m4: Likewise.
77171         * m4/d-type.m4: Likewise.
77172         * m4/fnmatch.m4: Likewise.
77173         * m4/getgroups.m4: Likewise.
77174         * m4/gettext.m4: Likewise.
77175         * m4/jm-mktime.m4: Likewise.
77176         * m4/jm-winsz2.m4: Likewise.
77177         * m4/lcmessage.m4: Likewise.
77178         * m4/ls-mntd-fs.m4: Likewise.
77179         * m4/malloc.m4: Likewise.
77180         * m4/memcmp.m4: Likewise.
77181         * m4/putenv.m4: Likewise.
77182         * m4/realloc.m4: Likewise.
77183         * m4/st_mtim.m4: Likewise.
77184         * m4/strftime.m4: Likewise.
77185
77186 1999-01-16  Jim Meyering  <meyering@ascend.com>
77187
77188         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
77189         (ARGMATCH_DIE_DECL): Define.
77190
77191 1999-01-12  Jim Meyering  <meyering@ascend.com>
77192
77193         * m4/Makefile.am.in: Rewrite to avoid using fmt.
77194         Reported by Lars Hecking.
77195
77196 1999-01-10  Jim Meyering  <meyering@ascend.com>
77197
77198         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
77199         gross kludge.
77200         * m4/inttypes_h.m4: Likewise.
77201         * m4/lstat.m4: Likewise.
77202         * m4/malloc.m4: Likewise.
77203         * m4/readdir.m4: Likewise.
77204         * m4/realloc.m4: Likewise.
77205         * m4/st_dm_mode.m4: Likewise.
77206         * m4/stat.m4: Likewise.
77207         * m4/utimbuf.m4: Likewise.
77208         * m4/utimes.m4: Likewise.
77209
77210         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
77211         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
77212         comments in config.h.in are meaningful.
77213
77214         * m4/jm-macros.m4: Require autoconf-2.13 here.
77215
77216         * m4/regex.m4: By default, don't use the included regex.c on systems
77217         with glibc 2.  Suggestion from Uli Drepper.
77218
77219 1999-01-02  Jim Meyering  <meyering@ascend.com>
77220
77221         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
77222
77223 1998-12-18  Jim Meyering  <meyering@ascend.com>
77224
77225         * m4/Makefile.am.in (Makefile.am): Simplify rule.
77226         Based on a suggestion from Lars Hecking.
77227
77228 1998-11-16  Paul Eggert  <eggert@twinsun.com>
77229
77230         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
77231
77232 1998-11-16  Jim Meyering  <meyering@ascend.com>
77233
77234         * m4/lfs.m4: Double-quote the `uname...` expression.
77235
77236 1998-11-14  Jim Meyering  <meyering@ascend.com>
77237
77238         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
77239         * m4/stat.m4: Likewise.
77240
77241 1998-11-03  Jim Meyering  <meyering@ascend.com>
77242
77243         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
77244         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
77245
77246 1998-10-18  Jim Meyering  <meyering@ascend.com>
77247
77248         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
77249
77250 1998-10-17  Jim Meyering  <meyering@ascend.com>
77251
77252         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
77253         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
77254         calls for those previously hard-coded headers.  Instead, take a new
77255         parameter.
77256         (jm_CHECK_DECLARATIONS): Reflect interface change.
77257         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
77258         (jm_CHECK_DECL_LOCALTIME_R): New macro.
77259
77260         * m4/mktime.m4: Test for spring-forward gap before long-running test.
77261
77262 1998-10-14  Jim Meyering  <meyering@ascend.com>
77263
77264         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
77265         instead of "TZ=America/Vancouver".  From Paul Eggert.
77266
77267 1998-10-11  Jim Meyering  <meyering@ascend.com>
77268
77269         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
77270         This adds a test for a recently added compatibility fix for mktime.c.
77271         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
77272
77273 1998-09-27  Jim Meyering  <meyering@ascend.com>
77274
77275         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
77276
77277         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
77278         ../configure.in, including a change from Gordon Matzigkeit to allow
77279         cross-compiling for the Hurd.
77280
77281         * m4/glibc.m4: New file/macro to test for the GNU C Library
77282         versions 1 and 2.  From Gordon Matzigkeit.
77283         Indent.
77284
77285 1998-09-21  Jim Meyering  <meyering@ascend.com>
77286
77287         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
77288
77289 1998-08-18  Paul Eggert  <eggert@twinsun.com>
77290
77291         Port nanosecond-resolution times to UnixWare 2.1.2 and
77292         pedantic Solaris 2.6.
77293
77294         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
77295         AC_STRUCT_ST_MTIM.
77296         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
77297         Generate name of ns member, instead of just 1 or undef.
77298         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
77299
77300 1998-08-15  Jim Meyering  <meyering@ascend.com>
77301
77302         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
77303         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
77304         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
77305         instead of jm_TYPE_SSIZE_T.
77306
77307 1998-08-12  Jim Meyering  <meyering@ascend.com>
77308
77309         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
77310
77311 1998-08-02  Jim Meyering  <meyering@ascend.com>
77312
77313         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
77314         in acconfig.h manually.
77315
77316 1998-07-31  Paul Eggert  <eggert@twinsun.com>
77317
77318         * m4/st_mtim.m4: New file.
77319
77320 1998-07-28  Jim Meyering  <meyering@ascend.com>
77321
77322         * m4/utimes.m4: Undef stat.
77323
77324 1998-07-25  Jim Meyering  <meyering@ascend.com>
77325
77326         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
77327         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
77328
77329 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
77330
77331         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
77332         uid and gid actually remain unchanged.
77333
77334 1998-07-07  Jim Meyering  <meyering@ascend.com>
77335
77336         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
77337
77338 1998-07-04  Jim Meyering  <meyering@ascend.com>
77339
77340         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
77341         to prove that this macro can be used in packages without regex.c.
77342
77343 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
77344
77345         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
77346         is to be used.
77347
77348 1998-07-03  Jim Meyering  <meyering@ascend.com>
77349
77350         * m4/gettext.m4: Add -lintl if it's found to be necessary.
77351
77352         * m4/gettext.m4: New file -- from gettext-0.10.35.
77353         * m4/lcmessage.m4: Likewise.
77354         * m4/progtest.m4: Likewise.
77355
77356         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
77357         * m4/jm-macros.m4: Require the new macro.
77358
77359 1998-06-29  Jim Meyering  <meyering@ascend.com>
77360
77361         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
77362         for the definition of NGROUPS (used in a system header included
77363         by sys/mount.h).
77364
77365 1998-06-28  Jim Meyering  <meyering@ascend.com>
77366
77367         * m4/ls-mntd-fs.m4: New file.
77368         * m4/fstypename.m4: New file.
77369
77370         * m4/jm-macros.m4: Require the new macro.
77371         * m4/jm-glibc-io.m4: New file.
77372
77373 1998-05-19  Jim Meyering  <meyering@ascend.com>
77374
77375         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
77376         * m4/lchown.m4: New file.
77377
77378         * m4/Makefile.am.in: New file.
77379         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
77380
77381 1998-05-14  Jim Meyering  <meyering@ascend.com>
77382
77383         * m4/Makefile.am (EXTRA_DIST): Add them.
77384         * m4/jm-macros.m4: New file.
77385         * m4/utimbuf.m4: New file.
77386
77387 1998-05-12  Jim Meyering  <meyering@ascend.com>
77388
77389         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
77390
77391 1998-05-11  Jim Meyering  <meyering@ascend.com>
77392
77393         * m4/isc-posix.m4: New file.
77394
77395 1998-05-10  Jim Meyering  <meyering@ascend.com>
77396
77397         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
77398
77399 1998-05-09  Jim Meyering  <meyering@ascend.com>
77400
77401         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
77402         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
77403         with automake.
77404
77405         * m4/ssize_t.m4: New file.
77406         * m4/mktime.m4: Remove file -- the new automake has this now.
77407
77408 1998-04-26  Jim Meyering  <meyering@ascend.com>
77409
77410         * m4/assert.m4: New file.
77411         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
77412
77413 1998-04-05  Jim Meyering  <meyering@ascend.com>
77414
77415         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
77416         (jm_PREREQ): Use it here.
77417
77418 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
77419
77420         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
77421         in acconfig.h.
77422
77423 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
77424
77425         * m4/prereq.m4: New file.
77426         * m4/error.m4: New file.
77427         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
77428
77429 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
77430
77431         * m4/getline.m4: Don't set am_cv_func_working_getline before the
77432         cache-check for the same variable -- that defeated the purpose of
77433         the test; the test program was never run.  This was a problem only
77434         on systems with losing getline functions -- HP-UX 10.20 is one.
77435         Reported by Bjorn Helgaas.
77436
77437 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
77438
77439         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
77440
77441 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
77442
77443         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
77444
77445         * m4/const.m4: New file.  Use an initializer in this declaration
77446         typedef int charset[2]; const charset x;
77447         Reported by Bob Glickstein.
77448
77449 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
77450
77451         * m4/chown.m4: Fix reversed types on -1 args to chown.
77452         From Kaveh Ghazi.
77453
77454 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
77455
77456         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
77457         Add lseek and memchr.
77458
77459         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
77460         T.E.Dickey <dickey@clark.net> said that some older preprocessors
77461         have a 20-character limit on names.
77462
77463 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
77464
77465         * m4/inttypes_h.m4: New file.
77466         * m4/uintmax_t.m4: New file.
77467         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
77468
77469
77470         -----
77471
77472         Local Variables:
77473         coding: utf-8
77474         End:
77475
77476         Copyright (C) 1997-2011 Free Software Foundation, Inc.
77477
77478         Copying and distribution of this file, with or without
77479         modification, are permitted provided the copyright notice
77480         and this notice are preserved.